text:
Wallet Information for Exchanges
=======

Hyperspace's wallet differs a bit from Bitcoin's. This guide is to point any exchanges to relevant functions and features of the wallet that may be of unique interest to them.

### Address Management

The Hyperspace wallet follows the concept of an address gap limit [as specified in BIP 44](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#Address_gap_limit). The default gap limit is 50. This means the wallet will not allow creation of more than 50 consecutive addresses if none of those 50 addresses have been used on the blockchain.

An exchange may want to create more than 50 addresses before using them. The address gap limit can be modified by launching hsd with the `--address-gap-limit` flag. For example, if an exchange wants to start off with 10,000 addresses, they might want to set the address gap limit to be a little larger (just so they never bump into it), e.g. `hsd --address-gap-limit 15000`.

New addresses can be created via a POST request to the `/wallet/address` endpoint. Do not confuse this with a GET request to `/wallet/address`, which will always return the first address in the wallet that has not yet been seen on the blockchain. New addresses can also be created with the `hsc wallet new-address` command.

### Useful API Endpoints

Below is a list of several endpoints an exchange may find useful. For an overview of all API routes, see [API.md](/doc/API.md).

#### /wallet/watch [POST]

###### Parameters
The parameters should be encoded as JSON.

```
// Array of addresses to be watched
addresses

// Boolean indicating whether we want to remove these
// address from our watch-list instead of add them
remove

// Boolean indicating whether or not these addresses
// have been used on the blockchain before. If unused
// is false, the wallet will rescan the blockchain after
// this request.
unused

```

###### Response

standard success or error response.

#### /wallet/transactions [GET]

returns a list of transactions related to the wallet.

###### Query String Parameters
```
// Number of most recent transactions to return.
// Must provide a valid value, defaults to 10 if unspecified.
count // block height

// An optional parameter specifying if we want to filter
// only transactions being sent or being received by the wallet.
// Can be either "send" or "receive".
category // block height

// A boolean parameter specifying if we want to filter
// only transactions pertaining to addresses being watched via
// the /wallet/watch [POST] command.
watchonly
```

###### JSON Response
```javascript
{
  // The most recent 'count' transactions satisfying the filter criteria.
  "confirmedtransactions": [
    {
      // See the documentation for '/wallet/transaction/:id' for more information.
    }
  ],

  // All of the unconfirmed transactions.
  "unconfirmedtransactions": [
    {
      // See the documentation for '/wallet/transaction/:id' for more information.
    }
  ]
}
```

#### /wallet/address [POST]

creates a new address from the wallet generated by the primary seed. An error will
be returned if the wallet is locked.

###### JSON Response
```javascript
{
  // Wallet address that can receive SPACE. Addresses are 76 character long hex strings.
  "address": "1234567890abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789ab"
}
```

#### /wallet/spacecash [POST]

Function: Send space cash to an address or set of addresses. The outputs are
arbitrarily selected from addresses in the wallet. If 'outputs' is supplied,
'amount' and 'destination' must be empty. The number of outputs should not
exceed 400; this may result in a transaction too large to fit in the
transaction pool.

###### Query String Parameters
```
// Number of hastings being sent. A hasting is the smallest unit in Hyperspace. There
// are 10^24 hastings in a single unit of SPACE.
amount      // hastings

// Address that is receiving the coins.
destination // address

// JSON array of outputs. The structure of each output is:
// {"unlockhash": "<destination>", "value": "<amount>"}
outputs
```

###### JSON Response
```javascript
{
  // Array of IDs of the transactions that were created when sending the coins.
  // The last transaction contains the output headed to the 'destination'.
  // Transaction IDs are 64 character long hex strings.
  transactionids [
    "1234567890abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
    "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
  ]
}
```

### Examples

#### Send to single address

###### Example POST Request
Use _amount_ and _destination_ parameters.
```
/wallet/spacecash?amount=1000000000000000000000000&destination=1234567890abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789ab
```

###### Expected Response Code
```
200 OK
```

###### Example Response Body
```json
{
  "transactionids": [
    "3918e4a4b4cee46b3e5b28b8a1cc41c064a6f6002d162d396f296c201e6edc13",
    "18b85b7d20f8a87bdadacf11e135ad44db1d93efd0613d23116e8cf255502762"
  ]
}
```

#### Send to set of addresses
Use _outputs_ parameter in the form of a JSON array. _amount_ and _destination_ parameters must be empty.

###### Example POST Request
```
/wallet/spacecash?outputs=[{"unlockhash":"1234567890abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789ab","value":"1000000000000000000000000"},{"unlockhash":"abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789ab1234567890","value":"8000000000000000000000000"},{"unlockhash":"cdef0123456789abcdef0123456789abcdef0123456789ab1234567890abcdef0123456789ab","value":"5000000000000000000000000"}]
```

###### (sample JSON request body for reference)
```json
{
  "outputs": [
    {
      "unlockhash":
"1234567890abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789ab",
      "value": "1000000000000000000000000"
    },
    {
      "unlockhash":
"abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789ab1234567890",
      "value": "8000000000000000000000000"
    },
    {
      "unlockhash":
"cdef0123456789abcdef0123456789abcdef0123456789ab1234567890abcdef0123456789ab",
      "value": "20000000000000000000000000"
    }
  ]
}

```

###### Expected Response Code
```
200 OK
```

###### Example Response Body
```json
{
  "transactionids": [
    "21962e0118f3ca5d6fab0262c65bca0220fbcc828c499974d86e7cc4047a0ce5",
    "f2471d550823f2c0616565d8476a7fea5f2b9a841612bf109923c3a54e760721"
  ]
}
```

repository: HyperspaceApp/Hyperspace

repo_name: HyperspaceApp/Hyperspace


text:
# Arena About
Arena About is the frontend of [SIESGSTarena](http://arena.siesgst.ac.in/). In this version, we have tried to redesign the UI.

## About The Project

You can have a look at our [Arena About]()
The project is focused on providing a good UI to our users in order to give a clear picture about SIESGSTarena . We have used HTML,CSS,BOOTSTRAP to design the about page.

### Project Structure

The project structure is based on the idea of keeping all the components and assets required by a route in its own separate folder.
The entire project is divided into 5 modules:

1. common: This module contains the components which are common across all the routes. e.g. The NavigationBar.
1. menu: This menu contains links to the sections present in the web page.
1. Welcome and Mission : This section contains the basic information and the mission of SIESGSTarena.
1. More about arena and Our Story: This section contains all the information about arena.
1. Our Competitions: This section contains all the information related to competitions conducted by SIESGSTarena.
1. Feedback: This section contains all the testimonials.

### How can you contribute?

Read the [Contributing Guidelines]() to know how easy it is to contribute to this project.

license: MIT

branch_name: refs/heads/master

extension: md

license_type: permissive


text:
# deepNeuroSeg
There are two different segmentation tasks you can perform with deepNeuroSeg: White Matter Hyperintensities (WMH) and Claustrum Segmentation. To learn details about the used deep-learning models please refer to the publications [1] and [2]. As soon as the underlying models are required, they will be downloaded to your computer and placed in ~/.deepNeuroSeg folder.

## White Matter Hyperintensities (WMH) Segmentation
WMH segmentation can be performed either using FLAIR only or both FLAIR and T1 scans. The results would be similar to our experience [1], but the default is using both of them.

![](https://github.com/RitaOlenchuk/deepNeuroSeg/blob/main/images/wmh_example.png?raw=true)
Fig.1: Segmentation result on Singapore 34 [1]. From left to right: FLAIR MR image, the associated ground truth, segmentation result using FLAIR modality only and segmentation result using FLAIR and T1 modalities. In column SegF LAIR and SegF LAIR+T1, the green area is the overlap between the segmentation maps and the ground-truth, the red pixels are the false negatives and the black ones are the false positives.

## Claustrum Segmentation
For Claustrum Segmentation the T1 scan must be provided.

# How to:
Run deepNeuroSeg either in command line or Python.
## Command line
deepNeuroSeg performs two different segmentation tasks. The desired task must be specified with --type that is either equals to wmh (White Matter Hyperintensities) or c (Claustrum). For example:
```bash
deepNeuroSeg --type wmh --flair YOUR_PATH.nii.gz --t1 YOUR_PATH.nii.gz --o YOUR_PATH
```
Or:
```bash
deepNeuroSeg --type c --t1 YOUR_PATH.nii.gz --o YOUR_PATH
```

For more details see:
```text
deepNeuroSeg --help
Options:
  --type [wmh|c]  Either 'wmh' (White Matter Hyperintensities) or 'c'
                  (Claustrum)
  --flair PATH    Path to nii.gz file with a FLAIR scan.
  --t1 PATH       Path to nii.gz file with a T1 scan.
  --o TEXT        Path where to save the resulting segmentation. Directory path or specific nii.gz file path.
                  [required]
  --help          Show this message and exit.
```
The resulting mask will be saved with user-specified .nii.gz file name or in the user-specified directory under the name out_mask.nii.gz.

## Python
In Python user will have to follow the next steps:

Step 1: Import deepNeuroSeg
```python
from deepNeuroSeg import SegmentationFactory, SegmentationType
```

Step 2: Create a SegmentationFactory object with segmentation type either SegmentationType.Claustrum or SegmentationType.WMH. An example for WMH Segmentation with both FLAIR and T1 modalities:
```python
segmenter = SegmentationFactory.create_segmenter(SegmentationType.WMH,
                                                    FLAIR_path='YOUR_PATH',
                                                    T1_path='YOUR_PATH')
```
Or claustrum segmentation:
```python
segmenter = SegmentationFactory.create_segmenter(SegmentationType.Claustrum,
                                                  T1_path='YOUR_PATH')
```

Step 3: Next the segmentation can be performed.

Option a: The user can specify the output path directly in perform_segmentation method.
```python
prediction = segmenter.perform_segmentation(outputDir='YOUR_PATH')
```
Option b: The output numpy array can be inspected first, and then saved with save_segmentation function.

```python
prediction = segmenter.perform_segmentation()
segmenter.save_segmentation(mask=prediction, outputDir='YOUR_PATH')
```
In both cases, the output mask will be saved with user-specified .nii.gz file name or in user-specified directory under the name out_mask.nii.gz.

See also the [jupyter notebook for a quick start.](https://nbviewer.jupyter.org/github/RitaOlenchuk/deepNeuroSeg/blob/main/deepNeuroSeg_quickstart.ipynb)

**Special feature of Claustrum Segmentation:**

The user can check the orientation of the coronal and axial images by selecting the special feature in perform_segmentation method:
```python
prediction = segmenter.perform_segmentation(check_orientation=True)
```
check_orientation=True will save the images of coronal and axial slices under ~/.deepNeuroSeg/images/.

# References:

[1]: Li, Hongwei, et al. "Fully convolutional network ensembles for white matter hyperintensities segmentation in MR images." NeuroImage 183 (2018): 650-665.

[2]: Li, Hongwei, et al. "Complex Grey Matter Structure Segmentation in Brains via Deep Learning: Example of the Claustrum." arXiv preprint arXiv:2008.03465 (2020).

repository: eloydelas/deepNeuroSeg

branch_name: refs/heads/main

repo_name: eloydelas/deepNeuroSeg


text:
---
layout: update
date: 2022-01-05
title: Visual Studio 2019 image update on January 5, 2022
platform: windows
---

## What's new

* Visual Studio 2019 version 16.11.8
* .NET Core 3.1.416, 5.0.404
* Python 3.10.1
* Google Chrome 96.0.4664.110
* Microsoft Edge 96.0.1054.62
* Firefox 95.0.2
* Go 1.17.5, 1.16.12
* CMake 3.22.1
* PowerShell Core 7.2.1
* Doxygen 1.9.3
* OpenSSL 1.1.1m, 3.0.1

## Previous worker image

There is a build worker image available from previous deployment. You can use it in case of any issues with the current image:

`Previous Visual Studio 2019`

You can select build worker image in "Build worker image" dropdown on Environment tab of project settings or if you use `appveyor.yml`:

```yaml
image: Previous Visual Studio 2019
```

repository: appveyor/website

gha_language: HTML

gha_license_id: MIT

repo_name: appveyor/website


text:
## About
This is a sample that depicts how to integrate the `msal-node-extensions` library to your [electron](https://www.electronjs.org/) application that has been bundled by [webpack](https://webpack.js.org/).

## Getting started
To get started using this sample, you need to do the following:

**1. Change the MSAL Electron Configuration** \
Navigate to the `main.ts` file in the src folder and replace the `<CLIENT_ID>` with your client ID. Follow this [steps](https://docs.microsoft.com/en-us/graph/toolkit/get-started/build-an-electron-app#add-new-application-registration-in-azure-ad-to-get-a-client-id) to generate the client ID from Azure.

```js
// Initialize the electron authenticator
const config: MsalElectronConfig = {
    clientId: '<CLIENT_ID>', // <<== Replace this placeholder with your client ID
    mainWindow: mainWindow, //BrowserWindow instance that requires auth
    scopes: [
        'user.read',
        'people.read',
        'user.readbasic.all',
        'contacts.read',
        'presence.read.all',
        'presence.read',
        'user.read.all',
        'calendars.read',
        'Sites.Read.All',
        'Sites.ReadWrite.All',
    ],
    cachePlugin: new PersistenceCachePlugin(persistence),
};
```

**2. Run `npm install`** \
Run `npm install` or your preferred alternative to it, to install the dependencies necessary to run the sample.

```bash
npm install
```

**3. Start your application** \
To start your application, run the command below:

```bash
npm run start
```

> NOTE: If you encounter any errors related to having some of the binaries built with a different NODE_VERSION, run `npm run rebuild` to try rebuild the application with the right NODE_VERSION target

branch_name: refs/heads/dev


text:
Experimental docker image to learn possibility of trojan horse attack using docker container

Disclaimer
----------

For experimental purpose only, do not use this on any target which you do not have permission to do so.

To run the experiment
---------------------

Attacker side: Compile the image and start the remote control server

```
$ docker build -f Dockerfile.victim -t very-useful-app .
$ ./server.sh
```

In this specific experiment, we run our server on <IP_ADDRESS>:4545. But in real case, the attacker will use global IP of their VPS server.

Attacker will push the "very-useful-app" image to docker registry and wait for the victim to run the image.

Victim side (on the different terminal): Run the docker image

```
$ docker run -it --net=host very-useful-app
```

In this specific experiment, we use --net=host option to connect to the server running at <IP_ADDRESS>. But in real case, when the attacker use their global IP, we can omit this option.

Once the container start running, you can remote control victim's docker container from your server.
You can install any utility (e.g. nmap) to scan victim's network to steal any credentials as well.

Please get noticed that this experiment is conducted only with standard socat command, so it is hard to detect by the security scanner.

How to protect our network from such attack?
--------------------------------------------

Use docker-host-network-firewall.

Completely disable network traffic from docker container to global IP is also useful to prevent such remote control attack.

repository: devrt/docker-host-network-firewall

repo_name: devrt/docker-host-network-firewall


text:
---
description: Even though image and SVG data are very similar, they are maintained in separate tables in the image catalog.
solution: Experience Manager
title: Image/SVG data reference
feature: Dynamic Media Classic,SDK/API
role: Developer,User
exl-id: d43bf938-efed-4e9f-ab47-6581f8c587c9
---
# Image/SVG data reference{#image-svg-data-reference}

Even though image and SVG data are very similar, they are maintained in separate tables in the image catalog.

If image data is required, the relative or absolute path of the image data files that itemize the images must be specified in `attribute::CatalogFile`. If SVG data is required, the relative or absolute path of the SVG data files must be specified in `attribute::SvgCatalogFile`.

* [Image data reference](c-image-data-reference/c-image-data-reference.md)
* [SVG data reference](c-svg-data-reference/c-svg-data-reference.md)


text:
+++
title = "Dude!"
expires = "1m"
template = "home"
+++
# Welcome
Welcome to the sample site!

## Stuff

<amp-img src="static/dude-512.png" alt="dude" layout="intrinsic" width="512" height="512"/>

Name    | Age
--------|------
Bob     | 27
Alice   | 23

### List

1. First
2. Second
3. Third

### Another List

* [About](/about.html)
* Second
* Third

### More Stuff

Do you run this on [Docker]?

It's a ~~strike~~!

This is a footnote. [^1]

"Does this automatically link?" http://www.google.com/

It works 4/5 times.

```go
func getTrue() bool {
    return true
}
```

Cat
: Fluffy animal everyone likes

Internet
: Vector of transmission for pictures of cats

[^1]: the footnote text.

[Docker]: http://www.docker.com/

### Smaller

#### And smaller

##### And even smaller

##### And even more smaller

repository: ancientlore/whisper

gha_language: Go

gha_license_id: NOASSERTION

repo_name: ancientlore/whisper


text:
[![Build Status](https://travis-ci.org/forgedsoftware/measurementjs.svg?branch=master)](https://travis-ci.org/forgedsoftware/measurementjs)

Measurement.js
==============

A measurement library for handling, converting, and manipulating quantities.

## Documentation

### Getting Started

#### Node
In order to install `measurement` in your project, navigate to your projects directory and install with:

````
npm install measurejs
````
You can include `measurement` within a module in a standard way:
````javascript
var m = require('measurejs');
m(42, 'metre').format();
````

#### Browser
````html
<script src="measurement.js"></script>
<script>
	var m = window.measurement;
	m(42, 'metre').format();
</script>
````

#### Bower
````
bower install --save measurement
````

#### Require.js
````javascript
require.config({
    paths: {
        "measurement": "path/to/measurement",
    }
});
define(["measurement"], function (m) {
    m(42, 'metre').format();
});
````

#### NuGet
Coming Soon!

#### Basic Usage
You can use `measurement` to perform basic math:
````javascript
m(4).add(5).value; // 9
m(2).add(m(12)).value; // 14

m(2.7).subtract(1.2).value; // 1.5
m(16).subtract(m(2)).value; // 14

m(4).multiply(3).value; // 12
m(1.6).divide(m(4)).value; // 0.4
````
You can use `measurement` to perform unit conversions:
````javascript
m(2, 'minute').convert('second').value; // 120
m(12, 'metre').convert('foot').value; // 39.3701
````
You can perform math between quantities with different units:
````javascript
m(30, 'minute').add(m(2, 'hour')).value; // 150 [in minutes]
````
You can chain operations:
````javascript
m(10, 'minute').multiply(m(2)).add(4).minus(m(30, 'second')).value; // 23.5
````

### Units & Systems
Coming Soon!

### Quantities & Dimensions
Coming Soon!

### Format
Coming Soon!

### Uncertainity & Frequency Distribution
Coming Soon!

### Config Options
Coming Soon!

## Changelog

### 0.0.1
Initial release

## Build Process

We use gulp to provide our build process with a couple of custom extensions to provide the custom behaviours. The build process completes these steps:

 1. Convert `./common/systems.json` into three files of varying levels of detail.
  - `full` - Contains all systems and all units.
  - `default` - Contains all systems and all that aren't listed as historical or rare.
  - `minimal` - Contains a subset of systems and all units with the systems usCustomary, imperial, or si.
     - Does not include historical or rare units.
     - Systems: length, area, volume, speed, acceleration, pressure, mass, time, temperature, energy, density, and information.
 2. Convert each of the files into JS syntax and insert into `measurement.js` file with the name `./built/measurement_\*.js`.
 3. Minify each of the built files into `./min/measurement_\*.min.js`.

## License
Measurement JS is freely distributable under the terms of the MIT license.

repository: forgedsoftware/measurementjs

repo_name: forgedsoftware/measurementjs


text:
---
name: Bug report
about: Select this option if you found a bug and want to report it .
title: ''
labels: bug, triage needed
assignees: ''

---

## Bug description
Please provide a clear and concise description of the problem.

## Steps to reproduce
1. Do something
2. Do something else
3. See error

## Observed behavior
Please provide a description of the observed behavior.

## Expected behavior
Please provide a description of the expected behavior.

## Version (please provide the following information):
 - OS:
 - branch:

## Additional notes
Feel free to provide any additional notes.


text:
---
author: angad
categories:
  - Events
  - Featured
  - Headline
  - News
comments: true
date: 2010-05-03T00:00:00.000Z
title: Ideas >> Execution; Summer Hackfest
url: /2010/05/ideas-execution-summer-hackfest/
aliases:
  - /2010/05/03/ideas-execution-summer-hackfest/
---

linuxNUS and HackerSpaceSG bring to you the Summer Hackfest  and this time we have bigger ideas in mind!

This time great ideas come together at a single place. You have 12hrs to develop anything, either with a team or individually. Share your ideas with others, form great teams and meet different people. You are free to develop anything, any idea that you have in mind - Android, iPhone, Web2.0, linux etc.

Have a blast with coding, designing and developing a business idea, straight from idea >> execution. Start your idea with awesome people around and <geek> out.

The last 2 hrs will be devoted to a short discussion of ideas that everybody is working on.

So Come over, grab a corner and JFDI!

The event starts at 9am and ends at 9pm.

9am - 11am Form team, discuss idea.

11am - 8pm - JFDI!

8pm - 9pm - Show-and-Tell & Makan :)

Please register here. Please note that places are limited for the first 30 registrants. You will be informed by email :)

//bit.ly/9FNeyq

Please feel free to drop by the IRC Channel or email us at<EMAIL_ADDRESS>

repository: nushackers/nushackers-site

repo_name: nushackers/nushackers-site


text:
# What's this?

This is an [AutoHotkey](https://www.autohotkey.com) progam which converts a cheap AirMouse (inertial mouse wireless mouse) into a presentation controler, which can be used with Powerpoint or Google Present.

# Motivation

Since I do a lot of (PowerPoint) presentations, I was thinking of buying a presentation tool [Gyration](http://www.gyration.com) which turns your mouse cursor into a on-screen laser pointer and enables you to easily move from slide to slide.

The problem with Gyration air mouse is that it costs $100. At the same time on e-bay you can find an AirMouse without the presentation features for as little as $7.77

I ended buying the cheap [2.4G T2 AirMouse](url=http://goo.gl/EId07k) and was trying to add features found in Gyration mouse.
The solution came in the form of AutoHotkey. I managed to reproduce the most important feature of the Gyration and have managed to turn the cheep AirMouse into a usefull presentation tool.

In the attachment you can find the source code with all the needed files. The code is designed to work with T2 AirMouse, and might need to be changed in order to work with other devices

# User instruction manual
## Installation
1) download and install [AutoHotkey](https://www.autohotkey.com) on your computer
2) download the **T2Presenter.ahk** file from this repository
3) plugin the T2 AirMouse and make sure it works as a regular mouse (Windows should recognize automatically)

## Using it in you presentation
1) run the **T2Presenter.ahk**
3) start your presentation (i.e. Powerpoint)
4) on the AirMouse press the **mute button** to turn on the "presentation mode"

In presentation mode the mouse cursor is relaced by a red laser dot. The laser dot is by default hidden in order it not interfering with the presentation. You need to press the **OK button** on your AirMouse for it to be displayed.

While holding the OK button move the pointer as you wish ... do your presentaton!

After releasing the OK button, the laser pointer becomes invisible again.

Press **mute button** to exit presentation mode.

## Pointer initial position

When the OK button is pressed the laser pointer is positioned in the bottom left corner of the screen.

If however after releasing the OK button you press it again within 2 seconds, the cursor/pointer will be shown at the last position it was visible. After 2 seconds have elapsed, the cursor position will be reset to it's initial position - bottom-left corner of the screen.

## Using other buttons
Here's a list of all the T2 AirMouse buttons and their function (listed as they are positioned on the T2 AirMouse. First let's have a look at key diagram:

<img src="https://rawgit.com/knee-cola/t2presenter/master/assets/key-diagram.jpg" alt="t2presenter-key-diagram" width="350"/>

### Standard mouse mode

  * **(1) Power** = hold for 5 sec to put the computer in standby mode
  * **(2&3) Volume Up/Down** = volume up/down
  * **(4-7) Up/Down/Left/Right** = up/down/left/right - like similar keys on your keyboard
  * **(8) OK** = left mouse button in standard
  * **(9) Back** = right mouse button
  * **(10) Menu** = display context menu
  * **(11) Home** = open the home page
  * **(12) Cursor On/Off** = turns cursor tracking on/off
  * **(13&14) Page Up/Down** = page up/down in standard
  * **(15) Mute** = turn the presentation mode On

### Presenation mode

  * **(1) Power** = same as in standard mouse mode
  * **(2&3) Volume Up/Down** = change the laser pointer shape
  * **(4-7) Up/Down/Left/Right** = goto next/previous slide
  * **(8) OK** = pointer on/off button
  * **(9) Back** = clear all drawn lines
  * **(10) Menu** = turn drawing mode On (does not work in Google Slides)
  * **(11) Home** = toggle the Powerpoint black screen (does not work in Google Slides)
  * **(12) Cursor On/Off** = turns cursor tracking on/off
  * **(13&14) Page Up/Down** = disabled/not in use
  * **(15) Mute** = turn the presentation mode Off

### Drawing mode (works only in Powerpoint)

  * **(8) OK** = draw a line
  * **(9) Back** = clear all drawn lines
  * **(10) Menu** = turn drawing mode Off


text:
---
layout: page
title: About Me
permalink: /
redirect_from:
  - /about
---

# Biography
I'm a recent graduate from the Master in Computer Science program at Oregon State University. During my time here, I have worked on privacy in machine learning with Dr. Sanghyun Hong. In one of our work, I [poisoned machine learning models to reveal their secrets](https://dl.acm.org/doi/10.1145/3548606.3560554). Previously, I applied machine learning to help psychologists to [learn about infants' exploration patterns](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8988848/).

# Latest
- **March 24, 2023**: I have officially graduated from Oregon State University with a Master of Science degree in Computer Science.
- **August 24, 2022**: Our paper, *Truth Serum: Poisoning Machine Learning Models to Reveal Their Secrets* was published at [ACM CCS 2022](https://dl.acm.org/doi/10.1145/3548606.3560554).


text:
# **Finding Lane Lines on the Road**

## Writeup Template

### You can use this file as a template for your writeup if you want to submit it as a markdown file. But feel free to use some other method and submit a pdf if you prefer.

---

**Finding Lane Lines on the Road**

The goals / steps of this project are the following:
* Make a pipeline that finds lane lines on the road
* Reflect on your work in a written report

[//]: # (Image References)

[image1]: ./examples/grayscale.jpg "Grayscale"

---

### Reflection

### 1. Describe your pipeline. As part of the description, explain how you modified the draw_lines() function.

Here were the steps to my pipeline:

1. Convert images to grayscale
2. Apply the gaussian blur filter to the grayscaled image
3. Apply the canny edge detection algorithm
4. Apply region of interest and focus the images into a triangle
5. Apply the hough lines algorithm to trace out the 2 lane lines
6. Perform a weighted_img using cv2.addWeighted to display both the lane lines and the image

What I modified for the draw lines function:

- I made my pipeline directly from the QandA linked. The video talks about getting the slope of the lines, appending them to a list and place a conditional saying that if the slope falls between 2 thresholds, append them to the list. Else, discard them
- After appending them to the list (in this case it was x1_left, x2_left, x1_right and x2_right), I then took the average of them using np.mean()
- Once I get those values, then I can directly stitch/draw them using the cv2.line function
- The reason who I have an x1_right as well is remember that we need to draw two lines, one on the left and one on the right. The line on the right will have a negative slope because it is heading "downward" vs the one on the left. That was something I did not keep in mind initially and the model failed. But now it's fixed :)

Here's what it looked like before (click on the picture):

[![video](test_videos_output/old_lines.png)](test_videos_output/solidWhiteRight_0.mp4)

Here's what it looks like now:

[![video](test_videos_output/new_lines.png)](test_videos_output/solidWhiteRight_1.mp4)

### 2. Identify potential shortcomings with your current pipeline

- If the line is something like x = 5, then the slope is undefined. This can cause NaN errors (as I would assume occured when I tested the current model in the curved lines challenge)
- Maybe the threshold values for the slopes are not optimal (0.5,1.0,-0.5,-1.0) and should be fixed.

### 3. Suggest possible improvements to your pipeline

How I can potentially improve the pipeline:

- Think of the slope of every single point that you take as a derivative of a polynomial/higher degree function. Then, what you can do is then use those derivatives to actually stitch out the polynomial (in this case, would be curved lines) function. (The analogy of derivatives is very bad since a derivative is constant but I think it's the best way to explain it)
- Play around and look for better thresholds for the slopes/y values


text:
---
id: automatic-persisted-queries
title: Automatic Persisted Queries (APQ)
---

[APQ is technique created by Apollo](https://www.apollographql.com/docs/apollo-server/performance/apq/) to improve
GraphQL network performance with zero build-time configuration by sending smaller [GraphQL HTTP requests](https://github.com/graphql/graphql-over-http/blob/main/spec/GraphQLOverHTTP.md).
A smaller request payload reduces bandwidth utilization and speeds up GraphQL Client loading times.

A persisted query is a parsed and validated query document that is cached on a GraphQL Server, along with a unique identifier (SHA-256 hash).
This way clients can send this identifier instead of the corresponding query which will drastically reduce the request size.

To persist a query, a GraphQL Server must first receive it from a Client, then, subsequent requests can just include the identifier
instead of the query.

```mermaid
sequenceDiagram;
  Client->>GraphQL Kotlin Server: Sends SHA-256 hash of query to execute
  Note over GraphQL Kotlin Server: Fails to find persisted query
  GraphQL Kotlin Server->>Client: Responds with error
  Client->>GraphQL Kotlin Server: Sends both query AND SHA-256 hash
  Note over GraphQL Kotlin Server: Persists query and SHA-256 hash
  GraphQL Kotlin Server->>Client: Executes query and returns result
  Note over Client: Time passes
  Client->>GraphQL Kotlin Server: Sends SHA-256 hash of query to execute
  Note over GraphQL Kotlin Server: Finds persisted query previously parsed and validated
  GraphQL Kotlin Server->>Client: Executes query and returns result
  Note over Client: Client can opt-out from sending SHA-256 hash
  Client->>GraphQL Kotlin Server: Sends query without SHA-256
  Note over GraphQL Kotlin Server: Still persist parsed and validated query
  GraphQL Kotlin Server->>Client: Executes query and returns result
  Client->>GraphQL Kotlin Server: Sends query without SHA-256
  Note over GraphQL Kotlin Server: Finds parsed and validated query
```

## AutomaticPersistedQueriesProvider

To support APQ we have created `AutomaticPersistedQueriesProvider` which is an implementation of
the [graphql-java PreparsedDocumentProvider](https://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/execution/preparsed/PreparsedDocumentProvider.java),
which is the interface that allows caching for parsed and validated GraphQL Documents (AST).

`AutomaticPersistedQueriesProvider` requires the implementation of `AutomaticPersistedQueriesCache` as a constructor argument.
`AutomaticPersistedQueriesCache` is an interface that specifies the contract of how to retrieve documents.

**Note:** `graphql-kotlin-automatic-persisted-queries` provides a default in-memory cache implementation of `AutomaticPersistedQueriesCache`
called `DefaultAutomaticPersistedQueriesCache`. In order to take full advantage of Automatic Persisted Queries, it's recommended
to use an external cache mechanism like Redis.

### Usage in GraphQL Kotlin Server

Provide an instance of `AutomaticPersistedQueryProvider` in the GraphQL engine builder `preparsedDocumentProvider` method:

```kotlin
val schema = "your schema"
val runtimeWiring =  RuntimeWiring.newRuntimeWiring().build() // your runtime wiring
val automaticPersistedQueryProvider = AutomaticPersistedQueriesProvider(DefaultAutomaticPersistedQueriesCache())

val graphQL = GraphQL
    .newGraphQL(SchemaGenerator().makeExecutableSchema(SchemaParser().parse(schema), runtimeWiring))
    .preparsedDocumentProvider(automaticPersistedQueryProvider)
    .build()
```

:::info
`graphql-kotlin-spring-server` provides convenient integration of Automatic Persisted Queries functionality through simple configuration.
Automatic Persisted Queries can be enabled by configuring following properties:
```yaml
graphql:
  automaticPersistedQueries:
   enabled: true
```
:::

If you want to implement a different cache mechanism using Caffeine or REDIS you can just simply provide a Spring Bean and the
autoconfigured `AutomaticPersistedQueryProvider` will use your custom implementation of the cache.

```kotlin
class REDISAutomaticPersistedQueriesCache : AutomaticPersistedQueriesCache {
    override fun getOrElse(key: String, supplier: () -> PreparsedDocumentEntry): CompletableFuture<PreparsedDocumentEntry> {
        // your implementation
    }
}

@Configuration
class ApplicationConfiguration {
    @Bean
    fun redisAutomaticPersistedQueriesCache(): PreparsedDocumentProvider = REDISAutomaticPersistedQueriesCache()
}
```
### Usage in Clients

Clients that want to use APQ will need to calculate the unique identifier (SHA-256 hash) of a query and send it
in the extension section of a [GraphQL HTTP request](https://github.com/graphql/graphql-over-http/blob/main/spec/GraphQLOverHTTP.md#json-encoding)

Example Payload:

```json
{
  "variables": {
    "foo": "bar"
  },
  "extensions": {
    "persistedQuery": {
      "version": 1,
      "sha256Hash": "ecf4edb46db40b5132295c0291d62fb65d6759a9eedfa4d5d612dd5ec54a6b38"
    }
  }
}
```

As seen, in an APQ request, the query field of the request payload is optional.

### Errors

All errors are going to be provided in the `errors` array in the JSON Response:

1. `PersistedQueryNotFound` if `query` was not provided and preparsed document could not be found in the cache using the provided `sha256Hash`
the GraphQL Error response will be:
```json
{
  "errors": [
    {
      "message": "PersistedQueryNotFound",
      "extensions": {
        "persistedQueryId": "ecf4edb46db40b5132295c0291d62fb65d6759a9eedfa4d5d612dd5ec54a6b38",
        "classification": "PersistedQueryNotFound"
      }
    }
  ]
}
```

2. `PersistedQueryIdInvalid` if `query` was provided but the provided `sha256Hash` does not match with the `query`
the GraphQL Error response will be:
```json
{
  "errors": [
    {
      "message": "PersistedQueryIdInvalid",
      "extensions": {
        "persistedQueryId": "ecf4edb46db40b5132295c0291d62fb65d6759a9eedfa4d5d612dd5ec54a6b38",
        "classification": "PersistedQueryIdInvalid"
      }
    }
  ]
}
```

repository: ExpediaGroup/graphql-kotlin

gha_language: Kotlin

repo_name: ExpediaGroup/graphql-kotlin


text:
![GitHub release (latest SemVer including pre-releases)](https://img.shields.io/github/v/release/y9neon/notes?include_prereleases) [![Hits-of-Code](https://hitsofcode.com/github/y9neon/notes?branch=main)](https://hitsofcode.com/github/y9neon/notes/view?branch=main)  ![GitHub](https://img.shields.io/github/license/y9neon/notes)

# Notes

Simple application made using Compose Multiplatform, SQLDelight and Decompose.

### Screenshots:

| ![ main-without-items](assets/images/main_no_items.jpg) | ![ editor](assets/images/editor.jpg) | ![ main_one_item](assets/images/main_oneitem.jpg) |
|----------------------------------------------------------|--------------------------------------|---------------------------------------------------|

### Video:

![preview](assets/videos/preview.gif)

## TODO

There is plans for adding next stuff:

- Text formatting
- Animations for screen changing

repository: nilsonsasaki/notes

repo_name: nilsonsasaki/notes


text:
Description
===========

This is a short-and-simple cookbook to provide a user_ulimit resource for overriding various ulimit settings. It places configured templates into /etc/security/limits.d/, named for the user the ulimit applies to.

It also provides a helper recipe (default.rb) for allowing ulimit overrides with the 'su' command on Ubuntu, which is disabled by default for some reason.

Requirements
============

Add to your repo, then depend upon this cookbook from wherever you need to override ulimits.

Attributes
==========

* `node['ulimit']['pam_su_template_cookbook'] - Defaults to nil (current cookbook).  Determines what cookbook the su pam.d template is taken from

Usage
=====

Consume the user_ulimit resource like so:

    user_ulimit "tomcat" do
      filehandle_limit 8192 # optional
      process_limit 61504 # optional
      memory_limit 1024 # optional
    end

repository: CruGlobal/cru-cookbooks

gha_language: Ruby

repo_name: CruGlobal/cru-cookbooks


text:
# qmgr
Test out TDD and code coverage using a module

[![Coverage Status](https://coveralls.io/repos/github/ricera/qmgr/badge.svg?branch=master)](https://coveralls.io/github/ricera/qmgr?branch=master)

Requirements:
- FreeBSD 11.1 (most versions would probably work)
- Packages installed via pkg:
	- llvm50
	- cpputest (version 3.8)

repository: ricera/qmgr

repo_name: ricera/qmgr


text:
# OpenEval
Eval untrusted and possibly malicious code.

# Example

```js
import eval from "https://deno.land/x/open_eval/index.js";
const ev = new Eval();

ev.eval("python3", "print('hello world')")
    .then(data => console.log(data.output));
```

# Note
This package uses **[Piston](https://github.com/engineer-man/piston)** to eval your code.

# Join my discord
**[https://discord.gg/2SUybzb](https://discord.gg/2SUybzb)**

repository: CesiumLabs/deno-eval

repo_name: CesiumLabs/deno-eval


text:
[![Battle Tested ✅](https://img.shields.io/badge/-Battle--Tested%20%E2%9C%85-03666e?style=for-the-badge)](https://github.com/WrathChaos/@freakycoder/react-native-image-swiper)

[![Fully customizable & extremely easy to use Image Swiper for React Native](https://img.shields.io/badge/-Fully%20customizable%20%26%20extremely%20easy%20to%20use%20Image%20Swiper%20for%20React%20Native-orange?style=for-the-badge)](https://github.com/WrathChaos/@freakycoder/react-native-image-swiper)

[![npm version](https://img.shields.io/npm/v/@freakycoder/react-native-image-swiper.svg?style=for-the-badge)](https://www.npmjs.com/package/@freakycoder/react-native-image-swiper)
[![npm](https://img.shields.io/npm/dt/@freakycoder/react-native-image-swiper.svg?style=for-the-badge)](https://www.npmjs.com/package/@freakycoder/react-native-image-swiper)
![Platform - Android and iOS](https://img.shields.io/badge/platform-Android%20%7C%20iOS-blue.svg?style=for-the-badge)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=for-the-badge)](https://github.com/prettier/prettier)

#### Take a look at [RN Image Gallery](https://github.com/Paraboly/react-native-image-gallery) for ready to use Image Swiper

# Installation

Add the dependency:

```bash
npm i @freakycoder/react-native-image-swiper
```

## Peer Dependencies

###### IMPORTANT! You need install them

```json
"react": ">= 16.x.x",
"react-native": ">= 0.55.x",
```

# Usage

## Import

```jsx
import ImageSwiper from "@freakycoder/react-native-image-swiper";
```

## Basic Usage

```jsx
<ImageSwiper
  imageHeight={700}
  onSwipeTop={() => alert("onSwipeTop")}
  onSwipeBottom={() => alert("onSwipeBottom")}
  images={[
    {
      uri:
        "https://images.unsplash.com/photo-1544550581-5f7ceaf7f992?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=958&q=80",
    },
    {
      uri:
        "https://images.unsplash.com/photo-1555149385-c50f336e28b0?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=675&q=80",
    },
    {
      uri:
        "https://images.unsplash.com/photo-1532517891316-72a08e5c03a7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=701&q=80",
    },
  ]}
/>
```

# Configuration - Props

| Property       |   Type    |   Default    | Description                                                                                |
| -------------- | :-------: | :----------: | -------------------------------------------------------------------------------------------------------- |
| images         |   array   |  undefined   | the main data of image swiper                                                                            |
| ImageComponent | component |    Image     | set your own Image component such as `FastImage`                                                         |
| onPageSelected | Function  |  undefined   | handle the selected page with this function                                                              |
| imageHeight    |  number   | ScreenHeight | change the image height                                                                                |
| imageWidth     |  number   | ScreenWidth  | image width is changable but not recommended! You will broke the image swiper's horizontal swipe feature |
| onSwipeTop     | Function  |  undefined   | handle when the user swipe top on the image                                                              |
| onSwipeBottom  | Function  |  undefined   | handle when the user swipe bottom on the image                                                           |

## Future Plans

- [x] ~~LICENSE~~
- [x] ~~`initialPage` Feature~~
- [ ] Vertical Image Swiper Feature (Like Tiktok)
- [ ] Write an article about the lib on Medium

## Author

FreakyCoder<EMAIL_ADDRESS>
## License

React Native Image Swiper is available under the MIT license. See the LICENSE file for more info.

repository: WrathChaos/react-native-image-swiper

repo_name: WrathChaos/react-native-image-swiper


text:
# babel-watch

Reload your babel-node app on JS source file changes. And do it _fast_.

## Why should I use it?

If you're tired of using [`babel-node`](https://github.com/babel/babel/tree/master/packages/babel-cli) together with [`nodemon`](https://github.com/remy/nodemon), [`babel/cli`](https://babeljs.io/docs/en/babel-cli) with `--watch` option (or similar solution). The reason why the aforementioned setup performs so badly is the startup time of `babel-node` itself. `babel-watch` only starts `babel` in the "master" process where it also starts the file watcher. The transpilation is performed in that process too. On file-watcher events, it spawns a pure `node` process and passes transpiled code from the parent process together with the source maps. This allows us to avoid loading `babel` and all its deps every time we restart the JS script/app.

## Autowatch

A unique feature of `babel-watch` is capability of automatically detecting files that needs to be watched. You no longer need to specify the list of files or directories to watch for. With "autowatch" the only thing you need to do is to pass the name of your main script and `babel-watch` will start watching for the changes on files that are loaded by your node program while it is executing. (You can disable autowatch with `-D` option or exclude some directories from being watched automatically with `-x`).

## System requirements

Currently `babel-watch` is supported on Linux, OSX and Windows.

## I want it

Just install it and add to your package:

With NPM:

```bash
  npm install --save-dev babel-watch
```

With Yarn:

```bash
  yarn add --dev babel-watch
```

(Make sure you have `@babel/core` installed as dependency in your project as `babel-watch` only defines `@babel/core` as a "peerDependency")

Then use `babel-watch` in your `package.json` in scripts section like this:

```json
  "scripts": {
    "start": "babel-watch src/main.js"
  }
```

## Options

`babel-watch` was made to be compatible with `babel-node` and `nodemon` options. Not all of them are supported yet, here is a short list of supported command line options:

```
    -d, --debug [port]             Enable debug mode (deprecated) with optional port
    -B, --debug-brk                Enable debug break mode (deprecated)
    -I, --inspect [address]        Enable inspect mode
    -X, --inspect-brk [address]    Enable inspect break mode
    -o, --only [globs]             Matching files will *only* be transpiled (default: null)
    -i, --ignore [globs]           Matching files will not be transpiled, but will still be watched. Default value is "node_modules". If you specify this option and still want to exclude modules, be sure to add it to the list. (default: ["node_modules"])
    -e, --extensions [extensions]  List of extensions to hook into (default: [".js",".jsx",".es6",".es",".mjs"])
    -w, --watch [dir]              Watch directory "dir" or files. Use once for each directory or file to watch (default: [])
    -x, --exclude [dir]            Exclude matching directory/files from watcher. Use once for each directory or file (default: [])
    -L, --use-polling              In some filesystems watch events may not work correcly. This option enables "polling" which should mitigate this type of issue
    -D, --disable-autowatch        Don't automatically start watching changes in files "required" by the program
    -H, --disable-ex-handler       Disable source-map-enhanced uncaught exception handler. You may want to use this option in case your app registers a custom uncaught exception handler
    -m, --message [string]         Set custom message displayed on restart (default: ">>> Restarting due to change in file(s): %s")
    -c, --config-file [string]     Babel config file path
    --clear-console                If set, will clear console on each restart. Restart message will not be shown
    --before-restart <command>     Set a custom command to be run before each restart, for example "npm run lint"
    --restart-timeout <ms>         Set the maximum time to wait before forcing a restart. Useful if your app does graceful cleanup. (default: 2000)
    --no-colors                    Don't use console colors
    --restart-command <command>    Set a string to issue a manual restart. Set to `false` to pass stdin directly to process. (default: "rs")
    --no-debug-source-maps         When using "--inspect" options, inline source-maps are automatically turned on. Set this option to disable that behavior
    -V, --version                  output the version number
    -h, --help                     display help for command
```

While the `babel-watch` process is running you may type "rs" and hit return in the terminal to force reload the app.

## Node Options

To pass options directly to the Node child that are not shown above, use `BABEL_WATCH_NODE_OPTIONS`. For example:

```bash
BABEL_WATCH_NODE_OPTIONS="--experimental-worker" babel-watch app.js
```

Note not to use `NODE_OPTIONS`. This will apply the options to both the file watcher and the child process, which may have undesired
effects with certain options like `--inspect`.

### Example usage:

In most of the cases you would rely on "autowatch" to monitor all the files that are required by your node application. In that case you just run:

```bash
  babel-watch app.js
```

If you have your view templates (build with [pug](https://github.com/pugjs/pug), [mustache](https://github.com/janl/mustache.js) or any other templating library) in the directory called `views`, autowatch will not be able to detect changes in view template files (see [why](#user-content-application-doesnt-restart-when-i-change-one-of-the-view-templates-html-file-or-similar)) , so you need to pass in that directory name using `--watch` option:

```bash
  babel-watch --watch views app.js
```

When you want your app not to restart automatically for some set of files, you can use `--exclude` option:

```bash
  babel-watch --exclude templates app.js
```

Start the debugger

```bash
  babel-watch app.js --debug 5858
```

## Demo

Demo of `nodemon + babel-node` (on the left) and `babel-watch` reloading simple `express` based app:

![](https://raw.githubusercontent.com/kmagiera/babel-watch/master/docs/demo.gif)

## Do not use in production

Using `babel-node` or `babel-watch` is not recommended in production environment. For the production use it is much better practice to build your node application using `babel` and run it using just `node`.

## Babel compatibility

`babel-watch`'s versions now mirror the major version range of the Babel version it is compatible with. Currently, that is `7.x`.

- `babel-watch >= 2.0.7` (and now `7.x`) is compatible with `@babel/core` version `7.0.0` and above
- `babel-watch < 2.0.7 && >= 2.0.2` is compatible with `babel-core` version `6.5.1`
- `babel-watch <= 2.0.1` is compatible with `babel-core` from `6.4.x` up to `6.5.0`

_(This is due to the babel's "option manager" API change in `babel-core@6.5.1`)_

## What's the difference between `--ignore` and `--exclude`?

These options seem very similar, and so there is [some confusion](https://github.com/kmagiera/babel-watch/issues/121) about them. The difference is:

- `--ignore` will watch the file, but not transpile it with Babel.
  - Use if you have JS files in your project that are not transpiled or handled by some other tool, but you still want to restart when they change.
  - This is called `--ignore` to mirror the Babel option.
- `--exclude` will not watch the file at all and thus it won't be transpiled either.
  - Use if you want the watcher to exclude these files entirely. They will not be watched or rebuilt at all. For many projects, judicious use of `--exclude` can really speed things up.

## Troubleshooting

#### Debugging

If you want to know which file caused a restart, or why a file was not processed, add `env DEBUG="babel-watch:*"` before your command to see babel-watch internals. Please do this before filing a bug report.

#### Application doesn't restart automatically

There are a couple of reasons that could be causing that:

1. You filesystem configuration doesn't trigger filewatch notification (this could happen for example when you have `babel-watch` running within docker container and have filesystem mirrored). In that case try running `babel-watch` with `-L` option which will enable polling for file changes.
2. Files you're updating are blacklisted. Check the options you pass to babel-watch and verify that files you're updating are being used by your app and their name does not fall into any exclude pattern (option `-x` or `--exclude`).

#### Application doesn't restart when I change one of the view templates (html file or similar):

You perhaps are using autowatch. Apparently since view templates are not loaded using `require` command but with `fs.read` instead, therefore autowatch is not able to detect that they are being used. You can still use autowatch for all the js sources, but need to specify the directory name where you keep your view templates so that changes in these files can trigger app restart. This can be done using `--watch` option (e.g. `babel-watch --watch views app.js`).

#### I'm getting an error: _Cannot find module '@babel/core'_

`babel-watch` does not have `@babel/core` listed as a direct dependency but as a "peerDependency". If you're using `babel` in your app you should already have `@babel/core` installed. If not you should do `npm install --save-dev @babel/core`. We decided not to make `@babel/core` a direct dependency as in some cases having it defined this way would make your application pull two versions of `@babel/core` from `npm` during installation and since `@babel/core` is quite a huge package that's something we wanted to avoid.

 When running as an npm script, this can end up putting these files into your project root. This is due to an [issue in npm](https://github.com/npm/npm/issues/4531) which changes the value of `TMPDIR` to the current directory. To fix this, change your npm script from `babel-watch ./src/app.js` to `TMPDIR=/tmp babel-watch ./src/app.js`.

#### I'm getting `regeneratorRuntime is not defined` error when running with babel-watch but babel-node runs just fine

The reason why you're getting the error is because the babel regenerator plugin (that gives you support for async functions) requires a runtime library to be included with your application. You will get the same error when you build your app with `babel` first and then run with `node`. It works fine with `babel-node` because it includes `babel-polyfill` module automatically whenever it runs your app, even if you don't use features like async functions (that's one of the reason why its startup time is so long). Please see [this answer on stackoverflow](http://stackoverflow.com/a/36821986/1665044) to learn how to fix this issue

#### Still having some issues?

Try searching over the issues on GitHub [here](https://github.com/kmagiera/babel-watch/issues). If you don't find anything that would help feel free to open new issue!

## Contributing

All PRs are welcome!

repository: kmagiera/babel-watch

gha_language: JavaScript

repo_name: kmagiera/babel-watch


text:
# Pre-work - *Memory Game*

**Memory Game** is a Light & Sound Memory game to apply for CodePath's SITE Program.

Submitted by: Olina Wong

Time spent: 1.5 hours spent in total

Link to project: https://troubled-morning-deposit.glitch.me/

## Required Functionality

The following **required** functionality is complete:

* [x] Game interface has a heading (h1 tag), a line of body text (p tag), and four buttons that match the demo app
* [x] "Start" button toggles between "Start" and "Stop" when clicked.
* [x] Game buttons each light up and play a sound when clicked.
* [x] Computer plays back sequence of clues including sound and visual cue for each button
* [x] Play progresses to the next turn (the user gets the next step in the pattern) after a correct guess.
* [x] User wins the game after guessing a complete pattern
* [x] User loses the game after an incorrect guess

The following **optional** features are implemented:

* [x] Any HTML page elements (including game buttons) has been styled differently than in the tutorial
* [x] Buttons use a pitch (frequency) other than the ones in the tutorial
* [x] More than 4 functional game buttons
* [ ] Playback speeds up on each turn
* [ ] Computer picks a different pattern each time the game is played
* [ ] Player only loses after 3 mistakes (instead of on the first mistake)
* [ ] Game button appearance change goes beyond color (e.g. add an image)
* [ ] Game button sound is more complex than a single tone (e.g. an audio file, a chord, a sequence of multiple tones)
* [ ] User has a limited amount of time to enter their guess on each turn

The following **additional** features are implemented:

- [x] The buttons are all different shapes

## Video Walkthrough

Here's a walkthrough of implemented user stories:
![x](https://i.imgur.com/L2UJfaB.gif)

## Reflection Questions
1. If you used any outside resources to help complete your submission (websites, books, people, etc) list them here.

N/A

2. What was a challenge you encountered in creating this submission (be specific)? How did you overcome it? (recommended 200 - 400 words)

When I opened the game in a new tab, it would work perfectly except it would not play the sounds when the buttons are pressed. I tried
refreshing the page and looked over the code to see if there were errors anywhere. It was confusing because when I showed the window next
to the code instead of in a new window, the sound would play. I resolved this error by opening it in another browser that was not Google
Chrome where it consistently worked. This meant that the error was not within my code but rather within the Google Chrome browser.

3. What questions about web development do you have after completing your submission? (recommended 100 - 300 words)

Some questions I have include: 1) How would I be able to center titles and bodies of font on the page? 2) Is there a way I could display the
end game message as a flash in the center of the screen as opposed to an alert? 3) Would there be a way to add a button that would change all
of the red and green shades of color on the screen to a different color to allow for red green color blind users to more easily play the game?
4) Why is there a rectangular outline around the buttons when I click on them? 5) What are ways web developers adjust web pages to be more
accesible to a wider audience?

4. If you had a few more hours to work on this project, what would you spend them doing (for example: refactoring certain functions, adding additional features, etc). Be specific. (recommended 100 - 300 words)

If I worked on this project for a few more hours, I would add additional features. The optional features such as having the computer pick a new pattern and adding an image would be interesting to implement.
I would also likely see if I could write more functions and change the project to give the user the option to choose between lengths of patterns. For example, I would make three buttons instead of one start button
that would be easy, medium, and hard, and the user could choose the difficulty they would like. The difficulty would correspond to the length of the memory sequence, for example easy would be a 5 button pattern
while hard could be a 15 button pattern. This would additionally allow the user to have different levels they can try and they could challenge themselves to be able to complete each level of difficulty.
On the other hand, I would also be interested to spend time using the hidden feature to require the user to complete the easier modes before being able to move onto the more difficult modes. For example,
they would have to do easy before medium and medium before hard. This could be expanded to have more than three levels which would be a fun and challenging extension of the game.

## License

    Copyright Olina Wong

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

repository: olinaw/SITE-Program-PreWork

repo_name: olinaw/SITE-Program-PreWork


text:
l2tp-ipsec-vpn-client
===
[![License](https://img.shields.io/github/license/rsujeevan/l2tp-ipsec-vpn-client)](https://github.com/rsujeevan/l2tp-ipsec-vpn-client/blob/master/LICENSE)

A tiny Alpine based docker image to quickly setup an L2TP over IPsec VPN client w/ PSK.

## Motivation
Does your office or a client have a VPN server already setup and you
just need to connect to it? Do you use Linux and are jealous that the
one thing a MAC can do better is quickly setup this kind of VPN? Then
here is all you need:

1. VPN Server Address
2. Pre Shared Key
3. Username
4. Password

## Run
Setup environment variables for your credentials and config:

    export VPN_SERVER_IPV4='<IP_ADDRESS>'
    export VPN_PSK='my pre shared key'
    export<EMAIL_ADDRESS>    export VPN_PASSWORD='mypass'
    export VPN_PASSWORD='mypass'
    export VPN_TUNNEL_ROUTE_NETWORK_1=<IP_ADDRESS>/24  # automatically add a route to forward all traffic for <IP_ADDRESS>/24 network via VPN

Now run it (you can daemonize of course after debugging):

    docker run --rm -it --privileged --net=host \
               -v /lib/modules:/lib/modules:ro \
               -e VPN_SERVER_IPV4 \
               -e VPN_PSK \
               -e VPN_USERNAME \
               -e VPN_PASSWORD \
               -e VPN_TUNNEL_ROUTE_NETWORK_1 \
                  sjnet/l2tp-ipsec-vpn-client

## Route
From the host machine configure traffic to route through VPN link:

    # confirm the ppp0 link and get the peer e.g. (<IP_ADDRESS>) IPV4 address
    ip a show ppp0
    # route traffic for a specific target ip through VPN tunnel address
    sudo ip route add <IP_ADDRESS> via <IP_ADDRESS> dev ppp0
    # route all traffice through VPN tunnel address
    sudo ip route add default via <IP_ADDRESS> dev ppp0
    # or
    sudo route add -net default gw <IP_ADDRESS> dev ppp0
    # and delete old default routes e.g.
    sudo route del -net default gw <IP_ADDRESS> dev eth0
    # when your done add your normal routes and delete the VPN routes
    # or just `docker stop` and you'll probably be okay

## Debugging
On your VPN client localhost machine you may need to `sudo modprobe af_key`
if you're getting this error when starting:
```
pluto[17]: No XFRM/NETKEY kernel interface detected
pluto[17]: seccomp security for crypto helper not supported
```

## References
* [Original Repo](https://github.com/ubergarm/l2tp-ipsec-vpn-client)
* [royhills/ike-scan](https://github.com/royhills/ike-scan)
* [libreswan reference config](https://libreswan.org/wiki/VPN_server_for_remote_clients_using_IKEv1_with_L2TP)
* [Useful Config Example](https://lists.libreswan.org/pipermail/swan/2016/001921.html)
* [libreswan and Cisco ASA 5500](https://sgros.blogspot.com/2013/08/getting-libreswan-connect-to-cisco-asa.html)
* [NetDev0x12 IPSEC and IKE Tutorial](https://youtu.be/7oldcYljp4U?t=1586)


text:
# Docker Redirector

Listens on port `8080` and redirects all web traffic to a given target.

## Features

* Lightweight. Uses approximately 2MB of memory.
* Keeps the URL path and parameters by default, but can be configured to be ignored.
* Supports permanent and temporary redirects.

## Usage

The redirect target is set by the `REDIRECT_TARGET` environment variable.

Possible redirect targets include:

* Domains e.g. `example.com`
* Paths e.g. `example.com/page`
* Domain with protocol e.g. `https://example.com/page`

### Absolute Redirects

By default, redirects will include the request path. This means that if your `REDIRECT_TARGET` is `example.com/specific/page` and you hit the redirector with a path of `/other/page`, you would be redirected to `example.com/specific/page/other/page`.

To redirect to a specific target without including the request path, you can set `IGNORE_REQUEST_URI` to `true`. In this case you would be redirected to `example.com/specific/page` regardless of the request path.

### Temporary Redirects

By default redirects are permantent. To change the default status code you can set `REDIRECT_CODE`. For example, to support temporary redirects you can set `REDIRECT_CODE` to `302`.

### Docker

To start a container that will redirect to `example.com` using the plain docker command run:

```console
$ docker run --rm -d -e REDIRECT_TARGET=example.com -p 8080:8080 zappi/redirector
```

### Docker Compose

To start a container that will permanently redirect to `example.com`, run:

```yaml
---
version: '3'
services:
  redirect:
    image: zappi/redirector
    ports:
      - "8080:8080"
    environment:
      REDIRECT_TARGET: "example.com"
      REDIRECT_CODE: "302"
```

repository: Intellection/docker-redirector

gha_language: Shell

repo_name: Intellection/docker-redirector


text:
---
layout: post
title: Random Walk on a Clock in J
---

After reading John D. Cook's [blog
post](http://www.johndcook.com/blog/2013/09/30/random-walk-on-a-clock/) on
simulating a random walk around a clock, I wanted to see what a solution in J
would look like.

Let the first row of a state matrix be a count of how many times position *j*
has been visited, and the second row be a row of zeroes with a one marking the
current position.

{% highlight J %}
    ]initialState=: (12#0) ,: (1,11#0)
0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0
{% endhighlight J %}

Define a random flip function

{% highlight J %}
    flip=: _1: ^ ?&2:
    flip''
_1
    flip''
1
    flip''
1
{% endhighlight J %}

Define a transition function that increments the position count and shifts
the current position left or right

{% highlight J %}
    next=: +/ ,: flip |. {:
    next initialState
1 0 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 0 0
    next next next initialState
1 0 0 0 0 0 0 0 0 0 1 1
0 0 0 0 0 0 0 0 0 1 0 0
    next^:15 initialState  NB. apply next 15 times
3 2 1 1 2 2 2 1 0 0 0 1
0 0 0 1 0 0 0 0 0 0 0 0
{% endhighlight J %}

We want to run this until all positions are visited, i.e. there are no zeroes
in the first row.

{% highlight J %}
    NB. returns true if list y has a zero
    notallvisited=: 0&e.

    NB. applies function 'next' until first row has no zeroes
    run=: next^:(notallvisited@:{.)^:_

    run initialState
2 2 1 1 1 2 8 17 15 7 5 3
0 0 1 0 0 0 0  0  0 0 0 0
    run items 5# ,: initialState  NB. run simulation 5 times
 1  1 1 1 1 4 9 9 6 5  3  1
 1  0 0 0 0 0 0 0 0 0  0  0

 8  6 3 5 5 2 1 1 1 1  1  4
 0  0 0 0 0 0 0 0 0 0  1  0

 2  1 1 1 1 1 3 4 3 2  2  2
 0  1 0 0 0 0 0 0 0 0  0  0

15 11 5 2 1 1 5 7 4 5  8 11
 0  0 0 0 0 1 0 0 0 0  0  0

 8  5 4 3 1 1 1 2 7 9 10 10
 0  0 0 0 0 0 0 1 0 0  0  0
{% endhighlight J %}

The number of steps taken to visit all positions is the sum of the first row.

{% highlight J %}
    NB. e.g compute number of steps
    +/"1 {. run initialState
24

    NB. compute number of steps for 5 simulations
    +/"1 {. items run items 5# ,: initialState
117 69 106 29 38
{% endhighlight J %}

Now we're ready to run many simulations and compute the mean number of steps.

{% highlight J %}
    mean=: +/ % #

    NB. compute the mean of 20,000 simulations
    mean +/"1 {. items run items 20000# ,: initialState
67.1326
{% endhighlight J %}


text:
## crypto.createDecipher(algorithm, password)

##

Creates and returns a decipher object, with the given algorithm and
key. This is the mirror of the \[createCipher()\]\[\] above.


text:
---
layout: page
title: about
---

        CV

        Google Scholar

        GitHub

        <a href="mailto:shanj<EMAIL_ADDRESS>

Hi! I’m Shan Jiang [江](https://en.wikipedia.org/wiki/Ji%C4%81ng_(surname_%E6%B1%9F))[山](https://en.wikipedia.org/wiki/Radical_46) (he/him). I'm a Research Scientist at  [Reality Labs](https://about.facebook.com/realitylabs/),  [Meta](https://meta.com), working on **reliable** and **private** conversational AI assistant.

I received my Ph.D. in Computer Science from  [Northeastern University](https://www.northeastern.edu), advised by  [Christo Wilson](https://cbw.sh). My [thesis](publications/thesis.pdf) measures the **misinformation** ecosystem from its players’ behaviors, *e.g.*, how storytellers manipulate information \[[ACL’21](publications/acl21_paper.pdf)\], how audiences respond to it \[[ICWSM’20](publications/icwsm20_paper.pdf), [CSCW’18](publications/cscw18a_paper.pdf)\], and how platforms intervene in the middle \[[AAAI’20](publications/aaai20_paper.pdf), [ICWSM’19](publications/icwsm19_paper.pdf)\].

My research interests broadly lie between **NLP/NLU** and **social issues**. I have spent some time at  [Google AI](https://ai.google) on extracting structured information from fact-checking articles \[[WWW’20](publications/www20_paper.pdf)\], at  [Dataminr](https://www.dataminr.com) on modeling crisis events \[[AISG’19](publications/aisg19_paper.pdf)\], and at  [Facebook](https://engineering.fb.com) on detecting illicit trades.

gha_language: TeX


text:
# xgo
An Arduino library using serial communication for the XGO-Mini

***[Official Documentation](https://pythonprogramming.net/static/downloads/xgo-mini%20protocol%20v1.pdf)***

## Warning
Until I have received my unit, this library remains untested

repository: DeflatedPickle/xgo

repo_name: DeflatedPickle/xgo


text:
### feature engineering

Go back to the [[AI Glossary]]

The process of determining which features might be useful in training a model, and then converting raw data from log files and other sources into said features. In TensorFlow, feature engineering often means converting raw log file entries to tf.Example protocol buffers. See also tf.Transform.

Feature engineering is sometimes called feature extraction.

url: https://raw.githubusercontent.com/KGBicheno/KGB_Agora/70ea95c9d38ab2f31abbd510691bb4c050a6cb3b/Artificial Intelligence/Introduction to AI/Week 3 - Introduction/Definitions/Feature_Engineering.md


text:
---
layout: post
title: GSoC 2019 - Week 9
comments: true
tags: [ gsoc, Sympy]
---

This was the eigth week meeting with the GSoC mentors which was scheduled on
Saturday 27th July, 2019 between 1:30 - 2:30 PM (IST). Me, Yathartha and Amit
were the attendees of the meeting.

- Discussing previous week's progress

1. Progress of `_solve_modular`:- In PR [#16976](https://github.com/sympy/sympy/pull/16976)
I implemented the basic design of `_solve_modular`. Some very good suggestion by
Yathartha for creating `_invert_modular` were very helpful. Now basically the
`_solve_modular` first do preprocessing and invert it and then find solution and
in final domain intersection takes place.

2. Progress of ImageSet Union:- In PR [#17079](https://github.com/sympy/sympy/pull/17079)
I will be implementing an algorithm based on heurestics for performing ImageSet
Union this week. Basic code is being already written for defining a function and
only algorithm part is left which will be performed in this week.

- Next week goals

* Work upon `_solve_modular` and ImageSet Union PR

Code improvement takes time!!

gha_language: CSS


text:
---
# Display name
name: Ji-In Kwak

# Username (this should match the folder name)
authors:
- kwak

# Is this the primary user of the site?
superuser: false

# Role/position
role: MS Student

# Organizations/Affiliations
organizations:
- name: Ulsan National Institute of Science and Technology(UNIST)
  url: ""

# Short bio (displayed in user profile at end of posts)
bio:

interests:
- Deep Learning
- Data Analytics and Data mining
- Optimization
- Transportation

education:
  courses:
  - course: MS in Artificial Intelligence Graduate School
    institution: Ulsan National Institute of Science and Technology
    year: 2021~
  - course: BSc in Mathematics
    institution: UNIST
    year: 2021

# Social/Academic Networking
# For available icons, see: https://sourcethemes.com/academic/docs/page-builder/#icons
#   For an email link, use "fas" icon pack, "envelope" icon, and a link in the
#   form<EMAIL_ADDRESS>or "#contact" for contact widget.
social:
- icon: envelope
  icon_pack: fas
  link<EMAIL_ADDRESS>#- icon: twitter
#  icon_pack: fab
#  link: https://twitter.com/GeorgeCushen
#- icon: google-scholar
#  icon_pack: ai
#  link: https://scholar.google.com/citations?user=BISaBGoAAAAJ&hl=ko
#- icon: cv
#  icon_pack: ai
#  link: files/cv.pdf

# Enter email to display Gravatar (if Gravatar enabled in Config)
email: ""

# Organizational groups that you belong to (for People widget)
#   Set this to `[]` or comment out if you are not using People widget.
user_groups:
- Researchers
---

I'm interested in the Data Analytics in industry data, especially in traffic congestion problem. Also interested in studying Deep learning and Machine learning

repository: unist-analytics/academic-kickstart

repo_name: unist-analytics/academic-kickstart


text:
# @hpcc-js/dgrid-shim

This package is part of the mono repository "@hpcc-js" (aka Visualization Framework), for more information including quick start, demos and tutorials, please visit the main page on GitHub:  [hpcc-systems/Visualization](https://github.com/hpcc-systems/Visualization).

## Details
The **dgrid-shim** package "wraps" a subset of the [dojo grid](http://dgrid.io/) functionality in a WebPack bundle to simplify its inclusion in modern JavaScript libraries / Web Applications.

Currently it exposes the following items:
* Deferred
* domConstruct
* Memory
* QueryResults
* Grid = declare([OnDemandGrid, Keyboard, Selection, ColumnResizer, CompoundColumns, GridHelper]);
* PagingGrid = declare([_Grid, Pagination, Keyboard, Selection, ColumnResizer, CompoundColumns, GridHelper]);

## Consuming with WebPack
Should "just work"

## Consuming with iife
Simply include the package in your html file as normal (it has a global ID of "@hpcc-js/dgrid-shim"):
```html
<head>
    ...
    <script<EMAIL_ADDRESS>    <script>
        var dgridShim = window["@hpcc-js/dgrid-shim"];
    </script>
</head>
<body>
    ...
    <script>
        var myGrid = new dgridShim.PagingGrid();
        ...
    </script>
    ...
</body>
```

## Consuming with Rollup.js
Since Rollup.js has no native support for non es6 modules (the `rollup-plugin-commonjs` simply converts commonjs exports to es6 for example) and part of the es6 specifications dictates that modules should "use strict", which will cause issues with libraries that rely on non strict features.
As dgrid-shim is dependent on DGrid and Dojo which uses non "strict" code, it is ultimately impossible to use Rollup.js to create bundles which include dgrid-shim (without forcing Rollup.JS to not include "use strict").  Here are two suggested **workarounds**:

### Exclude dgrid-shim from your bundle
1.  Mark dgri-shim as external in your rollup.config.js file:
```javascript
    external: [
        "@hpcc-js/dgrid-shim"
    ],
```
2. Add the official exported global ID to your rollup.config.js:
```javascript
    output: {
        ...
        globals: {
            "@hpcc-js/dgrid-shim": "@hpcc-js/dgrid-shim"
        }
    },
```
3. Manually include dgrid-shim as an iife source file in your html page:
```html
<head>
    ...
    <script<EMAIL_ADDRESS></head>
```

### Include dgrid-shim in your bundle
1. Disable "use strict" injection into your bundle:
```javascript
    output: {
        ...
        strict: false
    }
```
2. Add named exports for the dgrid-shim "commonjs" module:
```javascript
    plugins: [
        ...,
        commonjs({
            namedExports: {
<EMAIL_ADDRESS>["Deferred", "domConstruct", "QueryResults", "Memory", "PagingGrid", "Grid"],
            }
        }),
        ...
    ]
```

repository: hpcc-systems/Visualization

branch_name: refs/heads/trunk

gha_language: TypeScript

repo_name: hpcc-systems/Visualization


text:
# Universal / Versioning and releases

- Use [Semantic versioning](http://semver.org/)

## Releases
- Tag releases with version, e.g. `v1.3.1`

## Artifacts
- Name pattern: `<app-name>-<version>-<revision?>-<type?>.<extension>`, e.g.
  - `my-app-v0.0.1.exe`
  - `my-app-v1.3.1-setup.exe`
  - `my-app-v2.0.0-5-standalone.exe`
  - `my-app-v5.3.0-88-gcc7b71f-standalone.exe`

The following command returns version and revision from git:

```bash
git describe --always --tags --dirty
```

It returns
- commit hash as revision when no tagging is used (e.g. `gcc7b71f`)
- tag name as version when on a tag (e.g. `v2.1.0`, used for releases)
- tag name, revision number since last tag and commit hash when after a tag (e.g. `v5.3.0-88-gcc7b71f`)
- same as above plus a "dirty" tag if the working tree has local modifications (e.g. `v5.3.0-88-gcc7b71f-dirty`)

See also: https://www.git-scm.com/docs/git-describe#Documentation/git-describe.txt

repository: gomorizsolt/guides

repo_name: gomorizsolt/guides


text:
Alert Logic Salt Formula
========================

Salt formula for managing the Alert Logic agent and resources it depends on.

This formula supplies its own winrepo-ng definitions for the AlertLogic agent.
You will need to run the following commands after adding this formula to the
salt-master's gitfs_remotes.

1. `salt-run winrepo.update_git_repos`
2. `salt -G 'os:windows' pkg.refresh_db`

Supported OS
------------

- Debian 7 amd64/i386
- RedHat 6 x86_64/i386
- CentOS 6 x86_64/i386
- Windows

Supported Sysloggers
--------------------

- rsyslog
- syslog-ng
- Or any logger which can forward logs to localhost:1514

_Note: If you are using a deriavite of SaltStack's rsyslog formula you can add
salt://alertlogic/files/rsyslog/alertlogic.conf custom section of the rsyslog
pillar_

Attributes
----------

**registration_key**
Your registration key.  Not required for cloud-based installs.

- **Default: `''`**

**autoscaling**
Determines if your installation will be configured as a `host` or `role`
server.  If `True` then configure as a `role` server, otherwise configure as a
`host`.

- **Default: `False`**

**for_imaging**
Determines if the install process will continue or stop prior to provisioning.
If set to `True` then only the install process s performed.  This allows for
instance snapshots to be saved and started for later use.

- **Default: `False`**

**egress_url**
This attribute is useful if you have a machine that is responsible for outbound
traffic (NAT box). If you specify your own URL ensure that it is a properly
formatted URI.

- **Default: `vaporator.alertlogic.com:443`**

**proxy_url**
This attribute is useful if you want to avoid a single point of egress.  When a
proxy is used, both `egress_url` and `proxy_url` values are required.  If you
specify a proxy URL ensure that it is a properly formatted URI.

- **Default: unset**

Available states
----------------

**alertlogic.user**
Create a user suitable for performing an AlertLogic Credentiated Scan.

**alertlogic.agent**
Install/Configure the AlertLogic agent.

**alertlogic.logger.rsyslog**
Install/configure the agent and configures rsyslog.

**alertlogic.logger.syslog_ng**
Install/configure the agent and configure syslog-ng.

**alertlogic.logger**
Install/configure the agent and logging.

**alertlogic.logger.test**
Sends a test log to ensure everything is working

SELinux
-------

If selinux is enabled you need to have semanage present in root path.

Contributing
------------

1. Fork the repository on Github
2. Create a named feature branch (like `add_component_x`)
3. Write your change
4. Write tests for your change (if applicable)
5. Run the tests, ensuring they all pass
6. Submit a Pull Request using Github

License and Authors
-------------------

License:

- Distributed under the Apache 2.0 license.

Authors:

- Craig Davis<EMAIL_ADDRESS>- Mark Ferrell<EMAIL_ADDRESS>

repository: apfm-salt/alertlogic-formula

gha_language: PowerShell

repo_name: apfm-salt/alertlogic-formula


text:
# react-native-navstack
High performance navigation library for React Native, based on native animations (LayoutAnimation).
iOS and Android supported.

[![npm](https://img.shields.io/npm/v/react-native-navstack.svg)](https://www.npmjs.com/package/react-native-navstack)
[![Dependency Status](https://david-dm.org/arsenghazaryan/react-native-navstack.svg)](https://david-dm.org/arsenghazaryan/react-native-navstack.svg)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/react-native-material-design/react-native-material-design/master/LICENSE)

## Install
```shell
npm install --save react-native-navstack
```

## Example
```js
import { NavProvider, NavScreen, NavState } from 'react-native-navstack';

<NavProvider>
  <NavScreen route="screen1" routeProps={{ someValue: 'cool' }} initial={true}>
    <Screen1 />
  </NavScreen>
  <NavScreen route="screen2">
    <Screen2 />
  </NavScreen>
  <NavScreen route="screen3">
    <Screen3 />
  </NavScreen>
  <NavScreen route="screen4">
    <Screen4 />
  </NavScreen>
</NavProvider>
```
## Supported Transitions
PushFromRight
PushFromTop
PushFromBottom
SlideFromRight
SlideFromTop
SlideFromBottom

## NavScreen
All your screens must be wrapped into NavScreen component.
NavScreen has 3 public properties

| Prop | Description | Default |
| --- | --- | --- |
| **`route`** | Route key. Must be unique.  | *Required* |
| **`routeProps`** | Will be passed to the children as properties {...routeProps}| *None* |
| **`transition`** | Animation transition to use | *PushFromRight* |

## NavState reducer
NavState reducer has 2 public methods push and pop

NavState.push([ROUTE NAME], [ROUTE PROPS], [TRANSITION])
NavState.pop()

From within your components include "NavState"
```js
import { NavState } from 'react-native-navstack';

let customProps = {
  userId: 123,
  userType: 'admin',
  someOtherValue: false,
}
NavState.push('screen2', customProps, 'SlideFromRight');
//to go back you can call
NavState.pop();
```

repository: arsen/react-native-navstack

repo_name: arsen/react-native-navstack


text:
---
hrs_structure:
  division: '1'
  volume: '5'
  title: '18'
  chapter: 302A
  section: 302A-1158
type: hrs_section
tags:
  - Government
menu:
  hrs:
    identifier: HRS_0302A-1158
    parent: HRS0302A
    name: 302A-1158 Immunization of indigent children
weight: 65135
title: Immunization of indigent children
full_title: 302A-1158 Immunization of indigent children
---
**§302A-1158 Immunization of indigent children.** The department of health shall provide all immunizations and tuberculin tests to comply with sections 302A-1154 to 302A-1163, as far as public funds will permit, to each child whose parents, guardians, or custodians cannot afford to have the child immunized or tested for tuberculosis, and who have not been exempted under section 302A-1156\. Nothing in this section shall preclude the department of health from distributing immunizations and vaccines to physicians, advanced practice registered nurses, or other authorized persons as required by law or by the rules of the department of health. [L 1996, c 89, pt of §2; am L 1998, c 60, §3]

repository: SamMade/BlueAndKrabby

repo_name: SamMade/BlueAndKrabby


text:
<!-- Run this slideshow via the following command: reveal-md README.md -w -->
<!-- .slide: data-background="./../Slides/images/header.svg" data-background-repeat="none" data-background-size="40% 40%" data-background-position="center 10%" class="header" -->
# Sending Emails

<!-- > -->

<!-- omit in toc -->
## ⏱ Agenda {docsify-ignore}

1. [[**05m**] 🏆 Learning Outcomes](#%5B%2a%2a05m%2a%2a%5D-%F0%9F%8F%86-learning-outcomes)
1. [[**20m**] **TT**: How to Send Emails](#%5B%2a%2a20m%2a%2a%5D-%2a%2att%2a%2a%3A-how-to-send-emails)
1. [[**20m**] **Activity**: Title](#%5B%2a%2a20m%2a%2a%5D-%2a%2aactivity%2a%2a%3A-title)
1. [[**15m**] **BREAK** {docsify-ignore}](#%5B%2a%2a15m%2a%2a%5D-%2a%2abreak%2a%2a-%7Bdocsify-ignore%7D)
1. [[**10m**] **Recap**: Today's Takeaways](#%5B%2a%2a10m%2a%2a%5D-%2a%2arecap%2a%2a%3A-today%27s-takeaways)

<!-- > -->

## [**05m**] 🏆 Learning Outcomes

By the end of this lesson, you should be able to...

1. Identify a number of popular third-party e-mail providers.
1. Describe multiple use cases where sending an e-mail is beneficial for the user.
1. Use a third-party e-mail provider to securely send emails from the server.

<!-- > -->

## [**20m**] **TT**: How to Send Emails

People have been trying to kill email for years. And they just can’t seem to do it. Email is one of the most powerful ways you can communicate with your users. Sending emails, however, is so common it is not too hard to accomplish. But it is tricky!

<!-- > -->

## [**15m**] **BREAK**

<!-- > -->

## [**10m**] **Recap**: Today's Takeaways

`TODO`

<!-- > -->

<!-- omit in toc -->
## 📚 Resources & Credits

* [Nodemailer + Mailgun](https://medium.com/hexient-labs/nodemailer-mailgun-4d9f18f955a9)
* [SO: Nodemailer transport for Mailgun](https://stackoverflow.com/questions/26956251/sending-emails-using-mailgun-with-nodemailer-package)
* [nodemailer-express-handlebars](https://github.com/yads/nodemailer-express-handlebars)


text:
# Note-taker
 ## App Link:
https://note-taker-proj.herokuapp.com/

#### Table of Contents
1. [Project Description](#project-description)
2. [Installation Instructions](#installation-instructions)
3. [Usage Information](#usage-information)
4. [Contributor Guidelines](#contributor-guidelines)
5. [Code of Conduct](#code-of-conduct)
6. [Test Instructions](#test-instructions)
7. [License](#license)
8. [Questions](#questions)

![note-taker](https://user-images.githubusercontent.com/15930792/98893185-ecef2f00-246f-11eb-8679-45a87a3c8f0d.PNG)
![note-taker2](https://user-images.githubusercontent.com/15930792/98893187-eeb8f280-246f-11eb-9eed-1b15c22c29a5.PNG)

## Project Description
* This is an application that can be used to write, save, and delete notes. This application will use an express backend and save and retrieve note data from a JSON file.

## Installation Instructions
* npm install to obtain all dependencies

## Usage Information
* Creates and save notes for the user

## Contributor Guidelines
* see below

## Code of Conduct
* [Contributor Covenant Code of Conduct](https://www.contributor-covenant.org/version/2/0/code_of_conduct/code_of_conduct.md)

## Test Instructions
* NA

## License
* MIT license

## Questions
* For additional help or questions about collaboration, please reach out to<EMAIL_ADDRESS>
* Follow me on Github at [canahuate16](http://github.com/canahuate16)