text:
![peasy](https://www.dropbox.com/s/2yajr2x9yevvzbm/peasy3.png?dl=0&raw=1)

### Showcases a middle tier built with peasy-js.

A full implementation of a middle tier built using the [peasy-js framework](https://github.com/peasy/peasy-js) and consumed by [react](https://facebook.github.io/react/) and [nodejs](https://nodejs.org/en/) can be found here.  You can clone the repo (```git clone https://github.com/peasy/peasy-js-samples.git```) or download the entire solution as a [zip](https://github.com/peasy/peasy-js-samples/archive/master.zip).

The sample application is a ficticious order entry / inventory management system.  All efforts were made to keep this application as simple as possible to focus on how a middle tier can be written with peasy-js and consumed by multiple clients (client and server).

### Requirements

1. [nodejs](https://nodejs.org/) - this application is a nodejs application and therefore must be installed.
2. [postman](https://www.getpostman.com/), [fiddler](https://www.telerik.com/download/fiddler), [cURL](https://curl.haxx.se/download.html), or similar - these tools help to facilitate communications with http endpoints.
3. [MongoDB](https://www.mongodb.com/) (**optional**) - this application by default is configured to work with in-memory data proxies, however, you can easily swap data proxies to interact with a mongodb instance if desired. See [MongoDB Configuration](https://github.com/peasy/peasy-js-samples/wiki/Configuring-Client-%E2%86%92-Web-API-%E2%86%92-MongoDB) for more details.

### Running the application

From a command line, navigate to the peasy-js-samples directory and run:

1. ``` npm install ```
2. ``` npm run start ```

![samples](https://www.dropbox.com/s/85knat70l0f6pc0/peasy-samples.gif?dl=0&raw=1)

By default, the client (react) application is configured to use http implementations of the [data proxies](https://github.com/peasy/peasy-js/wiki/Data-Proxyy) that communicate with the Web API.  In turn, the Web API ic configured to use in-memory data proxies. However, there are a few configuration possibilities.  The [configurations](https://github.com/peasy/peasy-js-samples#configurations) section provides details on setting up many potential configurations.

### Configurations

#### Client → In-Memory

In this scenario, the client consumes [business services](https://github.com/peasy/peasy-js/wiki/BusinessService) that are injected with [data proxies](https://github.com/peasy/peasy-js/wiki/Data-Proxy) that communicate with in-memory data stores.

[![archlessnode](https://www.dropbox.com/s/ifzuwhse8thvn7p/FullArchitectureLessNode%20%281%29.svg?dl=01&raw=1)](https://github.com/peasy/peasy-js-samples/wiki/Configuring-Client-%E2%86%92-In-Memory)

#### Client → Web API → In-Memory (Default configuration)

In this scenario, the client consumes [business services](https://github.com/peasy/peasy-js/wiki/BusinessService) that are injected with [data proxies](https://github.com/peasy/peasy-js/wiki/Data-Proxy) that use HTTP to communicate with the Web API application.  In turn, the Web API application uses business services that are injected with data proxies that communicate with in-memory data stores.

[![archlessmongo](https://www.dropbox.com/s/l7wl0698mrba4kx/FullArchitectureLessMongo.svg?dl=0&raw=1)](https://github.com/peasy/peasy-js-samples/wiki/Configuring-Client-%E2%86%92-Web-API-%E2%86%92-In-Memory)

#### Client → Web API → MongoDB

In this scenario, the client consumes [business services](https://github.com/peasy/peasy-js/wiki/BusinessService) that are injected with [data proxies](https://github.com/peasy/peasy-js/wiki/Data-Proxy) that use HTTP to communicate with the Web API application.  In turn, the Web API application uses business services that are injected with data proxies that communicate with a MongoDB database.

[![architecture](https://www.dropbox.com/s/lor4dm0o3kdanf5/FullArchitecture.svg?dl=0&raw=1)](https://github.com/peasy/peasy-js-samples/wiki/Configuring-Client-%E2%86%92-Web-API-%E2%86%92-MongoDB)

### Testing out the Web API

With the application up and running you can navigate to the following urls:

* [http://localhost:3000/customers](http://localhost:3000/customers)
* [http://localhost:3000/orders](http://localhost:3000/orders)
* [http://localhost:3000/orderitems](http://localhost:3000/orderitems)
* [http://localhost:3000/products](http://localhost:3000/products)
* [http://localhost:3000/categories](http://localhost:3000/categories)
* [http://localhost:3000/inventoryitems](http://localhost:3000/inventoryitems)

### Web API Walkthrough

[This walkthrough](https://github.com/peasy/peasy-js-samples/wiki/API-Walkthrough) covers creating a customer, category, product, and placing an order on behalf of the new customer.  It also covers submitting and shipping an order to see how it affects inventory.

### Running the unit tests

[peasy-js](https://github.com/peasy/peasy-js) was designed with unit testing in mind, and as a result, each actor in the application has corresponding unit tests, located in the [*/spec*](https://github.com/peasy/peasy-js-samples/tree/master/spec) directory.

To run the tests, navigate to the */spec* directory from a command line and run the following command:

``` jasmine ```

### Like what you see?

Please consider showing your support by starring the project.

repository: Ziyadoo/peasy-js-samples

repo_name: Ziyadoo/peasy-js-samples


text:
# Debugging Problems with Full Stack

## First Thing : Many problems can cause this error

> Access to XMLHttpRequest at 'URL' from origin 'http://localhost:4200' has been blocked by CORS policy:

Two kind of messages
- MESSAGE 1 : No 'Access-Control-Allow-Origin' header is present on the requested resource.
- MESSAGE 2 : Response to preflight request doesn't pass access control check: It does not have HTTP ok status.

If you have Message 2, high probability that the problem is with Backend API Spring Security Configuration.

### Frontend problems
- Your URL is wrong.
- You are not sending authorization headers.
- The authorization headers do not match.

### Backend API problems
- @CrossOrigin is not present on the right controller.
- Your Spring Security configuration is not in Component Scan. SpringSecurityConfigurationBasicAuth is in a subpackage of the package which contains RestfulWebServicesApplication class.

## Basic Authentication Problems

### Is your backend API configured right?

Are you able to send a request to http://localhost:8080/hello-world/path-variable/Ranga or to the todo urls with username = 'in28minutes' and password = 'dummy' directly from your browser or REST API client (without using your frontend application).

![](images/full-stack-01-basic-auth.png)

Check your spring security configuration of username and password in application.properties:

```
spring.security.user.name=in28minutes
spring.security.user.password=dummy
```

Is your SpringSecurityConfigurationBasicAuth file configured right? Is it in a subpackage of the package which contains RestfulWebServicesApplication class?

```
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

@Configuration
@EnableWebSecurity
public class SpringSecurityConfigurationBasicAuth extends WebSecurityConfigurerAdapter{

	@Override
	protected void configure(HttpSecurity http) throws Exception {
		http
		.csrf().disable()
		.authorizeRequests()
		.antMatchers(HttpMethod.OPTIONS,"/**").permitAll()
				.anyRequest().authenticated()
				.and()
			//.formLogin().and()
			.httpBasic();
	}
}
```

### Is your front end code sending the right details?

Open notepad and Note down the URL and the headers from the browser network tab.
	- URL - ??
	- Authorization Header Name - ??
	- Authorization Header Value - ??

![](images/full-stack-02-network-01.png)
![](images/full-stack-02-network-02.png)
![](images/full-stack-02-network-03.png)

Open REST API client. Create a new request using values noted above. Are you able to execute the request successfully?

![](images/full-stack-01-basic-auth.png)

Important things to check in code below:
- SPACE after Basic: There SHOULD be a SPACE after Basic : 'Basic ' in ('Basic ' + window.btoa(`${username}:${password}`))

Hard Coded Code

```
let username = 'in28minutes'
let password = 'dummy'
let basicAuthHeaderString = 'Basic ' + window.btoa(`${username}:${password}`);
{ Authorization: basicAuthHeaderString }

```

Picking up username from login screen and using basicauth url for authentication.

```
'Basic ' + window.btoa(username + ':' + password);

{
    Authorization: basicAuthHeaderString
  }

 `http://localhost:8080/basicauth`,
```

Compare your code against working code
- Angular - https://github.com/in28minutes/full-stack-with-angular-and-spring-boot/blob/master/Backup-18-Working-App-With-Basic-Authentication-After-Enabling-HttpInterceptor.md#frontendtodosrcapperrorerrorcomponentts
- React - https://github.com/in28minutes/full-stack-with-react-and-spring-boot/blob/master/0001-0365-Basic-Auth-Done.md

### Q&A Details Update

Debugging this problem is tough. So, please provide us with as many details as possible:
- What was your last working state?
- What are the code changes that you made since then?
- Screenshots of all the above checks with details for URL, Authorization Header name and value

## JWT Authentication Problems

Check your JWT package imports against this
https://github.com/in28minutes/full-stack-with-angular-and-spring-boot/blob/master/Backup-20-Working-With-JWT-Authentication.md#restful-web-servicessrcmainjavacomin28minutesrestwebservicesrestfulwebservicesjwtjwtinmemoryuserdetailsservicejava

Working code backup
- Angular - https://github.com/in28minutes/full-stack-with-angular-and-spring-boot/blob/master/Backup-20-Working-With-JWT-Authentication.md#frontendtodosrcapploginlogincomponentts
- React - https://github.com/in28minutes/full-stack-with-react-and-spring-boot/blob/master/0001-0373-JWT-Done.md

### Is your backend API configured right?

Check your JWT package imports against this
https://github.com/in28minutes/full-stack-with-angular-and-spring-boot/blob/master/Backup-20-Working-With-JWT-Authentication.md#restful-web-servicessrcmainjavacomin28minutesrestwebservicesrestfulwebservicesjwtjwtinmemoryuserdetailsservicejava

Here are some of the imports where there could be a conflict.
```
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.function.Function;
import io.jsonwebtoken.Clock;
import java.util.Map;
import java.util.Date;
import org.springframework.security.core.AuthenticationException;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
```

Do you have these in your application.properties file?

```
jwt.signing.key.secret=mySecret
jwt.get.token.uri=/authenticate
jwt.refresh.token.uri=/refresh
jwt.http.request.header=Authorization
jwt.token.expiration.in.seconds=604800
```

Remember that these values are NOT used in JWT
```
spring.security.user.name=in28minutes
spring.security.user.password=dummy
```

This is where the user details come from
```
@Service
public class JwtInMemoryUserDetailsService implements UserDetailsService {

  static List<JwtUserDetails> inMemoryUserList = new ArrayList<>();

  static {
    inMemoryUserList.add(new JwtUserDetails(1L, "in28minutes",
        "$2a$10$3zHzb.Npv1hfZbLEU5qsdOju/tk2je6W6PnNnY.c1ujWPcZh4PL6e", "ROLE_USER_2"));
```

Are you able to send a POST request to http://localhost:8080/authenticate and get with
```
{
  "username":"in28minutes",
  "password":"dummy"
}
```
And get a token back
```
{
"token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyYW5nYSIsImV4cCI6MTU0MjQ3MjA3NCwiaWF0IjoxNTQxODY3Mjc0fQ.kD6UJQyxjSPMzAhoTJRr-Z5UL-FfgsyxbdseWQvk0fLi7eVXAKhBkWfj06SwH43sY_ZWBEeLuxaE09szTboefw"
}
```

Are you able to use the Bearer token Authorization header and send GET request to http://localhost:8080/users/in28minutes/todos ?

### Is your front end code sending the right details?

- Open notepad and Note down the URL and the headers from the browser network tab for the authenticate request.
	- URL - ??
	- Body Content - ??
![](images/full-stack-02-network-01.png)
![](images/full-stack-02-network-02.png)
![](images/full-stack-02-network-03.png)

- Open REST API client. Create a new request using values noted above. Are you able to execute the request successfully?
- If you are able to then repeat the same thing with the hello world request.
	- URL - ??
	- Authorization Header Name - ??
	- Authorization Header Value - ??

![](images/full-stack-04-jwt-01.png)
![](images/full-stack-04-jwt-02.png)

- If you are not successful, there is a problem with your front end code.
- Post screenshots and values for URL, Body Content, Headers and Header values in the Q&A.

Important things to check in code:
Are you using right syntax:
```
{
        username,
        password
      }

```

Is the name of the token and the value right? Are you using ticks instead of quotes?

```
`Bearer ${data.token}`
```

### Q&A Details Update

Debugging this problem is tough. So, please provide us with as many details as possible:
- What was your last working state?
- What are the code changes that you made since then?
- Screenshots of all the above checks with details for URL, Authorization Header name and value

## Other Imports

```
import java.util.HashMap;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;

import io.jsonwebtoken.Claims;
import io.jsonwebtoken.impl.DefaultClock;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;

import java.util.Optional;
import javax.servlet.FilterChain;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.BadCredentialsException;
import org.springframework.security.authentication.DisabledException;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.config.http.SessionCreationPolicy;

import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
import org.springframework.security.web.authentication.WebAuthenticationDetailsSource;
import org.springframework.security.web.AuthenticationEntryPoint;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.filter.OncePerRequestFilter;
```

branch_name: refs/heads/master

extension: md

license_type: permissive


text:
+++
Title = "Location"
Type = "event"
Description = "Location | devopsdays Vancouver 2018"
+++

[800 Robson Street Downtown Vancouver Canada](http://robsonsquare.ubc.ca/find-us/)

{{< event_map >}}

### Getting Here

#### Transit
[Skytrain - City Centre Station](http://thecanadaline.com/station-guides/vancouver-city-centre/)
: 5-minute walk from City Centre Station.

_$10 for a 3-zone day pass (see [more rates](https://www.tourismvancouver.com/plan-your-trip/getting-around/transit-system/))_

#### Parking
Corner of Howe Street and Nelson Street (Howe Street is a one-way street) - follow the directional signs to UBC Robson Square

Hourly
: $3.75/(Park until 6:00pm $18)

Park until 6:00AM
: $24.00

_Coins and credit cards accepted_

repository: KrisBuytaert/devopsdays-web

gha_license_id: NOASSERTION

repo_name: KrisBuytaert/devopsdays-web


text:
#[Reddit Wallpaper Changer](https://www.reddit.com/r/rwallpaperchanger/)
Based on [RWC-Source](https://github.com/JosephRobidoux/RWC-Source) originally created by [Joseph Robidoux](https://github.com/JosephRobidoux)

# About
Reddit Wallpaper Changer is a lightweight C# application for Windows that will scrape Reddit for desktop wallpapers. You can specify which subs to scrape from and how oftern to rotate your wallpaper.

# Current Version - <IP_ADDRESS>
- Wallpapers are now checked to see if they've already been used in the current session
- Modified the process for searching/setting a wallpaper
- Added additional logging functionality
- Status text will now display the selected sub being searched for wallpapers
- Added scrollbar to the blacklisted panel for when lots of wallpapers are blocked
- Added button to the About screen to open the log file directly

# Installation
Either download the latest MSI installer or download the self extracting zip file from the [releases page](https://github.com/Rawns/Reddit-Wallpaper-Changer/releases)

license: MIT


text:
---
title: mirror
---

The `mirror` macro allows you to mirror points and/or paths around a mirror
line. It is provided by the [mirror plugin](/reference/plugins/mirror/).

## Signature

```js
macro('mirror', {
  Boolean clone,
  Array mirror,
  Function nameFormat,
  Array paths,
  Array points,
  String prefix,
})
```

## Example

<Example caption="An example of the mirror macro">
```js
({ Point, points, Path, paths, macro, part }) => {

  points.from = new Point(0,0)
  points.cp1 = new Point(10,20)
  points.cp2 = new Point(60,20)
  points.to = new Point(70,0)
  paths.example = new Path()
    .move(points.from)
    .curve(points.cp1, points.cp2, points.to)

  points.m1 =  new Point(20,0)
  points.m2 =  new Point(20,20)
  paths.mirror = new Path()
    .move(points.m1)
    .line(points.m2)
    .addClass('stroke-xm dashed stroke-lining')

  macro('mirror', {
    clone: true,
    mirror: [ points.m1, points.m2 ],
    paths: Object.keys(paths),
  })

  return part
}
```
</Example>

## Configuration

| Property     | Default    | Type       | Description |
|-------------:|------------|------------|-------------|
| `mirror`     |            | `array`    | Array with 2 [Point](/reference/api/point) objects that define the _mirror line_ |
| `clone`      | `true`     | `bool`     | Whether to clone mirrored points and or paths |
| `points`     |            | `array`    | An array of pointnames, the names of Points in the `points` array to mirror |
| `paths`      |            | `array`    | An array of pathnames, the names of Paths in the `paths` array to mirror |
| `prefix`     | `mirrored` | `string`   | A prefix to apply to the names of the clones points and or paths. Ignored if `nameFormat` is set |
| `nameFormat` |            | `function` | A method that receives the name of the path or point as a first argument and one of `path` or `point` as the second argument and should return the name for the cloned path and or point |

## Result

If `nameFormat` is set, its method determines the names of cloned, mirrored Points and Paths.
If it is not set, the names are as below.

| Generated Element | Description |
|-------------------|-------------|
| `paths.${prefix}${Pathname}` | The cloned,  mirrored Path(s) (with the first letter of pathname capitalized) |
| `points.${prefix}${Pointname}` | The cloned, mirrored Point(s) (with the first letter of pointname capitalized) |

repository: freesewing/freesewing

branch_name: refs/heads/develop

gha_language: JavaScript

gha_license_id: MIT

repo_name: freesewing/freesewing


text:
### [CVE-2018-2691](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-2691)
![](https://img.shields.io/static/v1?label=Product&message=User%20Management&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3D%2012.1.3%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=Easily%20exploitable%20vulnerability%20allows%20low%20privileged%20attacker%20with%20network%20access%20via%20HTTP%20to%20compromise%20Oracle%20User%20Management.%20%20Successful%20attacks%20of%20this%20vulnerability%20can%20result%20in%20%20unauthorized%20update%2C%20insert%20or%20delete%20access%20to%20some%20of%20Oracle%20User%20Management%20accessible%20data%20as%20well%20as%20%20unauthorized%20read%20access%20to%20a%20subset%20of%20Oracle%20User%20Management%20accessible%20data.&color=brighgreen)

### Description

Vulnerability in the Oracle User Management component of Oracle E-Business Suite (subcomponent: Proxy User Delegation). Supported versions that are affected are 12.1.3, 12.2.3, 12.2.4, 12.2.5, 12.2.6 and 12.2.7. Easily exploitable vulnerability allows low privileged attacker with network access via HTTP to compromise Oracle User Management. Successful attacks of this vulnerability can result in unauthorized update, insert or delete access to some of Oracle User Management accessible data as well as unauthorized read access to a subset of Oracle User Management accessible data. CVSS 3.0 Base Score 5.4 (Confidentiality and Integrity impacts). CVSS Vector: (CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N).

### POC

#### Reference
- http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html

#### Github
No PoCs found on GitHub currently.

repository: trickest/cve

branch_name: refs/heads/main

gha_language: HTML

repo_name: trickest/cve


text:
---
marketplace: false
reason: We already have another template for on demand ISR
---

# On demand ISR

This example shows how to use on demand ISR to revalidate content when a user clicks a button or a webhook calls an API route.

## Demo

https://solutions-on-demand-isr.vercel.app

## How to Use

You can choose from one of the following two methods to use this repository:

#### One-Click Deploy

Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=vercel-examples):

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/solutions/on-demand-isr&project-name=on-demand-isr&repository-name=on-demand-isr&env=TWITTER_TOKEN,TOKEN)

#### Clone and Deploy

Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [pnpm](https://pnpm.io/installation) to bootstrap the example:

```bash
pnpm create next-app --example https://github.com/vercel/examples/tree/main/solutions/on-demand-isr
```

Next, run Next.js in development mode:

```bash
pnpm dev
```

The app should be up and running on [http://localhost:3000](http://localhost:3000)!

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=edge-middleware-eap) ([Documentation](https://nextjs.org/docs/deployment)).

repository: zys-contrib/examples

gha_language: TypeScript

repo_name: zys-contrib/examples


text:
drivelist-scanner
=================

[![npm version](https://badge.fury.io/js/drivelist-scanner.svg)](http://badge.fury.io/js/drivelist-scanner)
[![dependencies](https://david-dm.org/mkorakakis/drivelist-scanner.png)](https://david-dm.org/mkorakakis/drivelist-scanner.png)
[![Build Status](https://travis-ci.org/mkorakakis/drivelist-scanner.svg?branch=master)](https://travis-ci.org/mkorakakis/drivelist-scanner)
[![Build status](https://ci.appveyor.com/api/projects/status/dljdbst05bp29wgv?svg=true)](https://ci.appveyor.com/project/mkorakakis/drivelist-scanner)

Dynamically detect when drives are being added and/or removed.

Installation
------------

Install `drivelist-scanner` by running:

```sh
$ npm install --save drivelist-scanner
```

Documentation
-------------

* [drivelist-scanner](#module_drivelist-scanner)
  * [~DrivelistScanner](#module_drivelist-scanner..DrivelistScanner) ⇐ [EventEmitter](http://nodejs.org/api/events.html)
    * [new DrivelistScanner([options])](#new_module_drivelist-scanner..DrivelistScanner_new)
    * _instance_
      * [.stop()](#module_drivelist-scanner..DrivelistScanner+stop)
      * ["add"](#module_drivelist-scanner..DrivelistScanner+event_add)
      * ["remove"](#module_drivelist-scanner..DrivelistScanner+event_remove)
    * _static_
      * [.getDrives()](#module_drivelist-scanner..DrivelistScanner.getDrives) ⇒ Promise

### drivelist-scanner~DrivelistScanner ⇐ [EventEmitter](http://nodejs.org/api/events.html)
**Kind**: inner class of [drivelist-scanner](#module_drivelist-scanner)
**Summary**: Detect changes in drive list
**Extends:** [EventEmitter](http://nodejs.org/api/events.html)
**Emits**: [add](#module_drivelist-scanner..DrivelistScanner+event_add), [remove](#module_drivelist-scanner..DrivelistScanner+event_remove)
**Access:** protected

* [~DrivelistScanner](#module_drivelist-scanner..DrivelistScanner) ⇐ [EventEmitter](http://nodejs.org/api/events.html)
  * [new DrivelistScanner([options])](#new_module_drivelist-scanner..DrivelistScanner_new)
  * _instance_
    * [.stop()](#module_drivelist-scanner..DrivelistScanner+stop)
    * ["add"](#module_drivelist-scanner..DrivelistScanner+event_add)
    * ["remove"](#module_drivelist-scanner..DrivelistScanner+event_remove)
  * _static_
    * [.getDrives()](#module_drivelist-scanner..DrivelistScanner.getDrives) ⇒ Promise

#### new DrivelistScanner([options])

| Param | Type | Default | Description |
| --- | --- | --- | --- |
| [options] | Object |  | scan options |
| [options.interval] | Number | 1000 | check interval |
| [options.drives] | Array.<Object> |  | available drives during initialization |

**Example**
```js
scanner = new DrivelistScanner(interval: 1000, drives: [ { foo: 'bar' } ])

scanner.on 'add', (drives) ->
	console.log drives

scanner.on 'remove', (drives) ->
	console.log drives
```

#### drivelistScanner.stop()
**Kind**: instance method of [DrivelistScanner](#module_drivelist-scanner..DrivelistScanner)
**Summary**: Stop the check interval
**Throws**:

- Will throw if the interval id is not valid.

**Access:** public
**Example**
```js
scanner = new DrivelistScanner(interval: 1000, drives: [ { foo: 'bar' } ])
scanner.stop()
```

#### "add"
Fired on new drive addition.

**Kind**: event emitted by [DrivelistScanner](#module_drivelist-scanner..DrivelistScanner)
**Properties**

| Name | Type | Description |
| --- | --- | --- |
| drives | Array.<Object> | Contains the drives that have been added. |

#### "remove"
Fired when a pre-existing drive has been removed.

**Kind**: event emitted by [DrivelistScanner](#module_drivelist-scanner..DrivelistScanner)
**Properties**

| Name | Type | Description |
| --- | --- | --- |
| drives | Array.<Object> | Contains the drives that have been removed. |

#### DrivelistScanner.getDrives() ⇒ Promise
**Kind**: static method of [DrivelistScanner](#module_drivelist-scanner..DrivelistScanner)
**Summary**: List all available drives
**Fulfil**: Object[] - available drives
**Example**
```js
DrivelistScanner.getDrives().then (drives) ->
	console.log(drives)
```

Support
-------

If you're having any problem, please [raise an issue](https://github.com/mkorakakis/drivelist-scanner/issues/new) on GitHub andand I'll be happy to help.

Tests
-----

Run the test suite by doing:

```sh
$ gulp test
```

Contribute
----------

- Issue Tracker: [github.com/mkorakakis/drivelist-scanner/issues](https://github.com/mkorakakis/drivelist-scanner/issues)
- Source Code: [github.com/mkorakakis/drivelist-scanner](https://github.com/mkorakakis/drivelist-scanner)

Before submitting a PR, please make sure that you include tests, and that [coffeelint](http://www.coffeelint.org/) runs without any warning:

```sh
$ gulp lint
```

License
-------

The project is licensed under the MIT license.

repository: davidferguson/drivelist-scanner

gha_language: CoffeeScript

repo_name: davidferguson/drivelist-scanner


text:
## 💻 About project (fully responsive)

Personal project built using ReactJS on Front End and for Back end was used JSON Server to build a REST API to store data from videos and categories for Tratoflix. The server was deployed using Heroku, so the deployed application on netlify can access all the data required for get and post methods. So you can add videos and create new categories to improve the user experience if you are a Pawn Stars fan. The video list was built using react slick and the alerts were built using framer motion. Also this application uses custom hooks and react hooks to work with states through the components, to deliver a better experience and a faster app for the user. Enjoy it.

Site: https://tratoflix.netlify.app/

## 🛠 Technology

#### **Website**

-   **[HTML5](https://developer.mozilla.org/pt-BR/docs/Web/HTML/HTML5)**
-   **[CSS3](https://www.w3schools.com/css/)**
-   **[ReactJs](https://pt-br.reactjs.org/)** : **[React Hooks and Custom Hooks](https://pt-br.reactjs.org/docs/hooks-intro.html)**, **[Styled-Components](https://styled-components.com/)**, **[react-router-dom](https://reactrouter.com/web/guides/quick-start)**, **[React Slick](https://react-slick.neostack.com/)**
-   **[Framer Motion](https://www.framer.com/motion/)**

#### **Utilitaries**

-   Editor: **[Visual Studio Code](https://code.visualstudio.com/)**
-   REST API: **[JSON SERVER](https://github.com/typicode/json-server)**
-   Cloud Platform for server: **[Heroku](https://www.heroku.com)**

### Prerequisites

Before you begin, you will need to have the following tool installed on your machine:
[Git](https://git-scm.com)

In addition, it is good to have an editor to work with the code as **[VSCode](https://code.visualstudio.com/)**

### Running the web application (Front End)

```bash
# Clone this repository
$ git clone https://github.com/luizmr/tratoflix-app.git

# Access the project folder in the cmd/terminal
$ cd tratoflix-app

# Use the command below to install all dependencies
$ npm install

# Run the application on terminal
$ npm run dev

# The server is now running at localhost:3000
```

## 📝 License

This project is under the MIT license.

Made with ❤ by Luiz Marcelo Rocha

repository: luizmr/tratoflix-app

repo_name: luizmr/tratoflix-app


text:
# Apideck.PayrollsFilter

### Description

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
`start_date` | **string** | Return payrolls whose pay period is after the start date | [optional]
`end_date` | **string** | Return payrolls whose pay period is before the end date | [optional]

---

[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md)

repository: apideck-libraries/php-sdk

gha_language: PHP

repo_name: apideck-libraries/php-sdk


text:
---
layout: post
title: "OsZIP-2a,OsbZIP80"
description: ""
category: genes
tags:
---

* **Information**
    + Symbol: OsZIP-2a,OsbZIP80
    + MSU: [LOC_Os11g05640](http://rice.uga.edu/cgi-bin/ORF_infopage.cgi?orf=LOC_Os11g05640)
    + RAPdb: [Os11g0154900](https://rapdb.dna.affrc.go.jp/locus/?name=Os11g0154900)

* **Publication**
    + [Genome-wide analysis of basic leucine zipper transcription factor families in Arabidopsis thaliana, Oryza sativa and Populus trichocarpa](http://www.ncbi.nlm.nih.gov/pubmed?term=Genome-wide analysis of basic leucine zipper transcription factor families in Arabidopsis thaliana, Oryza sativa and Populus trichocarpa%5BTitle%5D), 2009, Journal of Shanghai University (English Edition).
    + [Characterization of three rice basic/leucine zipper factors, including two inhibitors of EmBP-1 DNA binding activity](http://www.ncbi.nlm.nih.gov/pubmed?term=Characterization of three rice basic/leucine zipper factors, including two inhibitors of EmBP-1 DNA binding activity%5BTitle%5D), 1996, J Biol Chem.
    + [Genomic survey and gene expression analysis of the basic leucine zipper transcription factor family in rice](http://www.ncbi.nlm.nih.gov/pubmed?term=Genomic survey and gene expression analysis of the basic leucine zipper transcription factor family in rice%5BTitle%5D), 2008, Plant Physiol.

* **Genbank accession number**
    + [U04296](http://www.ncbi.nlm.nih.gov/nuccore/U04296)

* **Key message**

* **Connection**
    + __OsZIP-2a~OsbZIP80__, __osZIP-2b__, [Characterization of three rice basic/leucine zipper factors, including two inhibitors of EmBP-1 DNA binding activity](http://www.ncbi.nlm.nih.gov/pubmed?term=Characterization of three rice basic/leucine zipper factors, including two inhibitors of EmBP-1 DNA binding activity%5BTitle%5D), Two other clones have been identified by screening with EmBP-1: osZIP-2a and osZIP-2b

[//]: # * **Key figures**


text:
# Changelog

## 1.7 (2023-05-24)

* Fixed check whether advancement should be sent to Matterbridge
* Removed requirement of explicitly providing a list of advancements (advancements.yml)

**Note:** The plugin now requires at least Minecraft 1.19 as the new features depend on a feature only available since 1.19.

## 1.6 (2022-06-07)

Updated list of advancements from https://minecraft.gamepedia.com/Advancement to add those added in Minecraft 1.19 (thanks to @Millesimus)

## 1.5.1 (2022-05-21)

* Removed logging for avatar URL while sending messages
* Updated gson library to version 2.9.0 (fix for CVE-2022-25647)

## 1.5 (2021-12-04)

Updated list of advancements from https://minecraft.gamepedia.com/Advancement to add those added in Minecraft 1.18 (thanks to @Millesimus)

## 1.4 (2021-06-21)

Updated list of advancements from https://minecraft.gamepedia.com/Advancement to add those added in Minecraft 1.17 (thanks to @Millesimus)

## 1.3.1 (2021-06-04)

Upgraded org.apache.httpcomponents:httpclient dependency to fix security vulnerability CVE-2020-13956.

## 1.3 (2021-04-02)

Updated list of advancements from https://minecraft.gamepedia.com/Advancement (thanks to @Millesimus)

## 1.2 (2021-03-21)

* Corrected and added some advancements (thanks to @Millesimus)
* Check if outgoing.chat.enable in config.yml is enabled (thanks to @Millesimus)

## 1.1 (2021-03-18)

Fixed sending "§e" before playername in join/quit messages (fixes #4)

## 1.0 (2020-09-02)

Initial release

repository: Programie/MatterBukkit

gha_language: Java

repo_name: Programie/MatterBukkit


text:
# datasystem
=========

A small library that you can share data and receive notification when data change. It's easier compared to redux.

## Installation

  `npm install datasystem`

## Usage
    import { dataProvider } from 'datasystem';

    // first, add all data you need to share
    dataProvider.addDataList(['test1', 'test2', ...]);

    // then you may give your data some init values, or somewhere you want to change your data value, call setData function
    dataProvider.setData('test1', somedata);
    dataProvider.setData('test2', somedata);
    ...

    // somewhere you want to get the latest value of your instrested data, you call addDataListener. Whenever the data changed, your callback will be called.
    // this function will return an id, so that you can unsubscribe data by calling removeDataListener, after this you will not receive data change message.
    // for this example, whenever 'test1' changed after calling dataProvider.setData, callback will be called
    const removeid = dataProvider.addDataListener('test1', (event, data) => {
       if (event === 'test1') {
           // do some work here
       }
    });

    // unsubscribe data by calling removeDataListener
    dataProvider.removeDataListener('test1', removeid);

for react, using dataComponent will be more straightforward. Just call dataProvider.addDataList to add all data need to share, then

    import { dataProvider } from 'datasystem';

    // pass all your insterested data to dataComponent
    @dataComponent(['test1'])
    class SomeClass extends React.Component {
    // add a callback named onDataChange, so in this example, whenever 'test1' changed, this onDataChange will be called
    onDataChange(event, data) {
      if (event === 'test1') {
        // do some work here
      }
    }

after that you call dataProvider.setData('test1', somedata), and onDataChange would be hit.

repository: guangfat/datasystem

repo_name: guangfat/datasystem


text:
---
layout: page
title: Lean Prover Zulip Chat Archive
permalink: archive/113488general/33134caching.html
---

## [general](index.html)
### [caching](33134caching.html)

#### [Kenny Lau (Nov 09 2018 at 10:33)](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/caching/near/147360522):
Sometimes Lean needs to figure out that two ways of defining an instance are equal. Is this cached?

#### [Simon Hudon (Nov 09 2018 at 19:23)](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/caching/near/147389509):
Do you have an example?


text:
+++
# Date this page was created.
date = 2019-02-07

# Project title.
title = "UnityChan_VS_Zombie"

# Project summary to display on homepage.
summary = "最終更新:2018/5/20 ユニティちゃんがゾンビと戦うTPSゲーム！！！"

# Tags: can be used for filtering projects.
# Example: `tags = ["machine-learning", "deep-learning"]`
tags = ["Unity", "CSharp"]

# Optional external URL for project (replaces project detail page).
external_link = "https://reud.net/2018/05/20/%E3%80%90tps%E3%80%91unity%E3%81%A7%E5%88%9D%E3%82%81%E3%81%A6%E3%82%B2%E3%83%BC%E3%83%A0%E4%BD%9C%E3%81%A3%E3%81%9F%E3%80%90%E3%81%AF%E3%81%98%E3%82%81%E3%81%A6%E3%81%AEunity%E3%81%A7%E3%82%A2/"

# Optional featured image (relative to `static/img/` folder).
[image]

+++

repository: reud/reud-aboutme

repo_name: reud/reud-aboutme


text:
ACL permissions for api-skeletons/oauth2-doctrine for Laminas
=============================================================

[![Build Status](https://travis-ci.org/API-Skeletons/oauth2-doctrine-permissions-acl.svg)](https://travis-ci.org/API-Skeletons/oauth2-doctrine-permissions-acl)
[![Gitter](https://badges.gitter.im/api-skeletons/open-source.svg)](https://gitter.im/api-skeletons/open-source)
[![Total Downloads](https://poser.pugx.org/api-skeletons/oauth2-doctrine-permissions-acl/downloads)](https://packagist.org/packages/api-skeletons/oauth2-doctrine-permissions-acl)

About
-----

This provides ACL for [api-skeletons/oauth2-doctrine](https://github.com/API-Skeletons/oauth2-doctrine).  This replaces some components of [laminas-api-tools/api-tools-mvc-auth](https://github.com/laminas-api-tools/api-tools-mvc-auth) to enable multiple roles per user and auto injecting roles into the ACL.

This library is specifically for a many to many relationship between Role and User.  If you have a one to many relationship where each user may have only one role this library is not for you.

This library depends on [api-skeletons/auth2-doctrine-identity](https://github.com/API-Skeletons/auth2-doctrine-identity).  Please see that library for implementation details.

![Entity Relationship Diagram](https://raw.githubusercontent.com/API-Skeletons/oauth2-doctrine-permissions-acl/master/media/erd.png)

Entity Relationship Diagram created with [Skipper](https://skipper18.com)

Installation
------------
Installation of this module uses composer. For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

```sh
composer require api-skeletons/oauth2-doctrine-permissions-acl
```

This will be added to your application's list of modules:

```php
'modules' => array(
   ...
   'ApiSkeletons\OAuth2\Doctrine\Permissions\Acl',
),
```

Role Related Interfaces
-----------------------

The ERD above shows the Doctrine relationship to a `Role` entity.  To fetch Roles for a user the User enitity must implement [`ApiSkeletons\OAuth2\Doctrine\Permissions\Acl\Role\ProviderInterface`](https://github.com/API-Skeletons/oauth2-doctrine-permissions-acl/blob/master/src/Role/ProviderInterface.php).  The `Role` entity must implement [`Laminas\Permissions\Acl\Role\RoleInterface`](https://github.com/laminas/laminas-permissions-acl/blob/master/src/Role/RoleInterface.php).

Roles may have parents.  This is optional but the parent relationship is often important in ACL.  To create a role hierarchy your Role entity must implement [`ApiSkeletons\OAuth2\Doctrine\Permissions\Acl\Role\HierarchicalInterface`](https://github.com/API-Skeletons/oauth2-doctrine-permissions-acl/blob/master/src/Role/HierarchicalInterface.php).  This interface also implements [`Laminas\Permissions\Acl\Role\RoleInterface`](https://github.com/laminas/laminas-permissions-acl/blob/master/src/Role/RoleInterface.php).

Adding Roles to the ACL
-----------------------

To copy roles into the ACL from your Role entity copy [`config/oauth2.doctrine.permisisons.acl.global.php.dist`](https://github.com/API-Skeletons/oauth2-doctrine-permissions-acl/blob/master/config/oauth2.doctrine.permisisons.global.php.dist) to your application `config/autoload/oauth2.doctrine.permisisons.acl.global.php`
```php
'apiskeletons-oauth2-doctrine-permissions-acl' => [
    'role' => [
        'entity' => 'Db\Entity\Role',
        'object_manager' => 'doctrine.entitymanager.orm_default',
    ],
],
```
This will run at priority 1000 in the `MvcAuthEvent::EVENT_AUTHORIZATION` event.  If you do not want to autoload roles remove the 'role' configuration entirely.

Adding Resource Guards
-------------------------------

With all of the above this library has set the stage to create permissions on your resources.
All your roles may be loaded and you can follow the official Apigility guide:
https://apigility.org/documentation/recipes/how-do-i-customize-authorization-for-a-particular-identity
Be sure your listener(s) run at priority < 1000.

This is a short summary of the linked article.

Add this bootstrap to your Module:
```php
namespace Application;

use Laminas\Mvc\MvcEvent;
use Laminas\Mvc\ModuleRouteListener;
use Application\Authorization\AuthorizationListener;
use Laminas\ApiTools\MvcAuth\MvcAuthEvent;

class Module
{
    public function onBootstrap(MvcEvent $e)
    {
        $eventManager        = $e->getApplication()->getEventManager();
        $moduleRouteListener = new ModuleRouteListener();
        $moduleRouteListener->attach($eventManager);

        $eventManager->attach(
            MvcAuthEvent::EVENT_AUTHORIZATION,
            new AuthorizationListener(),
            100 // Less than 1000 to allow roles to be added first && >= 100
        );
    }
}
```

Create your AuthorizationListener:
```php
namespace Application\Authorization;

use Laminas\ApiTools\MvcAuth\MvcAuthEvent;
use Db\Fixture\RoleFixture;

class AuthorizationListener
{
    public function __invoke(MvcAuthEvent $mvcAuthEvent)
    {
        $authorization = $mvcAuthEvent->getAuthorizationService();

        // Deny from all
        $authorization->deny();

        // Allow from all for oauth authentication
        $authorization->addResource('ApiSkeletons\OAuth2\Controller\Auth::token');
        $authorization->allow(null, 'ApiSkeletons\OAuth2\Controller\Auth::token');

        // Add application specific resources
        $authorization->addResource('FooBar\V1\Rest\Foo\Controller::collection');
        $authorization->allow(RoleFixture::USER, 'FooBar\V1\Rest\Foo\Controller::collection', 'GET');
    }
}
```

Overriding the IS_AUTHORIZED event
----------------------------------

An event manager on the AclAuthorization allows you to override any ACL call.  For instance if you have
another entity which requires permissions based in its value you can add new Roles to your ACL manually
then create an override when the authorization is checked to allow for those other entity values now
proxied as roles:

```php
use ApiSkeletons\OAuth2\Doctrine\Permissions\Acl\Event;
use Laminas\EventManager\Event as ZendEvent;

// Allow membership as a role
$events = $serviceManager->get('SharedEventManager');
$events->attach(
    Event::class,
    Event::IS_AUTHORIZED,
    function(ZendEvent $event)
    {
        if (! $event->getParam('identity') instanceof AuthenticatedIdentity) {
            return;
        }

        $membership = $event->getParam('identity')->getUser()->getMembership();

        if ($event->getTarget()->isAllowed($membership->getName(), $event->getParam('resource'), $event->getParam('privilege'))) {
            $event->stopPropagation();

            return true;
        }
    },
    100
);

```


text:
# WinReg.jl

[![Build status](https://ci.appveyor.com/api/projects/status/4v53ctinmukaljbe?svg=true)](https://ci.appveyor.com/project/simonbyrne/winreg-jl)

Julia interface to the Windows registry.

## Usage

At the moment, this just exports one function, `querykey`, which queries the Windows registry.

```julia
querykey(base, path, valuename)
```
where
* `base` is one of the base paths:
 * `WinReg.HKEY_CLASSES_ROOT`
 * `WinReg.HKEY_CURRENT_USER`
 * `WinReg.HKEY_LOCAL_MACHINE`
 * `WinReg.HKEY_USERS`
 * `WinReg.HKEY_PERFORMANCE_DATA`
 * `WinReg.HKEY_CURRENT_CONFIG`
 * `WinReg.HKEY_DYN_DATA`

* `path` is the the path from `base` to the desired key
* `valuename` is the name of the value to retrieve

### Example

```julia
using WinReg

querykey(WinReg.HKEY_LOCAL_MACHINE,"System\\CurrentControlSet\\Control\\Session Manager\\Environment","PROCESSOR_ARCHITECTURE")
```

### Suggested use as a package dependency

If WinReg is to be used as part of another package which supports multiple operating systems, I suggest the following approach:

#### 1. Add the following line to the REQUIRE file:
```
@windows WinReg 0.3
```

#### 2. In the package code:
```julia
@static if is_windows()
    using WinReg # or import WinReg

    # code calling WinReg functionality goes here
end
```

## Requests

If further functionality is required, please open an issue.


text:
---
layout: page
title: Projects
permalink: /projects/
---

What I've worked on or am working on at the moment.

- [davison.io DevOps](/davison.io-devops/) - Development operations & infrastructure managing davison.io and related sites. Powered by Ansible.
- [Awesome IRC](/awesome-irc/) - A curated list of awesome IRC resources
- [davison.io](/davison.io/) - Craig Davison's website @ davison.io
- [SnapCalc](/snapcalc/) - A simple calculator
- [Fountainhead](/fountainhead/) - A very simple bootstrap theme to share your social links and contact information
- [Minetest](/minetest/)
  - [Darkage](/minetest/darkage/) - Darkage mod for Minetest
  - [Bacon](/minetest/bacon/) - Bacon mod for Minetest
  - [SimplePixels](/minetest/simplepixels/) - SimplePixels texture pack for Minetest
  - [Coloured stone bricks](/minetest/colouredstonebricks/) - Coloured stone bricks mod for Minetest
  - [Craig's Server Game](/minetest/craig-server_game/) - Game used by Craig's Minetest Server
  - [Craig's Server](/minetest/craig-server/) - Well-built, reliable and popular world for for new or experienced builders.


text:
This package implements the (2+\epsilon)-approximate densest subgraph algorithm
by Bahmani, Kumar, and Vassilvitskii (see https://arxiv.org/abs/1201.6567).

Reference:
@article{bahmani2012densest,
  title={Densest Subgraph in Streaming and MapReduce},
  author={Bahmani, Bahman and Kumar, Ravi and Vassilvitskii, Sergei},
  journal={Proceedings of the VLDB Endowment},
  volume={5},
  number={5},
  year={2012}
}

repository: ParAlg/gbbs

repo_name: ParAlg/gbbs


text:
# IMPORTANT NOTICE

The script was transferred to its own repository at: <https://git.scicore.unibas.ch/zavolan_group/tools/ascii-alignment-pileup>

repository: uniqueg/scripts

repo_name: uniqueg/scripts


text:
---
layout: post
title:  "Thank you for attending SwanseaCon 2015"
date:   2015-09-14 14:43:18:00
isStaticPost: false
---

#### Prynhawn da/Good afternoon,

We really hope you enjoyed SwanseaCon 2015 and we just wanted to write a quick post to say a massive thank you for coming along and being a part of it!

The feedback so far has been excellent and we're already looking at ways to implement some of the suggestions. If you didn't get a chance to leave feedback we'd love to know your thoughts so please [get in touch](mailto:hello@swanseacon.co.uk?feedback).

We had lots of photographs of both days taken, [click here to view photos from SwanseaCon 2015](https://www.flickr.com/photos/136328291@N04). We recorded nearly all the speaker sessions so we will let you know as soon as these are available online for you to take a look.

Speakers have already started posting links to their slides which you can find below:

* [Simon Brown - Software architecture vs code](http://www.codingthearchitecture.com/presentations/swanseacon2015-software-architecture-vs-code)

* [Christos Matskas - Common mistakes in tdd can you guess](http://www.slideshare.net/christosmatskas/common-mistakes-in-tdd-can-you-guess)

* [Marcello Duarte - Understanding Craftsmanship](http://www.slideshare.net/marcello.duarte/understanding-craftsmanship-swanseacon2015-52546920)

* [Rachel Davies - Swanseacon Closing Keynote](http://www.slideshare.net/RachelDavies/swanseacon-closing-keynote)

* [Samir Talwar - Use Your Type System; Write Less Code](http://talks.samirtalwar.com/use-your-type-system.html)

* [Kevin Murray - LeanUX and Agile in the Public Sector](http://www.slideshare.net/valtechuk/leanux-and-agile-in-the-public-sector)

* [Erik Talboom & Franzi SauerWein - Refactoring mount doom](http://slides.com/franziskasauerwein/refactoring#/)

* [Jason Gorman - Continous Inspection](http://www.codemanship.co.uk/files/ContinuousInspection.pdf)

* [Steve Tooke - Surrender the Illusion of Control](https://speakerdeck.com/tooky/surrender-the-illusion-of-control)

* [Adrian Bolboaca - Legacy Code is Fear](http://www.slideshare.net/adibolb/legacy-code-is-fear-swanseacon-08-09-2015)

* [Sander Hoogendoorn - Designing and building a micro-services architecture. Stairway to heaven or a highway to hell?](http://www.slideshare.net/aahoogendoorn/microservices-stairway-to-heaven-or-highway-to-hell)

Thank you once again for being a part of our first conference, we're already planning next year's event which will run Monday 12th - Tuesday 13th September 2016. Super early bird tickets are available now, enabling all this years attendees to come along for just £125!

We hope to see you next year!

Diolch/Thank you,

The SwanseaCon team

#### Did you enjoy this post?

You can get all the latest news and updates about next years conference over on [our twitter account](http://www.twitter.com/swanseacon).

extension: markdown


text:
# Project Five

Project Five is a volunteer management app built as part of the software engineering capstone course at Minneapolis Community and Technical College.

## Goals
My goals for the project were to continue exploring Java and web-application frameworks using the Play Framework, as well as to use JPA and Hibernate for persistence. I also wanted to focus on Test Driven Development and testing with Selenium.

## Features
The app is designed to allow volunteer coordinators for non-profit organization to coordinate volunteer work assignments and schedules.

Volunteer coordinators will be able to:
 - add new jobs and assignments
 - assign volunteers to assignments
 - and post messages to the volunteers (coming soon)

## Running the App
The easiest way to run the app is through [Lightbend Activator](https://www.lightbend.com/activator/docs).

On a Mac this can be done via homebrew using `brew install activator`. Instructions for other operating systems can be found on the [Play Framework website.](https://www.playframework.com/documentation/2.5.x/Installing)

After Activator is installed navigate to the root directory of the application and run `activator run`. This will compile the project and start a server at <http://localhost:9000>

This version uses a H2 in-memory database. The database will be empty the first time the application is run, and will H2 will drop the database when there are no more connections to it.

repository: kyledhebert/mctc-capstone-project-five

repo_name: kyledhebert/mctc-capstone-project-five


text:
---
author: Adam
categories:
- Personal
- Technical
date: "2014-08-26"
layout: post
ljID:
- 380
ljURL:
- http://stonetable.livejournal.com/97332.html
tags:
- canonical
- juju
- ubuntu
title: New job!
url: /blog/2014/08/25/new-job/
---
I am delighted — tickled, in fact — to report that as of last Monday I am employed by [Canonical](1), the company behind [Ubuntu](2) Linux.

I’ve joined the Ecosystem Engineering team, part of Cloud Development and Operations, as a software engineer. More specifically, I’m working on [Juju](3), the cloud orchestration tool chain. I’ll be writing [charms](4) and documentation, working on optimizations, and helping to make a cool product even cooler.

 [1]: http://www.canonical.com/
 [2]: http://www.ubuntu.com/
 [3]: https://juju.ubuntu.com/
 [4]: https://manage.jujucharms.com/


text:
<!-- markdownlint-disable first-line-h1 -->

**WARNING: This project is no longer maintained. We decided to migrate from Vue to [Svelte](https://svelte.technology). See [`minna-ui`](https://github.com/WeAreGenki/minna-ui) for our new web UI framework.**

-----

# `vue-graphql`

> Vue plugin for easy GraphQL requests

For the most part this is just a simple wrapper of [graphql-request](https://github.com/graphcool/graphql-request).

## Usage

### Install

```bash
yarn add vue-graphql
```
or

```bash
npm install vue-graphql
```

### Add to your app

Typical use is to create a `graphql.js` file which installs the plugin. For example if you need an `Authorization` header with every request:

```javascript
import Vue from 'vue';
import VueGraphQL from 'vue-graphql';

Vue.use(VueGraphQL);

const graphqlApi = 'https://your-api-endpoint.com/graphql'
const auth = 'REPLACE_WITH_YOUR_AUTH_TOKEN';

const client = new VueGraphQL.Client(graphqlApi, {
  headers: {
    Authorization: `Bearer ${auth}`,
  }
});

export default client;

```
Then import that file in your vue entrypoint, e.g. `main.js`:

```javascript
import Vue from 'vue';
import graphql from './graphql';
import App from './App';

new Vue({
  el: '#app',
  graphql,
  render: h => h(App),
});
```

### Use in vue components

The plugin will inject itself into the vue instance so you can call it with `this.$graphql` in vue components. A simplified example using async/await:

```javascript
export default {
  data() {
    return {
      list: {},
    };
  },
  created() {
    this.getList();
  },
  methods: {
    async getList() {
      try {
        const res = await this.$graphql.request(`
          {
            myList {
              id
            }
          }
        `);
        this.list = res.myList;
      } catch (err) {
        // do something with the error
      }
    },
  },
};
```

For documentation about additional methods please see the [graphql-request documentation](https://github.com/graphcool/graphql-request/blob/master/README.md).

To learn how to construct a GraphQL query see [the official GraphQL documentation](http://graphql.org/learn/queries/).

-----

© 2017 [We Are Genki](https://wearegenki.com)

repository: WeAreGenki/vue-graphql

repo_name: WeAreGenki/vue-graphql


text:
# Portfolio Landing Page

#### This website is my portfolio, 16/09/2019

#### By **Koshin Mohamed**

## Description

This website's purpose is to showcase my portfolio, education, experience, and projects.

## Setup/Installation Requirements

- Download or clone project git clone here https://github.com/Koshin-Mohamed/independent-projects-1.git
- cd independaent-project-1
- code . or atom .

## Known Bugs

There are no known bugs at the moment.

## Technologies Used

Only basic HTML & CSS was used.

## Support and contact details

Feel free to contact me at<EMAIL_ADDRESS>
### License

_MIT_
Copyright (c) 2019 **Koshin Mohamed**

repository: Koshin-Mohamed/independent-projects

repo_name: Koshin-Mohamed/independent-projects


text:
# How to deploy cloud functions:

## Publish status of gcloud build on Slack
go to the folder `cloud-function/gcloud-build-slack`:
`gcloud functions deploy subscribeSlack \`
`--region=europe-west1 \`
`--stage-bucket gs://custom-ai-platform-notebook-cloudbuilds \`
`--trigger-topic cloud-builds  \`
`--runtime nodejs10 \`
`--set-env-vars "SLACK_WEBHOOK_URL=https://hooks.slack.com/services/xxxx"`

## Publish billing budget alert on Slack
first you need to create a dataset and a table in `BigQuery` :
- in the billing project with `project_name` (name to be pass below as a parameter)
- with `dataset_name` (name to be pass below as a parameter)
- with `table_name` (name to be pass below as a parameter)
- the location of the table need to be `EU` (or fix the code)
- the table need to have the following schema:
`createdAt	TIMESTAMP	REQUIRED`
`budgetAmount	NUMERIC	REQUIRED`
`projectName	STRING	REQUIRED`
`thresholdValue	NUMERIC	REQUIRED`
then you need to check you `Pub/Sub` topic name `billingAlert`
finally go to the folder `cloud-function/billing-alert-slack`:
`gcloud functions deploy subscribeSlack \`
`--region=europe-west1 \`
`--trigger-topic billingAlerts \`
`--runtime nodejs10 \`
`--set-env-vars "SLACK_WEBHOOK_URL=https://hooks.slack.com/services/xxxx" \`
`--set-env-vars "PROJECT_LIST=budget msg proj 1, budget msg proj 2" \`
`--set-env-vars "DATASET=bigquery_dataset_name" \`
`--set-env-vars "TABLE=bigquery_table_name" \`
`--set-env-vars "PROJECT=project_name"`

gha_language: Shell


text:
# AdDefender

[AdDefender on Github](https://github.com/TRoskop/AdDefender "AdDefender on Github")

### Welcome to: AdDefender!
**AdDefender** is a **free and open-source PHP- AND/OR Javascript-Framework to Defend Ad-Blockers**!

## Examples / How-To-Use ##
If you want to see how easy it is to integrate the necessary code to your's, please
see the Example files 'app-fullbanner.php' and 'app-smallbanner.php'.

Here you will find some examples which work with the most recent version of **uBlock Orgin** and **AdBlock Plus**. It even works with extensions like **NoScript** or with a Browser where the user disabled Javascript:
> http://trserver1.site40.net/projects/AdDefender/app-smallbanner.php.html
> http://trserver1.site40.net/projects/AdDefender/app-fullbanner.php.html

## Can I use AdDefender without PHP? ##
Yes, you can!
Please see the 'app-fullbanner.php.html' and 'app-smallbanner.php.html' files to see how a
html-only solution would look like.
It is easy and almost as safe as the php version.

But we suggest you to use the php version if possible, because it provides extended features.

## Licensing etc. ##
You can use AdDefender for any purpose (even for commercial) without any fees etc.

However, a small annotation or reference to this project would be very nice.

Please read also the "License.md"-file.

_________________________________

**Copyright (c) 2015-2016 Thomas Roskop**

Made with ♥ in Germany
[t.roskop<EMAIL_ADDRESS>"t.roskop@hotmail.de");

_________________________________

repository: sheffters/AdDefender

repo_name: sheffters/AdDefender


text:
---
title: 'KineMouse Wheel'
date: 2021-02-23
authors: ['admin']
layout: post
categories: ['Behaviour','Hardware']
tags: ['Behaviour','Hardware']
---
Who says you can't reinvent the wheel?! This running wheel for head-fixed mice allows 3D reconstruction of body kinematics using a single camera and DeepLabCut (or similar) software. A lightweight, transparent polycarbonate floor and a mirror mounted on the inside allow two views to be captured simultaneously. All parts are commercially available or laser cut. See example usage here: https://elifesciences.org/articles/63596
## Project Author(s)
Richard Warren
## Project Links
https://hackaday.io/project/160744-kinemouse-wheel
## Project Video
https://elifesciences.org/articles/63596
***
This post was automatically generated by
Richard Warren
***

gha_language: Jupyter Notebook


text:
firebase-import
===============

Import files are a new invention, so libraries like `firebase` do not yet provide them.

`firebase-import` is an intermediary that provides an import file for the `firebase` component. `firebase-import` depends on `firebase`.

Components that want to use `firebase` should depend on `firebase-import` to be safe from library duplication.

repository: RomanMinkin/polybase

repo_name: RomanMinkin/polybase


text:
# Reflection
Self-Driving Car Engineer Nanodegree Program

### Video (Evidence for achievement of requirements.)
[Here](https://www.youtube.com/watch?v=Z73QFyxSDks) is video which shows successful path planning.
In this video, vehicle succeeded in running for 10 miles without any violation or collision.

My path planning algorithm can't correspond difficult situations.
For examle, my algorithm can't stop the ego vehicle immediately when other vehicle cut in the space between the ego and the preceding vehicle.
Besides, my algorithm let the ego vehicle change lane to left if left and right lane are empty. It is because the condition of changing left lane is evaluated earlier than the condition of right lane.

Except for difficult cases, my algorithm works well and achieve requirements provided by [project rubic](https://review.udacity.com/#!/rubrics/1971/view).

### Source Files

### Reflection about my algorithm of path planning.
I constructed path planning algorithm based on the walkthrough video.
Especially, trajectory planning based on spline interpolation is algorithm shown in the walkthrough video.

I mainly contributed to algorithm which decided which how the ego vehicle behaved.
My path planner has very simple algorithm. If there is preceding vehicle which is slower than the ego vehicle, the ego vehicle change its lane to left or right.

The ego vehicle tries to turn left lane if left lane is empty and the ego vehicle can't run at target velocity due to preceding vehicle. If left lane is occupied and right lane is empty, the ego vehicle tries to turn right lane. If both left and right lane are occupied, the ego vehicle give up changing lane and decelerate its own.

My path planner is consisted of simple logic because it is very easy to verify and validate my algorithm. At the beginning of this project, I tried to introduce FMS based on cost functions, but I notices that it is difficult to validate my path planner because each cost function has complicated relationship. It costs a lot of time to validate.
Considering the chacteristic of this project, solid logic is enough to complete this one. I means that running highway does not have much candidate of behavior, so simple path planner can tackle this problem.

Designing path planner for urban course, I should construct well-designed FMS and cost function.


text:
WhiteOctoberTCPDFBundle
=======================

This bundle facilitates easy use of the TCPDF PDF generation library in
Symfony2 applications.

Installation
------------

### Step 1: Install the bundle in your project directory
Add the bundle to the "require" list in your composer.json file:

```
"require": {
    // ...
    "whiteoctober/tcpdf-bundle": "master"
}
```

Then use composer.phar to download and install the new dependency

``` bash
$ ./composer.phar update
```

### Step 2: Enable the bundle in app/AppKernel.php

Add the bundle to the `registerBundles()` method in your kernel:

``` php
<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new WhiteOctober\TCPDFBundle\WhiteOctoberTCPDFBundle(),
    );
}
```

Using TCPDF
-----------

You can obtain the `white_october.tcpdf` service from the container,
and then create a new TCPDF object via the service:

``` php
$pdfObj = $container->get("white_october.tcpdf")->create();
```

From hereon in, you are using a TCPDF object to work with as normal.

Using a custom class
--------------------

If you want to use your own custom TCPDF-based class, you can use
the `class` parameter in your configuration eg in `config.yml`:

``` yaml
white_october_tcpdf:
    class: 'Acme\MyBundle\MyTCPDFClass'
```

The class must extend from the `TCPDF` class; an exception will be
thrown if this is not the case.

License
-------

This bundle is under the MIT license. See the complete license in the bundle:

    Resources/meta/LICENSE

repository: BruceFletcher/WhiteOctoberTCPDFBundle

repo_name: BruceFletcher/WhiteOctoberTCPDFBundle


text:
# Visualization Tools

- Jupyter notebook plotting and animation examples (require [ffmpeg](https://ffmpeg.org/))
- Javascript (three.js) animation examples
- DLA examples

## ffmpeg
Download [here](https://ffmpeg.org/)

Installation insctructions [here](https://github.com/adaptlearning/adapt_authoring/wiki/Installing-FFmpeg)


text:
# robot-learning-replay
A survey of methods in experience replay applied to robot learning

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

## Prerequisites

This project uses conda to manage packages and requirements - however pip can also be used.

+ [conda](https://docs.anaconda.com/anaconda/install/)

+ [pip](https://pip.pypa.io/en/stable/installing/)

+ [mujoco](http://www.mujoco.org/)

See `setup.sh` to get started and install requirements for the project.
Note, conda will not have gym installed - this must be done through pip

## TODO

 - [x] Fill in Boilerplate code for training, models
 - [x] Get environments setup and random policy working
 - [x] Scope out future work for project
 - [x] Get SAC model set up
 - [ ] Get experience replay base versions (HER + PER)
 - [ ] Run some baselines

## Expiremental notes

 - Random seeds: 1, 42, 169, 0, 405
 - Look into any modifications
 - Get working implementation of SAC on HalfCheetah-v2

## Weird windows thing:

PATH="C:\Users\lukei\.mujoco\mujoco200\bin${PATH:+:${PATH}}"

PATH="C:\Users\lukei\.mujoco\mjpro150\bin${PATH:+:${PATH}}"

repository: Lucaskabela/robot-learning-replay

repo_name: Lucaskabela/robot-learning-replay


text:
# [PrestaShop on Docker for development](https://hub.docker.com/r/meropush/prestashop)

What is done:
* Installed Xdebug
* Installed memcached
* Fixed issue with file permissions in Docker container.

## Supported tags

| Images | PHP version | Xdebug version | Memcached version |
| :--- | :--- | :--- | :--- |
| <IP_ADDRESS> | 5.6-apache  | 2.5.5 | 2.2.0  |
| <IP_ADDRESS> | 7.1-apache  | 2.9.8 | 3.1.5  |

repository: meroPush/prestashop-docker

repo_name: meroPush/prestashop-docker


text:
# nextflow

A DSL for data-driven computational pipelines

## Download

download the latest exec file from github repo: <https://github.com/nextflow-io/nextflow>
here is the link: <https://github.com/nextflow-io/nextflow/releases/download/v19.01.0/nextflow>

## decompress, compile and install

Installation instructions. Java 1.8 is the only dependency required.

```
mkdir -p /app1/bioinifo/nextflow/19.01.0/bin
cd /app1/bioinifo/nextflow/19.01.0/bin
wget https://github.com/nextflow-io/nextflow/releases/download/v19.01.0/nextflow

# editing the NXF_HOME var in nextflow file

vim bin/nextflow
change the NXF_HOME line to NXF_HOME=${NXF_HOME:-/app1/bioinfo/nextflow/19.01.0/.nextflow}

# installation
module load jre/1.8.0_162
module load singularity
module load miniconda/3.6
./bin/nextflow # This will install dependencies at the first run

```

## Modulefile

the module file is as below:

```

# for Tcl script use only
set rkoversion      3.2.10
set url         http://www.nextflow.io
set nfdir       /hpctmp/biodata/nextflow-img

proc ModulesHelp { } {
        global rkoversion
        global name
        global version
        global root
        global url
        puts stderr "\tAdds $name (version $version) settings to your environment.\n\tMore information at $url"
}

module-whatis   "$name $version"
#module load /app1/modules/root/NUSREC

if { ![is-loaded jre/1.8.0_162] } {
        module load jre/1.8.0_162
}

if { ![is-loaded singularity] } {
        module load singularity
}

if { ![is-loaded miniconda/3.6] } {
        module load miniconda/3.6
}

prereq jre/1.8.0_162
prereq singularity
prereq miniconda/3.6

setenv  NXF_ASSETS                      $nfdir
setenv  NXF_CONDA_CACHEDIR              ~/.conda
setenv  NXF_SINGULARITY_CACHEDIR        ~/.singularity

prepend-path    PATH            ${root}/bin

if { [module-info mode load] } {
        puts stderr  "Welcome to Nexflow: Sample nextflow pipelines are located here:\n\t$nfdir\n\n"
}

```

repository: ganguvamshi/hpc-installers

repo_name: ganguvamshi/hpc-installers


text:
# cfn-lint [![CircleCI](https://img.shields.io/circleci/project/github/martysweet/cfn-lint.svg)](https://circleci.com/gh/martysweet/cfn-lint) [![npm version](https://badge.fury.io/js/cfn-lint.svg)](https://www.npmjs.com/package/cfn-lint) [![npm](https://img.shields.io/npm/dm/cfn-lint.svg)](https://www.npmjs.com/package/cfn-lint)

A more friendly CloudFormation JSON and YAML Validator

`cfn-lint` is a tool used to improve your CloudFormation development cycle. If you are here, you are probably
fed up of waiting for 10 minutes or more before CloudFormation gives you an error due to a typo. This tool aims to
remove that waste of time. The tool takes the CloudFormation template, and resolves all the Intrinsic functions
defined before checking the Properties of Resources defined.

The tool can be used over the commandline using `cfn-lint`, or can be used as a module within another JavaScript application.

*Note: This tool is currently case-sensitive in relation to AWS CloudFormation types, for example aws::lambda::function != AWS::Lambda::Function.*

## Installation

You can install with `npm`:

```
$ npm install -g cfn-lint
```

If you get `/usr/bin/env: 'node': No such file or directory` ensure your system has NodeJs installed. On Debian systems you may need to symlink node to nodejs due to namespacing issues (`ln -s /usr/bin/nodejs /usr/bin/node`).

## How to use?
`cfn-lint validate my_template.yaml`

`cfn-lint validate my_template.json`

`cfn-lint validate my_template.yaml --parameters key="my value",key2=value2,key3=3`

`cfn-lint validate my_template.yaml --pseudo AWS::StackName="My-Stack"`

`cfn-lint validate my_template.yaml --parameters key="my value" --pseudo AWS::Region=ap-northeast-1,AWS::AccountId=000000000000`

`cfn-lint docs AWS::Lambda::Function`

`cfn-lint docs AWS::Lambda::Function.Code`

`cfn-lint docs AWS::Lambda::Function.Code.S3Bucket`

**Note: The order of `--parameters` and `--pseudo` currently matters. This should be addressed in a later release.**

### Example Output
```
0 infos
0 warn
2 crit
Resource: Resources > MyInstance > Properties
Message: Required property ImageId missing for type AWS::EC2::Instance
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html

Resource: Resources > MyInstance > Properties
Message: Required property Value missing for type Tag
Documentation: http://docs.aws.amazon.com/search/doc-search.html?searchPath=documentation-guide&searchQuery=Tag&x=0&y=0&this_doc_product=AWS+CloudFormation&this_doc_guide=User+Guide&doc_locale=en_us#facet_doc_product=AWS%20CloudFormation&facet_doc_guide=User%20Guide

Template invalid!
```

### What can cfn-lint do?
* Read JSON + YAML (Including YAML short form)
* Detect invalid property names
* Detect invalid Ref
* Detect invalid mappings
* Detect invalid format
* Missing or invalid AWSTemplateFormatVersion
* Fn::FindInMap
* Fn::GetAtt
* Fn::GetAZs
* Fn::Join
* Fn::Base64
* Fn::Sub
* Fn::If
* Fn::Equals
* Fn::Not
* Fn::Or
* Fn::And
* Fn::ImportValue
* Condition support
* Ref
* Go to the documentation from Command Line (see above examples)
* Detecting invalid property types
* Detect missing required properties

### Feature backlog
* Verbose parsing errors when reading invalid JSON
* Fn::ImportValue - to support CLI injection (Like Params currently does)
* Fn::Select
* Fn::Split
* Test coverage for Conditions and Property checking
* Refactor Property checking to be clearer
* Circular dependency checking
* Suggest DependsOn when References to Resources are used
* Extended validation flag (calls AWS CloudFormation API)
* Watch file flag to revalidate on file save
* Download latest resources during build

### Features that would be nice, but aren't currently possible
* Detect conditional required properties (Information doesn't exist in AWS Resource Specification)

## Deploying your template

CloudFormation tends to involve a bit of trail and error. To enable quick development,
the following method can be used to prevent the annoying 'ROLLBACK' scenarios where the whole stack
must be deleted and recreated.

Deploy a template with the following content, name it what you want your final stack to be called.
```yaml
Resources:
  MyBucket:
    Type: AWS::S3::Bucket
```

After each change to your template, simply update the stack you just created. If the stack failed to deploy
for some reason you can perform an 'Update Stack' operation, without needing to delete and recreate
the stack from scratch. You can also use this method to keep parameters populated during the development
phase. This method will work using the AWS Console or the CLI tools.

## FAQ

### No errors were thrown for my template but it still failed when deploying! Is this tool pointless?!
 Please help out the community by explaining how you
managed to get an error from CloudFormation of which the validator did not detect, the following information
will help in adding a check to the utility:

* The Resource/Statement which caused the error
* The error thrown from CloudFormation
* The working Resource/Statement which resolves the error

You can add an issue on the [Github Issue Page](https://github.com/martysweet/cfn-lint/issues). Thanks for helping out!

### Doesn't the AWS API provide this functionality?
Partially. The AWS API `cloudformation validate-template` only checks the validity of the template, this includes the
expected parameters for intrinsic functions, resource types and general structure of the JSON or YAML template it has been given. The
AWS API does not detect incorrect resource property names or incorrect resource property types (e.g. string, bool, list) which are typically
only detected when CloudFormation attempts to deploy the resources with the incorrect configurations.

### Got any other questions?
Ask a question on the [Github Issue Page](https://github.com/martysweet/cfn-lint/issues)!

## Development

### Unit Tests

Tests can be run using `npm test`. There should be a test case for every template error,
for example an invalid parameter for `Fn::Join` or an incorrect reference for `Ref`.
The tests depend on `Mocha` and `chai`.

### IDE Setup

If you use a JetBrains editor, the following Run Configuration can be setup
for the Mocha test suite:

Node Options: --harmony
Extra Mocha Options: --compilers js:babel-register --require babel-polyfill
Test Directory: <working dir>\test

### Local testing of CLI

Environmental Variables
* DEBUG - Set to receive runtime debug messages

```
$ npm link
$ cfn-lint <some command>
```

### Resource Attribute Mocking
In order to simulate the intrinsic functions to catch errors before deployment,
attributes for Properties and Resources are mocked. This can be seen within the
`assignResourcesOutputs()` and `assignParameterOutputs()` of [validator.es6](src/validator.es6).
A resource will always have a Ref of `mock-ref-RESOURCENAME` and will be attached other
attributes which can be used with the `Fn::GetAtt` function. This allows for checking
if attributes exist for a specific resource before deploying the template for real.

### Intrinsic Functions

Each intrinsic function has a signature of `doIntrinsicXYZ(ref, key)` and is called by the
`resolveIntrinsicFunction(ref, key)` function. The `doIntrinsic..` function should return
the resolved value of the function. For example, for Fn::Sub, an input of `"My ${MyInstance}"`
would return a string similar to `"My i-0a0a0a0a0a`.

## Contributions

Please check out the [Contributor's Guide](CONTRIBUTING.md) for more information on how to get started.

repository: devonartis/aws-automation

gha_language: Python

repo_name: devonartis/aws-automation


text:
# Mini Car

It's a 3d truck-like model built with Three.js library. Three.js is a Javascript library for rendering 3d models in web browsers.

* [minicar](https://april9288.github.io/MiniCar/) - You can play around with the model here. It's moving!

![](minicar.jpg)

## Getting Started

### Prerequisites

You don't need any prerequisites. Just download and run index.html

Two files are really essential here.

* js/three.min.js - it's the minimized Three.js library.
* js/OrbitControl.js - it allows the camera to orbit around a target.

## Built With

* [Three.js](https://threejs.org/) - The official Three.js website

## Meta

James Jongho Kim
- [Portfolio](https://april9288.github.io/) - It's my portfolio website
- [Github](https://github.com/april9288) - This is my Github page
- [Linkedin](https://www.linkedin.com/in/jongho-kim-b05618170/) - This is my Linkedin page
-<EMAIL_ADDRESS>

repository: wwwK/MiniCar

repo_name: wwwK/MiniCar


text:
Sets up a websocket proxy for any number of language servers.

Each server is run as a subprocess which is connected to by sending the client
to the URL /<language> based on a configuration file defined locally. For example,
with the following defined as `servers.yml`:

```
langservers:
  python:
    - python
    - python-langserver.py
    - --stdio
  go:
    - /usr/local/bin/go
    - langserver.go
```

The client would connect to `ws://localhost/python` to get a python language server

Usage:

```
npm install
npm run prepare
node dist/server.js --port 3000 --languageServers servers.yml
```

license: Unlicense,MIT

detected_licenses: Unlicense MIT

gha_language: Julia


text:
# GNU Parallel Cheat Sheet

GNU Parallel 2018 https://doi.org/10.5281/zenodo.1146014

GNU Parallel is a replacement for xargs and for loops. It can also split a file or a
stream into blocks and pass those to commands running in parallel.

## Examples

Compress all `*.html` files in parallel – 2 per CPU thread `parallel --jobs 200% gzip ::: *.html`

Convert all .wav to .mp3 using lame `parallel lame {} -o {.}.mp3 ::: *.wav`

Chop bigfile into 1MB blocks and grep for the string foobar `cat bigfile | parallel --pipe grep foobar`

### Input sources

```
parallel echo ::: cmd line input source
cat input_from_stdin | parallel echo
parallel echo ::: multiple input sources ::: with values
parallel -a input_from_file echo
parallel echo :::: input_from_file
parallel echo :::: input_from_file ::: and command line
```

```
Replacement string 		Value

{}						mydir/mysubdir/myfile.myext
{.}						mydir/mysubdir/myfile
{/}, {//}, {/.}			myfile.myext, mydir/mysubdir, myfile
{#}						The sequence number of the job
{%}						The job slot number
{2}						Value from the second input source
{2.} {2/} {2//} {2/.}	Combination of {2} and {.} {/} {//} {/.}
{= perl expression =} 	Change $_ with perl expression
```

Control the output – keep the order the same as the input `parallel --keep-order "sleep {}; echo {}" ::: 5 4 3 2 1`

Run 2 jobs in parallel `parallel --jobs 2 "sleep {}; echo {}" ::: 5 4 3 2 1`

See what will be run `parallel --dryrun echo ::: Red Green Blue ::: S M L`

Remote execution `parallel -S server1 -S server2 "hostname; echo {}" ::: foo bar`

Pipe mode `cat bigfile | parallel --pipe wc -l`

Chop bigfile into one block per CPU thread and grep for foobar `parallel -a bigfile --pipepart --block -1 grep foobar`

Read more – Your command line will love you for it `parallel --help; man parallel; man parallel_tutorial`

repository: nodiscc/toolbox

repo_name: nodiscc/toolbox


text:
# Bluesnake (Work in Progress)

Bluesnake is a multiplayer snake game, that uses [bluestorm] network framework. This game is done mainly for demonstration purposes.

[bluestorm]: https://github.com/jvikstedt/bluestorm

repository: jvikstedt/bluesnake

repo_name: jvikstedt/bluesnake


text:
## Wut?

This is a CSS layout "library" based on [flexbox](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Using_CSS_flexible_boxes) inspired entirelly by [Angular Material's layout system](https://material.angularjs.org/latest/layout/introduction) ([repo](https://github.com/angular/material/)), so **they are the cool guys**.

It is written in [Stylus, a CSS preprocessor](http://stylus-lang.com/) using [autoprefixer-stylus](https://www.npmjs.com/package/autoprefixer-stylus), a tool that adds all the annoying vendor prefixes for our CSS properties.

A minified & vendor prefixed CSS file is included in the repo inside ./dist folder.

## Install the dependencies

Here I assume you have [NodeJS installed](https://nodejs.org/en/download/) already, like every cool kid on the block.

First you'll need to install Stylus globally:

`$ npm install -g stylus`

Then you'll need to install autoprefixer-stylus because we live in a diverse world and _all_ browsers like to read CSS in a different way:

`$ sudo apt-get install -g autoprefixer-stylus`

**Note**: you can skip this step if you don't plan to support all current browsers, or if you come from a distant future where CSS is unified and no one uses old IE, in that case I hate you...

## Working with stylus

#### To play around with the lib:

`$ stylus -u autoprefixer-stylus -w`

This starts a server watching for the specified file for changes and compiling it

#### To generate a minified & vendor prefixed version:

`$ stylus -u autoprefixer-stylus -c main.styl -o ./dist/main.min.css`

This updates the ./dist/main.min.css file.

repository: UnJavaScripter/flex-css-lib

repo_name: UnJavaScripter/flex-css-lib


text:
# Slot: adapters

Adapters provide priming sequences for both amplification and sequencing of the sample-library fragments. Both adapters should be reported; in uppercase letters

URI: [mixs.vocab:adapters](https://w3id.org/mixs/vocab/adapters)

## Domain and Range

None ->  OPT [String](types/String.md)

## Parents

 *  is_a: [sequencing field](sequencing_field.md)

## Children

 *  [ME➞adapters](ME_adapters.md)
 *  [MIGS bacteria➞adapters](MIGS_bacteria_adapters.md)
 *  [MIGS eukaryote➞adapters](MIGS_eukaryote_adapters.md)
 *  [MIGS org➞adapters](MIGS_org_adapters.md)
 *  [MIGS plant➞adapters](MIGS_plant_adapters.md)
 *  [MIGS virus➞adapters](MIGS_virus_adapters.md)
 *  [MIMAG➞adapters](MIMAG_adapters.md)
 *  [MIMARKS specimen➞adapters](MIMARKS_specimen_adapters.md)
 *  [MISAG➞adapters](MISAG_adapters.md)
 *  [MIUVIG➞adapters](MIUVIG_adapters.md)

## Used by

 * [Core](Core.md)

## Other properties

|  |  |  |
| --- | --- | --- |
| **Aliases:** | | adapters |
| **Comments:** | | Expected value: adapter A and B sequence |
|  | | Position: 48.0 |
| **Examples:** | | Example(value='AATGATACGGCGACCACCGAGATCTACACGCT;CAAGCAGAAGACGGCATACGAGAT', description=None) |


text:
# modern-login

### A simple login form built with PyQt 5

[![Python: 3.x](https://img.shields.io/badge/python-3.x-blue?logo=python&logoColor=gold)](https://www.python.org/downloads)
[![PyQt: 5.15.0](https://img.shields.io/badge/pyqt-5.15.0-darkgreen?logo=qt&logoColor=green)](https://pypi.org/project/PyQt5)
[![donations: paypal](https://img.shields.io/badge/donations-paypal-orange?logo=paypal&logoColor=darkblue)](https://paypal.me/sinusphi)

___

[![animation][1]][1]

[1]: https://raw.githubusercontent.com/sinusphi/modern-login/main/img/animation.gif

repository: sinusphi/modern-login

repo_name: sinusphi/modern-login


text:
### 0.6.0

* Drop julia 0.4 support (issue #86)

* New indicator:
  * Kaufman's Adaptive Moving Average (issue #76, #83)

  * Kelter Bands (issue #88)

  * Rate of change (ROC) (issue #82)

  * Average Directional Movement Index (ADX) (issue #89)

  * Accumulation/Distribution Line (ADL) (issue #91)

  * Chaikin Oscillator (issue #92)

  * Chaikin Volatility (issue #94)

  * Donchian Channels (issue #95)

  * Stochastic Oscillator (issue #96)

  * Aroon Oscillator (issue #97)

  * Moving Average Envelope (issue #87, #115)

* doc: migrate to `Documenter.jl`, and the online doc is available at github
  pages. (issue #63, #58, #69)

* macd: rename original `macd` column to `dif`,
  and add the macd osc bar as `macd`. (issue #71)

* macd: widen to accept multi-column `TimeArray`. (issue #72)

* macd: add wiler option for `ema` calculation. (issue #79)

* rsi: rename the ouput column. (issue #75)

* cci: fix calculation. (issue #84)

* new feature: now `src/.rc.jl` is available for user customization,
  see: https://github.com/JuliaQuant/MarketTechnicals.jl/blob/12c6ce0fff730f2de36833dd83152d5b5a8a66b9/docs/src/index.md#naming-convention
  (issue #98)

### 0.5.0

* support floor of julia 0.5.0

### 0.4.1

* precompilation code added

### 0.4.0

* first version to support Julia 0.4 only

### 0.3.5

* limit support for Julia 0.3 only
* fixes macd, obv and vwap
* turned on tests for volume algorithms

### pre-0.3.5

Not currently documented.


text:
# Instance Architecture

A instance oriented game server. Well known examples are FPS, MORPG, board games,
and MOBA games. Most games are instance based except some MMORPGs providing
seamless world. But even those MMORPGs can be developed with instances if smooth
instance transition is possible under game design.

## Server and Services

- front servers running:
  - instance_runner_service(s)
    - runs instance actors of different worlds
  - lobby_service
    - keep users
    - relay backend messages
  - login_service
- world backend servers running:
  - world_service
    - authorize
    - keeps users
    - relays world traffic
  - guild_service
  - instance_control_service
  - world / guild subs to user state messages
    - copied user state
- master backend server running:
  - master_service
    - controls services
      - start / stop services on front servers

## Stability

world backend services are failure points

- recovery process
  - notify users on lobby_service joined the world
  - keep each instance of the world in suspended mode
  - restart the world server
  - when services of the world are restarting
    - notify users
    - update state of user, guild, instance
  - when services are up
    - notify users
    - resume instances

## Match Making Service

1 billion match making.

- match_service
  - 100K match processing per service
  - dynamic partition of ranges with transition
- range partition
  - when flooded
  - $$ (l, u) \rightarrow  (l, m) (m, u) $$
  - create a new match_service on a proper server with $$(m, u)$$
  - advertise new ranges to all related services
  - shrinking phase
    - decrease selection probability of the shrinking server
    - most requests to the new range partition go to the new service
    - timeout of matching can clear all existing matches that cannot be matched
- range merge
  - when idle for a long time
    - ask merge of partition
    - if agreed, then extend range and stop one the two

## Database Sharding

db_client_service

- request(shard_query_base::ptr qry)

repository: laxtools/lax

repo_name: laxtools/lax


text:
# MapWith [![Stackage version](https://www.stackage.org/package/MapWith/badge/nightly?label=Stackage)](https://www.stackage.org/package/MapWith) [![Hackage version](https://img.shields.io/hackage/v/MapWith.svg?label=Hackage)](https://hackage.haskell.org/package/MapWith) [![build status](https://img.shields.io/travis/davjam/MapWith/master.svg?label=Travis%20build)](https://travis-ci.com/github/davjam/MapWith)

`mapWith`: like `fmap`, but can "inject" additional parameters such as whether first (or last) element, etc.

# Background

I often want to map over a list, but do something slightly different with the first or last element.

For a long time I used [markbounds](https://stackoverflow.com/questions/14114011/haskell-map-operation-with-different-first-and-last-functions#answer-53282575),
but also wanted something that:

- works on structures other than lists (`mapWith` works on all `Traversable` types);
- can provide additional types of parameter (not just first/last), such as:
  - index from start/end;
  - the previous/next element; and
- makes it easy to create new types of parameter to provide; and
- can provide any number of separate parameters to a function (not just a 3-tuple).

So, after only 2 years, I built a small library to do all of these.

# Examples

Passing a "standard combination" of isFirst and isLast parameters:

```
let g x f l = [star f, x, star l]; star b = if b then '*' else ' '
in withFirstLast g "fred"
["*f ", " r ", " e ", " d*"]
```

Passing a custom combination of different types of parameter
(the index from the start, whether it's the last element, and elements from another list applied from the right):

```
let g x n l e = concat [[x], show n, if l then "*" else "-", e]
in mapWith (g ^-> eltIx & isLast <-^ eltFrom ["x","yy","z","zzzz","y"]) "fred"
["f0-zzzz","r1-z","e2-yy","d3*x"]
```

More examples are [here](https://github.com/davjam/MapWith/blob/master/doc/examples.hs).

# Questions/Doubts

Note that this is my first library and my first use of cabal, so I've probably done some dumb things.

Some things I wonder:

- Doesn't this already exist? (It feels like it should!)
- Should I name it `Data.Traversable.MapWith`? Or are such names "reserved" for "official" libraries, or something? Would this name impact my own file/directory structures?

# Future Work

Areas for potential improvement in later releases:

- Performance investigations and hopefully improvements, in particular:
  - fusion for eltFrom Injectors (unlikely, given the reasons it's not possible for zipWith, but we'll see).
  - enhancements for "stateful" "from the right" Injectors (unlikely, given [this](https://stackoverflow.com/questions/63504127/haskell-pinned-or-stack-memory-for-performance)).

- CurryTF: avoid tuples? (The tuple `(7, ())` is interpreted by `CurryTF` as an application of a single value `7`, but by `Data.Tuple.Curry` as two values: `7` and `()`,
  which I think is slightly more confusing than it needs to be.)

repository: davjam/MapWith

repo_name: davjam/MapWith


text:
# ServerSwitchy

ServerSwitchy is a simple mod for Minecraft that allows your lobby server to direct the player to a different server.

![](screenshot.png)

## Usage
1. Install ServerSwitchy on the client.
2. Send a custom payload packet in the documented format to the client.
3. There is no step 3.

The mod can also be used on the server to enable a debug command (must be enabled in `serverswitchy-common.toml`):
- `/serverswitchy Dev <IP_ADDRESS> {"text": "Cool Server here"}`
- `/serverswitchy Dev <IP_ADDRESS> {"text": "Cool Server here"} true`

The last argument controls whether the confirmation screen is forced (see flags below).

## Custom payload documentation
A custom payload packet must be sent on the `serverswitchy:main` channel.
The payload for this packet must contain 3 things:
1. The target IP and/or hostname (e.g. `example.com` or `<IP_ADDRESS>:12345`) using `FriendlyByteBuf#writeUtf`
2. The name for the target server, to be displayed to the client using `FriendlyByteBuf#writeComponent`
3. A 32-bit integer for flags using `FriendlyByteBuf#writeInt`. The following flags can be set:
   - `0b0001`: Force the client to show the confirmation screen, even if "do not ask again" had been selected previously

An example can be found in the [debug command source code](src/main/java/dev/weiland/mods/serverswitchy/ServerSwitchyCommands.java).


text:
##Foxy [![Build Status](https://travis-ci.org/shakyShane/foxy.svg?branch=master)](https://travis-ci.org/shakyShane/foxy)

Proxy with response moddin'

```js
var foxy = require("foxy");

var proxy = foxy("http://www.bbc.co.uk").listen(8000);

// Now access the site through http://localhost:8000
```

Built-in middleware will re-write html on the fly to update any urls & there'll also be the option
for additional rules for the re-writing.


text:
Basic usage would go something like this.

`script.js`

```javascript
import path from 'path';
console.log(path.join(__dirname, 'script.js'));
```

Then run `script.js` with the engrave command `engrave ./script.js`.

es2015 modules will be used, and any commonjs (using require) will also work.

You can also use `engrave` with a Unix shebang.

`script.js` with a Unix shebang.

```javascript
#!/usr/bin/env engrave
import path from 'path';
console.log(path.join(__dirname, 'script.js'));
```

1. Make the file executable on Unix systems (Linux) with the command `chmod +x script.js`.
2. Run the file on the command line by using it's name `./script.js`.

See [es-spawn](https://github.com/hollowdoor/es_spawn) to learn more about what enables engrave's functions.

Script Loading Procedure
------------------------

The way `engrave` loads an executable js file has changed. It used to load only by command argument.

`engrave`'s "main" script loading procedure works like node's.

This is how the procedure plays out:

0. You pass a script name on the command line or
1. `engrave` attempts to load a `package.json` file
    1. If there is a file name in one of these fields
        * jsnext:main
        * main
    2. the found script is loaded by `engrave`, or else
2. `engrave` looks for one of these files to load instead:
    1. index.js
    2. main.js
    3. ingrave.js
3. The loaded script is executed or
4. `engrave` passes any flags to nodejs or
5. `engrave` fails with an error message

Global Executables
------------------

As you can imagine global executables are a little odd to work with. `engrave` does support globally installed scripts though.

You can make any executable script global you want to by changing to it's directory, and running `npm install -g`.

It's suggested that you only do this for your personal scripts, and do not publish a script to npm that depends on `engrave`. Third party dependencies can be hairy for node modules. If you feel that you must have `engrave` as a dependency you can place `npm install -g engrave@<version>` in the `scripts.postinstall` field of your package.json. As long as the semver version is strict you should be ok, but be careful. If you do that there could still be a permission problem so you still shouldn't expect to rely on this kind of dependency.

Arguments to node
-----------------

If you pass any flags to `engrave` before the script argument those arguments will be used by node.

es2015 and Beyond
-----------------

By default `engrave` runs es2015 modules, and [stage 3 ecma javascript](http://babeljs.io/docs/plugins/preset-stage-3/).

If you want more you can place a [.babelrc](https://babeljs.io/docs/usage/babelrc/) in the directory that contains your script. `npm install` and add what ever `babel` plugins and presets to `.babelrc` to get the functionality you want.

Underneath `engrave` uses `rollup` to pre-compile es2015 modules. So you get the benefits of using `rollup` which includes module static analysis. You can also use [rollup presets](http://rollupjs.org/guide/#using-rollup-with-babel) in your `.babelrc` file.

If you create your own `.babelrc` the default *stage-3* presets won't be used.

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

Please file issues for any bugs you find.

### Pull Requests

For documentation you can just do a pull request when you want. For any source code modifications, or dependency changes please post an issue before you start to make changes. Otherwise if you see any lingering open issues go ahead, and make a pull request.

### Major changes

If you want to make a massive change to `engrave` post an issue. We can create a dev branch to isolate those changes.

### Testing

There really isn't any TDD being used here. The way `engrave` works is a little strange so it's hard to figure out exactly how to do TDD, or if TDD is even useful for this kind of application. For now to test something make a folder name starting with the word test that contains files to test, and run those files through `engrave`.

In the future some novel way of testing might be integrated into the `engrave` code.

repository: hollowdoor/engrave

repo_name: hollowdoor/engrave


text:
# JSON File Walker

Iterates through json file paths in directory hierarchy

Create an iterator returning `Option<std::path::PathBuf>` objects of json files in the root directory and sub-directories

## Examples

```
use json_file_walker::walk_json_files;

for path in walk_json_files("./directory") {
    println!("{}", path.to_string_lossy());
}
```

repository: Balmath/json-file-walker

repo_name: Balmath/json-file-walker


text:
# My macOS configuration files
> Karabiner, NeoVim, tmux, VS Code, Zsh

These are all the configuration files on my Mac

[![MIT](https://img.shields.io/badge/license-MIT-0a0a0a.svg?style=flat&colorA=0a0a0a)](LICENSE) [![Twitter](https://bit.ly/2m2Kb02)](https://twitter.com/tansawit)

## New Mac Install Steps

### Run Makefile

```bash
make all
```

### neovim

#### Vim Plug-ins

Inside `init.vim`

```bash
:PlugInstall
```

#### Install node for coc.nvim

In terminal:

```bash
brew install node
```

#### Language Support

##### Go

In neovim

```bash
:GoInstallBinaries
```

##### Rust

In neovim

```bash
:CocInstall coc-rls
```

##### Python

In terminal

```bash
pip3 install neovim
```

### Set karabiner

Open Karabiner-Elements application:

- In the profile section, add the profile `JS`

In terminal, run:

```bash
goku
```

repository: tansawit/dotfiles

gha_language: Vim script

repo_name: tansawit/dotfiles


text:
* ```space_x_plugin.py``` already contains a skeleton version of what your plugin should look like
* ```plugin.json``` is already preconfigured to define one metric
* Complete the source code located within the functin ```query``` in ```space_x_plugin.py```.
* Your plugin should create one technology group representing the ship type
* Your plugin should define one custom device representing a ship of this ship type
* Your plugin should report measurements for this custom device, representing the fuel on board that ship