text:
## 19.0.0 (August 10, 2019)

### Enhancements
- **Report Changes**
  - Report pages without any reports now display a message
  - Descriptions can be added to reports that support markdown formatting
  - Left hand column of report tables now freeze when scrolling horizontally
  - Report rows can be marked as emphasized to group rows together visually
    - Subsequent rows are indented until the next emphasized row

## 18.0.0 (June 23, 2019)

### Enhancements
- **Report Changes**
  - Randomization reports now display months in descending format
  - Added new report type to filter by site and by month to handle original
    Screened, Consented, and Eligible charts and tables
  - Report pages display position on report page index
  - Report pages can now be searched and filtered
  - Added the "Report Card" report
  - Added the "Data Checks" report
  - Reports now refresh once per day, but can be refreshed manually

## 17.0.0 (May 27, 2019)

### Enhancements
- **General Changes**
  - The dashboard now relies on the new randomizations report
- **Report Changes**
  - Add support for randomizations report table and chart
  - Reports can now specify a report type, including:
    - "Expressions by Site"
    - "Randomizations by Site"
  - Add rake task to refresh reports on a scheduled basis
  - Add sorting and searching to reports index
- **Gem Changes**
  - Update to haml 5.1.1
  - Update to jbuilder 2.9
  - Update to pg_search 2.2.0
  - Update to rubyzip 1.2.3

### Tests
- Add projects, pages, and reports system tests

## 16.0.0 (May 9, 2019)

### Enhancements
- **General Changes**
  - Login now once again redirects to the dashboard
- **Reports Added**
  - Editors can now define reports to pull data from Slice
  - Reports can be grouped together on pages
- **Gem Changes**
  - Update to ruby 2.6.3
  - Update to rails 6.0.0.beta3
  - Update to devise 4.6.2
  - Update to font-awesome-sass 5.8.1

## 15.0.1 (March 5, 2019)

### Bug Fix
- Revert to rails 6.0.0.beta1
- Fix spacing on table search inputs

## 15.0.0 (March 4, 2019)

### Enhancements
- **Gem Changes**
  - Update to rails 6.0.0.beta2
  - Update to bootstrap 4.3.1
  - Update to devise 4.6.1

## 14.0.2 (February 7, 2019)

### Enhancements
- **General Changes**
  - Improve contrast between sidebar headers and sidebar menu items

## 14.0.1 (February 7, 2019)

### Bug Fix
- Fix link to overall data inconsistency checks filter in Slice

## 14.0.0 (February 7, 2019)

### Enhancements
- **General Changes**
  - Navigation has been updated to break down long document menu into tabs
  - Add settings page to allow users to update their email and password
  - Members can now upload profile pictures
  - Members can now search across documents, users, and sites
  - Members now have a username
  - Update styling of registration emails
  - All files in a folder can be downloaded as a single zip file
  - Editors can now upload zip files
- **Admin Changes**
  - User index now has search filters
  - Updated editor and admin setup interface
- **Site Changes**
  - Editors can now assign numbers to sites
- **Gem Changes**
  - Update to ruby 2.6.1
  - Update to rails 6.0.0.beta1
  - Update to pg 1.1.4
  - Update to bootstrap 4.2.1
  - Update to carrierwave 1.3.1
  - Update to font-awesome-sass 5.6.1

## 13.0.0 (October 16, 2018)

### Enhancements
- **General Changes**
  - Add updated Privacy Policy
- **Gem Changes**
  - Update to rails 5.2.1
  - Update to pg 1.1.3
  - Update to bootstrap 4.1.3
  - Update to carrierwave 1.2.3
  - Update to devise 4.5.0
  - Update to jquery-rails 4.3.3

## 12.1.1 (May 3, 2018)

### Enhancements
- **General Changes**
  - Improved contrast of support email link on landing page
  - Removed leading zeros in "data last updated" string
  - Improved password autocomplete
  - PATS logo no longer wraps on small screens
- **Gem Changes**
  - Updated to bootstrap 4.1.1

## 12.1.0 (April 18, 2018)

### Enhancements
- **Gem Changes**
  - Updated to ruby 2.5.1
  - Updated to rails 5.2.0
  - Updated to bootstrap 4.1.0

## 12.0.0 (March 23, 2018)

### Enhancements
- **General Changes**
  - Updated layout of internal sidebar
- **Gem Changes**
  - Updated to ruby 2.5.0
  - Updated `Gemfile` to `gems.rb`
  - Updated to rails 5.2.0.rc2
  - Updated to pg 1.0.0
  - Updated to bootstrap 4.0.0
  - Updated to carrierwave 1.2.2
  - Updated to devise 4.4.3
  - Updated to haml 5.0.4
  - Updated to kaminari 1.1.1
  - Updated to simplecov 0.16.1

## 11.0.0 (May 16, 2017)

### Enhancements
- **General Changes**
  - Added a Signal Quality Grades graph to the Data Quality page
  - Login cookies are now cross subdomain and work between www and non-www URLs
- **Report Changes**
  - Added a new report card that grades sites by data completion percentage
  - Added a new unscheduled events report that shows adverse events, protocol
    deviations, and unblinding events by site by month
  - Added a new report that displays a table of data inconsistencies by site
- **Gem Changes**
  - Updated to Ruby 2.4.1
  - Updated to rails 5.1.1
  - Updated to devise 4.3.0
  - Updated to pg 0.20.0
  - Updated to carrierwave 1.1.0
  - Updated to haml 5.0.1
  - Updated to kaminari 1.0.1
  - Updated to jquery-rails 4.3.1
  - Updated to simplecov 0.14.1
  - Added autoprefixer-rails

### Bug Fix
- Fixed a bug that caused JavaScript functions to run twice in browsers that
  supported Turbolinks

## 10.0.1 (January 9, 2017)

### Bug Fix
- Fixed an issue with a document uploader test that would fail intermittently

## 10.0.0 (January 9, 2017)

### Enhancements
- **General Changes**
  - Reduced number of alerts and messages from devise during login and logout
- **Gem Changes**
  - Updated to Ruby 2.4.0
  - Updated to rails 5.0.1
  - Updated to jquery-rails 4.2.2
  - Updated bootstrap-sass to 3.3.7
  - Updated to carrierwave 1.0.0

## 9.0.0 (December 20, 2016)

### Enhancements
- **General Changes**
  - Expanded the race breakdown on the demographics page
  - Added a data quality report page
  - Tooltips on charts now display all values even when series overlap
  - Improved display of percentages in tables
  - Dashboard now highlights randomizations
  - Demographics now defaults to display randomized subjects
- **Gem Changes**
  - Dropped support for Ruby 2.2
  - Updated to Ruby 2.3.3

### Bug Fixes
- Rails model errors are now again correctly styled using Bootstrap CSS classes

## 8.0.0 (October 24, 2016)

### Enhancements
- **General Changes**
  - Added a page that shows eligibility status for consented
  - Cleaned up navigation menu
  - Cumulative consented replaces cumulative screened on dashboard
  - Document and video tables now display better on smaller devices
  - Improved friendly forwarding to internal pages
- **Setup Changes**
  - Improved display of users index and added number of total users
  - DSMB member flag changed to Unblinded flag
- **Gem Changes**
  - Updated to rails <IP_ADDRESS>
  - Updated to pg 0.19.0
  - Updated to jquery-rails 4.2.1

### Bug Fix
- Fixed a bug with pagination when documents and videos were archived

## 7.0.0 (August 3, 2016)

### Enhancements
- **General Changes**
  - Improved links on landing page
  - Updated title slide on landing page
  - Improved underlying user interface layout
  - Hovering mouse over tables now also highlights the corresponding column
  - Added Eligibility Status report to navigation menu
- **Gem Changes**
  - Updated to rails 5.0.0
  - Updated to coffee-rails 4.2
  - Updated to jbuilder 2.5
  - Updated to jquery-rails 4.1.1
  - Updated to bootstrap-sass 3.3.6
  - Added rails-controller-testing

### Refactoring
- Updated kaminari pagination views to use haml

### Bug Fix
- Fixed emails in forked processes from not being sent
- Fixed back navigation not working after viewing a PDF
- Fixed a bug that prevented users from logging in correctly with an expired
  authenticity token

## 6.0.0 (July 12, 2016)

### Enhancements
- **General Changes**
  - Added a demographics report page
    - Demographics report pages displays charts for age by gender, and gender
      by race
  - Added a eligibility status report page
  - Document sizes no longer wrap across multiple lines
- **Gem Changes**
  - Updated to turbolinks 5
  - Updated to devise 4.2.0
  - Updated to kaminari 0.17.0
  - Updated to simplecov 0.12.0

## 5.0.0 (June 27, 2016)

### Enhancements
- **General Changes**
  - Logged in users now see their Staff ID next to their name in the menu
  - Recruitment charts and tables are now displayed on the internal landing page
    - Added individual pages detailing charts and tables for:
      - Screened
      - Consented
      - Eligible
      - Randomized
  - Adjusted how menu is displayed on mobile devices
- **Email Changes**
  - Styling has been added to all emails
- **Setup Changes**
  - Editors can now set members as archived to hide the member from the
    directory
  - Editor document lists are now sortable by name and upload time
  - Embed URLs no longer autocomplete when adding videos as an editor
- **Gem Changes**
  - Updated to Ruby 2.3.1
  - Updated to rails 4.2.6
  - Updated to carrierwave 0.11.2

## 4.0.1 (March 1, 2016)

### Enhancements
- **Gem Changes**
  - Updated to rails <IP_ADDRESS>

## 4.0.0 (February 29, 2016)

### Enhancements
- **General Changes**
  - Improved layout for smaller screen sizes
- **Calculator Changes**
  - Increased the number of characters for height and weight to account for
    decimals
- **Category Changes**
  - Categories can now set their top level folder name
  - Videos can now be embedded on categories
  - Categories can be set to be only viewable by DSMB members
- **Setup Changes**
  - Admin and editor setup pages are now more consistent and have an updated
    user interface
- **User Changes**
  - Users can be set as DSMB members

### Bug Fix
- Fixed a bug preventing editors from viewing sites in project setup
- Fixed a bug preventing users from accessing password reset page

## 3.0.1 (February 16, 2016)

### Enhancements
- **Calculator Changes**
  - Changed the ordering of height and weight on the Pediatric BMI Z-Score
    Calculator

## 3.0.0 (February 9, 2016)

### Enhancements
- **General Changes**
  - Several UI consistency changes
- **Member Changes**
  - Members can now be assigned a Staff ID
- **Calculators Added**
  - Added a Body Mass Index Z-Score calculator based on:
    - http://www.cdc.gov/growthcharts/percentile_data_files.htm
    - http://www.cdc.gov/growthcharts/data/zscore/bmiagerev.csv
  - Added a Blood Pressure Percentile calculator based on:
    - http://www.cdc.gov/growthcharts/percentile_data_files.htm
    - http://www.cdc.gov/growthcharts/data/zscore/statage.csv
  - BMI Z-Score also provides the BMI Percentile as output
- **NDC Drug Search Added**
  - Added a search page for NDC drug codes
- **Gem Changes**
  - Updated to Ruby 2.3.0
  - Updated to rails <IP_ADDRESS>
  - Updated to pg 0.18.4
  - Updated to simplecov 0.11.2
  - Updated to web-console 3.0.0

## 2.0.0 (November 6, 2015)

### Enhancements
- **User Changes**
  - Added admin, editor, and viewer roles for internal pages of website
  - Users must be approved before being able to complete login
- **Admin Changes**
  - Admins can create and update generic username and password viewer logins
  - Viewer logins have read-only access to the internal site
- **Directory Changes**
  - Editors can now create and update member listings in the directory
  - Approved viewers can view the directory from their dashboard
  - Members in directory are grouped by site
- **Committee Changes**
  - Editors can now create and update committees
  - Editors can add and remove members from committees
  - Editors can set members as committee chairs
  - Viewers can view committees from their dashboard
- **Site Changes**
  - Editors can now created and update sites
  - Editors can add members to sites
  - Editors can specify the center type for sites
    - ex: Recruiting Center, Coordinating Center
  - Editors can add contact information to sites
- **Document Changes**
  - Editors can now create and update document categories to organize documents
  - Editors can now upload documents to categories
  - Editors can archive existing documents and categories
  - Viewers can now download documents
- **General Changes**
  - Public home page includes:
    - Information about the study
    - Information on how to participate
    - List of participating sites
    - General contact information
    - Internal login link for study staff
  - Added link to ClinicalTrials.gov
  - Public list of participating sites added
  - Public contact page added

## 1.0.0 (October 20, 2015)

- Skeleton files to initialize Rails application with testing framework and
  continuous integration
- Started work on initial color scheme, font family, and user interface

gha_language: Ruby


text:
# Minimal Node environment

Minimal Node environment with Babel, Jest, Eslint, Nodemon

## Installation

Clone the repo then run

```sh
  npm install
```

## Usage example

For starting nodemon on `src/app.js` run

```
  npm start
```

## Run tests

```
npm run test
// or
npm run test:watch
```

## Linting

```
npm run lint
// or
npm run lint:fix
```

## Build

```
// build to 'build' folder
npm run build
```

## Build binary

```
// build binary into 'bin' folder
npm run build:bin
```

## Meta

Distributed under the MIT license. See `LICENSE` for more information.

[https://github.com/yourname/github-link](https://github.com/dbader/)

## Contributing

1. Fork it (<https://github.com/yourname/yourproject/fork>)
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request

license: MIT

repository: szib/minimal-node

branch_name: refs/heads/master

extension: md

gha_language: JavaScript

gha_license_id: MIT

license_type: permissive

repo_name: szib/minimal-node


text:
---
layout: post
tags: devops, ansible, network automation
title: Getting Structured Data Back from CLI Devices
---

About 6 months ago, I wrote a post titled [Programmatic Access to CLI Devices with TextFSM](/home/programmatic-access-to-cli-devices-with-textfsm) that talked about what was possible with [TextFSM](http://code.google.com/p/textfsm/wiki/TextFSMHowto) and even some things that could be possible with Ansible.

The overall feedback about the Ansible module (aka *netget*) shown in that post was great --- it was ultimately taking input parameters such as the template file along with the CLI command to execute on the devices in order to return structured JSON data back using Ansible.  In other words, the module used Ansible and TextFSM to create a pseudo-API for accessing data in *traditional* (no API support) devices.

Since then, [we](http://networktocode.com) have been using TextFSM for a few customer projects and found out there was another capability within TextFSM to create what's called an "index" or a mapping between CLI commands, vendors, and TextFSM templates.  By integrating this functionality, instead of users needing to know what template to call, they can simply just send in the show command, while the index maps the command to the proper template!  Pretty sweet!

Needless to say, the Ansible module is officially [online](https://github.com/networktocode/ntc-ansible) and is now called *ntc_show_command*.

With the right amount of community support, it shouldn't be hard to build up the index to supports dozens of commands across different types of network platforms!

Note: THIS IS NOT LIMITED TO NETWORK DEVICES, but it is using [netmiko](https://github.com/ktbyers/netmiko) (SSH) as it's underlying transport mechanism.

Please check out the [GitHub repo](https://github.com/networktocode/ntc-ansible) - it should have what you need to get started.  The repo has an example of getting JSON data back for HP and Cisco switches using a single playbook and single task.

If there are any questions, please do not hesitate to reach out, and as always, feedback is always appreciated.

Thanks,
Jason

Twitter: @jedelman8

gha_language: HTML


text:
# pretzel-discord-RPC
Share your Pretzel rocks status to discord with Rich presents.

This project is not finished, I am still working on it, I just thought I would put it on GitHub so anyone that wants to can contribute to this project.

Don't forget to open the Pretzal Rocks desktop app and tell it to put the np.json in your project file.

Any questions or suggestions feel free to join my [discord server](https://discord.gg/2YQ2ydr) ![Discord](https://img.shields.io/discord/692419586242641925.svg?logo=discord&colorB=7289DA)
![](screenshots/Discord%20RPC%20Playing.png)

repository: CedarBlocks/pretzel-discord-RPC

repo_name: CedarBlocks/pretzel-discord-RPC


text:
# Fuscoporia weirii (Murrill) Aoshima, 1953 SPECIES

#### Status
SYNONYM

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Bull. Govt Forest Exp. Stn Meguro 59: 61 (1953)

#### Original name
Fomitiporia weirii Murrill, 1914

### Remarks
null

repository: mdoering/backbone

path: /life/Fungi/Basidiomycota/Agaricomycetes/Hymenochaetales/Hymenochaetaceae/Phellinus/Phellinus weirii/ Syn. Fuscoporia weirii/README.md

repo_name: mdoering/backbone


text:
ParSeq Trace Visualization
==========================

This project includes a trace visualizer for
[https://github.com/linkedin/parseq](ParSeq) traces.

Building
========

To build the trace visualizer, use `./gradlew makeDist`. This creates a package for the
trace visualizer at `build/distributions/parseq-tracevis.tar.gz`.

Running the Trace Visualizer
============================

To run the trace visualizer, extract `parseq-tracevis.tar.gz` and open
trace.html in a browser. The tool can also be hosted from a web server.

For coding / debugging, the trace visualizer can also be run from the directory
that hosts this README.

More Info
=========

For more information, see the [ParSeq trace wiki](https://github.com/linkedin/parseq/wiki/Tracing#wiki-trace-tools).

License
=======

This tool is licensed under the terms of the Apache License, Version 2.0.

repository: linkedin/parseq

gha_language: Java

repo_name: linkedin/parseq


text:
# Meta description

Your webpage's meta description is an HTML tag that is intended to provide a short and accurate summary of your page. Search engines use meta descriptions to help identify the page's topic - they may also use meta descriptions by displaying them directly in search engine results. Accurate and inviting meta descriptions can help boost both your search engine rankings and a user's likelihood of clicking through to your page.

## Code example

```
<head>
 <meta name="description" content="This is the description of this page and its content.">
</head>
```

### Best practice

* Use an individual meta description for every page in target language.
* Use meta description with up to 150 characters and keep in mind that on mobile devices only 120 characters are displayed.

repository: renuo/seo-checklist

branch_name: refs/heads/main

repo_name: renuo/seo-checklist


text:
# hyperdrive-gateway-server
Gateway for viewing [hyperdrive][hypercore-protocol] websites.

## Hyperdrive Gateway
See the [Hyperdrive Gateway][hyperdrive-gateway]
repository for more information and documentation for running locally.

[hyperdrive-gateway]: https://github.com/rhythnic/hyperdrive-gateway
[hypercore-protocol]: https://hypercore-protocol.org


text:
# Kleros

[![Join the chat at https://gitter.im/kleros/kleros](https://badges.gitter.im/kleros/kleros.svg)](https://gitter.im/kleros/kleros?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

# Kleros Smart Contracts

## Prerequisites
Install [yarn](https://yarnpkg.com/lang/en/), [Truffle Suite](https://truffleframework.com/) and [Ganache](https://truffleframework.com/ganache)

* `yarn add global truffle`

## Get Started
* `git clone https://github.com/kleros/kleros`
* `cd kleros`
* `yarn`
* Make sure you have the MetaMask Chrome extension installed and are logged in.

### Migrate to local blockchain
Ensure you have Ganache running.
* `yarn migrate`

### Deploy to Kovan testnet
* `yarn deploy`

### Running Tests

Install dependencies using `yarn` package manager:
```
yarn
```
Compile the project using `Truffle` suite
```
truffle compile
```
Run tests
```
truffle test
```

## Contributing
Check out [Contributing](CONTRIBUTING.md)

We follow [GitHub Flow](https://guides.github.com/introduction/flow/) in this repository.

Please see [smart contract guidelines](https://github.com/kleros/kleros/wiki/Guidelines-contracts).

Feel free to ask for help on [slack](https://slack.kleros.io/).

repository: dannybabbev/kleros

repo_name: dannybabbev/kleros


text:
# Developers
knowledge base for developers.

## Useful commands

##### symfony-cmd
`php bin/console server:run` to start the symfony server
`doctrine:migrations:diff` to generate the migration class
`doctrine:migrations:migrate` to execute all migrations
`doctrine:fixtures:load` to load fixtures

##### cmd
`composer install` to install backend dependencies
`yarn install && yarn encore dev` to install & build frontend dependencies
`phpunit` to execute the unit tests
`vendor/bin/php-cs-fixer fix` to fix code style issues
`dep deploy` to deploy

##### develop
login with<EMAIL_ADDRESS>`asdf`
`yarn encode dev-server` starts the frontend dev server
test error templates inside TwigBundle/views by accessing `/_error/404` and `/_error/500`

##### deploy
server must fulfil requirements of `composer.json`
deploy with `famoser/agnes`. For example `vendor/bin/agnes deploy *:*:* master` to deploy master to all environments.

##### ssh
`ssh-copy-id -i ~/.ssh/id_rsa.pub username@domain` to add ssh key
`cat ~/.ssh/id_rsa.pub` to query the active ssh key
`ssh-keygen -t rsa -b 4096 -C "username@domain" && eval $(ssh-agent -s) && ssh-add ~/.ssh/id_rsa` generate a new key & add it to ssh

repository: TheAlternativeZurich/feedback

gha_language: PHP

repo_name: TheAlternativeZurich/feedback


text:
# Pretty Log

[![GoDoc](https://godoc.org/github.com/globocom/prettylog?status.svg)](https://godoc.org/github.com/globocom/prettylog)
[![Go Report Card](https://goreportcard.com/badge/github.com/globocom/prettylog)](https://goreportcard.com/report/github.com/globocom/prettylog)

Application to display JSON logs structured in a format understandable by humans.

![Prettylog](https://github.com/globocom/prettylog/raw/master/prettylog.png)

## Installation

    curl https://github.com/globocom/prettylog/raw/master/install.sh | sh

Assuming that the `$GOPATH/bin` folder is added to the `PATH` of the current user, the application will be available for use immediately after installation.

## Running

Prettylog processes logs containing an arbitrary number of fields, and produces friendly output in the following format:

    <TIMESTAMP> <LOGGER> <CALLER> <LEVEL> <MESSAGE> <FIELD1>=<VALUE> <FIELD2>=<VALUE> ...

If a given field does not exist in the log, it will be ignored in the output generated.

**NOTE**: Currently only logs in JSON format are supported. Logs in other formats, or without any format, will be printed without any modification.

## Usage

The tool was designed to directly read the `stdout` of an application that produces logs in a structured format:

    app | prettylog

If the application writes logs to `stderr` instead of `stdout`, a redirect is required for the tool function properly:

    app 2>&1 | prettylog

## Configuration

The tool can be configured through the `.prettylog.yml` file, which can be located either locally (in the folder where the tool runs), when globally (in the `$HOME` folder). The file structure is as follows:

    timestamp:
      key:     <string>
      visible: <bool>
      color:   <list of int>
      format:  <string>

    logger:
      key:     <string>
      visible: <bool>
      padding: <int>
      color:   <list of int>

    caller:
      key:     <string>
      visible: <bool>
      padding: <int>
      color:   <list of int>

    level:
      key:     <string>
      visible: <bool>
      padding: <int>
      colors:
        debug: <list of int>
        info:  <list of int>
        warn:  <list of int>
        error: <list of int>
        fatal: <list of int>

    message:
      key:     <string>
      padding: <int>
      color:   <list of int>

Each key configures the formatting of a field in the log, and the meaning of each property is described below:

- **key**: Name of the field to be extracted from the application log.
- **visible**: Flag indicating whether the field will be displayed by the tool.
- **padding**: Number of blanks to be added to the right of the field text.
- **color/colors**: Color attributes used to color the field text. Up to 3 values can be informed (foreground, background and effects), according to the [table for ASCII colors](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors).
- **format**: Unique attribute for Timestamp that defines the date format to be displayed on the screen. The value of this attribute you must follow the [Go language specifications](https://golang.org/pkg/time/#pkg-constants) for date format.

## Use with other command line tools

Prettylog can be used in conjunction with other output processing tools, such as `grep`. However, for the output to be formatted correctly, it is necessary to turn off any buffer that is not per line. For example, with `grep` just use the `--line-buffered` option:

    app | grep --line-buffered -v debug | prettylog

If the tool uses a buffer and does not provide a native way to turn it off, try using the [stdbuff](https://www.gnu.org/software/coreutils/manual/html_node/stdbuf-invocation.html).

repository: amintasvrp/prettylog

repo_name: amintasvrp/prettylog


text:
---
published: true
layout: post
category: blog
tags: [javascript, maintainability, testing, polymer, web components]
---

For the first time in a long time, I find myself working with something completely new.  Web Components will
change the way we build applications.  But the browser support and completed specs will take time to
implement.  In the meanwhile, we can use various projects, like [polymer](http://www.polymer-project.org/),
to shim the functionality of web components into today's latest browsers.

Citing Addy Osmani's latest article, [FIRST](http://addyosmani.com/first/), we need to test our components.

I started with the `yo polymer` generator.  It uses bower while I prefer npm/browserify and it uses grunt
while I prefer gulp.  But it does the job setting up the scaffold to get you started fairly well--except for testing.

I found the default setup incapable of running my tests.  I never quite figured out why, but I always got the same
error:

{% highlight bash %}
Warning: PhantomJS timed out, possibly due to a missing Mocha run() call. Use --force to continue.
{% endhighlight %}

Ultimately, I blame PhantomJS as it also times out using [Testem](https://github.com/airportyh/testem):

{% highlight bash %}
...✗ testem ci -l PhantomJS
not ok 1 PhantomJS 1.9 - guid component "before all" hook
    ---
        message: >
            timeout of 2000ms exceeded
    ...

1..1
# tests 1
# pass  0
# fail  1
{% endhighlight %}

So, my solution for TAP output uses Testem with Chrome (`testem ci -l Chrome`) which runs fairly quickly and
dumps the results to the console.  When I want to see it in the browser or debug, I run the `test/index.html`
page as if it were an application (requires a slight reconfiguration of the Gruntfile.js).

I learned that much of the "windup" of a polymer component in Chrome happens asynchronously, so I often write
a mocha before-all hook like this:

{% highlight js %}
// setup
// var component; declared elsewhere
before( function ( done ) {
    component = document.createElement( 'my-component' );
    document.body.appendChild( component );
    var check = setInterval( function () {
        if ( component._readied ) {
            clearInterval( check );
            done();
        }
    }, 300 );
} );
{% endhighlight %}

I also learned that while adding components to the test harness works easy enough, removing them throws errors
if you don't also disconnect the listeners.  Many of my tests have a mocha after-all hook that looks like this:

{% highlight js %}
// teardown
after( function () {
    // we need this because <some child component> will be nested
    // and throws a TypeError when it gets removed
    component.shadowRoot.children.array().forEach( function ( e ) {
        e._observers = [];
    } );
    component._observers = [];
    document.body.removeChild( component );
} );
{% endhighlight %}

I glossed over a few details to keep this short and get to the harder to figure out bits.  If you need me to
cover other areas, let me know.  Also, let me know if this helped you with your testing efforts.


text:
Dibware.Web.Security
====================

A C# .Net 4.5 assembly for use with ASP.Net MVC websites

Membership and Role providers that accept an injected repository which must
confirm to a specified contract. This ensures the providers have no awareness
of where the data they use comes from.

## This is very much A WORK IN PROGRESS!!!

## Prerequisite Assemblies
* Ninject.dll
* System
* System.configuration
* System.core
* System.Web.ApplicationServices
* WebMatrix.Webdata

## Interfaces
* IRepositoryMembershipProvider
* IRepositoryMembershipProviderPasswordService
* IRepositoryMembershipProviderRepository
* IRepositoryRoleProvider
* IRepositoryRoleProviderRepository

## Classes
* RepositoryMembershipProvider
* RepositoryRoleProvider
* WebIdentity
* WebPrincipal

## Git Commits
* Name your commits in the following format YYYYMMDD-HHMM-IINN COMMENT
* Where YYYY    = Year
* Where MM      = Month
* Where DD      = Day
* Where HH      = Hour (24)
* Where MM      = Minute
* Where II      = Initials of developer (2-4 chars)
* Where NN      = Machine name identifier checked in from (2-4 chars)
    * DT = Desktop
    * LT = Laptop
    * BS = Build Server
* Where COMMENT = The work that has been carried out for this commit
* Example 20140321-0525-DWDT WebPrinciple and WebIdentity added

## Standards
Follow Microsoft c# standards
Suggested to use Resharper and follow suggestions where appropriate

### Code Blocks
* All code blocks must be wrapped in braces, even if just one line

### Commenting
* Comment all code, implementation and method signatures
* Suggest that GhostDoc is used for methods, and contenet edited as appropriate
* Keep comments up to date with changes

### Referenced DLLs
* Do not use packages from Nuget in the project or solution- I feel these make the solution messy
* Add referenced .dlls to the Library directory in each project and reference from there
* Remove unused references where known
* Remove unused "usings" from classes and modules

### Regions
* Use region directives to split up logical blocks of code Constructors, Properties, Methods, interface implentations, etc.

### Text Strings
* All text strings must be held in a resource file in the Resources directory

### Unit Tests
* Each project in the solution must have an accompanying TEST project
* Each TEST project must have the same name as the project it is to test but with ".Tests" suffix to the name
* All code must have an accompanying test where possible
* File locations of tests must emulate the location of the class being tested
* Test method names must be in the format of "Test_ActionBeingTested_Conditions_ExpectedResult" where possible


text:
# To-Do list using AngularJS

You can access the application at [GithubPages here][ghpage].

===================================================================

First of all, install [Node.js and the npm package manager][node].
Then clone the project in a folder of your preference:

```
git clone https://github.com/lucaswho/todolist-angularjs.git
```

In your folder, execute the command to install the dependencies:

```
npm install
```

Now you are ready to start the server, using the command:

```
npm start
```

Then you can access the page at [http://localhost:8000][url].

[node]: https://nodejs.org/en/
[url]: http://localhost:8000
[ghpage]: https://lucaswho.github.io/todolist-angularjs/app/

repository: lucaswho/todolist-angularjs

repo_name: lucaswho/todolist-angularjs


text:
go-dbi
======

interface wrapper package of database/sql package.

this package only define interfaces which has same functions with structs in database/sql and implements wrapper structs.

there's no relation to perl's DBI.

## motivation

most of database/sql package implemented with structs, not interfaces in spite of there's no exported members.
so it's difficult to mocking database connection for tests.

## how to use

you can replace database/sql into this package like below.

``` go
import sql "github.com/nasa9084/go-dbi"
```


text:
---
title: Docs - Graphing
---

# Graphing

The main panel for in Grafana is simply named Graph. It provides a very rich set of graphing options.

<img src="/img/v1/graph_overview.png" class="no-shadow">

## Axes, Grid & Legend options
![](/img/v1/graph_axes_grid_options.png)

### Legens values

Check ``Include Values`` under legend styles.

- Total   - Sum of all values returned from metric query
- Current - Last value returned from the metric query

This means that if your series represents a rate, for example requests / second then the Total in the legend will
not represent the total number of requests. It is just the sum of all data points.

## Display options
![](/img/v1/graph_display_styles.png)

If you have stack enabled you can select what the mouse hover feature should show.

- Cumulative - Sum of series below plus the series you hover over
- Individual - Just the value for the series you hover over

repository: martint/grafana-presto

gha_license_id: NOASSERTION

repo_name: martint/grafana-presto


text:
# 0.8.1

* Make room commands take room names optionally ([8fc9aa5cff](https://github.com/JabbR/JabbR/commit/8fc9aa5cffa2ce06b3575406a1f62831d2779e4f))
* Ctrl-Tab switches JabbR tabs in Firefox ([#722](https://github.com/JabbR/JabbR/issues/722))
* Make the middle click only close room tabs ([176a8155c9](https://github.com/JabbR/JabbR/commit/176a8155c998acf2e0b6021a4512f40461301a8e))
* Long usernames in message history handle clicks incorrectly ([#862](https://github.com/JabbR/JabbR/issues/862))
* Make webkit toast click focus on the room that generated the notification ([07896d8d77](https://github.com/JabbR/JabbR/commit/07896d8d774a04044c7a5d5cf5de0a55a6a4ce4a))
* Username change often messes up userlist and message history. ([#867](https://github.com/JabbR/JabbR/issues/867))
* Improve room commands ([#857](https://github.com/JabbR/JabbR/pull/857]))
* Make enter on exact match in room filter input open the room. ([869](https://github.com/JabbR/JabbR/pull/869))
* Username / Message divider display issue ([870](https://github.com/JabbR/JabbR/issues/870))

repository: yadyn/JabbR

gha_language: C#

repo_name: yadyn/JabbR


text:
# ukbb2disease
ukbb2disease computes derived phenotypes, with incidence, prevalence, death, exclusion due to a competing hazard, and censoring, from disease definition files called "tabfiles" (Seung Hoan Choi's original phenotype definition format). As a brief review, tabfiles contain 3 tab-delimited columns: Field, Coding, and exclude. E.g.:

```
Field	Coding	exclude
20002	1076,1079	0
```

*Field* is the UK Biobank FieldID (e.g., `phenotype.FieldID`)

*Coding* is the UK Biobank value (e.g., `phenotype.value` or `coding.coding`)

*Exclude* is whether the row represents an exclusion criterion (1) or an inclusion criterion (0)

# Install updated dependencies
`go get -u`

# Build (examples)
`go build -o ukbb2disease.osx *.go`

`GOOS=linux go build -o ukbb2disease.linux *.go`

# Google Cloud application default credentials
Note that `ukbb2disease` points to a Google Cloud database. It requires that your application default credentials be configured. If you are running it on a GCP virtual machine, this is automatically done. If you are running the program locally, the Google Cloud application default credentials can be configured by running `gcloud auth applicaiton-default login`.

# Database dependencies
This requires the materialized tables (defined in the SQL files in the `ukbb2csv` directory) to exist in tables with the same name as their filename (except the suffix).

# Which UK Biobank fields are understood by the program?
These fields can be listed by running `ukbb2disease -verbose`

# How are exclusions handled?
(If your disease definition does not have exclusions, then this section can be ignored.) For incident disease (disease occurring after UK Biobank enrollment), there are 3 possible states with exclusion criteria:
1. Neither an exclusion nor an inclusion criterion were met.
1. An inclusion criterion was met, and then subsequently an exclusion criterion either was or was not met.
1. An exclusion criterion was met, and then subsequently an inclusion criterion either was or was not met.

As an example, imagine a disease definition of non-ischemic cardiomyopathy (NICM). You may define this as dilated cardiomyopathy in the absence of coronary artery disease (CAD). So, coronary artery disease is an exclusion criterion. However, it is possible for someone with non-ischemic cardiomyopathy to, eventually, develop coronary artery disease years later. So, in a study like the UK Biobank, it would not be reasonable to reach into the future, ascertain someone's future coronary disease status, and exclude them from being considered to have non-ischemic coronary artery disease in the past.

Now going through those 3 categories with the NICM example in mind:
1. If someone never develops a NICM diagnosis nor a CAD diagnosis, they will have an `incident_disease` field set to 0 and a `met_exclusion` field set to 0.
1. If someone develops a diagnosis of NICM, and then years later gets a CAD diagnosis, they will have an `incident_disease` field set to 1 and a `met_exclusion` field set to 0. Even though they eventually met an exclusion criterion, they did not do so prior to disease diagnosis.
1. If someone first develops a diagnosis of CAD, then regardless of whether they subsequently meet an inclusion criterion for NICM, their `incident_disease` field will be marked as 0. To identify this circumstance, note that the `met_exclusion` field will be set as 1.

So, to summarize:
* `incident_disease`:0 and `met_exclusion`:0 means never developed disease nor hit the exclusion criterion
* `incident_disease`:1 and `met_exclusion`:0 means developed the disease, and did not hit the exclusion criterion prior to disease onset (and may or may not have hit the exclusion criterion subsequently)
* `incident_disease`:0 and `met_exclusion`:1 means developed the exclusion criterion, and did not develop the disease prior to the exclusion criterion (and may or may not have hit the disease inclusion criterion subsequently)

repository: carbocation/genomisc

gha_language: Go

repo_name: carbocation/genomisc


text:
---
title: "Currency"
date: 2017-11-14T17:36:37+05:30
weight: 1004
draft: false
---

Open the navigation bar and then click on the **Settings** icon.

![Currency](../../../images/android/settings_icon.png "Currency")

Click on the **Currency** icon from the list.

**Note: The settings are set according to the current company. So if you want the same setting to be reflected for another company, then you will have to open the other company and configure the currency settings from here**

![Currency Settings](../../../images/android/currency_icon.png "Currency Settings")

There are two settings: [Default Currency](#1-default-currency) and [Currency Format](#2-currency-format)

### 1. Default Currency

Change the default currency

![Default Currency](../../../images/android/default_currency_setting.png "Default Currency")

The default is selected as Indian Rupees. Select the required currency from the list below. Then click on **SAVE**. Now all the reports and data shown in the app will have this currency.

![Default Currency Select](../../../images/android/currency_select.png "Default Currency Select")

*If the required currency is not displayed in the list then please contact Biz Analyst<EMAIL_ADDRESS>to request to add the required currency to the list*

### 2. Currency Format

Change the format in which amount is displayed

![Currency Format](../../../images/android/currency_format_setting.png "Currency Format")

Indian currency format (lakhs and crores) is the default format. If you need the amount to be displayed as millions and billions, then choose click on **International**. Then click on **SAVE** to save the changed format. Now all the reports and data shown in the app will have this currency format.

![Currency Format Select](../../../images/android/currency_format_select.png "Currency Format Select")

repository: siliconveins/bizanalystdocs

repo_name: siliconveins/bizanalystdocs


text:
# HTTP Clients
## A survey of URLConnection, Okhttp, and more
This is a presentation I gave during Boise Startup Week at Clearwater Analytics on October 19, 2018.

# Viewing The Presentation
This presentation is written in Markdown format and is intended to be presented using the [reveal-md](https://github.com/webpro/reveal-md) tool.

## Installation
    $ npm install -g reveal-md

## Usage
You can start up the reveal-md Web server and start presenting with the following command.

    $ git clone https://github.com/quincy/devcon2018-http-clients-presentation.git
    $ cd presentation
    $ reveal-md slides.md --css style.css

Alternatively, you can also export the presentation to a static HTML site like this:

    $ cd presentation
    $ reveal-md slides.md --css style.css --static site
    $ firefox site/index.html

...or to a PDF file like this:

    $ cd presentation
    $ reveal-md slides.md --css style.css --print slides.pdf

license: Unlicense


text:
---
id: version-0.5.0-gitlabinfra
title: Gitlab Framework Components
sidebar_label: Gitlab Infrastructure
original_id: gitlabinfra
---
------

This page briefly explains the Gitlab based infrastructure of the OpenEBS CI framework.

![gitlabinfra](/docs/assets/ci-workflows/gitlab_infrastructure.svg)

## Gitlab CI Server

The Cloud-Native Gitlab (EE) Server (represented by the black box in the schematic diagram)
is hosted on a multi-node baremetal OpenShift Cluster with all its components
(Unicorn, Shell, Workhorse, Registry, Sidekiq, Gitaly, PostgreSQL, Redis, Minio) running
as deployments.

## Source Repositories

The Gitlab CI server is integrated & setup to monitor the OpenEBS Github source repositories
(maya, jiva, zfs/cStor & e2e) via pull-based repository mirroring, i.e., creation of Gitlab
repositories corresponding to its respective source on Github, that are automatically updated
via a webhook mechanism whenever there are commits to the source repos. These repositories
are configured with the `.gitlab-ci.yml` files that specify the build/CI steps to be performed
upon commits.

## Gitlab Runners

As part of Gitlab’s CI orchestration, each of the aforementioned OpenEBS components is
configured with dedicated Gitlab Runners, which are responsible for running the Gitlab Jobs
carrying out the build steps. The Gitlab runner implements different kinds of “executors”,
i.e., entity (machine) that runs these steps. The Maya & Jiva repositories are mapped to
“Shell Executors” that run the build steps in pre-configured VMs (installed with all build
dependencies), while the zfs/cStor & e2e repositories are mapped to “Docker-Machine”
executors which are lightweight VMs with Docker installed. In case of the latter, the build
steps are carried out inside the docker containers running on the executor (the docker image
contains the necessary build tools and packages). The “docker-machine” executors are inherently
auto-scaling, which is a necessary feature for e2e builds, as multiple parallel jobs are
spawned during the course of e2e pipeline stages.

repository: avinash-rath/litmus-docs

repo_name: avinash-rath/litmus-docs


text:
# Pehapkari main repository

This is developement repository = ALL PRs and ISSUEs HERE!

[![Build Status](https://img.shields.io/travis/pehapkari/Pehapkari.svg?style=flat-square)](https://travis-ci.org/pehapkari/Pehapkari)
[![Quality Score](https://img.shields.io/scrutinizer/g/Pehapkari/Pehapkari.svg?style=flat-square)](https://scrutinizer-ci.com/g/Pehapkari/Pehapkari)
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/Pehapkari/Pehapkari.svg?style=flat-square)](https://scrutinizer-ci.com/g/Pehapkari/Pehapkari)
[![Latest stable](https://img.shields.io/packagist/v/pehapkari/pehapkari.svg?style=flat-square)](https://packagist.org/packages/pehapkari/pehapkari)

## Install

```bash
composer require pehapkari/pehapkari
```

## Testing

```bash
composer check-cs
vendor/bin/phpunit
```

## Contributing

Rules are simple:

- new feature needs tests
- **all tests must pass**
- **1 feature per PR**

We would be happy to merge your feature then.

repository: pavelvondrasek/Pehapkari

repo_name: pavelvondrasek/Pehapkari


text:
Title: Superhero smart contracts.
Published: 01/01/2099
Tags: Solidity Truffle TruffleSuite Nethereum Ethereum SmartContract
Author: Steven T. Cramer
Excerpt:
---

![][SuperheroSmartContractsImage]

In the new world of crypto currencies, we super hero's, need to be ever vigilant in maintaining our health and mental acuity.  Rarely will I say,  "Truffles will help" but when it comes to testing our "Smart Contracts" a few sweets/suite hit the spot.

[TruffleSuite](https://www.trufflesuite.com/) and [Nethereum](https://nethereum.com/)

Nethereum is an open source cross platform .NET integration library for the Ethereum blockchain. [^1]

TruffleSuite is a Smart Contract development platform consisting of: [^2]
* Truffle - "A world class development environment, testing framework and asset pipeline for blockchains using the Ethereum Virtual Machine (EVM), aiming to make life as a developer easier."
* Ganache - "A personal blockchain for Ethereum development you can use to deploy contracts, develop your applications, and run tests. It is available as both a desktop application as well as a command-line tool (formerly known as the TestRPC). Ganache is available for Windows, Mac, and Linux."
* Drizzle = "A collection of front-end libraries that make writing dapp front-ends easier and more predictable. The core of Drizzle is based on a Redux store, so you have access to the spectacular development tools around Redux. We take care of synchronizing your contract data, transaction data and more."

We are going to use Nethereum with Ganache in this walk through.

# Install Ganache (Local Private ETH Blockchain for testing)

Start Ganache UI and create a new workspace.

![TruffleStartScreen](input\images\SmartContracts\TruffleStartScreen.png)
Add the smart contracts truffle-config.js to the project in the settings.
![TruffleProjectSettings](input\images\SmartContracts\TruffleProjectSettings.png)

# The Smart Contract code (Solidity)

The smart contract isn't that smart but serves as a good example.

```solidity
pragma solidity ^0.5.0;

contract MultiplyContract {
    uint256 _multiplier;

    constructor(uint256 multiplier) public {
        _multiplier = multiplier;
    }

    function multiply(uint256 a) public view returns (uint256 d) {
        return a * _multiplier;
    }
}
```
truffle compile
truffle migrate

# The Nethereum Code. (C#)

>**Don't forget a good superhero keeps their code clean and tested.**

<!---
## Mentorship

If you are tired of coding alone come join us at the [FreezeTeam](https://twitter.com/TheFreezeTeam1).

-->

#### Footnotes:

[^1]: https://nethereum.com/, 2019-08-15

[^2]: https://www.trufflesuite.com/, 2019-08-15

[^3]: Here's one with multiple paragraphs and code.

    Indent paragraphs to include them in the footnote.

    `{ my code }`

    Add as many paragraphs as you like.

[SuperheroSmartContractsImage]: /../images/SuperheroSmartContractsImage.png "SuperheroSmartContractsImage"

repository: josh-welty/TheFreezeTeamBlog

repo_name: josh-welty/TheFreezeTeamBlog


text:
# Minion [![Build Status](https://travis-ci.org/kraih/minion.svg?branch=master)](https://travis-ci.org/kraih/minion)

  A job queue for the [Mojolicious](http://mojolicio.us) real-time web
  framework.

```perl
use Mojolicious::Lite;

my $uri = 'mongodb://<user>:<pass>@<server>/<database>';
plugin Minion => {Mango => $uri};

# Slow task
app->minion->add_task(slow_log => sub {
  my ($job, $msg) = @_;
  sleep 5;
  $job->app->log->debug(qq{Received message "$msg".});
});

# Perform job in a background worker process
get '/log' => sub {
  my $self = shift;
  $self->minion->enqueue(slow_log => [$self->param('msg') // 'no message']);
  $self->render(text => 'Your message will be logged soon.');
};

app->start;
```

  Just start one or more background worker processes in addition to your web
  server.

    $ ./myapp.pl minion worker

## Installation

  All you need is a oneliner, it takes less than a minute.

    $ curl -L cpanmin.us | perl - -n Minion

  We recommend the use of a [Perlbrew](http://perlbrew.pl) environment.

repository: Akron/minion

repo_name: Akron/minion


text:
### The-ApiGateway-With-IdentityServer
2 very important components for Microservice based architecture:
- i) Authentication/Authorization server
- ii) API Gateway/Ocelot

are demonated here:

- Authentication server is used here for generating jwt token. Based on that token, API gateway exposed endpoint can be called.

- API Gateway exposed endpoints publicly to consume that private endpoints.

#### Identity Server4:
Identity Server4 is an OpenIDConnect and OAth2.0 framework for ASPNET Core. It provides jwt token for authentication/authorization.

**Benifits**:
* Centralize authentication logic for all applications (web, mobile, native, services).
* Authentication as Service.
* Access Control for API's using token generation.
* Use as Federated Gateway (external identity providers (google, facebook, Azure Active directory)
* Single Singin/Signout
* Support Dotnet foundation.
* Apachi2 licence

#### API Gateway:
Take all API calls from clients, then route them to the appropriate microservices with request routing, composition
and  protocol translation. Typically it handles a request by invoking multiple microservices and aggregate the results.
It can translate between Web protocol. It invoke various services like product info and review and combine the results.

**Benifits**:
* Act as reverse proxy.
* No need to expose real services endpoints publicly.
* Authentication feature
* Response Caching.
* Api call tracking and Bill generation if needed.
* Centralize API management.

#### Technology used:
* Aspnet Core
* IdentityServer4
* Ocelot API gateway

#### How to run:
- There are 3 projects in the solution:
- 1) IdentityServer project
- 2) Ocelot project
- 3) TodoApi project

**Steps to follow**:
- Step 1. You need to run both 3 projects.
- Step 2. Call IdentityServer projects endpoint (https://localhost:4001/connect/token) (using postman)
- Step 3. Using that token call API gateway exposed endpoint(GET https://localhost:6001/api/todo)
- Step 4. You will received the todo list.

**Note**:
- If you call API gateway exposed endpoints (Ocelot project) without valid token you will get 401 unauthorized error
- If you call directly TodoApi endpoints (TodoApi project) you can get data without any token.
- Scenario: Todo project endpoinsts will be in any private networks and not exposed outside the network.
- Hope you understand the real usecase (Please check the POSTMAN screenshot bellow).

**Collect Jwt Token**:

**Single API call (without any parameters) with exposed API gateway endpoints (return array of Todo objects)**:

**Single API call (with parameters) with exposed API gateway endpoints (return String)**:

**Single API call with exposed API gateway endpoints which return and merged data with 2 API call**:


text:
# Sum the Integers in a File

## Problem

Print the sum of all the integers found in a text file. Each
integer is on it's own line.

For example:

    1
    2
    3
    4
    5
    => 15

## Source:

https://sites.google.com/site/steveyegge2/five-essential-phone-screen-questions

repository: Eventide/learn-rust

repo_name: Eventide/learn-rust


text:
# Ocean theme for iTerm.app

![](https://cloud.githubusercontent.com/assets/143418/5851543/d6d85588-a1bd-11e4-8e29-080efd792418.png)

This is an iTerm.app theme for OS X based on the [base16 Ocean theme](http://chriskempson.github.io/base16/#ocean) and adapted from @mdo's [Terminal.app version](https://github.com/mdo/ocean-terminal).

A little about base16:

> Base16 provides carefully chosen syntax highlighting and a default set of sixteen colors suitable for a wide range of applications.
>
> https://github.com/chriskempson/base16

If you like this theme, be sure to check out the [editor color schemes](https://github.com/chriskempson/base16-textmate) and [Spacegray UI theme](http://kkga.github.io/spacegray/) for Atom and Sublime Text.

## Terminal.app

Check out <https://github.com/mdo/ocean-terminal> for a Terminal.app version.

## Usage

1. Clone this repo.
2. Open up iTerm, go to **Preferences**, then **Profiles**.
3. Select the **Colors** tab, then open the **Load Presets** dropdown and select the **Import** option. Navigate to the `.itermcolors` file and open it.
4. Lastly, set it as your default by selecting the new profile, clicking **Other Actions** in the bottom left and then selecting **Set as Default**.

## Terminal prompt

For more info on customizing your terminal prompt, check out @mdo's `.bash_profile` in
[mdo/config](https://github.com/mdo/config/blob/master/.bash_profile#L1-L13) repo.  For even more info on terminal prompts, check out the [Bash PS1 generator](https://www.kirsle.net/wizards/ps1.html).

## License

This builds on the freely available [base16 project](https://github.com/chriskempson/base16) by @chriskempson, and is licensed MIT.

repository: mathew-kurian/ocean-dark-iterm

repo_name: mathew-kurian/ocean-dark-iterm


text:
### Tests

This folder is for test markdown. The process is;

- add check to the [master list](https://docs.google.com/spreadsheets/d/1wV9_GOy12qDSzdq_-SKvuUfHiBapDbdykQhla1emqUk)
- create research ticket in Jira
- research the check and create a markdown
  - copy the [example file](example.md) and name the new check file what the
  module would be called (e.g.: `aws_ec2_security_group_ingress_open.md`)
  - edit and fill in the check details, including conditions
- create resources in Terraform
  - _to do_
- deploy to AWS demo account
- get API output for unit tests
- **if the research shows a valid check**
- create an implementation ticket in Jira
- create the check in [csw-backend](https://github.com/alphagov/csw-backend)
- write a unit test
  - _to do_

An example is: [aws_ec2_security_group_ingress_open.md](aws_ec2_security_group_ingress_open.md)

repository: alphagov/cyber-security-demo-terraform

gha_language: HCL

repo_name: alphagov/cyber-security-demo-terraform


text:
List of softwares related to Misskey
====

## Apps
### Multi platform
* [Disskey](https://github.com/AyaMorisawa/Disskey) - A lightweight Misskey client for desktop

### Web based
* [MUCS](http://surume.exout.net/mucs/) - Misskey Unofficial Client for Surume

### .NET
* [MisskeyNowPlaying](https://github.com/marihachi/MisskeyNowPlaying) - Let's post to Misskey your playing song info

### iOS
* [syuilo/Misskey-For-iOS](https://github.com/syuilo/Misskey-For-iOS) - Misskey official iOS client

## Libraries
### .NET
* [M#](https://github.com/marihachi/msharp) - MisskeyAPI Library For C#

### Java
* [JMisskey](https://github.com/xReiju/JMisskey) - is a library for Java. You can operate accounts of Misskey in Java with JMisskey.

----
Want to add your software to the list? Please send a pull request!

branch_name: refs/heads/develop


text:
---
description:
    Description metadata should be 25-30 words and written from the specific
    to the general. Put your top keywords first but don't repeat title
    information.
keywords:
title: Geometry
---

\* create a 3-D tetrahedral mesh object and name it 3dmesh\
cmo/create/3dmesh/\
\* unit cube\
surface/cube/reflect/box/0.0,0.0,0.0/1.0,1.0,1.0/\
\* define z plane as tilted interface\
surface/cutplane/intrface/plane/0.,0.,.5/1.,0.,1./1.,1.,1./\
\*define geometric regions\
region/top/ le cube and gt cutplane /\
region/bottom/ le cube and le cutplane /\
\* define material regions\
mregion/mattop/ le cube and gt cutplane /\
mregion/matbot le cube and lt cutplane /\
\* create 25 points (5x5x1) in a plane above the unit cube\
\* place points on the boundaries in the x and y directions (1,1,0)\
rz/xyz/7,6,1/0.,0.,1.1/1.,1.,1.1/1,1,0/\
\* give the points defined by the rz command the name, rayend\
pset/rayend/seq/1,0,0/\
\* create rays between points in rayend and the plane below the cube\
\* distribute 3 points along these rays in the region top\
\* add one point at the upper external boundary for each ray\
regnpts/top/3/pset,get,rayend/xyz/0.,0.,-1./1.,0.,-1./1.,1.,-1./0,0/\
\* distribute 4 points along these rays in the region bottom\
\* add one point at the lower external boundary for each ray\
\* add one point at the material interface for each ray since\
\* bottom contains the interface - a total of 5 points for each ray.\
\* points will be distributed such that the ratio of distances between\
\* any two consecutive pairs of points is 0.6 traveling from the source\
\* of the ray (the plane) to the ray end.\
regnpts/bottom/4/pset,get,rayend/xyz/0.,0.,-1./1.,0.,-1./1.,1.,-1./1,.6/\
\* eliminate coincident or nearly coincident points\
\* 1,0,0 means consider all points\
filter/1,0,0/\
\* give all points a default material type\
zq/imt/1,0,0/1/\
\* rayend points are set to invisible (dud is the code for invisible)\
\* they were used as end points of the rays in the regnpts command\
zq/itp/pset,get,rayend/dud/\
\* assign material colors to the points\
\* identify points that are on material interfaces\
\* identify constrained points\
setpts\
\* connect the points into a Delaunay tetrahedral mesh\
\* do not connect across material interfaces -\
\* add points if necessary to resolve material interfaces\
search\
\* set element material type (color)\
settets\
\* dump mesh to some output form\
dump/gmv/gmv.regnpts\
\* terminate processing\
finish

=

[Return to LaGriT Home Page](index.md)


text:
# CreateDBNodes

Adds a read-only node to a PolarDB cluster.

## Debugging

[OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.](https://api.aliyun.com/#product=polardb&api=CreateDBNodes&type=RPC&version=2017-08-01)

## Request parameters

|Parameter|Type|Required|Example|Description|
|---------|----|--------|-------|-----------|
|Action|String|No|CreateDBNodes|The operation that you want to perform. Set the value to **CreateDBNodes**. |
|DBClusterId|String|Yes|pc-\*\*\*\*\*\*\*\*\*\*\*\*\*|The ID of the PolarDB cluster. |
|DBNode.N.TargetClass|String|No|polar.mysql.x4.medium|The specification of the node to be added. The specification of the new node must be the same as that of the existing nodes. For more information about the node specifications, see [Specifications and pricing](~~68498~~).

**Note:**

-   You must specify at least one of the DBNode.N.ZoneId and DBNode.N.TargetClass parameters. N is an integer that starts from 1. The maximum value of N is equal to 16 minus the number of existing nodes.
-   You can add multiple read-only nodes to only PolarDB for MySQL clusters at a time. A PolarDB for MySQL cluster contains a maximum of 15 read-only nodes. |
|DBNode.N.ZoneId|String|No|cn-qingdao-c|The zone ID of the node to be added. The zone ID of the new node must be the same as those of existing nodes. You can call the [DescribeRegions](~~98041~~) operation to query the IDs of zones.

**Note:**

-   You must specify at least one of the DBNode.N.ZoneId and DBNode.N.TargetClass parameters. N is an integer that starts from 1. The maximum value of N is equal to 16 minus the number of existing nodes.
-   You can add multiple read-only nodes to only PolarDB for MySQL clusters at a time. A PolarDB for MySQL cluster contains a maximum of 15 read-only nodes. |
|ClientToken|String|No|6000170000591aed949d0f54a343f1a4233c1e7d1c5ca816be|The client token that is used to ensure the idempotence of the requests. If an API operation is idempotent, the API operation returns the same result for identical requests. The value of this parameter is generated by the client and must be unique among different requests. The value is case-sensitive and can be a maximum of 64 ASCII characters in length. |

## Response parameters

|Parameter|Type|Example|Description|
|---------|----|-------|-----------|
|DBClusterId|String|pc-\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*|The ID of the cluster. |
|DBNodeIds|List|pi-\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*|The ID of the node that was created. |
|OrderId|String|11111111111111|The ID of the order. |
|RequestId|String|E053E730-5755-4AA9-AA9D-A47867\*\*\*\*\*\*|The ID of the request. |

## Examples

Sample requests

```
http(s)://polardb.aliyuncs.com/? Action=CreateDBNodes
&DBClusterId=pc-*************
&<Common request parameters>
```

Sample success responses

`XML` format

```
<DBNodeIds>
    <DBNodeId>pi-***************</DBNodeId>
    <DBNodeId>pi-***************</DBNodeId>
</DBNodeIds>
<RequestId>E053E730-5755-4AA9-AA9D-A47867******</RequestId>
<DBClusterId>pc-***************</DBClusterId>
<OrderId>11111111111111</OrderId>
```

`JSON` format

```
{
    "DBNodeIds": {
        "DBNodeId": [
            "pi-***************",
            "pi-***************"
        ]
    },
    "RequestId": "E053E730-5755-4AA9-AA9D-A47867******",
    "DBClusterId": "pc-***************",
    "OrderId":<PHONE_NUMBER>1111
}
```

## Error codes

For a list of error codes, visit the [API Error Center](https://error-center.alibabacloud.com/status/product/polardb).


text:
# HackerNews Scrapy

This is a Scrapy project to scrape the [Hacker News](https://news.ycombinator.com/) for Python articles related.

# Items

The items scraped by this project are articles, and the item is defined in the class:
```
hackernews_scrapy.items.ArticleItem
```

# Crawl Spider

This project contains a `CrawlSpider` called `pythonhackernews` that you can see by running:

`scrapy list`

## Crawl Spider: pythonhackernews

The `pythonhackernews` crawlspider scrapes the Hacker News (news.ycombinator.com) for Python articles related.

This spider doesn't crawl the entire news.ycombinator.com site but only the first 9 pages by default.

So, if you run the spider regularly (with `scrapy crawl pythonhackernews`) it will scrape only those 9 pages.

# Pipelines

This project uses two pipelines: ValidateArticlePipeline and MongoDBPipeline.

The `ValidateArticlePipeline` can be found in this class:
```
hackernews_scrapy.pipelines.ValidateArticlePipeline
```
This pipeline filter out websites containing 'Python' or 'python' in their title.

The `MongoDBPipeline` can be found in this class:
```
hackernews_scrapy.pipelines.MongoDBPipeline
```

This pipeline saves the articles in the MongoDB database if is not already saved.


text:
# Disallow using UPPER/LOWER functions in comparisons

## Rule Details

This rule disallows using `UPPER` or `LOWER` functions
when performing comparisons since this is not required
in case insensitive databases and can affect query SARGability.

Examples of **incorrect** code for this rule:

```tsql
SELECT user_name
FROM dbo.MyTable
WHERE UPPER(first_name) = 'NATHAN';
```

Examples of **correct** code for this rule:

```tsql
SELECT user_name
FROM dbo.MyTable
WHERE first_name = 'NATHAN';
```

repository: tsqllint/tsqllint

repo_name: tsqllint/tsqllint


text:
**Calculator Pro (NCalc+ pro)**

[<img src="https://developer.android.com/images/brand/en_generic_rgb_wo_60.png">](https://play.google.com/store/apps/details?id=com.duy.calculator.free)

Powerful calculator for Android.

**Use high technology**

	- Calcuator hand write (MyScript)
	- Hand draw geometric (MyScript)
	- Camera input (Micro Blink)
	- Voice input (Google)
	- Symja (Math library)

FEATURE:

**ALGEBRA**

	1. Computer science
	2. Solving the equation:
	3. Solve system equations
	4. Graphing
	5. Cartesian geometry sand(Viet Nam Education)
	6. Unit Conversions
	8. Simplify expressions
	9. Polynomial factorization.
	10. Binomial expansion Newton
	11. Matrix

**ANALYTICS**

	1. Derivative
	2. Antiderivative
	3. Definite integrals
	4. Find the limit of the sequence, function

**TRIGONOMETRIC**

	1. Trigonometric expand: sin(2x) -> 2sin(x)cos(x)
	2. Trigonometric reduce: 2sin(x)cos(x) -> sin(2x)
	3. Trigonometric to exponent: sinh(x) -> (e^x-e^(-x))/2

**DETERMINATION OF STATISTICS**

	1. Combination
	2. Permutation

**SOME OTHER FEATURES**

	1. Prime factors
	2. Modulo
	3. Catalan number
	4. Fibonacci number

The Calculator does not show the steps to solve the equations, system of equations, derivative... but only for the final result.
Enter **sin(30°)** to calculate sine Degree mode

The computer can work in two modes:
- 	Decimal mode: 0.12312312323
- 	Mode fractions: for results with arbitrary precision, for example 9^99999

Fanpage application support: https://www.facebook.com/calculator.n.plus/
Any suggestions on the application please send mail<EMAIL_ADDRESS>
**License**

	Copyright 2017 Tran Le Duy

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

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

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

repository: Agha-Muqarib/calculator-pro

repo_name: Agha-Muqarib/calculator-pro


text:
# MLExplore
Explore Machine Learning algorithms

A serie of tutorials for understanding some machine learning algorithms & use cases through practice, are presented.
The tutorials are based on Jupyter Notebooks and explain the maths underneath,
suggest an implementation of the algorithms and apply them on small dataset exemples.

The first tutorial is about Bayesian classifiers, more to come, stay tuned!

Author: Chamsdine SADIKOU <br/>
Company: CS CONTROLCOM
Version: 1.0.0

repository: cscontrolcom/MLExplore

gha_language: Jupyter Notebook

repo_name: cscontrolcom/MLExplore


text:
# Change Log

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.0.0] - 2016-10-30
### Added
- Development and production build processes using [Webpack](https://webpack.github.io/)
- Support for styling with [Sass](http://sass-lang.com/)
- Support for [TypeScript 2](http://www.typescriptlang.org/)
- Sample Angular 2 app
- Sample usage of [Material Design for Angular 2](https://github.com/angular/material2)
  themes and Components
- TypeScript linting (static code analysis) with [TSLint](https://github.com/palantir/tslint)
- The [Codelyzer](https://github.com/mgechev/codelyzer#codelyzer ) TSLint rule set to
  enforce the [Angular 2 Style Guide](https://angular.io/styleguide)
- Support for unit testing with [Jasmine](http://jasmine.github.io/) (assertion library),
  [Karma](https://karma-runner.github.io/1.0/index.html) (test runner) and
  [Phantom.js](http://phantomjs.org/) (test environment)
- Sample unit tests for Angular 2 Components and Services
- Simple Todo app based on [Material Todo](https://github.com/danielzen/material-todo)


text:
This project is no longer maintained. The underlying window managment libraries became too isolated from each other and their APIs change too rapidly. As of 2019, there is no good option for managing windows that would work across the man most popular desktop environments.

# Azulejo

Azulejo is a port (an attempt to) of [winsplit revolution](http://www.winsplit-revolution.com/)'s functionality to *nix desktop environments.
Simply put, it resizes and moves windows using keyboard shortcuts.

It has been tested on gnome2, xfce and openbox, but it should work on many other desktop enviromnents.

## Rationale

Traditional floating window managers are very intuitive and extemely popular. Most of the people don't even know other kinds of window managers exist, or what a window manager is.
Being able to move and resize windows with a mouse is a killer feature, but for those that spend the whole day in front of a screen switching between windows and resize them every now and then, floating window managers end up standing more on the way than being helpfull.
Moving the hands back and forward between the keyboard and the mouse consumes too much time and is rather ineficient. Also, the mouse is not really designed to be a precision device, hitting the right pixel can be an headache.
To mitigate these problems, some users switch to tiling window managers, which take a radically different approach and tend to be notoriously more productive. But the switch is often painful, many aquired workflows are abruptly broken and a fairly big amount of keyboard shortcuts need to be memorized just to achieve basic usage.
This is where azulejo comes in, it adds some tiling features but leaves your window manager untouched, you can still move and resize your windows with the mouse like you allways did.

## Installation

If you use Debian, Ubuntu, or any other debian based operative system, the recomended way is simply downloading and installing the deb package. Check out the [downloads page](https://github.com/plainas/azulejo/downloads).

Alternatively, you can install it using distutils or simply run the ''run.py'' file present on the project's root dir. Read the INSTALL file for more info.

## Usage

Azulejo doesn't have a GUI nor a CLI, simply use the keyboard shortcuts whenever you need :)
The following is the default keymap:

	Super+2		Place two windows side by side
	Super+3		Place a window on the left half of the screen and two on the right half
	Super+4		Arrange four windows two by two
	Super+R		Rotate windows' positions i.e. cycle windows
	Super+H		Resize and move current window to the left
	Super+K		Resize and move current window to the right
	Super+Y		Resize and move current window to left upper corner
	Super+U		Resize and move current window to right upper corner
	Super+B		Resize and move current window to left lower corner
	Super+N		Resize and move current window to right lower corner

## Configuration

Azulejo configurations are stored on ''~/.azulejo.json''.

TODO: add/explain example

## contact

<EMAIL_ADDRESS>

repository: plainas/azulejo

repo_name: plainas/azulejo


text:
# The psipy package
The `psipy` python package wraps around the [PSI-Solver](http://psisolver.org/) and allows you to to access its functionality in python.

### Preliminary requirements ###
1. Install the [pyd package](https://github.com/ariovistus/pyd). Clone the repo, cd into it and type `python setup.py install`
2. Install the dmd comiler: [DMD compiler](https://dlang.org/download.html)

### Installation (tested on Ubuntu 16.04) ###

1. Clone now the psipy repo to your designated directory (first command from below)
```
git clone --recursive https://github.com/ML-KULeuven/psipy.git
```
2. Built the PSI-Solver:
```
cd psipy
python psipy/build_psi.py
```
3. Build the python library for the PSI-Solver:
```
python setup.py install
```
4. Copy paste the final print-out line of this command (starts with export) into your .bashrc. This will add the path to the psipy library to the PYTHONPATH.

### Test ###
```
python
> import psipy
> a = psipy.S("3")
> b = psipy.S("2")
> c = psipy.add(a,b)
```
`c` should now return `5`.

repository: vishalbelsare/psipy

repo_name: vishalbelsare/psipy


text:
---
---

1 T butter
1 T flour
1/3 cup scalded milk
1/4 teaspoon salt
2 T grated cheese
1 egg yolk, beaten
1 egg white, beaten stiff

Melt butter in saucepan over low heat.  Stir in flour using wooden spoon.  Pour in milk slowly and cook 2 minutes stirring continuously.

Add salt and cheese and remove from heat.  Stir several spoonfuls of sauce into beaten egg yould and then stir into remaining sauce.

Fold in stiffly beaten egg white.

Pour mixture in buttered baking dish.  Bake 30 min at 325 degrees.  Serve immediately.

OR:
Line bottom and side of 10 oz casserole dish with 1 buttered slice of bread cut into 6 pieces (buttered sides down).
Beat together:
1 egg
1/2 cup milk
1/4 cup grated cheese
dash of salt
dash of onion salt
6-8 drops red pepper sauce

Pour mixture over bread.  Bake at 350 degrees for 35 minutes.

repository: rdyar/tdfc

branch_name: refs/heads/gh-pages

gha_language: CSS

repo_name: rdyar/tdfc


text:
+++
title = "chocolatey_package resource"
draft = false
platform = "windows"

[menu]
  [menu.inspec]
    title = "chocolatey_package"
    identifier = "inspec/resources/os/chocolatey_package.md chocolatey_package resource"
    parent = "inspec/resources/os"
+++

[\[edit on GitHub\]](https://github.com/inspec/inspec/blob/master/docs-chef-io/content/inspec/resources/chocolatey_package.md)

Use the `chocolatey_package` Chef InSpec audit resource to test if the named [Chocolatey](https://chocolatey.org/) package and/or package version is installed on the system.

## Availability

### Installation

This resource is distributed along with Chef InSpec itself. You can use it automatically.

### Version

This resource first became available in v2.1.30 of InSpec.

## Syntax

A `chocolatey_package` resource block declares the name of a Chocolatey package to be tested:

    describe chocolatey_package('name') do
      it { should be_installed }
    end

where

- `('name')` must specify the (case-sensitive) name of a package, such as `'nssm'`
- `be_installed` is a valid matcher for this resource

## Examples

The following examples show how to use this Chef InSpec audit resource

### Test if NSSM version 2.1.0 is installed

    describe chocolatey_package('nssm') do
      it { should be_installed }
      its('version') { should eq '2.1.0' }
    end

## Matchers

For a full list of available matchers, please visit our [matchers page](/inspec/matchers).

### be_installed

The `be_installed` matcher tests if the named package is installed at all.

    it { should be_installed }

### version

The `version` matcher tests if the named package version is on the system:

    its('version') { should eq '2.1.0' }

You can also use the `cmp OPERATOR` matcher to perform comparisons using the version attribute:

    its('version') { should cmp >= '1.93.4-13debug84' }

`cmp` understands version numbers using Gem::Version, and can use the operators `==, <, <=, >=, and >`. It will compare versions by each segment, not as a string - so '7.4' is smaller than '7.30', for example.


text:
---
cip: 19
title: Basic Profile Definition
author: Michael Sena (http://github.com/michaelsena), Joel Thorstensson (http://github.com/oed)
status: Last Call
category: Standards
type: RFC
created: 2020-05-22
Edited: 2020-09-28
requires: IdentityIndex (IDX) (CIP-11)
---

## Simple Summary

The **Basic Profile** contains a DID's basic profile information.

## Abstract

Decentralized identifiers (DIDs) are simply abstract strings that uniquely represent an entity on the web. These entities can be people, businesses, organizations, applications, services, DAOs, devices, etc. In order for other users to have a better sense of the entity they are interacting with online, additional context is required. Profile information is usually the first and most common type of information that is added to an identifier to provide context and make them more usable.

The Basic Profile defines a standard for storing a DID's basic profile information (such as name, image, description, etc) using an [IDX Definition (CIP-11)](../CIP-11/CIP-11.md). By standardizing profile information for DIDs, the Basic Profile simplifies how applications can view and display the profiles of their users.

## Motivation

**A profile is one of the most important aspects to identity**: Profiles are often most associated with identity, and the Basic Profile serves as the standard profile for a DID that can be used everywhere across the web.

**DID-agnostic support:** Since Ceramic documents can be created and controlled by any DID, the Basic Profile can be used in conjunction with any DID method.

## Specification

The Basic Profile is simply a *definition* where the record holds the data of the user. Therefore the schma defined in the *definition* describes the profile itself.

### Definition content

**Deployment:** `kjzl6cwe1jw145cjbeko9kil8g9bxszjhyde21ob8epxuxkaon1izyqsu8wgcic`

```json
{
  "name": "Basic Profile",
  "description": "Basic profile information for a DID",
  "schema": "<record-schema-DocID>",
}
```

### Record Schema

The Basic Profile schema defines the format of a document that contains the properties listed below. Properties not defined in the schema *cannot* be included in the Basic Profile, however the schema can always be updated via a new CIP.

| Property           | Description                    | Value                                                        | Max Size | Required | Example                      |
| ------------------ | ------------------------------ | ------------------------------------------------------------ | -------- | -------- | ---------------------------- |
| `name`             | a name                         | string                                                       | 150 char | optional | Mary Smith                   |
| `image`            | an image                       | Image sources                                                |          | optional |                              |
| `description`      | a short description            | string                                                       | 420 char | optional | This is my cool description. |
| `emoji`            | an emoji                       | unicode                                                      | 2 char   | optional | 🔢                            |
| `background`       | a background image (3:1 ratio) | Image sources                                                |          | optional |                              |
| `birthDate`        | a date of birth                | [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)           | 10 char  | optional | 1990-04-24                   |
| `url`              | a url                          | string                                                       | 240 char | optional | http://ceramic.network       |
| `gender`           | a gender                       | string                                                       | 42 char  | optional | female                       |
| `homeLocation`     | a place of residence           | string                                                       | 140 char | optional | Berlin                       |
| `residenceCountry` | a country of residence         | [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) | 2 char   | optional | DE                           |
| `nationalities`    | nationalities                  | array of [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) values | 2 char   | optional | CN                           |
| `affiliations`     | affiliations                   | array of strings                                             | 240 char | optional | Ceramic Ecosystem Alliance   |

**Deployment:** `k3y52l7qbv1frxt706gqfzmq6cbqdkptzk8uudaryhlkf6ly9vx21hqu4r6k1jqio`

```json
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "BasicProfile",
  "type": "object",
  "definitions": {
    "IPFSUrl": {
      "type": "string",
      "pattern": "^ipfs://.+",
      "maxLength": 150
    },
    "positiveInteger": {
      "type": "integer",
      "minimum": 1
    },
    "imageMetadata": {
      "type": "object",
      "properties": {
        "src": {
          "$ref": "#/definitions/IPFSUrl"
        },
        "mimeType": {
          "type": "string",
          "maxLength": 50
        },
        "width": {
          "$ref": "#/definitions/positiveInteger"
        },
        "height": {
          "$ref": "#/definitions/positiveInteger"
        },
        "size": {
          "$ref": "#/definitions/positiveInteger"
        }
      },
      "required": ["src", "mimeType", "width", "height"]
    },
    "imageSources": {
      "type": "object",
      "properties": {
        "original": {
          "$ref": "#/definitions/imageMetadata"
        },
        "alternatives": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/imageMetadata"
          }
        }
      },
      "required": ["original"]
    }
  },
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 150
    },
    "image": {
      "$ref": "#/definitions/imageSources"
    },
    "description": {
      "type": "string",
      "maxLength": 420
    },
    "emoji": {
      "type": "string",
      "maxLength": 2
    },
    "background": {
      "$ref": "#/definitions/imageSources"
    },
    "birthDate": {
      "type": "string",
      "format": "date"
    },
    "url": {
      "type": "string",
      "maxLength": 240
    },
    "gender": {
      "type": "string",
      "maxLength": 42
    },
    "homeLocation": {
      "type": "string",
      "maxLength": 140
    },
    "residenceCountry": {
      "type": "string",
      "pattern": "^[A-Z]{2}$"
    },
    "nationalities": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string",
        "pattern": "^[A-Z]{2}$",
        "maxItems": 5
      }
    },
    "affiliations": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 240
      }
    }
  }
}
```

## **Example**

An example of how to create a Basic Profile document with js-ceramic.

```js
const profile = await ceramic.createDocument('tile', {
  metadata: {
    schema: "<record-schema-DocID>"
    family: "<definition-DocID>"
  },
  content: {
    name: "Samantha Smith",
    image: {
      original: {
        src: "ipfs://bafy...",
        mimeType: "image/png",
        width: 500,
        height: 200
      }
    },
    description: "This is my funny description.",
    emoji: "🚀",
    url: "http://ceramic.network"
  }
})
```

## Rationale

**Decentralization & Trust:** In order for profile information to be universally resolved and publicly available across all platforms., it should be stored on a globally-available, permissionless, and censorship-resistant network (not on any single server). Additionally this information should be owned by a DID and will need to be updated from time to time. These requirements make Ceramic the most appropriate platform for publishing profile content.

## Implementation

* [**js-idx**](https://idx.xyz/): A javascript library for reading and writing data sets associated with a DID

* [**js-idx-constants**](https://github.com/ceramicstudio/js-idx-constants): A javascript library to be used with js-idx which contains the Basic Profile definition.

## Copyright

Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).

repository: ukstv/CIP

repo_name: ukstv/CIP


text:
# Covid-19-Policy-Simulator

A simple RShiny App that simulates changes in covid-19 infection rates when government restriction policies change. It can be adapted for any country, however this version is tailored specifically for Trinidad and Tobago.

**Live Demo** - https://rajeev-ratan.shinyapps.io/Trinidad_Covid19_SIR/

#### Installation

Install required libaries and run the app.r file.

It uses a simple SIR model and changes in policy correspond to changes in Rnaught.

### Full Dashboard
![](https://raw.githubusercontent.com/rajeevratan84/Covid-19-Policy-Simulator/main/Full.png)

### Outputs
1. Cases over time, showing the periods of policy change (dotted line).

![](https://raw.githubusercontent.com/rajeevratan84/Covid-19-Policy-Simulator/main/Cases.png)

2. What happens if we didn't have any lockdowns?
3.
![](https://raw.githubusercontent.com/rajeevratan84/Covid-19-Policy-Simulator/main/without_lockdown.png)

### Inputs (3 Phases in this version)
![](https://raw.githubusercontent.com/rajeevratan84/Covid-19-Policy-Simulator/main/policy.png)

**Parameters Used for SIR Model:**
Detected cases are usally ~10% of actual infections
R0 of 2.25
Gamma = 0.2, beta <- 4.5e-07
beta <- 4.5e-07
Population = 1,394,000
Initial Infect People = 2
Day 0 is 3rd March 2020


text:
---
# Display name
title: Alexa Sacchi

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

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

# Role/position
role: Graduate Student

# Organizations/Affiliations
organizations:
- name: University of Toronto
  url: ""

# Short bio (displayed in user profile at end of posts)
bio: My research interests include social cognitive development in the domain of morality

interests:
- Psychology
- Development
- Social
- Morality

education:
  courses:
  - course: PhD in Psychology
    institution: University of Toronto
    year: 2025
  - course: MA in Psychology
    institution: University of Toronto
    year: 2021
  - course: BA in Psychology
    institution: Rutgers University
    year: 2017

# Social/Academic Networking
# For available icons, see: https://sourcethemes.com/academic/docs/page-builder/#icons
#   For an email link, use "fas" icon pack, "envelope" icon, and a link in the
#   form<EMAIL_ADDRESS>or "#contact" for contact widget.
social:
- icon: envelope
  icon_pack: fas
  link: '#contact'  # For a direct email link, use<EMAIL_ADDRESS>- icon: twitter
  icon_pack: fab
  link: https://twitter.com/al3xuh
- icon: google-scholar
  icon_pack: ai
  link: https://scholar.google.com/citations?user=QkIjUIIAAAAJ&hl=en&oi=ao
- icon: linkedin
  icon_pack: fab
  link: https://www.linkedin.com/in/alexasacchi
# Link to a PDF of your resume/CV from the About widget.
# To enable, copy your resume/CV to `static/files/cv.pdf` and uncomment the lines below.
# - icon: cv
#   icon_pack: ai
#   link: files/cv.pdf

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

# Organizational groups that you belong to (for People widget)
#   Set this to `[]` or comment out if you are not using People widget.
user_groups:
- Researchers
- Visitors
---
This website is under construction! More information will be added soon!

First year graduate student at the University of Toronto- St. George pursuing a Ph.D in developmental psychology. Research interests are broadly related to the social cognitive development of children with specific interest in moral judgement.

Advisor: Christina Starmans

repository: alexasacchi/starter-academic-website

repo_name: alexasacchi/starter-academic-website


text:
# Online/ Offline Budget Tracker

## Table of Contents
* [Description](#description)
* [Technology](#technology)
* [Usage](#usage)
  * [Deployment](#deployment)
  * [Screenshot](#screenshot)
* [Screenshots](#screenshots)
* [Credits](#credits)
* [Contact](#contact)
* [License](#license)

## Description
This is a bugdet tracker application. The apllication is an existing application, however I added functionality to our existing the application to allow for offline access and functionality. Giving users a fast and easy way to track their money is important, but allowing them to access that information anytime is even more important. Having offline functionality is paramount to our applications success.The user will be able to add expenses and deposits to their budget with or without a connection. When entering transactions offline, they should populate the total when brought back online.

## Technology
[Node.js](https://nodejs.org/en/)

[Express.js](https://expressjs.com/)

[MongoDB](https://www.mongodb.com/)

[Mongoosejs](https://mongoosejs.com/docs/guide.html)

[IndexedDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API)

## Usage
The user will be able to add expenses and deposits to their budget with or without a connection. The user is able to enter the name and the amount of the transaction. If the transaction is an expense the user clicks on the `Subtract Funds` button, however if the transaction is a deposit the `Add Funds` button is clicked. All transactions entered appear in a table. When entering transactions offline, they should populate the total when brought back online.

### Deployment
The application was deployed with a MongoDB database to Heroku. A [MongoDB Atlas](https://www.mongodb.com/cloud/atlas) account was created and a database was connected from there to the application.

Click [Budget Tracker](https://nameless-taiga-04904.herokuapp.com/) to deploy application.

### Screenshot

## Credits
* [Adam Simonini](https://github.com/adamsimonini)

## Contact
If you have any questions, I can be reached via:
* <bold>Email</bold><EMAIL_ADDRESS>
## License
Copyright © 2021 Nash Walters

repository: nashwalters/onl-ofl-budget-tracker

repo_name: nashwalters/onl-ofl-budget-tracker


text:
# Get started with React.js in Java!

Thanks to JSweet, you can now play with React.js in Java.

## Usage

```
> git clone https://github.com/cincheo/jsweet-examples-react.git
> cd jsweet-examples-react
> mvn generate-sources
> firefox webapp/<example-name>.html
```

## Prerequisites

- Java 8 JDK is required. Type in ``java -version`` in a console to make sure that you have a >= 1.8 JDK.
- The `node` and `npm` executables must be in the path (https://nodejs.org).
- Install Maven (https://maven.apache.org/install.html).

repository: ksingamp/jsweet-examples-react

repo_name: ksingamp/jsweet-examples-react


text:
# Water it

####  _August 25th, 2017_

#### By **_Daniela Trulls_**

## Description
This is an application built with React, its function is to keep track of intervals of time to remind a nursery employs when is time to water the plans, base on each plan needs.

#### _**Replicating this Project**_

* Clone this Repository.
* In terminal enter "git clone" & paste the copied link.
  * "npm install" in terminal.

## Development server

* In terminal:
  $ webpack
  $ webpack-dev-server

## Technologies Used

_HTML, CSS, JavaSscript, React.

### License

MIT

Copyright (c) 2017 **_Daniela Trulls_**

repository: Danitlls/water-it-react

repo_name: Danitlls/water-it-react


text:
# 🎭 pyctor

Minimalistic implementation of the actor concurrency model powered by asyncio.

##

* Installation:
  * `pip install pyctor` (requires Python `>= 3.7.3`)
* [Examples](examples)
* [API](#api)

## Overview

Pyctor is a lightweight implementation of the actor model for concurrent systems. Actors should only modify their own private state. They can influence other actors in the system through messaging. In Pyctor, we define actors by subclassing the `Actor` class:

```python
class MyActor(pyctor.Actor):
    async def receive(self, sender, message):
        print(f'received message: {message}')
```

Every actor must override the `receive` method. Inside it, the actor responds to the received messages, e.g., by modifying the internal state, sending new messages or creating new actors.

All actors live in a single ecosystem called `ActorSystem`. The actor system controls the lifecycle of every actor and handles message passing between actors. Actors may override lifecycle methods (e.g., `started`, `restarted` or `stopped`) that will be called by the system at specific points throughout actor's life. In the main function below, which serves as an entry point, we create the actor system and the first actor:

```python
async def main():
    system = pyctor.ActorSystem()  # create actor system
    my_actor = system.create(MyActor())  # create first actor
    system.tell(my_actor, 'hello')  # send message to the actor
    await system.stopped()  # await system shutdown
```

The `create` method starts an actor and returns a reference for that actor. Actors may create child actors, forming a hierarchy of actors in the system. Actors should not be modified directly. Instead, they should communicate through messages. Messages are sent with the `tell` method which expects a reference of the actor that shall receive the message. The actor system guarantees that the messages are received in the same order they were sent in.

We run the actor system by passing the main function to the `asyncio.run` method:

```python
if __name__ == '__main__':
    asyncio.run(main())
```

You can find further examples in the [examples](examples) directory.

## API

* `pyctor.ActorSystem`
  * `create(actor, name=None)`

  Start an actor.
  * `tell(actor, message)`

  Deliver a message to an actor.
  * `schedule_tell(actor, message, *, delay=None, period=None)`

  Schedule a message to be delivered to an actor at some time. The message may also be delivered periodically.
  * `stop(actor)`

  Stop an actor.
  * `shutdown(timeout=None)`

  Initialize a shutdown of the actor system.
  * `stopped()`

  Await system shutdown.

* `pyctor.Actor`
  * `receive(sender, message)`

  This method is called by the system every time a message is received by the actor. It must be implemented by the class inheriting from Actor.
  * `create(actor, name=None)`

  Start a child actor. The child actor will be watched.
  * `tell(actor, message)`

  Deliver a message to another actor.
  * `schedule_tell(actor, message, *, delay=None, period=None)`

  Schedule a message to be delivered to another actor at some time. The message may also be delivered periodically.
  * `watch(actor)`

  Watch another actor and receive a `Terminated(actor)` message when the watched actor stops.
  * `unwatch(actor)`

  Stop watching another actor.
  * `stop()`

  Stop the actor.

  Lifecycle callbacks:

  * `started()`

  Called by the system before the actor starts to receive messages.
  * `restarted(sender, message, error)`

  Called by the system if receiving the message caused an error. Actor will continue to receive messages.
  * `stopped()`

  Called by the system before stopping the actor. The actor will not receive messages anymore.

* System messages:
  * `PoisonPill()`

  Stop an actor.
  * `Terminated(actor)`

  Notify that the actor has stopped.
  * `DeadLetter(actor, message)`

  Notify the sender that the actor did not receive the message.

repository: kweimann/pyctor

repo_name: kweimann/pyctor


text:
---
title: What is a computer?
summary: Part One of the WebDev-101 series
date: '2019-01-28T22:12:03.284Z'
category: development
series: WebDev-101
tags: [web, development, computer]
published: false
---

If you are reading this, then you are almost certainly using a computer. That device might come in a few different forms: a smart phone, tablet, laptop, desktop, or even smart device (anyone reading on a smart watch?). They may look and act a little different, but they all fall into the same "computer" category.