text:
# JBoss plugin

The JBoss plugin can collect data from JBoss management API.

Plugin currently support JBoss Application server in domain modes:-

- domaincontroller  (Ex http://[jboss-server-ip]:9990/management)

Currently tested on JBoss EAP 6.X , JBoss AS 7.X

### Configuration:

```toml
# Read flattened metrics from one or more JBoss HTTP endpoints
[[inputs.jboss]]
  ## API endpoint:
  ##
  servers = [
    "http://localhost:9990/management",
  ]

  ## Username and password
  #username = ""
  #password = ""

  ## Optional SSL Config
  # tls_ca = "/etc/telegraf/ca.pem"
  # tls_cert = "/etc/telegraf/cert.pem"
  # tls_key = "/etc/telegraf/key.pem"
  ## Use SSL but skip chain & host verification
  # insecure_skip_verify = false

  ## Metric selection
  metrics =[
    "jvm",
    "web",
    "deployment",
    "database",
    "transaction",
    "jms",
  ]
```

Some examples from JBoss:
https://docs.jboss.org/author/display/WFLY10/The%20HTTP%20management%20API.html

### Metrics:

The jboss_jvm measurement has static fields (those related to threading and memory info) and dinamic fields ( those related to garbage-collector info) , these dinamic fields has as many  (count/time) pairs as diferent collection modes.

These fields will be in the form

      - [garbage_collector_mode]`_count`  (float)
      - [garbage_collector_mode]`_time` (float)

garbage_colletor_mode could be any of the following depending on the jvm GC configuration

      - PS_MarkSweep
      - PS_Scavenge
      - ParNew
      - ConcurrentMarkSweep
      - etc

- jboss_jvm
    - tags:
        - jboss_host  domain host (only for domain profiles)
        - jboss_server | instance name (only for domain profiles)
    - fields:
        - (threading info)
            - thread-count (float)
            - peak-thread-count (float)
            - daemon-thread-count (float)
        - (memory info)
            - heap_committed (float)
            - heap_init (float)
            - heap_max (float)
            - heap_used (float)
            - nonheap_committed (float)
            - nonheap_init (float)
            - nonheap_max (float)
            - nonheap_used (float)
        - (garbage-collector)
            - [garbage_collector_mode]`_count`  (float)
            - [garbage_collector_mode]`_time` (float)

- jboss_web_con
    - tags:
        - jboss_host  domain host (only for domain profiles)
        - jboss_server  instance name (only for domain profiles)
        - type  could be only "http"  or "ajp"
    - fields:
        - bytesSent (float):	Number of byte sent by the connector
        - bytesReceived(float):	Number of byte received by the connector (POST data).
        - processingTime(float):	Processing time used by the connector. Im milli-seconds.
        - errorCount(float):	Number of error that occurs when processing requests by the connector.
        - maxTime(float):	Max time spent to process a request.
        - requestCount(float):	Number of requests processed by the connector.

- jboss_web_app
    - tags:
        - jboss_host  domain host (only for domain profiles)
        - jboss_server  instance name (only for domain profiles)
        - name  Web Module name (war)
        - context-root| URL context root for this web app
        - runtime_name   |  Application Name (ear/war)
    - fields:
        - active-sessions (float)
        - expired-sessions (float)
        - max-active-sessions (float)
        - sessions-created (float)

- jboss_ejb
    - tags:
        - jboss_host  domain host (only for domain profiles)
        - jboss_server  instance name (only for domain profiles)
        - name   module Name
        - ejb   EJB name
        - runtime_name  Application Name (ear)
    - fields:
        - invocations (float)
        - peak-concurrent-invocations (float)
        - pool-available-count (float)
        - pool-create-count (float)
        - pool-current-size (float)
        - pool-max-size (float)
        - pool-remove-count (float)
        - wait-time (float)

- jboss_database
    - tags:
        - jboss_host  domain host (only for domain profiles)
        - jboss_server  instance name (only for domain profiles)
        - name  datasource name
    - fields
        - in-use-count (integer)
        - active-count: (integer)
        - available-count:(integer)

- jboss_jms
    - tags:
        - jboss_host  domain host (only for domain profiles)
        - jboss_server  instance name (only for domain profiles)
        - name   queue/topic name
    - fields:
        - message-count (float)  The number of messages currently in this queue.
        - messages-added (float) The number of messages added to this queue since it was created.
        - consumer-count (float) [for Queue stats] The number of consumers consuming messages from this queue.
        - subscription-count (float) [for Topic stats] The number of (durable and non-durable) subscribers for this topic.
        - scheduled-count (float) The number of scheduled messages in this queue.

- jboss_transaction
    - tags:
        - jboss_host  domain host (only for domain profiles)
        - jboss_server  instance name (only for domain profiles)
    - fields:
        - number-of-aborted-transactions (integer)  The number of aborted (ie rolledback) transactions.
        - number-of-application-rollbacks (integer) The number of transactions that have been aborted by application request.
        - number-of-committed-transactions (integer) The number of commited transactions.
        - number-of-heuristics (integer) The number of transactions which have termineted with heuristics outcome.
        - number-of-inflight-transactions (integer) The number of transactions that have begun but not yet terminated.
        - number-of-nested-transactions (integer) The number of nested (sub) transactions created.
        - number-of-resource-rollbacks (integer) The number of transactions that have been rolled back due to resource failure.
        - number-of-system-rollbacks (integer) The number of transactions that have been rolled back due to internal system errors.
        - number-of-timed-out-transactions (integer) The number of transactions that have been rolled back due to timeout.
        - number-of-transactions (integer) The total number of transactions created.

gha_language: Go


text:
# Cville Indexer

Index docs relevant to Charlottesville, including Daily Progress images from 1893-1968 and City Council meeting notes.

    brew install tesseract

## Run Daily Progress image puller
create a t3.small EC2 instance

```bash
sudo yum update -y
(wget -O - pi.dk/3 || curl pi.dk/3/ || fetch -o - pi.dk/3) | bash
parallel --citation

export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=

vi get_dp.sh # add it
chmod u+x get_dp.sh
screen -L ./get_dp.sh
```

    python cville_indexer/cleanup_s3.py

# Overview

Components in this repo:
1. S3 event listener

The repo consists of:
1. Invoke library build definitions for deploying CloudFormation templates and Zappa project
1. Generator for Zappa execution IAM Policy
1. Generator for Zappa config file

In this project,
* `cville-indexer` is used as the example application and package name
* `rcollimore` is used as the example username

Most of the configuration for deploying to AWS is generated from templates to allow multiple developers to deploy to
the same AWS account without stepping on each other's resources, so elements are usually suffixed with a unique name,
e.g., 'dev-rcollimore'.

[Credstash](https://github.com/fugue/credstash) is used for storing the (single) secret token validated by the
custom authorizer.

#  Setting up a dev environment

## Dependencies

* Python or [pyenv](https://github.com/pyenv/pyenv) 3.6 to bootstrap pipenv

## Install pipenv

```bash
pip3 install pipenv
```

## Setting up a pipenv virtualenv

From within this repo, run:

```bash
pipenv install --dev
```

## Running the linter

```bash
pipenv run pycodestyle .
```

## Running the tests

```bash
pipenv run pytest tests
```

## Execution

### Initially deploy environment 'dev' to AWS

```bash
invoke create --env dev
```

### Initially setup SSL certs for environment 'dev' in AWS

```bash
invoke certify --env dev
```

### Update existing environment 'dev' to AWS

```bash
invoke update --env dev
```

Debug:
```bash
invoke tail --env dev
```

```bash
virtualenv python --python=python3.7
source python/bin/activate and then pip3 install boto3
zip -r boto3_layer.zip python/lib/
Create new Lambda Layer with boto3_layer.zip and add layer to Lambda Function
```

## Athena Tables

```
CREATE DATABASE IF NOT EXISTS cville_indexer
```
then
```
CREATE EXTERNAL TABLE cville_indexer.pvarner_dailyprogress (
  bucket string,
  key string,
  size bigint,
  last_modified_date timestamp
  )
  PARTITIONED BY (dt string)
  ROW FORMAT SERDE 'org.apache.hadoop.hive.ql.io.orc.OrcSerde'
  STORED AS INPUTFORMAT 'org.apache.hadoop.hive.ql.io.SymlinkTextInputFormat'
  OUTPUTFORMAT  'org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat'
  LOCATION 's3://pvarner-inventory/pvarner-dailyprogress/pvarner-dailyprogress/hive'
```

then

```
MSCK REPAIR TABLE cville_indexer.pvarner_dailyprogress
```

license: MIT

repository: philvarner/cville-indexer

branch_name: refs/heads/develop

extension: md

gha_language: Python

gha_license_id: MIT

license_type: permissive

repo_name: philvarner/cville-indexer


text:
# Enforce committing yarn.lock when changing dependencies
This executable is meant to be executed as a git pre-commit hook for [npm](https://www.npmjs.com/) projects using [yarn](https://yarnpkg.com/en/).

Whenever changes are made to one of `package.json`'s `dependency` properties, if no change is staged in `yarn.lock` as well, this program emits an error message.
### Usage

To use a commit hook, add an execution `check-yarn-lock` to your repository's [pre-commit hook](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks).
This can be made easier using [`husky`](https://github.com/typicode/husky).

repository: ganimomer/check-yarn-lock

branch_name: refs/heads/master

repo_name: ganimomer/check-yarn-lock


text:
# ofxPerceptionNeuron
Addon for Perception Neuron motion capture system https://neuronmocap.com/

### Tested Environment
- Currently supports only OSX
- oF 0.9.3 64bit + OSX
 - Unfortunately, `NeuronDataReader.dylib` is built with 64bit only.

### Installation
- copy `NeuronDataReader.dylib` to `/usr/local/lib`
 - Unfortunately, the path seems to be hard-coded.

repository: hanasaan/ofxPerceptionNeuron

repo_name: hanasaan/ofxPerceptionNeuron


text:
# extract

* `Extraction` sets up and manages the state of an extraction and caontains helpers methods for emitting data.
* `Extractors` manages available extractors and matches a URL against their registered regexes.

## Developing extractors

Setup the development environment:

1. `cd packages/chrome-ext` and run `npm run build` to build the extension
1. Install the chrome extension in `packages/chrome-ext` as an [unpacked extension](https://developer.chrome.com/extensions/getstarted#unpacked)
1. `cd packages/extract` and run `npm run watch`.

Create an extractor:

1. Create a file for the extractor in `src/extractors`.
    * For websites that have both a tree and records the convention is to name the parser
    `${sitename}-person.js` for the tree and `${sitename}-record.js` for the records.
    * We recommend beginning a new extractor by copying an existing extractor, such
    as `billiongraves`, to get the correct setup and layout.
1. Add the extractor to `Extractors.js`
1. Reload the chrome extension
1. Develop and test

You do not have to reload the chrome extension everytime an extractor is changed.
You only have to reload when `Emit`, `Extraction`, or `Extractors` are changed.
Note that source maps are included, so look carefully at the stack traces in errors
to pick the original and not the bundled line number.

### Testing

Tests are run live via [puppetteer](https://github.com/GoogleChrome/puppeteer).
Output of the extracts can be recorded by running `npm run test:record`. The output
is saved and later copmared in subsequent test runs when recording is not enabled.

`GENXTRACT_USERNAME` and `GENXTRACT_PASSWORD` are required env vars for testing
extractors that require an authenticated session with the site.

repository: genxtract/genxtract

gha_language: JavaScript

repo_name: genxtract/genxtract


text:
# antd-styled

> AntdD + styled system. Extended antd components with additional style properties

[![NPM](https://img.shields.io/npm/v/antd-styled.svg)](https://www.npmjs.com/package/antd-styled) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save antd-styled
```

## Usage

```jsx
import React, { Component } from 'react'

import MyComponent from 'antd-styled'
import 'antd-styled/dist/index.css'

class Example extends Component {
  render() {
    return <MyComponent />
  }
}
```

## StoryBook
https://bllago.github.io/antd-styled/

## Deploy Storybook changes to GitPages
Switch to root directory, then push changes and deploy it to GitPages:
```bash
git add . && git commit -m 'Commit message...' && git push && npm publish && npm run deploy-storybook
```

## Playground
Switch to root directory and run project:
```bash
npm start
```

Then switch to playground directory "example" and run project:
```bash
npm start
```

Then switch back to root directory and run storybook :
```bash
npm run storybook
```

## License

MIT © [alexpassss](https://github.com/alexpassss)

repository: bllago/antd-styled

repo_name: bllago/antd-styled


text:
# Contributing to 10up Code Reviews

If you're contributing to this repository, you likely a) already work for 10up or b) appreciate what we're doing and want to leverage this in your own workflow (btw, [we're hiring](http://10up.com/careers/)). Either way, welcome!

To get started, install the dev dependencies for this project via Composer:

```bash
$ composer install
```

Wow, that was easy! From here, start creating new rulesets based on the [PHP_CodeSniffer annotated ruleset.xml](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml).

## Guidelines

1. All new standards should be prefixed with "10up" (or your company/team name, if you've forked this repository). This is to make it clear that they're for internal use, not for the general population to check all of their code against (they should be using the [WordPress Coding Standards](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards) for that).
2. Please follow the conventions of the repository: new standards should go in `<10up-My-New-Standard>/ruleset.xml`, where the standard's directory matches the `name` attribute on the `<ruleset />` node and is title-cased. Also, don't forget to add your new standard to the README file!
3. Please start new rulesets by loading the 10up-Base standard, as that standard starts with WordPress-Extra but adds in a series of `<exclude-pattern />` nodes (based on the [10up Engineering Best Practices](https://10up.github.io/Engineering-Best-Practices/structure/)) and handling for some common PHP_CodeSniffer internal warnings.


text:
# ifetch
Ifetch is the same as the `fetch` browser API but also it has the feature to intercept request and response.

```typescript
import ifetch from 'ifetch'

ifetch.interceptor.register({
  id: "ID for this interceptors",
  phases: {
    request:(input: RequestInfo, init?: RequestInit) {
      return {input, init}
    }
  }
})
```


text:
---
layout: post
title: PostgreSQL - Notes
date: 2019-04-13 10:35:22 +0300
access: public
comments: true
categories: [postgresql]
---

<!-- more -->

* TOC
{:toc}
<hr>

session vs. connection
----------------------

> <https://stackoverflow.com/a/46323144/3632318>
>
> a session is "synonymous with a TCP connection"

custom configuration
--------------------

add custom configuration in _postgresql.conf_ and _pg_hba.conf_ files:

> <https://www.endpoint.com/blog/2010/09/27/postgres-configuration-best-practices>
>
> Put all important variables at the bottom, sans comments, one per line

> <https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server#Important_notes_about_configuration_files>
>
> If the same setting is listed multiple times, the last one wins.

or else it's possible to include custom configuration from a separate file but
this works for _postgresql.conf_ only:

> <https://www.postgresql.org/docs/current/config-setting.html>
>
> PostgreSQL provides several features for breaking down complex postgresql.conf
> files into sub-files.
>
> postgresql.conf file can contain `include` directives, which specify another
> file to read and process as if it were inserted into the configuration file at
> this point.

gha_language: CSS

gha_license_id: NOASSERTION


text:
# easyAXE-php
A simple class for making calls to AXE's RPC API using PHP.

## Getting Started:
1. Include easyaxe.php into your PHP script:

	`require_once('easyaxe.php');`
2. Initialize AXE connection/object:

	`$axe = new \axerunners\easyAXE('username','password');`

	Optionally, you can specify a host, port. Default is HTTP on localhost port 9337.

	`$axe = new \axerunners\easyAXE('username','password','localhost','9337');`

	If you wish to make an SSL connection you can set an optional CA certificate or leave blank
	`$axe->setSSL('/full/path/to/mycertificate.cert');`

3. Make calls to axed as methods for your object. Examples:

	`$axe->getinfo();`
	`$axe->getrawtransaction('0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098',1);`
	`$axe->getblock('000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f');`
	`$axe->mnbudget('show');`

## Additional Info:
* When a call fails for any reason, it will return false and put the error message in $axe->error

* The HTTP status code can be found in $axe->status and will either be a valid HTTP status code or will be 0 if cURL was unable to connect.

* The full response (not usually needed) is stored in $axe->response while the raw JSON is stored in $axe->raw_response

## Contribution Info

This is forked from EasyBitcoin-PHP by Andrew LeCody (https://github.com/aceat64/EasyBitcoin-PHP). Original code is licensed under MIT.

repository: maxmelorj/easyAXE-php

repo_name: maxmelorj/easyAXE-php


text:
# BeaconMan

[![Version](http://cocoapod-badges.herokuapp.com/v/BeaconMan/badge.png)](http://cocoadocs.org/docsets/BeaconMan)
[![Platform](http://cocoapod-badges.herokuapp.com/p/BeaconMan/badge.png)](http://cocoadocs.org/docsets/BeaconMan)

## Installation

BeaconMan is available through [CocoaPods](http://cocoapods.org), to install
it simply add the following line to your Podfile:

    pod "BeaconMan"

## Usage

To run the example project; clone the repo, and run `pod install` from the Project directory first.

## Sample

```objective-c
// register for a beacon region
CLBeaconRegion *region = [[CLBeaconRegion alloc] initWithProximityUUID:uuid identifier:@"TestBeacon"];
[[BCMBeaconManager defaultManager] registerRegion:region enter:^{...} exit:^{...}];

// listen for beacon when it becomes very close and repeat the event every 15 seconds
[[BCMBeaconManager defaultManager] notifyRegionImmediate:region
                                                  repeat:YES
                                                interval:15
                                              usingBlock:^(CLBeacon *beacon) {
                                                  ...
                                              }];
```

## Author

Sean Ho<EMAIL_ADDRESS>
## License

BeaconMan is available under the MIT license. See the LICENSE file for more info.

repository: Prarik/BeaconMan

repo_name: Prarik/BeaconMan


text:
# `@quilted/useful-types`

A collection of useful TypeScript types.

## Installation

```bash
# npm
npm install @quilted/useful-types --save-dev
# pnpm
pnpm install @quilted/useful-types --save-dev
# yarn
yarn add @quilted/useful-types --dev
```

## Usage

Please refer to the inline documentation for explanations of how to use each helper type provided by this module.

repository: lemonmade/quilt

branch_name: refs/heads/main

gha_language: TypeScript

repo_name: lemonmade/quilt


text:
# IOServerMonitor

![Logo](https://www.interordi.com/images/plugins/ioservermonitor-96.png)

Monitor the status of a Minecraft server by saving it every minute in a MySQL table named `stats_io_servers`. In a Bungee environment, each server can be identified with a different name to get a quick view of the status of your network. The data can then be displayed in a frontend of your choice (not included).

The data stored is similar to that of a server query, which includes the following:
* Number of players online
* Max amount of players allowed
* List of online players
* List of plugins installed

To this are added:
* Current TPS (Ticks Per Second)
* Time of last server start
* Time of the last check

This is designed to let server admins see the status of their network at a glance. If the last check time isn't updating anymore, it can be a useful clue to warn someone that either a server is offline, or it crashed!

Saving this information to a database lets you use multiple clients to check on the results without bogging down the servers themselves with constant queries.

## Installation

1. Download the plugin and place it in your plugins/ directory.
2. Start and stop the server to generate the configuration file.
3. Edit config.yml with your MySQL database information and a unique server ID (string).
4. Start your server. After a minute, the MySQL table will start getting results.

## Configuration

`database.host`: Database host
`database.port`: Database port
`database.base`: Database name
`database.username`: Database username
`database.password`: Database password
`server-id`: A unique ID for this server

## Commands

None

## Permissions

None

repository: Doctacosa/IOServerMonitor

repo_name: Doctacosa/IOServerMonitor


text:
This page is deprecated. It's contents have been moved to [Mozilla Developer Network](https://developer.mozilla.org/en-US/)

# Array.prototype.includes

[MDN documentation is already available](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes) for this feature.


text:
Smart Home
---

This repo contains various components of a smart home platform, ranging from the server and the
management website to open-hardware schematics and firmware. It started as a school project but
hopefully I will have time to extend it in the future.

### Documentation

Currently only this document exists until the platform actually becomes useful.

### Architecture

The platform is managed by the server (`smart-home-server`) which communicates with a variety of smart
devices using MQTT. It also provides a REST API for websites and apps. There is no authentication
currently, both for devices and for users but it is planned.

Each smart device provides some services:

* **Actuators**: Devices that can act, like lamps, LEDs, relays, etc. Each actuator can have many states.
* **Sensors**: Devices that measure a physical quantity such as temperature, air quality, etc.
* **Controllers**: Devices that contain buttons and other input methods and can be used to control other
devices.

### Server

Inside the `smart-home-server` directory resides the server, written using Spark Java and Eclipse
Poho. For now it handles the registration of devices, publishing actuator events and collecting measurements
but it only keeps the latest one.

To run you also need an MQTT broker, in the example below I locally run
[Mosquitto](https://github.com/eclipse/mosquitto):

```sh
cd smart-home-server

mosquito &&
./gradlew run
```

repository: thgeorgiou/smart-home

repo_name: thgeorgiou/smart-home


text:
# PyHiero

![PyHiero Screenshot](http://i.imgur.com/SmwVe.png)

PyHiero is a pure python bitmap font engine that can parse bitmap font files as generated by [Hiero](http://slick.cokeandcode.com/demos/hiero.jnlp) from the [SlicK](http://slick.cokeandcode.com/) game engine.

Although library-independent, it includes a rendering engine for [pygame](http://www.pygame.org/) that is compatible with its [pygame.font.Font](http://www.pygame.org/docs/ref/font.html#pygame.font.Font) class in that it can be used in advanced text rendering libraries such as [Glyph](http://code.google.com/p/glyph/) for extra awesomeness.

## Dependencies
* Python (tested with 2.7, should also work with 3.x)
* pygame (only if you want to use the PyGameHieroFont class)

## Getting Started
Check out the demo.py in the root directory.

## License
PyHiero is licensed under the [MIT License](http://opensource.org/licenses/mit-license.php).

repository: sseemayer/PyHiero

repo_name: sseemayer/PyHiero


text:
# Statistics Client Library

For information about how to install and use the Statistics Client Library, visit the [PureEngage Cloud Developer Center](https://developer.genesyscloud.com/client-libraries/statistics).

gha_language: Java


text:
# Results from the memory experiments

## Used Datasets

All datasets were generated using the [`generateData.sh`-script](../scripts/generateData.sh).
We use four different data setups to compare memory overhead of our framework.
We compare the memory usage of the example application, the same data loaded into memory as one string or within Relations.

See pull request [#113](https://github.com/CodeLionX/actordb/pull/113) for details, how the memory was measured.

- Dataset `data_010_mb`

  Overview about the number of dactors and relations in this dataset:

  |              | #dactors | #relations / dactor | #relations | disk size |
  |:-------------|---------:|--------------------:|-----------:|----------:|
  | Cart         |      573 |                   2 |       1146 |           |
  | Customer     |       62 |                   3 |        186 |           |
  | GroupManager |        6 |                   1 |          6 |           |
  | StoreSection |      188 |                   2 |        376 |           |
  | **Summary**  |      829 |                     |       1714 |      10 M |

- Dataset `data_025_mb`

  Overview about the number of dactors and relations in this dataset:

  |              | #dactors | #relations / dactor | #relations | disk size |
  |:-------------|---------:|--------------------:|-----------:|----------:|
  | Cart         |     2221 |                   2 |       4442 |           |
  | Customer     |      100 |                   3 |        300 |           |
  | GroupManager |        6 |                   1 |          6 |           |
  | StoreSection |      251 |                   2 |        502 |           |
  | **Summary**  |     2578 |                     |       5250 |      25 M |

- Dataset `data_050_mb`

  Overview about the number of dactors and relations in this dataset:

  |              | #dactors | #relations / dactor | #relations | disk size |
  |:-------------|---------:|--------------------:|-----------:|----------:|
  | Cart         |     3661 |                   2 |       7322 |           |
  | Customer     |      200 |                   3 |        600 |           |
  | GroupManager |       11 |                   1 |         11 |           |
  | StoreSection |      501 |                   2 |       1002 |           |
  | **Summary**  |     4373 |                     |       8935 |      50 M |

- Dataset `data_100_mb`

  Overview about the number of dactors and relations in this dataset:

  |              | #dactors | #relations / dactor | #relations | disk size |
  |:-------------|---------:|--------------------:|-----------:|----------:|
  | Cart         |     7322 |                   2 |      14644 |           |
  | Customer     |      400 |                   3 |       1200 |           |
  | GroupManager |       22 |                   1 |         22 |           |
  | StoreSection |     1002 |                   2 |       2004 |           |
  | **Summary**  |     8746 |                     |      17870 |     100 M |

## Results

### Single string in memory

We measured the retained size of the one `StringHolder`-instance in a heap dump after GC.

| Dataset       | retained size | rounded size |
|:--------------|--------------:|-------------:|
| `data_010_mb` |    11315812 B |      10.8 MB |
| `data_025_mb` |    18637898 B |      17.8 MB |
| `data_050_mb` |    49246330 B |      47.0 MB |
| `data_100_mb` |    98492584 B |      93.9 MB |

### Relations in memory

We measured the retained size of all `RowRelation`-instances in a heap dump after GC.
The number of `RowRelation`-instances corresponds with the number of relations (_#relations_).

| Dataset       | #relations | retained size | rounded size |
|:--------------|-----------:|--------------:|-------------:|
| `data_010_mb` |       1714 |    29478612 B |      28.1 MB |
| `data_025_mb` |       5250 |    45091303 B |      43.0 MB |
| `data_050_mb` |       8935 |   121942297 B |     116.3 MB |
| `data_100_mb` |      17870 |   243884594 B |     232.6 MB |

### Full framework with dactors

We measured the retained sizes of all instances of `Cart`-, `Customer`-, `GroupManager`- and `StoreSection`-Dactors in a heap dump after GC.
In the table below we report the summarized sizes of all dactor instances.

| Dataset       | #dactors  | #relations | retained size | rounded size |
|:--------------|----------:|-----------:|--------------:|-------------:|
| `data_010_mb` |       829 |       1714 |    29914591 B |      28.5 MB |
| `data_025_mb` |      2578 |       5250 |    46481385 B |      44.3 MB |
| `data_050_mb` |      4373 |       8935 |   124267240 B |     118.5 MB |
| `data_100_mb` |      8746 |      17870 |   248553124 B |     237.0 MB |

repository: kiminh/actordb

repo_name: kiminh/actordb


text:
![Mongo Seeding](https://raw.githubusercontent.com/pkosiec/mongo-seeding/master/docs/assets/logo.png)

# Samples
This directory contains sample data for Mongo Seeding solutions.

**Note**: Work in progress!

## Directory structure
- **`example`** directory contains example data for all Mongo Seeding solutions
- **`example-ts`** directory contains TypeScript sample data, that is compatible with Mongo Seeding CLI, Mongo Seeding Docker image and custom TypeScript apps written with Mongo Seeding library.

## Import sample data
The following example assumes that the MongoDB is running on `mongodb://<IP_ADDRESS>:27017` and the selected database is named `testing`.

1. Clone this repository.
1. Run your MongoDB instance.
1. Use your selected solution to import the data:
- **JS Library**: Write a custom JavaScript application with and include this snippet:
    ```javascript
    const config = {
      database: {
        name: 'testing',
      },
      replaceIdWithUnderscoreId: false,
      inputPath: path.resolve('path/to/example/data'),
      dropDatabase: true,
    };

    seedDatabase(config).then(() => {
      console.log("Success")
    }).catch(err => {
      console.log("Error", err)
    });
    ```

    Replace `path/to/example/data` with the path to `samples/example/data` in this cloned repository.

     To see the full description of the JS library usage, read the **[Readme](../core/README.md)** file of the Mongo Seeding.

- **CLI:** Run the following command:

    ```bash
    cd ./example/data/
    seed --drop-database --replace-id --db-name testing
    ```

    To see the full description of the CLI usage, read the **[Readme](../cli/README.md)** file of the Mongo Seeding CLI.

    To read more how to run the Docker image with all configuration parameters, read the **[Readme](../docker-image/README.md)** file of the Mongo Seeding Docker image.

repository: tuwizard/mongo-seeding

repo_name: tuwizard/mongo-seeding


text:
# Bienvenue à la Boulangerie Pierre (Welcome to Pierre's Bakery)

#### By Alex Dominguez
## Description:
A bakery program that a user can decide how pieces of loaves/pastry they want.
Program also in Spanish and French soon!
Conditions:
      Bread: Buy 2, get 1 free (every 3rd loaf of bread is free.). A single loaf costs $5, two loaves costs $10, and three loaves cost $10.
     Pastry: Buy 1 for $2 or 3 for $5. Four pastries costs $7, five pastries costs $9, and six pastries costs $10.

## Technologies Used :
* _NuGet Package Manager_
* _.Net 5_
* _REPL_

## Setup/Installation Requirements :

* _Clone github repo: https://github.com/dominguezsantal/PierresBakery.git_
* _Navigate the directory: (cd top name directory)_
* _Open in Vs code: code ._
* _Navigate to the ProjectName.Tests within the terminal: cd Bakery.Tests_
* _Run: dotnet restore_
* _The line above will create your obj directories._

## Tests:
Test Number | Failed/Passed | Details |
--- | --- | --- |
1a | Failed on purpose | Test for the cost of 1 loaf of bread. The loaf price was changed to $11, but it's supposed to be  5|
1b | Passed | Test restored to $5|
2a | Failed | Test for the cost of 3 loaf of bread. The loaf price was changed to $25, but it's supposed to be 10|
2b | Passed | Test restored to $10|
3a | Failed | Test for the cost of 5 loaf of bread. The loaf price was changed to $200, but it's supposed to be 20|
3b | Passed | Test restored to 20|
4a | Failed | Test for the cost of 1 pastry. I made the pastry free for 1 pastry, but for the first pastry it's supposed to be $2-only free for the third pastry if they buy 2 pastries!|
4b | Passed| Test restored to $2|
5a| Failed | Test 5a Fail: make 3 pastries for $100 instad of $5.Quite pricy for an error!|
5b| Passed | Test restored to $5|
6a| Failed | pastry logic by adding regQuant in order for succesful fail|
6b|Passed| Pastry test Restored to updatedQuant|
7a|Passed| Return Menu or X works|
## License :
MIT © 2021 _Alex Dominguez_

repository: rediarisa/PierresBakery

repo_name: rediarisa/PierresBakery


text:
### [CVE-2019-6132](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-6132)
![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen)

### Description

An issue was discovered in Bento4 v1.5.1-627. There is a memory leak in AP4_DescriptorFactory::CreateDescriptorFromStream in Core/Ap4DescriptorFactory.cpp when called from the AP4_EsdsAtom class in Core/Ap4EsdsAtom.cpp, as demonstrated by mp42aac.

### POC

#### Reference
- https://github.com/axiomatic-systems/Bento4/issues/357

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

repository: trickest/cve

gha_language: HTML

repo_name: trickest/cve


text:
---
layout: post
title:      " It's CLI way or the highway...a ruby gem among the rough!!!"
date:       2019-10-08 16:35:36 -0400
permalink:  its_cli_way_or_the_highway_a_ruby_gem_among_the_rough
---

 I began this journey with very little idea to what a Ruby gem was let alone how to create one.  In the following paragraphs I will describe to you in beautful detail how I rounded that corner and polished that Gem.
 https://upload.wikimedia.org/wikipedia/commons/7/73/Ruby_logo.svg

 First, using bundler in the terminal, I created a scaffold directory using the command `bundle gem portlandhike`. The scaffold directory provided by bundler created all the files and directories I needed to get started.

Gemfile: specifies the source for all of my gem dependencies

Rakefile: Requires Bundler and adds the build, install and release

CODE_OF_CONDUCT.md: How you expect contributors to act, but not totally necessary.

LICENSE.txt: Includes the MIT license, which is typical of student developers

.gitignore:  This ignores anything in the pkg directory and anything with a .gem extension and the .bundle directory.

portlandhike.gemspec: This is the Gem Specification file where we provide information such as the name, and description.  Also this is where we specify the dependencies our gem needs to run.  Below are the two gems I needed to add dependencies for.

for parsing the text in the website: ` spec.add_dependency "nokogiri"`
for opening up a the website: `spec.add_dependency 'cli-ui', '~> 1.3'`

lib/portlandhike.rb: This is the main file to define our gem’s code. This is the file that will be required by Bundler when our gem is loaded. This file defines a module which we can use as a namespace for all our gem’s code. The module this created for me looked like:
`module Portlandhike
  class Error < StandardError; end
  **# Your code goes here...**
end
`

lib/portlandhike: This folder contains all the code for our gem. The lib/portlandhike.rb file is there for setting up our gem’s environment, and other .rb files go in here as well.  My gems environment ended up looking lik:
`require 'nokogiri'
require 'open-uri'
require "portlandhike/version"
require "portlandhike/scraper"
require "portlandhike/hike"
require "portlandhike/CLI"`

lib/portlandhike/version.rb: Defines a Portlandhike module and in it, a VERSION constant. This file is loaded by the portlandhike.gemspec to specify a version for the gem specification. If I release a new version of the gem I would have to increment the version number.
```
module Portlandhike
  VERSION = "0.1.0"
end

```

And so on, and so on, I then created a the CLI class and defined a instance def of run to start everthing up. Additionally, I needed to create an executable file in the bin folder and change access chmod +x so it could be excecuted.   I created two additional classes Hike and Scraper that worked scrape the site and intstantiate objects from the information scraped.

This gem scrapes information from https://www.oregonhikers.org/ and provides details and descriptions about different hikes chosen from different areas around Portland.

extension: markdown


text:
# Rationale

We love the `:telemetry` ecosystem and everything it has to offer for instrumentation
of our applications! We also love Prometheus, but wiring up handlers is time
consuming and we couldn't find an existing Prometheus library that met our needs and
offered the `:telemetry` + `Telemetry.Metrics` integration that we wanted.

This project aims to fit a very specific need: reporting of `:telemetry` events in
Prometheus format via `Telemetery.Metrics` definitions. There is no aim to create
a full Prometheus client library.

We think this package provides the best way to collect metrics in Elixir for Prometheus,
but if your needs are different, other existing works may be a better fit. Check out the
BEAM OpenCensus project, especially if you need a solution for Erlang.

## Why include a server?

  1. It requires no modifications to your existing web server (assuming your
  app even has one!). It's much simpler to run a separate server versus
  adding a route and wiring up your scrape.
  2. Security. You don't have to lock down a route. You can keep the port
  the reporter is running on from being exposed to the outside world
  very simply with your infra configuration.
  3. Do you even web server, bruh? Maybe you're using Nerves! Maybe you want
  to instrument a background task. Whatever the case may be, we aim to make
  it easy to scrape via the included web server or push scrapes to a destination.


text:
# Saika <PkgVersion name="saika" />

To represent **technical** markdown content with elegant UI.

## What is Saika

Saika is basically a JavaScript file that fetches Markdown files and renders them as a single-page application.

It's totally runtime-driven so there's no server-side components involved which also means there's no build process.

## How does it work

We fetch and render corresponding markdown file for the `route` you visit:

```
/         => /README.md
/bar      => /bar.md
/bar/     => /bar/README.md
/bar/foo  => /bar/foo.md
```

Which mean is when you visit your site as `my-site.com/#/bar`, then will fetch `my-site.com/bar.md` and render `bar.md`'s content.

## Quick Start

Let say you have following files in `./my-site` folder:

```
.
├── README.md
└── index.html
```

The `index.html` looks like:

```html {highlight: ['6-9', '12-18']}
<!DOCTYPE html>
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>My Site</title>
  <link
    rel="stylesheet"
    href="https://cdn.jsdelivr.net/npm/saika/dist/saika.css"
  />
</head>
<body>
  <div id="saika"></div>
  <script src="https://cdn.jsdelivr.net/npm/saika"></script>
  <script>
    new Saika({
      target: '#saika'
    })
  </script>
</body>
```

Then you can serve this folder as a static website on your machine using:

- Node.js:
  - `npm i -g serve && serve .`
  - `npm i -g http-server && hs`
- Python: `python -m SimpleHTTPServer`
- Golang: `caddy`
- ...or whatever static web server

Next, you may want to use [options](/reference/options) or other theme(like [theme docs](/theme/docs)) to customise the website.

## Browser Compatibility

Saika supports all ever-green browsers, i.e. No IE support!

repository: jshmllr/saika

repo_name: jshmllr/saika


text:
# Minimum Spanning Tree

Given a graph with weighted edges, find the mininum spanning tree.

> A minimum spanning tree (MST) or minimum weight spanning tree is a subset of the edges of a connected, edge-weighted undirected graph that connects all the vertices together, without any cycles and with the minimum possible total edge weight

A minimum spanning tree connects all the nodes in the least weight/cost as possible.

## Kruskal's Algorithm

Utilizes distjoint sets.

Key idea:
1. sort all edges with smallest weight first
2. for each edge if the source and destination are not in the same distjoint set then we have not seen that vertex yet
3. merge them and add the edge into the mst
4. else we have already see the vertex and got there with a cheaper edge, do nothing
5. return mst

```python
def kruskals(nodes, edges):
    mst = []
    distjoint_set = DistjointSet()
    djs_index_map = distjoint_set.make_set(nodes, return_mapping=True)  # DistjointSetNode.data now points to a Vertex.
    edges.sort(key=lambda e:e.weight)  # Sort edges by weight, min is first.
    for edge in edges:
        src = edge.origin
        dst = edge.destination
        if distjoint_set.find_compressed(djs_index_map[src]) != distjoint_set.find_compressed(djs_index_map[dst]):
            # These two vertices are not connected yet, we found the min edge that connects them.
            # Merge in disjoint set.
            distjoint_set.union_by_size(djs_index_map[src], djs_index_map[dst])
            # Add to mst.
            mst.append(edge)
    return mst
```
The complexity of Kruskals is `O(E * log E)`.

We iterate through all edges which is `O(E)`.
We need to join `V` nodes so we need to do operations to check if we should join and join at most `2E` times.
For each check we do
1. Do the source and destination have the same disjoint set? This is 2 `.find()` calls
2. `.union()` if needed.

So for each edge we do 3 disjoint set calls which would be `3 * (ia(V))` so in the edge loop we do `O(E * 3 * (ia(V)))` which is bounded by `O(E)`.

However we sort it first which is `O(E log E)` which bounds our complexity.

## Prim's Algorithm

TODO: This.

repository: atgoud/technical-interviews

repo_name: atgoud/technical-interviews


text:
# Streaming Video with RTSP and RTP

A java program that implement real-time streaming protocol to provide clients video streaming from server.

First, clone the program from this repository
Then, to set up the program, execute the following commands:
```
cd a-small-video-streaming-program\src
javac Client.java
javac Server.java
javac RTPpacket.java
javac VideoStream.java
```
Now we have the program ready, to run it on the server side:
```
java Server 25000
```
On the client side:
```
java Client [Server-IP] 25000 [movie-file-name]
```

To test the program locally, do the following commands with 2 terminal windows, one for the server and the other for the client
```
java Server 25000
java Client <IP_ADDRESS> 25000 [movie-file-name]
```


text:
---
layout: blog_post
title: Tracking Meteor CPU Usage with Kadira
permalink: /blog/tracking-cpu-usage-with-kadira
---

You might have seen the [EventLoop Utilization](http://support.kadira.io/knowledgebase/articles/372876-event-loop-utilization) chart in our Dashboard. But, it was not correctly working across different hosting platforms. Actually, that value does not reflect any meaning in some situations.

![CPU Usage tracking with Kadira](https://i.cloudup.com/eisfJAuiJW.gif)

So, we've replaced EventLoop Utilization with [CPU Usage](http://support.kadira.io/knowledgebase/articles/378890-cpu-usage). It's the actual percentage of CPU spent on your app. Still, you need to be [careful](http://support.kadira.io/knowledgebase/articles/378890-cpu-usage) with analyzing CPU Usage because, some hosting providers have implemented CPU restrictions. But you can see the correct CPU Usage of your app.

> Please upgrade [kadira](https://atmospherejs.com/package/kadira) smart package in order to track CPU Usage. Apply following code:
>
> `mrt update`

## How do we track CPU Usage?

There is no direct API to track CPU usage of your app within your app. But, we are using [usage](https://github.com/arunoda/node-usage) npm module for that. In Linux and Solaris, it uses the **/proc** filesystem to read the CPU usage. So, it is very efficient.

Have a good time with improving your application.


text:
# Discord Weather Bot

A discord bot that helps report on the weather

### Basic usage

Download docker & docker-compose

1. Clone this repo
2. Copy the .env file

```bash
cp .env-example .env
```

3. Add your secret data to the .env file
4. Start the app

```bash
docker-compose up
```

repository: bozdoz/discord-weather-bot

repo_name: bozdoz/discord-weather-bot


text:
# PDFServer
A HTTP / HTTPS server which can fill form fields of a PDF file, written in NodeJS

Installation
===============
First of all you have to install my ![FDF module for NodeJS](https://github.com/agrippa1994/nodejs-fdf). After that you can configure the server via the file "config.json".

How can a PDF be filled?
==========================
Create a POST request to the PDF server with following content
```
{
  "input": "file.pdf",
  "fills": {
    "name_of_field": "Value of field"
  }
}
```

If this POST request succeed, the response status code will be 200 and the response's body will contain the relative path to the stored PDF file. This can be easily downloaded with a HTTP / HTTPS GET request. Otherwise, if the status code isn't 200, an error message will be contained in the response's body.

Example
-----------
The client sends a POST request to the PDF server with a JSON encoded body which contains all information for filling the PDF file. The server fills the PDF file and the server will send a body like this: "klgkuldjswgqngur.pdf". You can access this PDF file with a GET request.

```
-- request --
POST http://localhost:8002/
Content-Type: application/json
{
  "input": "file.pdf",
  "fills": {
    "field": "Value of the field"
  }
}
 -- response --
200 OK
Access-Control-Allow-Origin:  *
Date:  Fri, 13 Feb 2015 17:06:35 GMT
Connection:  keep-alive
Transfer-Encoding:  chunked

klgkuldjswgqngur.pdf
```

The server has created the PDF successfully. Now, we can download it in a very convenient way.

```
-- request --
GET http://localhost:8002/klgkuldjswgqngur.pdf

 -- response --
200 OK
Content-Type:  application/pdf
Access-Control-Allow-Origin:  *
Date:  Fri, 13 Feb 2015 17:07:10 GMT
Connection:  keep-alive
Transfer-Encoding:  chunked

%PDF-1.6
....
```

HTML and JavaScript example using jQuery
----------------------------------------
```
<p>Name</p><input id="name"></br>
<p>Address</p><input id="address"></br>
<button id="onOK">button</button>

<script type="text/javascript">
	// The host and protocol for the PDF server must be adjusted!
	function loadPDF(url, postData) {
		jQuery.post(
			url,
			postData,
			function(data) {
				window.open("http://localhost:8002/" + data);
			}
		);
	}

	$("#onOK").click(function() {
		loadPDF("http://localhost:8002/",
			JSON.stringify(
				{
					input: "file.pdf",
					fills:
					{
						name: $("#name").val(),
						address: $("#address").val()
					}
				}
			)
		);
	});

</script>
```


text:
# Sublime Text URL handler

A URL handler for **Sublime Text 3** on Mac OSX.

Implements a Sublime Text variant of the [TextMate URL scheme](http://blog.macromates.com/2007/the-textmate-url-scheme/).

Made using JavaScript for Automation.  Originally written for Mac OS Sierra 10.12.6, and still works with Big Sur (11.2) and Catalina (10.15) as of February 2021.

## Installation

- Download the current release: [SublimeUrl-1.0.zip](https://github.com/inopinatus/sublime_url/releases/download/v1.0/SublimeUrl-v1.0.zip)
- Extract SublimeUrl.app and place in your user **Applications** directory.
- Run once to register the handler.

## Uninstallation

Just delete the app.

## How to use

Have your debugging tool/exception handling produce URLs in the following format:
`subl://open?url=file://{{file}}&line={{line}}&column={{column}}`

Examples:
- `subl://open?url=file:///path/to/file.js&line=19&column=4`
- `subl://open?url=file:///path/to/other.css&line=127`

`url` is required and the file must exist or an error is given.  SublimeUrl expects to find Sublime Text in `/Applications/Sublime Text.app`.

## Sublime Text and Ruby on Rails errors

This add-on was developed specifically for use with the [Better Errors](https://github.com/charliesome/better_errors) gem although it should work with anything that follows the specified URL format.  See the [Better Errors Wiki](https://github.com/charliesome/better_errors/wiki) for more information.

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/inopinatus/sublime_url. The `.scpt` files can be edited with the standard Script Editor.  Please ensure that the `src/` directory contains the decompiled text of each script.  Two utilities are provided for your convenience:

##### `bin/install-git-hooks.sh`

This will install a pre-commit git hook that checks `src/` texts for binary consistency and for whitespace errors.

##### `bin/decompile.sh`

This will update the contents of `src/` by decompiling the contents of the `.scpt` files.

## History

#### Version 1.0
This project was written from scratch as a drop-in replacement for the *Subl* handler by [Dave Houlbrooke](https://github.com/dhoulb) which has since been retired.

## License

This code is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).


text:
GDBIGtools: A command line tools for GDBIG varaints browser
===========================================================

[![PyPI Version](https://img.shields.io/pypi/v/GDBIGtools.svg)](https://pypi.org/project/GDBIGtools/)
[![License](https://img.shields.io/pypi/l/GDBIGtools.svg)](https://github.com/BIGCS-Lab/GDBIGtools/blob/master/LICENSE)

Introduction
------------

Born in Guangzhou Cohort Study Genome Research Database is based on thousands of trios families recruited by the BIGCS Project to conduct whole-genome-sequencing, genome variation detection, annotation and analysis.Phase I included 332 parent-child trios’ families, 1392 mother-child sample pairs, 14 father-child sample pairs, and 70 unrelated children, 150 adult females, and 25 adult males, for a total of 4053 individual samples.The GDBIG delivers periodical and useful variation information and scientific insights derived from the analysis of thousands of born in Guangzhou China sequencing data. The results aim to promote genetic research and precision medicine actions in China.The delivering information includes any of detected variants and the corresponding allele frequency, annotation, frequency comparison to the global populations from existing databases, etc.

The [Genome variation Database of BIGCS(GDBIG)](https://gdbig.bigcs.com.cn) is a large-scale Chinese genomics database produced by BIGCS and hosted in the Guangzhou Women and Children\' Medicine Center. The GDBIG delivers peridical and useful variation information and scientific insights derived from the analysis
of thousands of Chinese sequencing data. The results aim to promote genetic research and precision medicine actions in China.

The delivering information includes any of detected variants and the corresponding allele frequency, annotation, frequency comparison to the global populations from existing databases, etc.

**GDBIGtools** is a command line tool for this GDBIG variants browser.

Quick start
------------

GDBIG variant browser allows authorized access its data through an Genomics API and **GDBIGtools** is a convenient command line tools for this purpose.

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

Install the released version by `pip` (Only support Python3 since v1.0.1):

```bash
pip install GDBIGtools
```

Please enable your API access from Profile in [GDBIG browser](http://gdbig.bigcs.com.cn/api.html) before using **GDBIGtools**.

Help
------------
type `GDBIGtools -h/--help` for detail.
```
Usage: GDBIGtools [OPTIONS] COMMAND [ARGS]...

Options:
  -h, --help  Show this message and exit.

Commands:
  annotate   Annotate input VCF file with BIGCS allele Frequency.
  login      Login GDBIG.
  logout     Logout GDBIG.
  print-api  Display API information for GDBIG.
  query      Query variants from GDBIG database.
```

Login
------------

Login with `GDBIGtools` by using GDBIG API access key, which could be found from **<API ACCESS\>** if you have apply for it.

[![GDBIG_genomics_api](assets/figures/GDBIG_genomics_api.png)](assets/figures/GDBIG_genomics_api.png)

```bash
GDBIGtools login -k api-key -s api-secret-key
```

If everything goes smoothly, **means you can use GDBIG as one of your varaints database in command line mode**.

Logout
------------

Logout `GDBIGtools` by simply run the command below:

```bash
GDBIGtools logout
```

Query a single variant
------------

Variants could be retrieved from GDBIG by using `query`.

Run `GDBIGtools query -h/--help` to see all available options. There\'re
two different ways to retrive variants.

One is to use `-s` parameters for variants on command, the other way uses `-l` for input-file.

Here are examples for quering varaints on command.

```bash
GDBIGtools query -s rs117518546
GDBIGtools query -s 21:9662064
GDBIGtools query -s 22:10577666-10581518
GDBIGtools query -s ENST00000269305
GDBIGtools query -s MTHFR
```

and you will get something looks like below:

```bash
##fileformat=VCFv4.2
##FILTER=<ID=PASS,Description="All filters passed">
##INFO=<ID=GDBIG_AF,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0">
##INFO=<ID=GDBIG_AF_SouthChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in SouthChina region">
##INFO=<ID=GDBIG_AF_CentralChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in CentralChina region">
##INFO=<ID=GDBIG_AF_EastChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in EastChina region">
##INFO=<ID=GDBIG_AF_SouthwestChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in SouthwestChina region">
##INFO=<ID=GDBIG_AF_NortheastChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in NortheastChina region">
##INFO=<ID=GDBIG_AF_NorthwestChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in NorthwestChina region">
##INFO=<ID=GDBIG_AF_NorthChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in NorthChina region">
##reference=file:/human_reference/GRCh38/GCA_000001405.15_GRCh38_no_alt_analysis_set.fa
#CHROM  POS     ID      REF     ALT     QUAL    FILTER  INFO
chr22   10577666        rs1491296197    CAT     C       .       PASS    GDBIG_AF=0.000123;GDBIG_AF_SouthChina=0.000169;GDBIG_AF_CentralChina=0;GDBIG_AF_EastChina=0;GDBIG_AF_SouthwestChina=0;GDBIG_AF_NortheastChina=0;GDBIG_AF_NorthwestChina=0;GDBIG_AF_NorthChina=0
```

Quering for input-file.
------------

A list of variants could be retrieved from GDBIG by using the parameters of `-l` when apply by `query`.

```bash
GDBIGtools query -l positions.list > result.vcf
```

Format for [positions.list](tests/positions.list), could be a mixture of
- `rs ID`
- `ensembl transcript ID`
- `gene symbol` and `ensembl gene ID`
- `chrom   position` and `chrom    start   end`, even with or without `chr` in the chromosome ID column

```
#search key words
rs117518546
chr1:11795125
ENST00000269305
MTHFR

#CHROM	POS	[POS_END]
chr22	17662883
22	17669209    17669357
```

`result.vcf` is VCF format and looks like below:

```bash
##fileformat=VCFv4.2
##FILTER=<ID=PASS,Description="All filters passed">
##INFO=<ID=GDBIG_AF,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0">
##INFO=<ID=GDBIG_AF_SouthChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in SouthChina region">
##INFO=<ID=GDBIG_AF_CentralChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in CentralChina region">
##INFO=<ID=GDBIG_AF_EastChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in EastChina region">
##INFO=<ID=GDBIG_AF_SouthwestChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in SouthwestChina region">
##INFO=<ID=GDBIG_AF_NortheastChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in NortheastChina region">
##INFO=<ID=GDBIG_AF_NorthwestChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in NorthwestChina region">
##INFO=<ID=GDBIG_AF_NorthChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in NorthChina region">
##reference=file:/human_reference/GRCh38/GCA_000001405.15_GRCh38_no_alt_analysis_set.fa
#CHROM  POS     ID      REF     ALT     QUAL    FILTER  INFO
chr22   10577666        rs1491296197    CAT     C       .       PASS    GDBIG_AF=0.000123;GDBIG_AF_SouthChina=0.000169;GDBIG_AF_CentralChina=0;GDBIG_AF_EastChina=0;GDBIG_AF_SouthwestChina=0;GDBIG_AF_NortheastChina=0;GDBIG_AF_NorthwestChina=0;GDBIG_AF_NorthChina=0
chr22   10577851        .       TA      T       .       PASS    GDBIG_AF=0.000123;GDBIG_AF_SouthChina=0.000169;GDBIG_AF_CentralChina=0;GDBIG_AF_EastChina=0;GDBIG_AF_SouthwestChina=0;GDBIG_AF_NortheastChina=0;GDBIG_AF_NorthwestChina=0;GDBIG_AF_NorthChina=0
chr22   10580900        .       ATTC    A       .       PASS    GDBIG_AF=0.000369;GDBIG_AF_SouthChina=0.000506;GDBIG_AF_CentralChina=0;GDBIG_AF_EastChina=0;GDBIG_AF_SouthwestChina=0;GDBIG_AF_NortheastChina=0;GDBIG_AF_NorthwestChina=0;GDBIG_AF_NorthChina=0
chr22   10581005        rs1268262722    C       T       .       PASS    GDBIG_AF=0.000123;GDBIG_AF_SouthChina=0;GDBIG_AF_CentralChina=0;GDBIG_AF_EastChina=0;GDBIG_AF_SouthwestChina=0.003571;GDBIG_AF_NortheastChina=0;GDBIG_AF_NorthwestChina=0;GDBIG_AF_NorthChina=0
chr22   10581404        rs1283129074    G       A       .       PASS    GDBIG_AF=0.059975;GDBIG_AF_SouthChina=0.060162;GDBIG_AF_CentralChina=0.061151;GDBIG_AF_EastChina=0.057566;GDBIG_AF_SouthwestChina=0.028571;GDBIG_AF_NortheastChina=0.081395;GDBIG_AF_NorthwestChina=0.075342;GDBIG_AF_NorthChina=0.07377
chr22   10581518        rs1318646482    T       A       .       PASS    GDBIG_AF=0.000739;GDBIG_AF_SouthChina=0.001011;GDBIG_AF_CentralChina=0;GDBIG_AF_EastChina=0;GDBIG_AF_SouthwestChina=0;GDBIG_AF_NortheastChina=0;GDBIG_AF_NorthwestChina=0;GDBIG_AF_NorthChina=0
```

Actrually you can use `-s` and `-l` simultaneously if you like. And `positions.list` could just contain one single position.

```bash
GDBIGtools query -s 22:46616520 -l positions.list > result.vcf
```

Annotate your VCF files
------------

Annotate your VCF file with GDBIG by using `GDBIGtools annotate` command.

Download a list of example variants in VCF format from [GDBIG.test.vcf](tests/GDBIG.test.vcf).
To annotate this list of variants with allele frequences from GDBIG, you can just run the following command in Linux or Mac OS.

```bash
GDBIGtools annotate -i GDBIG.test.vcf > output.GDBIG.test.vcf
```

It\'ll take about 2 or 3 minutes to complete 2,000+ variants\' annotation.
Then you will get 8 new fields with the information of GDBIG in VCF INFO:

-   `GDBIG_AF`: Alternate Allele Frequencies in GDBIG;
-   `GDBIG_AF_SouthChina`: Alternate Allele Frequencies from GDBIG in SouthChina region;
-   `GDBIG_AF_CentralChina`: Alternate Allele Frequencies from GDBIG in CentralChina region;
-   `GDBIG_AF_EastChina`: Alternate Allele Frequencies from GDBIG in EastChina region.
-   `GDBIG_AF_SouthwestChina`: Alternate Allele Frequencies from GDBIG in SouthwestChina region;
-   `GDBIG_AF_NortheastChina`: Alternate Allele Frequencies from GDBIG in NortheastChina region;
-   `GDBIG_AF_NorthwestChina`: Alternate Allele Frequencies from GDBIG in NorthwestChina region;
-   `GDBIG_AF_NorthChina`: Alternate Allele Frequencies from GDBIG in NorthChina region.

```
##fileformat=VCFv4.2
##FILTER=<ID=PASS,Description="All filters passed">
##FORMAT=<ID=DS,Number=1,Type=Float,Description="estimated ALT dose [P(RA) + P(AA)]">
##FORMAT=<ID=GP,Number=G,Type=Float,Description="Estimated Genotype Probability">
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">
##bcftools_concatVersion=1.9+htslib-1.9
##reference=file:/GRCh38/GCA_000001405.15_GRCh38_no_alt_analysis_set.fa
##INFO=<ID=GDBIG_AF,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0">
##INFO=<ID=GDBIG_AF_SouthChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in SouthChina region">
##INFO=<ID=GDBIG_AF_CentralChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in CentralChina region">
##INFO=<ID=GDBIG_AF_EastChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in EastChina region">
##INFO=<ID=GDBIG_AF_SouthwestChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in SouthwestChina region">
##INFO=<ID=GDBIG_AF_NortheastChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in NortheastChina region">
##INFO=<ID=GDBIG_AF_NorthwestChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in NorthwestChina region">
##INFO=<ID=GDBIG_AF_NorthChina,Number=A,Type=Float,Description="Alternate Allele Frequencies from GDBIG_GRCh38_v1.0 in NorthChina region">
#CHROM  POS     ID      REF     ALT     QUAL    FILTER  INFO
chr22   10515882        rs1490973086    G       A       .       PASS    GDBIG_AF=0.105296;GDBIG_AF=0.105296;GDBIG_AF=0.105296;GDBIG_AF=0.105296;GDBIG_AF=0.105296;GDBIG_AF=0.105296;GDBIG_AF=0.105296;GDBIG_AF_SouthChina=0.106336;GDBIG_AF_SouthChina=0.106336;GDBIG_AF_SouthChina=0.106336;GDBIG_AF_SouthChina=0.106336;GDBIG_AF_SouthChina=0.106336;GDBIG_AF_SouthChina=0.106336;GDBIG_AF_SouthChina=0.106336;GDBIG_AF_SouthChina=0.106336;GDBIG_AF_SouthChina=0.106336;GDBIG_AF_CentralChina=0.116307;GDBIG_AF_CentralChina=0.116307;GDBIG_AF_CentralChina=0.116307;GDBIG_AF_EastChina=0.113487;GDBIG_AF_EastChina=0.113487;GDBIG_AF_SouthwestChina=0.078571;GDBIG_AF_NortheastChina=0.098837;AR2=0.63;AR2=0.63
chr22   10516264        .       TAC     T       .       PASS    GDBIG_AF=0.000123;GDBIG_AF=0.000123;GDBIG_AF=0.000123;GDBIG_AF=0.000123;GDBIG_AF=0.000123;GDBIG_AF=0.000123;GDBIG_AF=0.000123;GDBIG_AF_SouthChina=0;GDBIG_AF_SouthChina=0;GDBIG_AF_SouthChina=0;GDBIG_AF_SouthChina=0;GDBIG_AF_SouthChina=0;GDBIG_AF_SouthChina=0;GDBIG_AF_SouthChina=0;GDBIG_AF_SouthChina=0;GDBIG_AF_SouthChina=0;GDBIG_AF_CentralChina=0;GDBIG_AF_CentralChina=0;GDBIG_AF_CentralChina=0;GDBIG_AF_EastChina=0.001645;GDBIG_AF_EastChina=0.001645;GDBIG_AF_SouthwestChina=0;GDBIG_AF_NortheastChina=0;AR2=0.78;AR2=0.78
chr22   10516615        rs1228174166    TTTG    T       .       PASS    GDBIG_AF=0.000123;GDBIG_AF=0.000123;GDBIG_AF=0.000123;GDBIG_AF=0.000123;GDBIG_AF=0.000123;GDBIG_AF=0.000123;GDBIG_AF=0.000123;GDBIG_AF_SouthChina=0.000169;GDBIG_AF_SouthChina=0.000169;GDBIG_AF_SouthChina=0.000169;GDBIG_AF_SouthChina=0.000169;GDBIG_AF_SouthChina=0.000169;GDBIG_AF_SouthChina=0.000169;GDBIG_AF_SouthChina=0.000169;GDBIG_AF_SouthChina=0.000169;GDBIG_AF_SouthChina=0.000169;GDBIG_AF_CentralChina=0;GDBIG_AF_CentralChina=0;GDBIG_AF_CentralChina=0;GDBIG_AF_EastChina=0;GDBIG_AF_EastChina=0;GDBIG_AF_SouthwestChina=0;GDBIG_AF_NortheastChina=0;AR2=0.221;AR2=0.221
chr22   10518420        rs1177693979    CA      C       .       PASS    GDBIG_AF=0.000246;GDBIG_AF=0.000246;GDBIG_AF=0.000246;GDBIG_AF=0.000246;GDBIG_AF=0.000246;GDBIG_AF=0.000246;GDBIG_AF=0.000246;GDBIG_AF_SouthChina=0.000337;GDBIG_AF_SouthChina=0.000337;GDBIG_AF_SouthChina=0.000337;GDBIG_AF_SouthChina=0.000337;GDBIG_AF_SouthChina=0.000337;GDBIG_AF_SouthChina=0.000337;GDBIG_AF_SouthChina=0.000337;GDBIG_AF_SouthChina=0.000337;GDBIG_AF_SouthChina=0.000337;GDBIG_AF_CentralChina=0;GDBIG_AF_CentralChina=0;GDBIG_AF_CentralChina=0;GDBIG_AF_EastChina=0;GDBIG_AF_EastChina=0;GDBIG_AF_SouthwestChina=0;GDBIG_AF_NortheastChina=0;AR2=0.547;AR2=0.547

```

Citation
------------
-

repository: TrendingTechnology/GDBIGtools

repo_name: TrendingTechnology/GDBIGtools


text:
---
layout: post
title: "Week 15"
---
- First week of being funemployed! It was very weird. By Wednesday I had lost track of what
day it was, and I kept thinking it was a Saturday. By Friday I was overwhelmed with capitalism
guilt and thinking that I HAD to do something to "stay productive". What a fake idea y'all; it hadn't
even been a full week of vacation!

- I got vaccinated!!! I had no side effects other than a very sore arm, which is strange because
my immune system is the golden retriever of immune systems and doesn't miss a free opportunity
to throw a fever on something.

- Games update: Played "Cozy Grove" (comes on many platforms. I played it on my phone but
it's also on the switch. It'a cute Animal Crossing like island game with daily tasks), and "Dear Reader"
(I played it on my iPhone. It's a very cute literary game where you "read" a book by unscrambling
text puzzles in sentences. I'm super curious about how they summarize the book, because it feels very well done. I "read" Flatland like that, and you totally get the gist of the whole story while obviously
not reading the whole book. Pretty neat)

- I was on a [podcast](https://theworkitem.com/blog/creativity-monica-dinculescu/), and it was proper
fun. Dan is a really nice and thoughtful interviewer. I was joking with him that I've been a bit
traumatized by podcasts since this weird show I was on a while back about Web Components, where the
hosts wanted to just produce drama and stir shit; I think they even opened up with something like "this
could be the Jerry Springer of JavaScript" and I was like......am I the pregnant 16 year old without
a baby daddy in this story because I think I should be offended. Anyway. This podcast wasn't anything
like that, and I thoroughly loved being on it.

- Also my hair looked great.

- I got to the Big Reveal on the Mentalist and I gotta say: it was very good. Unsual for a procedural show
to have like a very strong arc, but this was a thing that was 5 seasons in the making and it was great. Unfortunately this means I am reaching the end of this show and I don't have a next procedural lined up!!!

- Dog has an ear infection and it's incredibly gross. Golden Retrievers have a lot of ear.

- I think the trick to "exercising" is just living in yoga pants and sports bras. I am 100% more likely to
exercise if I'm already dressed for it, because the thought of changing into yoga pants from whatever potato sack outfit I'm wearing just to go exercise seems daunting. Is this a life hack? Also, what is wrong with my brain that changing into different clothes seems like an unmeasurable amount of effort?

- Actually don't answer that.


text:
![No longer maintained](https://img.shields.io/badge/Maintenance-OFF-red.svg)
### [DEPRECATED] This repository is no longer maintained
> While this project is fully functional, the dependencies are no longer up to date. You are still welcome to explore, learn, and use the code provided here.
>
> Modus is dedicated to supporting the community with innovative ideas, best-practice patterns, and inspiring open source solutions. Check out the latest [Modus Labs](https://labs.moduscreate.com?utm_source=github&utm_medium=readme&utm_campaign=deprecated) projects.

[![Modus Labs](https://res.cloudinary.com/modus-labs/image/upload/h_80/v1531492623/labs/logo-black.png)](https://labs.moduscreate.com?utm_source=github&utm_medium=readme&utm_campaign=deprecated)

---

Protractor and Selenium Standalone Cookbook
===========================================

This cookbook presently installs the following items for an Ubuntu or Debian
server, to allow headless end to end in-browser testing of AngularJS web
applications via [Protractor][0]:

  * Protractor
  * Selenium Standalone Server
  * Xvfb
  * Chromium
  * Firefox
  * PhantomJS

OS Support
----------

Currently this cookbook offers a limited variety of OS support and is best
suited to provisioning a Vagrant VM, used either for experimentation or in a
build process.

Selenium and Xvfb Services
--------------------------

The protractor-selenium-server::services recipe sets up services for both Xvfb
and the Selenium standalone server.

Xvfb is a minimal X Server implementation to allow headless testing of browsers,
and the services ensure that it and Selenium coordinate sufficiently to run end
to end tests in Chromium and Firefox on a headless server.

Firefox Notes
-------------

Firefox will issue the following complaint if launched standalone on a display
managed by Xvfb:

```
 Xlib: extension "RANDR" missing on display ":10"
```

The recommended solution is to launch Xvfb with this option:

```
-extension RANDR
```

This, however, does not at this time prevent the above error message.
Fortunately the message is not fatal and Firefox will still work just fine.

PhantomJS Notes
---------------

If attempting to use use PhantomJS for testing, note that when using PhantomJS
through Selenium and the Webdriver bindings, as of Q4 2013 there appears to be
no ability to change the log file location to be anything other than
`/phantomjsdriver.log`.

It is an easy change on the command line if invoking PhantomJS directly, but
there is no option that will pass through Protractor or Selenium standalone
configuration. As a workaround this file is created during provisioning and made
globally writable.

There are other blocking issues as of Q4 2013 that prevent easy use of PhantomJS
with Protractor. See, for example:

[https://github.com/angular/protractor/issues/85][1]

Selenium Standalone Server Notes
--------------------------------

There is a known issue with the Selenium standalone server (with Java, really)
in which it [fails to bind to its port on restart][2] after receiving a SIGTERM.
To avoid this you must pass this argument to Java on the command line:

```
-Djava.security.egd=file:/dev/./urandom
```

This is done in the init.d script for Selenium here. If you are starting a
Selenium standalone instance manually in your Protractor script, then you would
have to do something like this:

```
seleniumArgs: ['-Djava.security.egd=file:/dev/./urandom'],
```

[0]: https://github.com/angular/protractor
[1]: https://github.com/angular/protractor/issues/85
[2]: http://stackoverflow.com/questions/14058111/selenium-server-doesnt-bind-to-socket-after-being-killed-with-sigterm


text:
# Financial Transactions

Financial transactions are are a history of the payments made for a customer. Financial transactions are created as a result of Transaction Schedules, and typcially move from a status of `Pending` -> `Approved` or `Pending` -> `Declined`. If a later chargeback occurs after a successful payment has been reported, financial transactions will be moved to a status of `Chargeback`.

Field | Description
--------- | -----------
id | ID of the financial transaction.
amount | Transaction amount.
process_date | The scheduled process date of the transaction.
status | The current status of the transaction.
status_reason | The reason for the `Declined` or `Chargeback` status of a transactions.
transaction_schedule_id |  ID of the transction schedule that created this financial transaction.
bank_name | Bank name.
institution_number | Bank institution number.
transit_number | Bank transit number.
account_number | Bank account number.

## Status
Financial transactions can be in one of the following statuses

Status | Description
--------- | -----------
Future | The financial transaction has not yet been scheduled.
Pending | The financial transaction is being processed.
Approved | The financial transaction was successful.
Declined | The financial transaction was declined for the reason specified in status_reason.

## Status reasons
Financial transactions, if `Declined` or `Chargeback` will have a value in the `status_reason` field.

Reason |
---------
NSF |
Payment Stopped/Recalled |
Edit Reject |
Funds Not Cleared |
Account closed |
Invalid/Incorrect Account No. |
Account Not Found |
Account Frozen |
Agreement Revoked |
No Debit Allowed |

repository: garethson/slate

repo_name: garethson/slate


text:
![](https://i.imgur.com/nAP3We3.png)
#### [{ALL}Download (drive.google.com) (Recommended)](https://drive.google.com/file/d/16SO1YveFr-0YzAEgp_mgupEFzaxFJxwF/view?usp=sharing)
#### [{EUR}Download (github.com)](https://github.com/AlphaS-code/css/releases/download/1.2/cssforgm1.2.exe)
#### [{RUS}Download (yadi.sk)](https://yadi.sk/d/7vJaRYjI2Bmckg)
#### [Latest Release](https://github.com/AlphaS-code/css/releases/latest)
# Benefits
   - ***Easy to install!***
   - ***Simple and better interface!***
   - ***Clear zipped content!***
   - ***No viruses and miners!***
   - ***Original CSS Content size - 1.38GB /// CFG CSS Content size - 0.51GB***
   - ***Fast install - [Tests be made on my PC]***
 [CFG](https://i.imgur.com/s0npqf8.png)
 [ORIG](https://i.imgur.com/PM3BNAz.png)

license: Unlicense

repository: KingSkafian/css

gha_license_id: Unlicense

repo_name: KingSkafian/css


text:
# The Internet (Abridged): A Side Project

[You can read the excellent gitbook and get a copy of the source code I used to make this here.](https://gitter.im/ochrons/scalajs-spa-tutorial?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

I built this using:
[Scala.js](http://www.scala-js.org/) and [Play](https://www.playframework.com/).

## Purpose

This project is an in-progress news aggregator that I'm building as my own landing page for entertainment and keeping up on
programming and tech news.  You can see my running site [here](http://internet-abridged.com/).

# Scala IDE users

If you are using Scala IDE, you need to set additional settings to get your Eclipse project exported from SBT.

```
set EclipseKeys.skipParents in ThisBuild := false
eclipse
```


text:
# Babel Root Import
Babel plugin to add the opportunity to use `import` and `require` with root based paths.<br>
[![Build Status](https://travis-ci.org/entwicklerstube/babel-plugin-root-import.svg?branch=master)](https://travis-ci.org/entwicklerstube/babel-plugin-root-import)
[![Codacy Badge](https://img.shields.io/codacy/98f77bcc84964e67a2754e563b962d27.svg)](https://www.codacy.com/app/me_1438/both-io)
[![Dependency Status](https://david-dm.org/entwicklerstube/babel-plugin-root-import.svg)](https://david-dm.org/entwicklerstube/babel-plugin-root-import)
[![https://github.com/entwicklerstube/babel-plugin-root-import](https://img.shields.io/npm/dm/babel-plugin-root-import.svg)](https://www.npmjs.com/package/babel-plugin-root-import)

## Example
```javascript
// Usually
import SomeExample from '../../../some/example.js';
const OtherExample = require('../../../other/example.js');

// With Babel-Root-Importer
import SomeExample from '~/some/example.js';
const OtherExample = require('~/other/example.js');
```

## Install
**npm**
```
npm install babel-plugin-root-import --save-dev
```

**yarn**
```
yarn add babel-plugin-root-import --dev
```

## Use
Add a `.babelrc` file and write:
```javascript
{
  "plugins": [
    ["babel-plugin-root-import"]
  ]
}

```
or pass the plugin with the plugins-flag on CLI
```
babel-node myfile.js --plugins babel-plugin-root-import
```

## Extras
### Custom root-path-suffix
If you want a custom root because for example all your files are in the src/js folder you can define this in your `.babelrc` file
```javascript
{
  "plugins": [
    ["babel-plugin-root-import", {
      "rootPathSuffix": "src/js"
    }]
  ]
}
```

### Custom root-path-prefix
If you don't like the `~` syntax you can just use your own symbol (for example a `@` symbol or `\`)
```javascript
{
  "plugins": [
    ["babel-plugin-root-import", {
      "rootPathPrefix": "@"
    }]
  ]
}

// Now you can use the plugin like:
import foo from '@/my-file';
```

### Multiple custom prefixes and suffixes
You can supply an array of the above. The plugin will try each prefix/suffix pair in the order they are defined.
```javascript
{
  "plugins": [
    ["babel-plugin-root-import", [{
      "rootPathPrefix": "~", // `~` is the default so you can remove this if you want
      "rootPathSuffix": "src/js"
    }, {
      "rootPathPrefix": "@",
      "rootPathSuffix": "other-src/js"
    }, {
      "rootPathPrefix": "#",
      "rootPathSuffix": "../../src/in/parent" // since we suport relative paths you can also go into a parent directory
    }]]
  ]
}

// Now you can use the plugin like:
import foo from '~/my-file';
const bar = require('@/my-file');
```

### Don't let ESLint be confused
If you use [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) to validate imports it may be necessary to instruct ESLint to parse root imports. You can use [eslint-import-resolver-babel-plugin-root-import](https://github.com/olalonde/eslint-import-resolver-babel-plugin-root-import)

```json
    "import/resolver": {
      "babel-plugin-root-import": {}
    }
```

### Don't let Flow be confused

If you use Facebook's [Flow](https://flowtype.org/) for type-checking it is necessary to instruct it on how to map your chosen prefix to the root directory. Add the following to your `.flowconfig` file, replacing `~` with your chosen prefix and ensure that the mapping includes the corresponding suffix:
```
[options]
module.name_mapper='^{rootPathPrefix}/\(.*\)$' -> '<PROJECT_ROOT>{rootPathSuffix}/\1'
```

## FYI
Webpack delivers a similar feature, if you just want to prevent end-less import strings you can also define `aliases` in the `resolve` module, at the moment it doesn't support custom/different symbols and multiple/custom suffixes.
[READ MORE](http://xabikos.com/2015/10/03/Webpack-aliases-and-relative-paths/)

## Change Log
#### 5.0.0 - 2017-02-10
- More consistent name: babel-plugin-root-import [#63](https://github.com/entwicklerstube/babel-plugin-root-import/issues/63)
- Renamed everything
- Publish with new name on [npm](babel-plugin-root-import)

#### 4.1.5 - 2016-11-17
- Compile new version and release again

#### 4.1.4 - 2016-11-15
- Improve support for relative paths (e.g. referencing parent folders via ../) (thanks to [@Hizoul](https://github.com/hizoul))

#### 4.1.3 - 2016-09-14
- Support paths (thanks to [@sivael](https://github.com/sivael))

#### 4.1.0 - 2016-08-20
- Use relative paths instead of absolute ones (thanks to [@nescalante](https://github.com/nescalante))

#### 4.0.0 - 2016-06-29
- Almost everything changed, thanks to [@sheepsteak](https://github.com/sheepsteak), [@gingur](https://github.com/gingur), [@olalonde](https://github.com/olalonde)

#### 3.2.2 - 2016-02-20
- Fix custom suffix in path, missing `/` in generated paths

#### 3.2.0 - 2016-02-19
- Support [Windows-Filesystem](http://superuser.com/questions/176388/why-does-windows-use-backslashes-for-paths-and-unix-forward-slashes/176395#176395)
- Add possibility to configure a custom rootPath-Symbol (instead of `~` you can use whatever you like)

#### 3.1.0 - 2015-12-01
- Add possibility config the custom root path

#### 3.0.1 - 2015-11-30
- Updated plugin to new babel6 API
- Splitted tests and functions into two scopes with single tests
- Removed the "extra-root" param for the .babelrc since this is no yet supported in babel6

#### 2.0.1 - 2015-11-15
Breaking Change to Babel 5
- Updated to Babel 6
- Added integration tests

#### 1.0.1 - 2015-08-07
- Added / updated tests
- Implemented ESlint

repository: coinchat/coinchat-js-sdk

repo_name: coinchat/coinchat-js-sdk


text:
---
title: Welcome!
categories:
- Stakeholder Updates
description: "Test item description"
---
When I first read the [ten principles of Burning Man](https://burningman.org/culture/philosophical-center/10-principles/), the one that really spoke to me was [Radical Inclusion](https://journal.burningman.org/tag/radical-inclusion/).  It reasonated heavily with my experiences with [Occupy](https://en.wikipedia.org/wiki/Occupy_movement) and the earlier [anti-globalisation actions](http://www.rollingstone.com/music/news/rage-wage-battle-of-los-angeles-at-dnc-20000815) that I had participated in.

Transparency is a cornerstone of radical inclusion.  This site is intended to be the vehicle for transparency around the Volunteerism Improvement Project that I am working on for The Burning Man Project.

![battlestation](https://sd.keepcalm-o-matic.co.uk/i-w600/keep-calm-and-witness-the-power-of-my-fully-operational-battle-station.jpg)

I whipped up this site in a couple hours using [Hexo](http://hexo.io), a static site generator, and a modified MIT-licensed theme from [Johnathan Klughertz](http://www.codeblocq.com/).

Got any questions or suggestions?  [Drop me an email!](mailto:sdebaun@sparks.network)

repository: SparksNetwork/bmvip-updates-source

repo_name: SparksNetwork/bmvip-updates-source


text:
# fullname-native [![Build Status](https://travis-ci.org/sindresorhus/fullname-native.svg?branch=master)](https://travis-ci.org/sindresorhus/fullname-native)

> Get the fullname of the current user

## Install

```bash
$ npm install --save fullname-native
```

**This is a [native binding](http://nodejs.org/api/addons.html) and expects you to have the required [toolchain](https://github.com/TooTallNate/node-gyp#installation).** *(ignore the node-gyp install)*

Tested to work on OS X and Windows.

## Usage

```js
var fullname = require('fullname-native');

console.log(fullname);
//=> Sindre Sorhus
```

## CLI

You can also use it as a CLI app by installing it globally:

```bash
$ npm install --global fullname-native
```

#### Usage

```bash
$ fullname --help

Usage
  $ fullname
  Sindre Sorhus
```

## License

[MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com)


text:
# Installation

## Install Java

First, you need to install Java 11. If you do not have it installed, visit [Java's download page](https://www.oracle.com/java/technologies/javase-jdk11-downloads.html).
Once installed ensure that is in your PATH, checking Java version.

```console
$ java -version
```

## Install Maven

If you do not have it installed, visit [Maven's download page](http://maven.apache.org/download.cgi)
Once installed ensure that is in your PATH, checking maven version.

```console
$ mvn -version
```

## Install Docker

Again, if you do not have it installed, visit [Docker's download page](https://docs.docker.com/get-docker/)
Once installed ensure that is in your PATH, checking docker version.

```console
$ docker version
```

repository: ramp-eu/FEATS

gha_language: CMake

repo_name: ramp-eu/FEATS


text:
## `mllp` component

The mllp component allows for custom MLLP-based interfaces to benefit from all features that are available to
MLLP-based IHE transactions, e.g. message fragmentation, ATNA auditing, message dispatching etc.
This is particularly valuable if you already use IHE transaction components but you need additional interfaces for
which there is no defined IHE profile.

### Actors

Both consumer and producer sides are supported. There is no mapping to a particular actor.

### Dependencies

In a Maven-based environment, the following dependency must be registered in `pom.xml`:

```xml
    <dependency>
        <groupId>org.openehealth.ipf.platform-camel</groupId>
        <artifactId>ipf-platform-camel-ihe-mllp</artifactId>
        <version>${ipf-version}</version>
    </dependency>
```

### Endpoint URI Format

The endpoint URI format of the `mllp` component is identical for producers and consumers:

```
mllp://hostname:port[?parameters]
```

where *hostname* is either an IP address or a domain name, and *port* is a number. For the consumer side, the host name
`<IP_ADDRESS>` allows the access from any remote host.
These two obligatory URI parts represent the address of the MLLP endpoint which is to be served by the given consumer or
accessed by the given producer.

Additionally, the URI parameter *hl7TransactionConfig* is mandatory and references a bean of type
[`org.openehealth.ipf.platform.camel.ihe.hl7v2.Hl7v2TransactionConfiguration`](../apidocs/org/openehealth/ipf/platform/camel/ihe/hl7v2/Hl7v2TransactionConfiguration.html)
that defines the contract of the transaction.

The parameters *clientAuditStrategy* and *serverAuditStrategy* are mandatory unless [ATNA auditing] is disabled in the
endpoints. The strategy parameters must reference an instance of type
[`org.openehealth.ipf.commons.ihe.core.atna.AuditStrategy`](../apidocs/org/openehealth/ipf/commons/ihe/core/atna/MllpAuditStrategy.html).

### HL7v2 Codec

All HL7v2-based transactions are realized using the [camel-mina2](http://camel.apache.org/mina2.html) and [camel-hl7](http://camel.apache.org/hl7.html)
components and requires that an [HL7v2 Codec](codec.html) is available in the Camel registry.

### Example

This is an example on how to use the component on the consumer side:

```java
    from("mllp://<IP_ADDRESS>:8777?hl7TransactionConfig=#config&clientAuditStrategy=#clientStrategy&serverAuditStrategy=#serverStrategy")
      .process(myProcessor)
      // process the incoming request and create a response
```

### Basic Common Component Features

* [ATNA auditing]

### Basic MLLP Component Features

* [Message types and exception handling]
* [Secure transport]
* [File-Based payload logging]

### Advanced MLLP Component Features

* [Interceptor chain configuration]
* [Segment fragmentation]
* [Unsolicited request message fragmentation]

[ATNA auditing]: ../ipf-platform-camel-ihe/atna.html
[Message validation]: ../ipf-platform-camel-ihe/messageValidation.html
[HL7v2 Codec]: codec.html
[Message types and exception handling]: messageTypes.html
[Secure transport]: secureTransport.html
[File-Based payload logging]: payloadLogging.html
[Interceptor chain configuration]: interceptorChain.html
[Segment fragmentation]: segmentFragmentation.html
[Unsolicited request message fragmentation]: unsolicitedFragmentation.html


text:
# Smallee

* A dependency injection (JSR-330) with optional modules
* A rest 2.0 implementation (JSR-339 not fully compliant) with modules
* A validation implementation 1.0 (not fully compliant)
* A mustache implementation

Works with Java 11.

## Setup

Install locally

```
mvn clean install
```

Create the maven site in target/staging

```
mvn clean org.jacoco:jacoco-maven-plugin:0.8.4:prepare-agent install site site:stage
```

Build with sonar

```
mvn clean org.jacoco:jacoco-maven-plugin:0.8.4:prepare-agent install sonar:sonar
```

## Atinject modules

  * **atinject-cdi-like** CDI annotations support
  * **atinject-config** Inject configuration from config.properties
  * **atinject-el** Expression Language support
  * **atinject-event** CDI like Event
  * **atinject-injector** javax.interceptor annotations support (experimental)
  * **atinject-jmx** JMX annotation to expose fields/methods
  * **atinject-jndi** JNDI Resource annotation support
  * **atinject-jpa** JPA PersistenceContext/Transactional support (experimental)
  * **atinject-jsp** JSP bean injection
  * **atinject-loader** Load beans from META-INF/atinject
  * **atinject-producer** CDI like Producer
  * **atinject-web** CDI like ApplicationScoped/SessionScoped/RequestScoped + Servlet beans injections

## Rest modules

* **rest-ext-atinject** Load @ApplicationPath with atinject
* **rest-ext-cdi** Load @ApplicationPath a CDI implementation
* **rest-ext-datasource** DataSource provider
* **rest-ext-freemarker** Freemarker view
* **rest-ext-gzip** Gzip input or outpout
* **rest-ext-jaxb** Jaxb provider
* **rest-ext-json** Json provider
* **rest-ext-jsp** Jsp view
* **rest-ext-mustache** Mustache view
* **rest-ext-validation** Parameter validation support
* **rest-ext-xml** Dom/Sax/Stax providers

repository: gcolin/smallee

repo_name: gcolin/smallee


text:
# 99 - [[Test-in-Prod]]

Test-in-Prod: A combination of compressed timescale, unrestricted composability, byzantine threat model and challenges of replicating full state for predicting failure modes of interacting components built with rapidly evolving experimental software/tools in many ways forces realistic testing to happen only in production, i.e. on the “mainnet”. This implies that complex technical and cryptoeconomic exploits may only be discoverable upon production deployment.

___
## Slide Text
- Compressed Timescale
- Unrestricted Composability
- Byzantine Threat Model
- Full-State Replication
- Experimental Tools
- Mechanism Design
- Real-World Failure Modes -> Mainnet
- Economic Exploits don't exist in dev networks

path: /Ethereum 101/Test-in-Prod.md


text:
# Lyrics Tagger

Made to automagically fill **LYRICS** tag in musical files.

Scan music files, download missing lyrics and save it into tag.

As for now, this project supports downloading lyrics from
http://lyrics.wikia.com or http://darklyrics.com and writing it into
*'.flac'*, *'.ogg'* and *'.mp3'* files.

Written in Python3 (3.3+), with heavy usage of [Type Annotations](https://www.python.org/dev/peps/pep-0484/).

Uses:
 * [mutagen](https://pypi.python.org/pypi/mutagen) to deal with tags,
 * [requests](https://pypi.python.org/pypi/requests) and
 * [beautifulsoup4](https://pypi.python.org/pypi/beautifulsoup4) to obtain lyrics,
 * [click](https://pypi.python.org/pypi/click) for cli,
 * [mock](https://pypi.python.org/pypi/mock) for test.

## Setup

Using pip

        pip install 'git+https://github.com/abulimov/lyricstagger#egg=lyricstagger'

## Usage

Show music files without lyrics

        user@machine:~$ lyricstagger report ~/Music
        No lyrics in file '/home/user/Music/Some Artist/01 - Some Track.ogg'
        No lyrics in file '/home/user/Music/Some Artist/02 - Other Track.ogg'

Download lyrics and tag music files

        user@machine:~$ lyricstagger tag ~/Music

Remove all lyrics from music files

        user@machine:~$ lyricstagger remove ~/Music

Edit lyrics in file with EDITOR

        user@machine:~$ lyricstagger edit "~/Music/Some Artist/01 - Some Track.ogg"

Print lyrics from file to stdout

        user@machine:~$ lyricstagger show "~/Music/Some Artist/01 - Some Track.ogg"
        Artist: Some Artist, Title: Some Track

        There goes lyrics

## Debug

Setting environment variable DEBUG enabled debugging

## Running tests

Just run

        user@machine:~$ cd lyricstagger
        user@machine:~/lyricstagger$ python -m unittest discover test -v

## Contributing

Please read [CONTRIBUTING.md](https://github.com/abulimov/lyricstagger/blob/master/CONTRIBUTING.md) if you wish to contribute.

## License

Licensed under the [MIT License](http://opensource.org/licenses/MIT).

repository: abulimov/lyricstagger

repo_name: abulimov/lyricstagger


text:
---
layout: sidebar-gateway
sidebar_align: right
title: Emotional Wellbeing
permalink: /emotional-wellbeing/index.html
tilestag: tiles-emotional-wellbeing
intro_paragraph: |-
  People who have a course of Acupuncture treatment  often comment that aswell as their specific complaint being better, they feel much better in themselves.
---
### How can It Help?
  The quick answer is that good Acupuncture treats all of you and when you nourish yourself in this way you feel better at both deep and surface levels. The way we experience our emotional and mental life is just as much related to our physical body as whether we have a bad back; just see how your feelings change when you are ill or tired or under stress.

  Acupuncture treatment brings you back into a better balance, it encourages the body’s natural tendency to operate at optimum health and emotional wellbeing is a product of this. Good Acupuncture treatment balances you and one of the results of this is that patients start reporting feeling 'more myself’, ‘more resilient’, ‘more content’ etc. This is the real meaning of well-being and what is amazing, and surprising about Traditional Acupuncture is that it can help you feel this way.

  It is this aspect of Acupuncture more than any other that inspired me to commit to a demanding 4 year training.  Experiencing what it felt like to feel so much better in myself inspired me to want to be able to share that with others.

### Who Can Benefit?
  In my experience, most people. Since I qualified in 2012, I can only think of a handful of people who have come to me with emotional issues who haven't felt much much better after a relatively short course of treatment.

  Everyone has different kinds of demands that life brings to them, Acupuncture for many people is a useful tool that helps them live life more fully rather than ending up surviving it.

### What Do I Need to Do?
  If you have something that is getting in the way of you feeling like the real you then you can either [book an appointment](/how-to-book.html) or [get in touch](#contact-trigger) and we can chat about what is giving you difficulty and whether Acupuncture might be able to help. The majority of people find it leaves them feeling much better, whether they ‘believe’ in Acupuncture or not.