text:
---
title: Mocha blanket
category: JavaScript libraries
layout: 2017/sheet
intro: |
  Use [blanket](https://npmjs.com/package/blanket) for easy coverage reporting for Mocha JavaScript tests.
---

### Quickstart guide

Install blanket:
{: .-setup}

```bash
npm i --save-dev blanket
```

In your test helpers, use Blanket before `require`ing:

```js
if (process.env.COVERAGE) {
  require('blanket')({
    pattern: require('path').resolve('./index.js')
  });
}
thing = require('../index');
```

Add to `package.json`:

```json
"scripts": {
  "coverage": "env COVERAGE=1 mocha -R html-cov > coverage.html && open coverage.html"
}
```

Be sure to ignore it:

```bash
echo "coverage.html" >> .gitignore
```

Then run:

```bash
npm run coverage
```

### Travis + coveralls.io support

Visit [coveralls.io] then activate your repo. Then install the appropriate packages:
{: .-setup}

```bash
npm i --save-dev mocha-lcov-reporter coveralls
```

Add this to `.travis.yml`:

```yml
after_success:
  - ./node_modules/.bin/mocha -R mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js
```

Commit, push, wait for Travis to finish.

[blanket]: https://www.npmjs.org/package/blanket
[coveralls.io]: http://coveralls.io

repository: rstacruz/cheatsheets

detected_licenses: MIT ISC BSD-2-Clause

gha_language: SCSS

repo_name: rstacruz/cheatsheets


text:
# BSplines.jl changelog

## master

## v0.3.3

* ![Maintenance](https://img.shields.io/badge/-maintenance-grey) Fix doctests on Julia ≥ 1.7. ([#29](https://github.com/sostock/BSplines.jl/pull/29))

## v0.3.2

* ![Maintenance](https://img.shields.io/badge/-maintenance-grey) Fix doctests on Julia ≥ 1.6. ([#23](https://github.com/sostock/BSplines.jl/pull/23))

## v0.3.1

* ![Maintenance](https://img.shields.io/badge/-maintenance-grey) Fix tests on Julia ≥ 1.6. ([#18](https://github.com/sostock/BSplines.jl/pull/18))

## v0.3.0

* ![BREAKING](https://img.shields.io/badge/-BREAKING-red) `bsplines!(dest, args...)` now returns an `OffsetArray` that wraps `dest`, making its output equal to that of `bsplines(args...)`. ([#8](https://github.com/sostock/BSplines.jl/pull/8))
* ![Feature](https://img.shields.io/badge/-feature-green) `splinevalue` now accepts a keyword argument `workspace` for providing a vector to store intermediate values in order to avoid unnecessary allocations. ([#10](https://github.com/sostock/BSplines.jl/pull/10))
* ![Feature](https://img.shields.io/badge/-feature-green) When calculating derivatives, `bsplines` and `bsplines!` now accept a keyword argument `derivspace` for providing a matrix to store intermediate values in order to avoid unnecessary allocations. ([#16](https://github.com/sostock/BSplines.jl/pull/16))
* ![Feature](https://img.shields.io/badge/-feature-green) `BSplineBasis` and `IntervalIndices` now support reverse iteration via `Iterators.reverse`. ([#15](https://github.com/sostock/BSplines.jl/pull/15))
* ![Enhancement](https://img.shields.io/badge/-enhancement-blue) The default printing of `BSplineBasis` and `Spline` now uses the compact style for printing the breakpoint and coefficient vectors. ([#9](https://github.com/sostock/BSplines.jl/pull/9))
* ![Bugfix](https://img.shields.io/badge/-bugfix-purple) `BSplineBasis` and `IntervalIndices` now implement `IteratorSize` and `eltype` correctly. ([#14](https://github.com/sostock/HalfIntegers.jl/pull/14))

## v0.2.5

* ![Enhancement](https://img.shields.io/badge/-enhancement-blue) `length(::BSplineBasis)` now always returns a value of type `Int`. ([#7](https://github.com/sostock/BSplines.jl/pull/7))

## v0.2.4

* ![Maintenance](https://img.shields.io/badge/-maintenance-grey) Fixed the tests on Julia ≥ 1.6.

## v0.2.3

* ![Maintenance](https://img.shields.io/badge/-maintenance-grey) Compatibility with RecipesBase v1.

## v0.2.2

* ![Maintenance](https://img.shields.io/badge/-maintenance-grey) Compatibility with RecipesBase v0.8.

## v0.2.1

* ![Maintenance](https://img.shields.io/badge/-maintenance-grey) Compatibility with OffsetArrays v1.

## v0.2.0

* ![Feature](https://img.shields.io/badge/-feature-green) New functions `basismatrix` and `basismatrix!`.

## v0.1.0

Initial release.

license: MIT

branch_name: refs/heads/master

extension: md

gha_language: Julia

gha_license_id: NOASSERTION

license_type: permissive


text:
# NMT > TED Talks / IWSLT'15 > Ace

We use LPLs to rerank n-best lists produced from the state-of-the-art Transformer low-resource baselines also presented in [Transformers without Tears: Improving the Normalization of Self-Attention](https://arxiv.org/abs/1910.05895) (Nguyen and Salazar, 2019).

You can use the recipes in the [Ace codebase](https://github.com/tnq177/transformers_without_tears), which implements these baselines and produces n-best lists in the expected format.

We include our trained model's 100-best lists on IWSLT'15 English-Vietnamese at `data/en2vi/nbest/*`. The reference translation pairs can be found at https://github.com/tnq177/transformers_without_tears/blob/master/data/en2vi/test.vi.

## Scoring

```sh
for set in dev ; do
    for tup in "en,vi" ; do
        IFS="," read src tgt <<< ${tup}
        pair="${src}2${tgt}"
        PREFIX_DIR=data/${pair}/nbest
        for model in bert-base-multi-uncased ; do
        	mkdir -p output/${model}
            echo ${set} ${pair} ${model}
            mlm score \
                --mode hyp \
                --model ${model} \
                --gpus 0 \
                --split-size 500 \
                ${PREFIX_DIR}/${set}.${src}.bpe.beam_trans.nobpe \
                > output/${model}/${set}-${pair}.lm.json
        done
    done
done
```

## Rescoring

```sh
for set in dev ; do
    for tup in \
        "en,vi,bert-base-multi-uncased,0.15" ; do
        IFS="," read src tgt model weight <<< "${tup}"
        pair="${src}2${tgt}"
        PREFIX_DIR=data/${pair}/nbest
        echo ${set} ${tup}
        mlm rescore \
            --model ${model} \
            --weight ${weight} \
            --ref-file ${PREFIX_DIR}/${set}.${tgt} \
            --ln 1.0 \
            ${PREFIX_DIR}/${set}.${src}.bpe.beam_trans.nobpe \
            output/${model}/${set}-${pair}.lm.json \
            > output/${model}/${set}-${pair}.lambda-${weight}.json
        done
    done
done
```

This will also output the BLEU score after rescoring.

repository: anmoisio/mlm-scoring

repo_name: anmoisio/mlm-scoring


text:
# How to Contribute

## Pull Requests

Generally we like to see pull requests that:

-   Maintain the existing code style
-   Are focused on a single change (i.e. avoid large refactoring or style adjustments in untouched code if not the primary goal of the pull request)
-   Have [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/)
-   Have tests
-   Do not decrease the current code coverage

### Curating Git Commit History

Use a squash rebase workflow using [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/), and [trunk based branching](https://trunkbaseddevelopment.com).

Squashing "atomic" commits and rebasing them onto main results in a curated git log/history. We might think of squashing commits as an editing exercise, like the changes we might make while proof reading a message, paper, or article before publishing it. This curation is intended to produce a consistent narrative in the git logs, free of implementation details, such as those that are produced while manually testing and revising code.

Following are some questions we might ask to assess the quality of the commit messages that are submitted in a pull-request (PR).

- Do the commits follow [conventions](https://www.conventionalcommits.org/en/v1.0.0/)
- Are the commits easy to understand and reason about? Do they contribute to a greater narrative?
- Will future you be able to reason about the git history by reading through these commit messages?
- Will a new team member without any context, and with no access to you be able to reason about the git history by reading through these commit messages?
- Can we connect the commits to the requirements/bug/feature/ticket they are developed for?
- Would it be easy to debug using `git bisect`?
- If there are conflicts, are they easy to resolve?

Following are some examples:

#### Fetch from an appropriate origin

```Shell
git fetch
git checkout main
```

#### Create a bug/feature branch

`git checkout -b [BRANCH_NAME]`

#### Do your work

Consider writing "atomic" commits (a commit per unit of work) so it's easier to remember what you did at the end of this workflow

#### When you're ready to submit a PR, rebase from main

```Shell
git fetch
git rebase origin/main
```

#### Find the commit hash (SHA) for commit _before_ the first commit you made on this branch

```Shell
git log --oneline

# OR if seeing the author and time helps:
git log --pretty=format:'%C(yellow)%h %C(cyan)%an: %C(reset)%s%C(blue)%d %C(green)%cr%C(reset)'
```

In the following example, my first commit on this branch is: 09bab93, so the commit I'm looking for is, 907835a.

```
4b0d519 (HEAD -> features/init) chore: adds private-true to package.json
533eb56 chore: adds linting rules
b8591b9 chore: adds ADR for screaming architecture
0441e8f chore: adds ADR folder to the root-folders ADR
fdf0ffa chore: adds the src directory, and a README stub
9352acf chore: adds ADR for root folder organization
b9d5521 chore: adds ADR directory and README
9c0601b chore: adds package.lock
167e102 chore: adds gitignore
09bab93 chore: initializes the repo
907835a (origin/main, origin/HEAD, main) chore: creates README
fe56cd3 chore: creates repo
```

#### Perform an interactive rebase to that commit

`git rebase -i [SHA]`

Leave the top entry as "pick", and change the rest of the "pick"'s to "squash". After you `:wq`, you will be given an opportunity to rewrite the commit message.

When you're done the following:
```
pick 09bab93 chore: initializes the repo
pick 167e102 chore: adds gitignore
pick 9c0601b chore: adds package.lock
pick b9d5521 chore: adds ADR directory and README
pick 9352acf chore: adds ADR for root folder organization
pick fdf0ffa chore: adds the src directory, and a README stub
pick 0441e8f chore: adds ADR folder to the root-folders ADR
pick b8591b9 chore: adds ADR for screaming architecture
pick 533eb56 chore: adds linting rules
pick 4b0d519 chore: adds private:true to package.json
# Rebase 907835a..4b0d519 onto 907835a (10 commands)
#
# Commands: ...
```

Would look like this:
```
pick 09bab93 chore: initializes the repo
squash 167e102 chore: adds gitignore
squash 9c0601b chore: adds package.lock
squash b9d5521 chore: adds ADR directory and README
squash 9352acf chore: adds ADR for root folder organization
squash fdf0ffa chore: adds the src directory, and a README stub
squash 0441e8f chore: adds ADR folder to the root-folders ADR
squash b8591b9 chore: adds ADR for screaming architecture
squash 533eb56 chore: adds linting rules
squash 4b0d519 chore: adds private:true to package.json
# Rebase 907835a..4b0d519 onto 907835a (10 commands)
#
# Commands: ...
```

After which you would be presented with a commit message editor populated with all of the commit messages that are being squashed together.

> If you want to prepare your commit message ahead of time, the following command will copy to the clipboard, the commit messages since a commit hash: `git log --pretty=format:'%n%C(red)## %s%C(reset)%n%b' -n $(git rev-list 907835a..HEAD --count --reverse) | pbcopy` where 907835a is the commit hash you would use in the above squashing.

#### Push

```Shell
git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
git push

# You need to force push if you pushed previously
git push --force
```

#### If changes occur on main before pushing or merging to main, rebase again

```Shell
git fetch
git rebase origin/main
git push #? --force
```

branch_name: refs/heads/main


text:
# terraform-fargate-tutorial

This repository contains a working example of setting up a minimal Fargate ECS service on AWS using Terraform. It was last updated in September 2021 to use Terraform 1.0.5.

See the post [at Section 411](https://section411.com/2019/07/hello-world/).

## Diagram

![sun-api](https://user-images.githubusercontent.com/590736/171856164-70c98307-c847-455e-ab28-2b5badf97d14.png)

repository: jimmysawczuk/terraform-fargate-tutorial

gha_language: HCL

gha_license_id: MIT

repo_name: jimmysawczuk/terraform-fargate-tutorial


text:
# Html Validator

Matchers for Rspec2 to validate Rails views locally using Nokogiri.

## Installation

Add this line to your application's Gemfile:

    gem 'html_validator'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install html_validator

## Usage

    describe UsersController do
      render_views

      describe "GET show" do
          before { get :show }

          it { response.should be_valid_xhtml }
        end
      end
    end

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request


text:
# guet
> enable contribution tracking when pair programming with guet

Pair programming is integral part of many software development lifecycles. When pairing, you may want to track both
pairs contributions. Using **guet** allows for that functionality.

[![Actions Status](https://github.com/chiptopher/guet/workflows/guetci/badge.svg)](https://github.com/chiptopher/guet/workflows/guetci/badge.svg)

## Installation
**guet** can be installed from [pypi](https://pypi.org/project/guet/):

```
pip3 install guet
```

#### Development Version
The most recent develoment version can be downloaded and installed as well:

```
git clone https://github.com/chiptopher/guet.git
python setup.py install
```

## Usage

#### Initialization
`guet init` will initiailze the **guet** config files for the system.

#### Start
`guet start` will start **guet** for the reposotry at the current directory.

#### Resgister Committers
`guet add <initials> <"Name"> <email>` will register an available committer with the given initials, name and email.

#### Set Committers
`guet set [<initials>, ...]` will register the committers with the given initials to have their names attached to all
following commits.

## Contribution

Guidelines for contributions can be found [here](./docs/CONTRIBUTING.md). Feel free to
[open an issue](https://github.com/chiptopher/guet/issues) if there are problems with **guet** or you want to submit a
feature request.

repository: sapphon/guet

repo_name: sapphon/guet


text:
---
layout: default
title:  "PE - Projetos de Engenharia"
date:   2015-07-10
images:
- url: pe/1.jpg
  alt: Website on a laptop
- url: pe/2.jpg
  alt: Website pages
- url: pe/3.jpg
  alt: Website on a tablet
- url: pe/4.jpg
  alt: Multiple screens
thumbnail:
- url: pe/thumb/1.jpg
  alt: PE thumbnail
categories:
- Code
- Design
classes:
- code
- design
permalink: pe-projetos-de-engenharia
type: main
ext-url: www.costapoim.pt
---
Founded in 2000, PE is a civil construction firm whose projects involve the coordination, supervision and auditing of construction projects.

*Tech: PHP (Yii Framework)*

extension: markdown

gha_language: JavaScript


text:
# `.simulate(event[, ...args]) => Self`

Simulate events

#### Arguments

1. `event` (`String`): The event name to be simulated
2. `...args` (`Any` [optional]): A mock event object that will get passed through to the event
handlers.

#### Returns

`ShallowWrapper`: Returns itself.

#### Example

```jsx
class Foo extends React.Component {
  constructor(props) {
    super(props);
    this.state = { count: 0 };
  }
  render() {
    const { count } = this.state;
    return (
      <div>
        <div className={`clicks-${count}`}>
          {count} clicks
        </div>
        <a href="url" onClick={() => { this.setState({ count: count + 1 }); }}>
          Increment
        </a>
      </div>
    );
  }
}

const wrapper = shallow(<Foo />);

expect(wrapper.find('.clicks-0').length).to.equal(1);
wrapper.find('a').simulate('click');
expect(wrapper.find('.clicks-1').length).to.equal(1);
```

#### Common Gotchas

- Currently, event simulation for the shallow renderer does not propagate as one would normally
expect in a real environment. As a result, one must call `.simulate()` on the actual node that has
the event handler set.
- Even though the name would imply this simulates an actual event, `.simulate()` will in fact
target the component's prop based on the event you give it. For example, `.simulate('click')` will
actually get the `onClick` prop and call it.

repository: lucasconstantino/react-apollo-fragments

repo_name: lucasconstantino/react-apollo-fragments


text:
---
layout: twoColumn
section: home
type: Why the HAT?
title: Why build something on the HAT?
description: "Why build something on the HAT?"
weight: 3
---

# Why build something on the HAT

### Rich, horizontal data

In effect, the HAT gives developers a way to gain all of the benefits of having a rich, personal data set about their users without having to actually own, protect, or store any of that data themselves.

The HAT is ideal for advanced consumer applications that thrive on prediction, and personalised services. It can help developers gain much deeper customer understanding, whilst at the same time vastly reducing their cyber security risk and development overhead, while ensuring that they only ask for data relevant to the service provided.

### Out-of-the-box authentication

The HAT solves user authentication and account provisioning out-of-the-box, letting you focus your development time on building a great application.

### Security

Remove as much of the cyber security risk your customers face as is humanly possible. Your users' personal information - no matter how sensitive - will be stored in private, containerised databases that are protected by the most sophisticated security and encryption protocols possible. What's more, the containerisation of these databases de-incentivises cyber attack, as each breach yields only one record's net return.

### API-as-a-backend

The HAT makes prototyping and MVP-creation as easy as possible, by giving you a database framework that looks like a simple API.

### Build what cannot be built

Ultimately, the promise of the HAT is that you can start to build the impossible. The HAT can generate valuable contextualised mixed data sets, owned and controlled by the user, that have previously only been partially available to corporations. Now they can be a part of your team's applications as well.

### Customer acquisition support

HAT-enabled applications benefit from a rapidly-growing pool of consumer Internet services customers. By growing your technology from within this ecosystem, you can leverage this community to create an early pool of new users, just by listing your application in MarketSquare (HAT's public app store) and creating Data Offers that showcase your application.

### Top-tier engineering and developers

The HAT is built by some of the best technical developers and engineers in the world. Grow your world-changing consumer technology alongside them by joining our internal developers' community; leverage them for advice and insight, and vet your technology against their expertise.

### Middleware

HAT Microservers also feature data and metadata analysis tools that can be leveraged by app developers for some specialised tasks, like machine learning and personalisation.

Businesses would otherwise have to plumb and combine all kinds of data sets from disparate sources to make personal data usable, and deal with issues of privacy and security as well. For more details, see the [ecosystem architecture](1_knowing_ecosystem.html), and the [tools available](HAT_core.html).

Leveraging the tools and existing processes, developers can now focus on data exchange and engagement with HATs simply through a few API calls.

repository: elektropay/developer-portal

repo_name: elektropay/developer-portal


text:
---
layout: practice
author: Alex Serban, Koen van der Blom, Joost Visser
name: Test for Social Bias in Training Data
category: Data
unique_id: social_bias
index: 3
difficulty: "advanced"
references: [ITDFDS, LFR, IFCUL, FMLSS] #
comments: True
description:
image: #
photocredit: #

intent: Identify instances of social bias in training data, in order to counteract the effects of bias in trained and deployed models.
motivation: Bias in data is one of the main sources of unfairness in machine learning applications. Responsible use of machine learning requires that developers counteract unfairness, starting with identifying the sources of bias. #
applicability: Testing for social bias in training data should be done whenever an application processes data with personal information, or related to users. Note that personal data can have explicit fields for gender, ethnicity, etc, -- but also seemingly innocuous data such as location, name, or even hobbies might implicitly encode social traits.  #
related: [discriminatory_attributes,subgroup_bias,risk] #
dependencies: #
survey_question: Q84 #
survey_item: We consistently test for social bias in our training data (regarding e.g. gender or ethnicity).

labels: [fairness]

---

In order to avoid social bias in ML algorithms, it is imperative to *continuously* check that the training data is well balanced with respect to social attributes such as gender, ethnicity, or otherwise belonging to a specific social group.

In many cases, other data attributes (such as location or neighbourhood) can be proxies to sensitive social attributes, and may introduce latent bias.
Using, or not testing for such latent biases, is a common pitfall called *failure through unawareness*. A common example is the one day delivery service offered by Amazon, which was biased for race; see Amazon Doesn’t Consider the Race of Its Customers. Should It?.

Social bias can be detected technically -- by analysing the distributions of social factors, and avoiding (over-) or under-representation.
However, technical limitations may prevent bias stemming from latent factors to be detected.

Therefore, it is important to be aware of technical limitations, and improve the social and human factors that can aid bias detection.
For example, in order to strengthen your teams' ability to detect and remove social biases, it is recommended to build diverse teams, both in terms of demographics and in terms of skill sets.

branch_name: refs/heads/source

gha_language: HTML


text:
---
layout: post
title: The Best Cities for Singles in America
---

A few weeks back I had a conversation with a friend about different
places in the US where she was considering moving. And one of the
factors was the dating scene in each one of those places. This brought
to my memory a graph that probably many of you have already seen:

This map basically says the following:

If the dot is blue, there are more men than women

If the dot is orange, there are more women than men

The bigger the dot, the greater the difference

However it has a series of problems. First of all, it's too dense.
Second, it is not clear that the number of single men minus
the number of single women (or the opposite) is what really matters,
because obviously the bigger the city the less important the difference
is. For example, in a city of 1 million we could have
100K singles and 20K more single men than woman. This means there are
3 single men for every two single woman.
However in a city of 10 million, with 1 million singles, the fact that
there are 20K more single men, only means there are
approximately 1.02 single men for every single woman. It seems that
the proportion of single men to single woman is more indicative than
the difference.
And third and most important, I didn't know for sure if the data in
the graph is reliable, as there are no sources cited. So, as you can
imagine I decided to check if there is actually any truth in this
chart.

Here is the list of steps necessary to get the interesting data from
the Census:

Start in the
    Census fact finder homepage

Click on Data Sets on the left navigation bar

Select SF3 and click on Detailed Table

In the Geography Type section choose Metropolitan
    Statistical Area

Make sure all statistical areas are selected and click Next

Now choose the table P18. Sex by marital status for
    the population 15+ years

Click on Add and then Show result

From this table we want the "Never married" rows. Because the table
is too big to analyze directly (280 columns) Let's download it and
map the results using the Google Charts API.

You may need to clean up the downloaded file, because there
are copyright notices and extra end of line characters. Also you may
keep only the interesting lines, which are 3:

The header of the table, which contains the name of the
    metropolitan areas

The row for Male / Never Married individuals

The row for Female / Never Married individuals

After removing all other rows, it's possible to parse the file and
extract the interesting data with a small python script like this:

    input_file = open('DTDownload.csv')

    # First process the header line.
    header = input_file.readline()
    header = header[5:-2]  # Remove " ", at beginning and "\n at the end.
    tokens = header.split('","')
    cities = []
    for token in tokens:
        token = token.replace('MSA', '')  # Eliminate the MSA suffix.
        token = token.replace('CMSA', '')
        if token.find('--'):  # Remove everything after --
            token = token[:token.find('--')]
        cities.append(token)

    # Now process "Never married" men.
    line = input_file.readline()
    line = line[17:-2]  # Remove "Never married" at beginning and " at end.
    tokens = line.split('","')
    single_men = []
    for token in tokens:
        token = token.replace(',', '')  # Eliminate the , for thousands.
        single_men.append(int(token))

    # Now process "Never married" women.
    line = input_file.readline()
    line = line[17:-2]  # Remove "Never married" at beginning and " at end.
    tokens = line.split('","')
    single_women = []
    for token in tokens:
        token = token.replace(',', '')  # Eliminate the , for thousands.
        single_women.append(int(token))

    # And from those two quantities compute the ratio of single men
    # to single women. The higher, the better for women. Reverse the
    # quotient to get the other side.
    ratios = []
    for i in xrange(len(single_men)):
        ratio = float(single_men[i]) / float(single_women[i])
        ratios.append(ratio)

    # Now print the name of the city and ratio in the format accepted
    # by the Google Charts API, which is:
    #   data.setValue(0, 0, 'New York');
    #   data.setValue(0, 1, 1.064382);
    for i in xrange(len(cities)):
        print 'data.setValue(%(row)d, 0, \'%(city)s\');' % \
            {'row': i, 'city': cities[i]}
        print 'data.setValue(%(row)d, 1, %(ratio)f);' % \
            {'row': i, 'ratio': ratios[i]}

And to display the data, just include it into a

  Google Charts visualization.
Unfortunately I couldn't figure out how to make the circles bigger or
smaller based on one parameter and to set the color based on another
parameter. Please tell me if you know how to do it. Anyway,
until I find some time to learn
Protovis,
bear with me. What I did is
split the chart into two, one for guys and one for girls. And to have
it load faster, and avoid overloading with too much detail,
I just took a small number of cities (This was actually Noha's idea
so the credit should go to her). Here is how the chart looks like for
girls, the bigger and bluer the better. It means there are more single
guys for each single girl:

It seems that the West Coast, Texas and Florida are the best places for
girls.
Here is how it looks like when taking all 280 cities. I did
not include the visualization, but a simple image because it
takes quite a while to load.

The one for guys is the opposite, the bigger and more pink, the better.
It means there are more single girls for each single guy:

So the best places for guys seem to be the East Coast and the Great
Lakes area. In particular the Bos-Wash corridor seems to be quite good.
And here is how it looks like when taking all metropolitan areas:

Does anyone know of similar charts for other countries? I have never
seen one myself. But after what we said before, if you can find
census-like data now you can make one yourself!


text:
Task:
	Pirate wars: The game is board game with AI for opponent. At the start of the game ocean is drawn in the console with
coordinates for each zone. The player must place 2 smaller one zone ships, 2 larger two zone ships, 2 bigger 3 zones ships,
and one huge 4 zone ship. Each zone should have key bind to it, and the player should hit the keys to select the zone.
Also 3 treasure chests are placed from the computer at random. (but not on unavailable positions).
When player or computer hit a zone it canít be hit again. Two of the treasures give a pirate captain (or computer) ability to shot again.
One of the treasures gives a special weapon that hits all zones around selected one. Each game should preserve a log in .txt
file with all moves and results from the move. In console this moves are visible by 5 lines, older must be deleted.
The game finishes when the player or computer sink all of the enemy ships.

Crucial tasks:
1. Describe business logic. Create objects.
2. Create matrix for session.
3. Create AI algorithms.
4. Draw ocean.
5. Create cursor mechanism for selecting XY coordinates.

Smaller tasks:
1. Create session log.
2. Create methods to place the ships.
3. Create method to place the chests, and bonuses methods when they are hit.
4. Create logic to secure coordinates (not to hit same filed twice). And ability to hit coordinate.
5. Create game flow in Main class.

Ocean:
	Waves ~
	ships - S
	hits - X
	treasure - T
	coordinates - A->H, I->P

repository: ivanmishev/ShipGame

repo_name: ivanmishev/ShipGame

src_encoding: MacCentralEurope


text:
# logger.sh

Simple personal log, useful for notes or anything else.

Contains
- Bash Script (logger.sh) which accepts a string and saves it as a git commit
- Text file (log.txt) which stores a copy of the commit

## Install Bash File

Pull down the is repository.

Make logger.sh executable:

```chmod +x logger.sh```

You will be able to start using the script from inside the repository. Use quotes around your logged message string.

```logger.sh "This is my message"```

## Optional Command

You may want to add an alias to your computer so the script can be used from anywhere.

```nano ~/.bash_profile```

In the file add the line

```alias logger='/absolute/path/to/your/repo/logger.sh'```

Then load the new profile

```source ~/.bash_profile```

From anywhere on your machine you will be able to use

```logger "This is my message"```

----

keithgreer.uk · Web Development Northern Ireland

repository: keithgreer/logger-sh

repo_name: keithgreer/logger-sh


text:
---
layout: default
---

# 1994-01-11 - Bay area BBS bust--fyi

## Header Data

From<EMAIL_ADDRESS>To<EMAIL_ADDRESS>Message Hash: ad8446a4f3989ad32cb911946562f2f46e90bfaf4bd590137cd09f1087c64baa

Message ID<EMAIL_ADDRESS>Reply To: _N/A_

UTC Datetime: 1994-01-11 18:46:47 UTC

Raw Date: Tue, 11 Jan 94 10:46:47 PST

## Raw message

```
{% raw  %}From<EMAIL_ADDRESS>Date: Tue, 11 Jan 94 10:46:47 PST
To<EMAIL_ADDRESS>Subject: Bay area BBS bust--fyi
Message-ID<EMAIL_ADDRESS>MIME-Version: 1.0
Content-Type: text/plain

Eric, please put me back on the list.  Keith
------
About two years ago I helped a guy from Milpitias (just north of San
Jose) deal with a BBS bust at what he described as a "light" porn BBS.
The San Jose cops realized shortly that they had really goofed by not
considering the ECPA and related laws in their search&seizure.  The
result was that they gave his system back after five weeks, and stated
in a written release that this guy's activities were within the scope
of the law.  The BBS is called Amateur Action, and the sysop's name is
Richard Thomas<PHONE_NUMBER>).

A few minutes ago Richard (who I have yet to meet in person) called. A
search warrant was being served at that very moment by the US Postal
Inspectors, who (with the help of San Jose cops) were packing up his
equipment and carting it out--again. Richard managed to get one of
these inspectors on the phone with me.  This inspector seemed to be
rather knowledgeable of such things as the ECPA, 2000aa, and the Steve
Jackson case.  He was completely unconcerned!  He piously stated that
it was their intent to bring the system back to Richard within a "few
days" and, as a result of the short interruption of user access, and
their good intent "not to look at private email," they were completely
safe from the provisions of the ECPA.  This postal inspector gave his
name as David Dirmeyes, from Tennesse (does this sound like Bible Belt
prosecution for pron?) and gave me the name of the US Attorney he was
working under, one Dan Newson with a phone of<PHONE_NUMBER> in TN
(though he stated that the phone # would be of no use because Dan was
at a conference for a week).

For what it is worth, the postal people were using the San Jose cops
on the bust because they did not have the expertise themselves to move
the system and make copies.  According to the investigator, they did
not know that they could get a court order to have a backup of the
system made on the spot.  It may be that Richard is the target, he
said there was a mystery package which came today in the mail today
(which his son brought in and his wife opened, but he had not gotten
around to seeing what it was) which seemed to the center of the postal
inspector's concerns.  (In spite of not meeting him, I suspect Richard
may be the kind of smart alec who attracts the attention of cops.)

I don't know if this is something of marginal concern to those of us
concerned with government abuse of people's computers and
communications or a major concern.  I intend to find out more
tomorrow, but if the ECPA is applicable, this guy had about 3500
users, over 2k pieces of protected email on his system, plus (I think)
agreements with his uses for him to represent them in an ECPA related
legal action--two million dollars if I am multiplying right tonight.
(My "Warning to Law Enforcement Agents" was part of his signup
screens.)

Keith Henson
408-972-1132
<EMAIL_ADDRESS>

{% endraw %}
```

## Thread

+ Return to [January 1994](/archive/1994/01)

+ Return to "[Brad Huntting <huntting@glarp.com>](/authors/brad_huntting_huntting_at_glarp_com_)"
+ Return to "[hkhenson@cup.portal.com](/authors/hkhenson_at_cup_portal_com)"

+ 1994-01-11 (Tue, 11 Jan 94 10:46:47 PST) - Bay area BBS bust--fyi -<EMAIL_ADDRESS>  + 1994-01-12 (Wed, 12 Jan 94 09:22:36 PST) - [Re: Bay area BBS bust--fyi](/archive/1994/01/da8a8bb4189198f55ba6170cb6eeefaace22db0472b321d941aa5a69d304c25f) - _Brad Huntting<EMAIL_ADDRESS>


text:
# PHP-REST-API-From-Scratch
Rest API (Representational State Transfer) api's are web standards base architecture and uses HTTP Protocol for exchanging data between applications or systems. In RESTFUL web service HTTP methods like GET, POST, PUT and DELETE can be used to perform CRUD operations.

PHP REST API

    This is a simple PHP REST API from scratch with no framework.

Quick Start

Import the myblog.sql file, change the params in the config/Database.php file to your own
App Info
Author

Brad Traversy Traversy Media
Version

1.0.0
License

This project is licensed under the MIT License

repository: jkbells/PHP-REST-API-From-Scratch

repo_name: jkbells/PHP-REST-API-From-Scratch


text:
# Obsolete

This connector is obsolete and has been replaced by https://github.com/BrightcoveOS/SharePoint-Connector

---

# SharePoint 2013 Connector

For full documentation, see the included training PDF.

## Feature Overview

* Use SharePoint Permissions Model and Active Directory to control access to key functions and content
* Brightcove Account Management
  * Support Multiple Brightcove Accounts
  * Manage Brightcove Configurations from within SharePoint lists
  * Leverage the SharePoint permissions models to control access to accounts and functionality.
* Content Integration
  * Enter Metadata for SharePoint and Brightcove concurrently
  * Add Metadata from defined SharePoint Term Store
* Make Brightcove Video information available in the SharePoint Enterprise Search Results
* Maintain current SharePoint 2010 Connector Functionality (repackage as necessary)
  * Video Clound Search • Video Cloud Editor
  * Video Cloud Player
  * Video Cloud Playlist • Video Cloud Picklist
* Implement the connector using the SharePoint 2013 App Model for ease of installation and management

(Important Note: This connector is only designed to work with SharePoint 2013 on-premise solutions only. It is not backward compatible with SharePoint 2010)

Copyright 2015 Brightcove Inc.

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: brightcove/sharepoint-connector

repo_name: brightcove/sharepoint-connector


text:
---
layout: post
title: Lightweight notifications with the Message Strip
tags:
- messagestrip
- messaging
- notification
- openui5
---

**[30 Days of UI5](/blog/posts/2015/07/04/30-days-of-ui5/) — Day 11 by [DJ Adams](//qmacro.org/about/)**

![Message Strip control]( {{ "/images/2018/02/Screenshot-2015-06-23-at-22.26.53.png" | url }})

The [Message Strip](https://openui5beta.hana.ondemand.com/explored.html#/entity/sap.m.MessageStrip/samples) is a nice new control with 1.30. It’s in the main (sap.m) library of controls, and for me, appeals because it bridges the gap between no message at all, and a modal dialog box which is sometimes too heavyweight.

(If you’re wondering about the [Message Toast](https://openui5.hana.ondemand.com/#docs/api/symbols/sap.m.MessageToast.html) control, don’t forget that this lighter weight mechanism should only be used for “less important” messages such as informational messages on the successful completion of a step).

The nice thing about the way that this has been designed is actually its simple, perhaps restrictive nature. A nature that will give apps a better chance of having consistent messaging. The possible [message types are defined in the core](https://openui5.hana.ondemand.com/#docs/api/symbols/sap.ui.core.MessageType.html), and are displayed visually differently, via colour and icons. There’s an optional close button, and an optional link that is always displayed at the end of the message text. Pretty simple and neat.

And that’s about it, which in most cases, is all that will be needed, to display a useful short message in line within the application UI, especially in the context of desktop based UI designs. If you want to manage messages in a more complete way, you might want to take a look at the [Message Popover](https://openui5beta.hana.ondemand.com/explored.html#/entity/sap.m.MessagePopover/samples). But don’t dismiss the new Message Strip, it may just be what you’re looking for.

gha_language: CSS


text:
# Gatsby Starter: Typescript + SASS
Starter with the essentials needed for a [Gatsby](https://www.gatsbyjs.org/) site, with Typescript and SASS added in.

Install this starter by running this from your [Gatsby CLI](https://next.gatsbyjs.org/tutorial/part-zero/#install-the-gatsby-cli):
```
gatsby new gatsby-site https://github.com/tdharmon/gatsby-starter-typescript-sass
```

repository: andrew-secret/wakesys-prototype

gha_language: TypeScript

repo_name: andrew-secret/wakesys-prototype


text:
---
description: Learn the basics of Aurelia through building a classic "Todo" app.
---

# Quick Start Guide

Welcome to the Aurelia Quick Start! This guide will take you through creating a Todo app using Aurelia and briefly explain its main concepts. We assume you are familiar with JavaScript, HTML, and CSS.

{% hint style="success" %}
**Here's what you'll learn...**

* How to setup a new Aurelia project.
* Creating components from view-models and views.
* The basics of templating and binding.
* Where to go from here.
{% endhint %}

When you complete this guide, you'll be ready to take your first steps building your own Aurelia app and you'll have the resources you need to continue on into more advanced topics. So, what are you waiting for? Let's get started!

repository: BluPerf/aurelia

repo_name: BluPerf/aurelia


text:
---
---

INTEGRAL EQUATIONS WITH APPLICATIONS

Classification of integral equations and occurrence in boundary value problems
for Ordinary and Partial Differential Equations, Abel's integral equations,
Integral equations of the second kind, Degenerate Kernels, The Neumann series
solutions, Fredholm theorems, The eigenvalue problems, Rayleigh-Ritz method,
Galerkin method, The Hilbert-Schmidt theory, Singular integral equations,
Riemann-Hilbert problems, The Wiener-Hopf equations, The Wiener-Hopf technique,
Numerical methods, Applications of integral equations of problems of
Elasticity, Fluid Mechanics and Electromagnetic theory.

Books

*
    Porter, D. and Stirling, S. G., Integral Equations, A Practical Treatment,
    Cambridge Univ. Press, 1990.

*
    Gakhov, F. D., Boundary Value Problems, Addision Wesley, 1966.

*
    Muskhelishvilli, N. I., Singular Integral Equations, Noordhoff, 1963.

*
    Nobe, B., The Wiener-Hopf Technique, Pergamon, 1958.

*
    Jones. D. S., The Theory of Electromagnetism, Pergamon, 1964.

repository: siddhartha-gadgil/DeptWeb

repo_name: siddhartha-gadgil/DeptWeb


text:
# SQL - ALTER DATABASE

The `ALTER DATABASE` command update database settings.

## Syntax

```sql
ALTER DATABASE <attribute-name> <attribute-value>
```

Where: **attribute-value** attribute's value to set and **attribute-name** between those supported:
- **STATUS** database's status between:
- **IMPORTING** to set importing status
- **DEFAULTCLUSTERID** to set the default cluster. By default is 2 = "default"
- **DATEFORMAT** sets the default date format. Look at [Java Date Format](http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html) for more information. Default is "yyyy-MM-dd"
- **DATETIMEFORMAT** sets the default date time format. Look at [Java Date Format](http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html) for more information. Default is "yyyy-MM-dd HH:mm:ss"
- **TIMEZONE** set the default timezone. Look at [Java Date TimeZones](http://docs.oracle.com/javase/6/docs/api/java/util/TimeZone.html) for more information. Default is the JVM's default timezone
- **LOCALECOUNTRY** sets the default locale country. Look at [Java Locales](http://docs.oracle.com/javase/6/docs/api/java/util/Locale.html) for more information. Default is the JVM's default locale country. Example: "GB"
- **LOCALELANGUAGE** sets the default locale language. Look at [Java Locales](http://docs.oracle.com/javase/6/docs/api/java/util/Locale.html) for more information. Default is the JVM's default locale language. Example: "en"
- **CHARSET** set the default charset charset. Look at [Java Charset](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html) for more information. Default is the JVM's default charset. Example: "utf8"
- **CLUSTERSELECTION** sets the default strategy used on selecting the cluster where to create new records. This setting is read on class creation. After creation, each class has own modifiable strategy. Supported strategies are:
 - **default**, uses always the Class's ```defaultClusterId``` property. This was the default before 1.7
 - **round-robin**, put the Class's configured clusters in a ring and returns a different cluster every time restarting from the first when the ring is completed
 - **balanced**, checks the records in all the clusters and returns the smaller cluster. This allows the cluster to have all the underlying clusters balanced on size. On adding a new cluster to an existent class, the new empty cluster will be filled before the others because more empty then the others. In distributed configuration when configure clusters on different servers this setting allows to keep the server balanced with the same amount of data. Calculation of cluster size is made every 5 or more seconds to avoid to slow down insertion
- **MINIMUMCLUSTERS**, as the minimum number of clusters to create automatically when a new class is created. By default is 1, but on multi CPU/core having multiple clusters/files improves read/write performance
- **CONFLICTSTRATEGY**, (since 2.0) is the name of the strategy used to handle conflicts when OrientDB's MVCC finds an update or delete operation executed against an old record. The strategy is applied for the entire database, but single clusters can have own strategy (use [ALTER CLUSTER](SQL-Alter-Cluster.md) command for this). While it's possible to inject custom logic by writing a Java class, the out of the box modes are:
 - `version`, the default, throw an exception when versions are different
 - `content`, in case the version is different checks if the content is changed, otherwise use the highest version and avoid throwing exception
 - `automerge`, merges the changes
- **CUSTOM** sets custom properties
## See also
- [Console Command Create Database](Console-Command-Create-Database.md)
- [Console Command Drop Database](Console-Command-Drop-Database.md)

## Examples

### Change the database type to "graph"

```sql
ALTER DATABASE TYPE graph
```

### Use GraphDB created with releases before 1.4
Starting from v 1.4, OrientDB can use [Lightweight Edges](Lightweight-Edges.md). After v2.0 this is disabled by default with new databases. To maintain the compatibility with OrientDB 1.4 or minor execute this commands:
```sql
ALTER DATABASE custom useLightweightEdges=false
ALTER DATABASE custom useClassForEdgeLabel=false
ALTER DATABASE custom useClassForVertexLabel=false
ALTER DATABASE custom useVertexFieldsForEdgeLabels=false
```

## History
### 1.7
- Added support for CLUSTERSELECTION that sets the strategy used on selecting the cluster where to create new records
- Added **MINIMUMCLUSTERS** to pre-create X clusters every time a new class is created


text:
# Employer Feedback

<img src="https://avatars.githubusercontent.com/u/9841374?s=200&v=4" align="right" alt="UK Government logo">

[![Build Status](https://sfa-gov-uk.visualstudio.com/Digital%20Apprenticeship%20Service/_apis/build/status/das-provide-feedback-employer?repoName=SkillsFundingAgency%2Fdas-provide-feedback-employer&branchName=master)](https://sfa-gov-uk.visualstudio.com/Digital%20Apprenticeship%20Service/_build/latest?definitionId=2539&repoName=SkillsFundingAgency%2Fdas-provide-feedback-employer&branchName=master)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=SkillsFundingAgency_das-provide-feedback-employer&metric=alert_status)](https://sonarcloud.io/project/overview?id=SkillsFundingAgency_das-provide-feedback-employer)
[![Jira Project](https://img.shields.io/badge/Jira-Project-blue)](https://skillsfundingagency.atlassian.net/browse/QF-79)
[![Confluence Project](https://img.shields.io/badge/Confluence-Project-blue)](https://skillsfundingagency.atlassian.net/wiki/spaces/NDL/pages/3773497345/Employer+Feedback+-+QF)
[![License](https://img.shields.io/badge/license-MIT-lightgrey.svg?longCache=true&style=flat-square)](https://en.wikipedia.org/wiki/MIT_License)

This repository represents the code base for the employer feedback service. This is a service that allows employers to provide feedback on their training providers. Employers can give feedback via the ad hoc journey from their employer account. The employer has previously been able to provide feedback via emails, as they would recieve emails prompting them to give feedback. However, this emailing function is in the process of being decommissioned.

## Developer Setup
### Requirements

* [.NET Core SDK >= 2.1.302](https://www.microsoft.com/net/download/)
* (VS Code Only) [C# Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp)
* [SQL Server Express LocalDB](https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/sql-server-express-localdb)

### Environment Setup

* **Database** - Publish the local database from the `ESFA.DAS.EmployerFeedbackEmail.Database` project.
    * Setting up your database - [Setup your database](https://skillsfundingagency.atlassian.net/wiki/spaces/NDL/pages/3948019848/Employer+Feedback+Setup)
* **local.settings.json file** - Add the following to the `local.settings.json` file in the `ESFA.DAS.ProviderFeedback.Employer.Functions.Emailer` functions app.

Please note all the connection string and secrets to API have been removed. This will need updating.
```
{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "UseDevelopmentStorage=true",
    "ASPNETCORE_ENVIRONMENT": "DEV",
    "FUNCTIONS_WORKER_RUNTIME": "dotnet",
    "FUNCTIONS_EXTENSION_VERSION": "2.0.12673.0",
    "AppInsights_InstrumentationKey": "",
    "FeedbackSiteBaseUrl": "localhost:5030",
    "AppName": "das-provide-feedback-emailer",
    "LogDir": "C:\\Logs\\ESFA\\Provide Feedback\\Employer"
  },
  "ConnectionStrings": {
    "EmployerEmailStoreConnection": "Data Source=(localdb)\\ProjectsV13;Initial Catalog=ESFA.DAS.EmployerFeedbackEmail.Database;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultipleActiveResultSets=true;MultiSubnetFailover=False",
    "Redis": "localhost:6379"
  },
  "CommitmentV2Api": {
    "ApiBaseUrl": "https://******.apprenticeships.education.gov.uk/",
    "IdentifierUri": "https://******.onmicrosoft.com/******"
  }
}
```

### Running
* Start Azurite e.g. using a command `C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>AzureStorageEmulator.exe start`
* Run the solution
* NB: You will need `das-commitments` running too, specifically the `SFA.DAS.CommitmentsV2.Api` project.
* To start the ad hoc journey: localhost:{port number}/{encoded account ID}/providers (to get the encoded account ID, run the account ID through the encoding service in the solution.)
* Or to start the emailing journey: localhost:{port number}/{unique survey code}

### Tests

This codebase includes unit tests and integration tests. These are each in a seperate project kept in a folder called `Testing`.

#### Unit Tests

The unit tests covering each project are each kept in a folder within the `UnitTests` project in the `Testing` folder. They are built using C#, Moq, FluentAssertions, .NET, MSTest, and XUnit.

#### Integration Tests

There is one integration test project, `IntegrationTests`, and in it one test class.

### Application logs

Application logs are logged to [Elasticsearch](https://www.elastic.co/products/elasticsearch) and can be viewed using [Kibana](https://www.elastic.co/products/kibana) at http://localhost:5601

## License

Licensed under the [MIT license](LICENSE)

gha_language: C#


text:
# ta-extra
## Extra for textadept languages by [Alejandro Baez][1]

### DESCRIPTION
After using [Textadept][2] for a while, you tend to build your own extensions
to languages, [among][3] [other][4] [things][5].
The normal form of extending languages in textadept is usually making a
**extra.lua** file in a [language modules][6]. However, the procedure
can become quite a large set of language modules if you are a polylinguist.
Instead, this module allows you to extend textadept languages without making a
whole new module in the process.

### INSTALL
Clone the *ta-extra* repository to your textadept's **_USERHOME/modules**:

```
cd ~/.textadept/modules
hg clone https://bitbucket.org/a_baez/ta-extra extra
```
Add to your **_USERHOME/init.lua** file the module:

```
require("extra")
```

You are done!

### USAGE
To add a new language, you need to do two things. First is name the module the
same as the language you want to have extra snippets or changes. So if you want
*moonscript*, you would need a **moonscript.lua** file for the language.
Second, make sure you have a
`connecting` function for language specific buffer changes and a `snipping`
table:

```
-- (some lang).lua

--- language specific buffer changes.
local function connecting()
end

--- snippets to add
local snipping = {
  true,

  "key" = "snippet"
}

return {
  snipping = snipping,
  connecting = connecting
}
```

> *NOTE*: `snipping` has a **true** field as the first element.
This is to make sure that the snippet isn't reloaded each time the lexer
is loaded. Thus keeping the speed up of your lovely texteditor.

The `connecting` method and `snipping` table are optional. Meaning if you want
to only do buffer changes, you only need a `connecting` method for your module.
The same can be said for `snipping`, when you only want snippets to be added.

### LICENSE
Copyright (c) 2015-2016 [Alejandro Baez][1]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

 IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.

[1]: https://twitter.com/a_baez
[2]: http://foicica.com/textadept/
[3]: https://bitbucket.org/a_baez/ta-common
[4]: https://bitbucket.org/a_baez/ta-rust
[5]: https://bitbucket.org/a_baez/ta-moonscript
[6]: http://foicica.com/textadept/manual.html#Modules

repository: abaez/ta-extra

repo_name: abaez/ta-extra


text:
original source: [https://adventofcode.com/2021/day/12](https://adventofcode.com/2021/day/12)
## --- Day 12: Passage Pathing ---
With your submarine's subterranean subsystems subsisting suboptimally, the only way you're getting out of this cave anytime soon is by finding a path yourself. Not just a path - the only way to know if you've found the best path is to find all of them.

Fortunately, the sensors are still mostly working, and so you build a rough map of the remaining caves (your puzzle input). For example:

start-A
start-b
A-c
A-b
b-d
A-end
b-end

This is a list of how all of the caves are connected. You start in the cave named start, and your destination is the cave named end. An entry like b-d means that cave b is connected to cave d - that is, you can move between them.

So, the above cave system looks roughly like this:

    start
    /   \
c--A-----b--d
    \   /
     end

Your goal is to find the number of distinct paths that start at start, end at end, and don't visit small caves more than once. There are two types of caves: big caves (written in uppercase, like A) and small caves (written in lowercase, like b). It would be a waste of time to visit any small cave more than once, but big caves are large enough that it might be worth visiting them multiple times. So, all paths you find should visit small caves at most once, and can visit big caves any number of times.

Given these rules, there are 10 paths through this example cave system:

start,A,b,A,c,A,end
start,A,b,A,end
start,A,b,end
start,A,c,A,b,A,end
start,A,c,A,b,end
start,A,c,A,end
start,A,end
start,b,A,c,A,end
start,b,A,end
start,b,end

(Each line in the above list corresponds to a single path; the caves visited by that path are listed in the order they are visited and separated by commas.)

Note that in this cave system, cave d is never visited by any path: to do so, cave b would need to be visited twice (once on the way to cave d and a second time when returning from cave d), and since cave b is small, this is not allowed.

Here is a slightly larger example:

dc-end
HN-start
start-kj
dc-start
dc-HN
LN-dc
HN-end
kj-sa
kj-HN
kj-dc

The 19 paths through it are as follows:

start,HN,dc,HN,end
start,HN,dc,HN,kj,HN,end
start,HN,dc,end
start,HN,dc,kj,HN,end
start,HN,end
start,HN,kj,HN,dc,HN,end
start,HN,kj,HN,dc,end
start,HN,kj,HN,end
start,HN,kj,dc,HN,end
start,HN,kj,dc,end
start,dc,HN,end
start,dc,HN,kj,HN,end
start,dc,end
start,dc,kj,HN,end
start,kj,HN,dc,HN,end
start,kj,HN,dc,end
start,kj,HN,end
start,kj,dc,HN,end
start,kj,dc,end

Finally, this even larger example has 226 paths through it:

fs-end
he-DX
fs-he
start-DX
pj-DX
end-zg
zg-sl
zg-pj
pj-he
RW-he
fs-DX
pj-RW
zg-RW
start-pj
he-WI
zg-he
pj-fs
start-RW

How many paths through this cave system are there that visit small caves at most once?

## --- Part Two ---
After reviewing the available paths, you realize you might have time to visit a single small cave twice. Specifically, big caves can be visited any number of times, a single small cave can be visited at most twice, and the remaining small caves can be visited at most once. However, the caves named start and end can only be visited exactly once each: once you leave the start cave, you may not return to it, and once you reach the end cave, the path must end immediately.

Now, the 36 possible paths through the first example above are:

start,A,b,A,b,A,c,A,end
start,A,b,A,b,A,end
start,A,b,A,b,end
start,A,b,A,c,A,b,A,end
start,A,b,A,c,A,b,end
start,A,b,A,c,A,c,A,end
start,A,b,A,c,A,end
start,A,b,A,end
start,A,b,d,b,A,c,A,end
start,A,b,d,b,A,end
start,A,b,d,b,end
start,A,b,end
start,A,c,A,b,A,b,A,end
start,A,c,A,b,A,b,end
start,A,c,A,b,A,c,A,end
start,A,c,A,b,A,end
start,A,c,A,b,d,b,A,end
start,A,c,A,b,d,b,end
start,A,c,A,b,end
start,A,c,A,c,A,b,A,end
start,A,c,A,c,A,b,end
start,A,c,A,c,A,end
start,A,c,A,end
start,A,end
start,b,A,b,A,c,A,end
start,b,A,b,A,end
start,b,A,b,end
start,b,A,c,A,b,A,end
start,b,A,c,A,b,end
start,b,A,c,A,c,A,end
start,b,A,c,A,end
start,b,A,end
start,b,d,b,A,c,A,end
start,b,d,b,A,end
start,b,d,b,end
start,b,end

The slightly larger example above now has 103 paths through it, and the even larger example now has 3509 paths through it.

Given these new rules, how many paths through this cave system are there?

repository: encse/adventofcode

repo_name: encse/adventofcode


text:
# X-Copilot

[![Build Status](https://travis-ci.org/owentar/x-copilot.svg?branch=master)](https://travis-ci.org/owentar/x-copilot-py)

This is a Python plugin for [X-Plane](http://www.x-plane.com/) to support voice commands in the simulator.

## Installation

X-Copilot runs in python, so to be able to use it in X-Plane, you will need to have installed [Python 2](https://www.python.org/downloads/release) in your system and [Sandy Barbour's Python Interface plugin](http://www.xpluginsdk.org/python_interface.htm) in x-plane.

#### Installing dependencies

With python installed on your system, execute the ```install.bat``` file. This will install all the python packages required by the speech recognition library.

Check [dependencies](https://github.com/Uberi/speech_recognition#pyaudio-for-microphone-users) required by speech_recognition project to support pyaudio. Install the required packages for your platform.

> **Windows users:** make sure your python installation directory is on your PATH environment variable as well as the python/scripts directory. This should have be done automatically by the python installer. If not, try to reinstall python 2 and make sure to check the option to install python.exe in your PATH.

> **Mac users:** you need to have already installed 'portaudio' package. If you have homebrew you can just do 'brew install portaudio'. You may need to execute the install.sh file with sudo privileges.

#### Quick verification

You can verify that all dependencies are installed and X-Copilot is working properly running the ```try-it.bat``` file in the console. Make sure your Microphone is plugged in and is working properly. When you run it, it will ask you for a command, then say:

> "SET ATLIMETER TWO NINE NINE TWO"

The output should look like this:

> $ Say a command...

> $ Command recognized: SET_ALTIMETER:29.92

If the command is not recognized, the output should be:

> Command not recognized:

#### Installing and setting up the X-Plane plugin

Finally, copy the ```PI_xcopilot``` file and ```xcopilot``` folder into the PythonScripts folder (```<X-PLANE-INSTALLATION-DIR>\Resources\plugins\PythonScripts```).

In X-Plane, go to ```Settings -> Buttons: Adv -> custom cmnds from plugins``` and assign a key / button for ```xcopilot/record_voice_command```. Every time that you want to say a command to X-Copilot, just press this button once (no need to keep pressing it while recording) and say one of the supported commands. A window should popup in the sim notifying the current state of X-Copilot (Recoding, Command recognized or Command not recognized).

## Technical / Dev notes

### How does it work?

The process is quite simple:

1. Transcribe voice commands to text using [speech_recognition](https://github.com/Uberi/speech_recognition) project.
2. When the command is in a string format, it's parsed through a regular expression to identify and extract the data from the specified command
3. Once the command is recognized, it's translated to data ref operations (setting / getting one or more data refs in x-plane)

### Pocketsphinx configuration

Currently the language used by sphinx to recognize commands is specified in corpus.txt file.

To create the language model, go to: http://www.speech.cs.cmu.edu/tools/lmtool-new.html, upload the corpus.txt and get the LM and DIC files content and replace the existing ones defined in pockectsphinx-data/xp-XP folder.

### Test

> $ python -m unittest discover

### Package

> $ python setup.py sdist

repository: owentar/x-copilot-py

repo_name: owentar/x-copilot-py


text:
#Frequently Asked Questions

###Question 1: How do I get Nadeko to join my server?
----
**Answer:** Simply send Nadeko a Direct Message with `-h` and follow the link. **Only People with the Manage Server permission can add the bot to the server**

###Question 2: I want to change permissions, but it isn't working!
----
**Answer:** You must have the `;permrole` (by default this is the `Nadeko` role, for more details on permissions check [here](http://nadekobot.readthedocs.io/en/latest/Permissions%20System/ "Permissions"). If you have a role called `Nadeko` but can't assign it it's probably the Bot Role so, just create a **New Role** called `Nadeko` and assign that to yourself instead.)

###Question 3: I want to disable NSFW on my server.
----
**Answer:** To disable the NSFW Module for your server type, `;sm NSFW disable`. If this does not work refer to Question 2.

###Question 4: How do I get NadekoFlowers/Currency?
----
**Answer:** You can get NadekoFlowers by picking them up after they have been generated with `>gc`, which you can then either plant (give away to a channel so that someone can pick it), or gamble with for potentinal profit with `$betflip`, `$betroll` and `$jr`

###Question 5: I have an issue/bug/suggestion, where do I put it so it gets noticed?
-----------
**Answer:** First, check [issues](https://github.com/Kwoth/NadekoBot/issues "GitHub NadekoBot Issues"), then check the `#suggestions` channel in the Nadeko [help server](https://discord.gg/0ehQwTK2RBjAxzEY).

If your problem or suggestion is not there, feel free to request/notify us about it either in the Issues section of GitHub for issues or in the `#suggestions` channel on the Nadeko help server for suggestions.

###Question 6: How do I use this command?
--------
**Answer:** You can see the description and usage of certain commands by using `-h command` **i.e** `-h ;sm`.

The whole list of commands can be found [here](http://nadekobot.readthedocs.io/en/latest/Commands%20List/ "Command List")

###Question 7: Music isn't working?
----
**Answer:** Music is disabled on public Nadeko due to large hosting costs, it will be re-enabled later in the future for donators.

**If you would like music in the meantime, you must host Nadeko yourself**. Be sure you have FFMPEG installed correctly, and have followed the [guide](http://nadekobot.readthedocs.io/en/latest/guides/Windows%20Guide/#setting-up-nadekobot-for-music) carefully.

###Question 8: My music is still not working/very laggy?
----
**Answer:** Try changing your discord [location][1], if this doesn't work be sure you have enabled the correct permissions for Nadeko and rebooted since installing FFMPEG.
[1]: https://support.discordapp.com/hc/en-us/articles/216661717-How-do-I-change-my-Voice-Server-Region-

###Question 9: I want to change data in the database like NadekoFlowers or something else but how?
----
**Answer:** Follow the [DB Guide](http://nadekobot.readthedocs.io/en/latest/JSON%20Explanations/#db-files), Open `/data/NadekoBot.db` using **sqlitebrowser** (or some alternative), Browse Data, select relevant table, change data, Write changes and done.

###Question 10: The .greet and .bye commands doesn't work, but everything else is!
-----
**Answer:** Set a greeting message by using `.greetmsg YourMessageHere` and a bye-message by using `.byemsg YourMessageHere`. Don't forget that `.greet` and `.bye` only apply to users joining a server, not coming online/offline.

###Question 11:  I made an application, but I can't add that new bot to my server, how do I invite it to my server?
----
**Answer:** You need to use oauth link to add it to you server, just copy your **CLIENT ID** (that's in the same [Developer page](https://discordapp.com/developers/applications/me) where you brought your token) and replace `12345678` in the link below: **https://discordapp.com/oauth2/authorize?client_id=`12345678`&scope=bot&permissions=66186303**

Follow this Detailed [Guide](http://discord.kongslien.net/guide.html).

###Question 12:  I'm building NadekoBot from source, but I get hundreds of (namespace) errors without changing anything!?
-----
**Answer:** Using Visual Studio, you can solve these errors by going to `Tools` -> `NuGet Package Manager` -> `Manage NuGet Packages for Solution`. Go to the Installed tab, select the Packages that were missing (usually `Newtonsoft.json` and `RestSharp`) and install them for all projects

###Question 13:  My bot has all permissions but it's still saying, "Failed to add roles. Bot has insufficient permissions". How do I fix this?
----------
**Answer:** Discord has added few new features and the roles now follows the role hierarchy which means you need to place your bot's role above every-other role your server has to fix the role hierarchy issue. [Here's](https://support.discordapp.com/hc/en-us/articles/214836687-Role-Management-101) a link to Discords role management 101.

**Please Note:** *The bot can only set/add all roles below its own highest role. It can not assign it's "highest role" to anyone else.*

###Question 14: I've broken permissions and am stuck, can I reset permissions?
----------
**Answer:** Yes, there is a way, in one easy command! Just run `.resetperms` and all the permissions you've set through **Permissions Module** will reset.

license: Unlicense

repository: Demiture/Nadeko

path: /docs/Frequently Asked Questions.md

filename: Frequently Asked Questions.md

repo_name: Demiture/Nadeko


text:
# Contributing

## Opening an Issue

Thanks for contributing! If you think you have found a bug, or have a new feature idea, please make sure it hasn't already been reported. You can search through existing issues and PRs to see if someone has reported one similar to yours.

Next, create a new issue that briefly explains the problem, and provides a bit of background as to the circumstances that triggered it, and steps to reproduce it.

For code issues please include:
* React-Move version
* React version
* Browser version
* A code example or link to a repo, gist or running site.

## Submitting a Pull Request

Pull requests are always welcome, but before working on a large change, it is best to open an issue first.

When in doubt, keep your pull requests small. To give a PR the best chance of getting accepted, don't bundle more than one feature or bug fix per pull request. It's always best to create two smaller PRs than one big one.

When adding new features or modifying existing, please attempt to include tests to confirm the new behaviour.

### Branch Structure

All stable releases are tagged ([view tags](https://github.com/react-tools/react-move/tags)). At any given time, `master` represents the latest development version of the library. Patches or hotfix releases are prepared on an independent branch.

## Getting started

Please create a new branch from an up to date master on your fork. (Note, urgent hotfixes should be branched off the latest stable release rather than master)

1. Fork the react-move repository on Github
2. Clone your fork to your local machine `git clone git@github.com:<yourname>/react-move.git`
3. Create a branch `git checkout -b my-topic-branch`
4. Make your changes, lint, then push to to github with `git push --set-upstream origin my-topic-branch`.
5. Visit github and make your pull request.

If you have an existing local repository, please update it before you start, to minimise the chance of merge conflicts.
```js
git remote add upstream git@github.com:react-tools/react-move.git
git checkout master
git pull upstream master
git checkout -b my-topic-branch
npm update
```

### The documentation site

```js
npm install
cd docs
npm install
npm start
```
You can now access the documentation site [locally](http://localhost:3000).

### Coding style

Please follow the coding style of the current code base. react-move uses eslint, so if possible, enable linting in your editor to get realtime feedback.

## Roadmap

More tests.
More documentation.
More examples.

## License

By contributing your code you agree to license your contribution under the MIT license.

repository: jhsware/inferno-move

repo_name: jhsware/inferno-move


text:
# Pong
Really basic pong game coded in Python with Pygame.

Completed July 8, 2016

Implementation Details

All code written in Python and is compatible with both Python 2 and 3. Source code is contained within the main.py file, and all resource files are located at the same folder root. Pygame must be installed for the game to run.

Art is all original and created with FireAlpaca (drawing software), except for background.png, which was found on http://bsnscb.com/hex-wallpapers.html.

To run the game, simply open/run main.py through Python 2 or 3.

Download Python here: https://www.python.org/downloads/

Download Pygame here: https://www.pygame.org/download.shtml

License

Copyright (c) 2018 Derek Zhang

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


text:
C Program Build Server
======================
WebSocket server for scheduling automated C program builds.

Requirements
------------
 * [NodeJS](https://nodejs.org/) 12+
 * [git](https://git-scm.com/)
 * make

Installation
------------
`npm install --production`

Usage
-----
`npm run start`

```
usage: index.js [-h] [-v] [-a ARTIFACTS_PATH] [-b BUILD_INTERVAL] [-p PORT]

C program build server

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -a ARTIFACTS_PATH, --artifacts-path ARTIFACTS_PATH
                        Path to directory for storing program build artifacts (default: ./artifacts)
  -b BUILD_INTERVAL, --build-interval BUILD_INTERVAL
                        Seconds delay between automatic rebuild of registered programs (default: 10)
  -p PORT, --port PORT  Network port for the WebSocket server (default: 8090)
```

Permissions
-----------
The system user that runs the build server must have read and write permissions
in the following directories:
- `./`
- `ARTIFACTS_PATH/`
- `./tests` (if you run them)
- the location of any registered program

Storage
-------
The state of registered programs is stored in the file: `./registry.json`

Program artifacts are stored in `ARTIFACTS_PATH`, according to git revision in a
structure similar to:
```
ARTIFACTS_PATH/
├── program-a/
│   ├── cf9ead2/
│   │   ├── program-a
│   │   └── program-a.o
│   └── d36c616/
│       ├── program-a
│       └── program-a.o
└── program-b/
    └── e47d727/
        ├── program-b
        └── program-b.o
```

Development & Tests
-------------------
1. Install development dependencies: `npm install`
2. Run tests: `npm test`

repository: mmccartn/build-runner

repo_name: mmccartn/build-runner


text:
# Testing with ScalaTest and ScalaCheck

## [ScalaTest](http://scalatest.org/)
* DSL for "human readable" tests: [assertions](http://scalatest.org/user_guide/using_assertions),
[matchers](http://scalatest.org/user_guide/using_matchers), Eventually, BeforeAndAfter and more
* different [testing styles](http://scalatest.org/user_guide/selecting_a_style):
FlatSpec, FeatureSpec, FreeSpec, WordSpec, FunSuite, GivenWhenThen, WordSpec, ...
* "If you don't enjoy shopping: ... use [FlatSpec](http://doc.scalatest.org/2.2.1/#org.scalatest.FlatSpec)
for unit and integration testing
and [FeatureSpec](http://doc.scalatest.org/2.2.1/#org.scalatest.FeatureSpec) for acceptance testing."
-> fair enough enough for me

[<< Why Tests?](Testing1-WhyTests.md)     [What is a Test? >>](Testing3-WhatIsATest.md)


text:
Pull to Refresh for the Web
===========================

![Web Pull to Refresh](http://apeatling.com/wp-content/uploads/2014/11/ptr-header1-1000x400.png)

This is a pull to refresh implementation for the web. It focuses on buttery UX performance and responsiveness to feel as close to a native implementation as possible.

[Try a Demo](http://apeatling.com/demos/web-ptr/) | [Read the Blog Post](http://apeatling.com/2014/javascript-pull-to-refresh-web/)

## Usage

There are two core elements needed, the content element and the pull to refresh UX element. The demo uses this setup, but you can modify this however you'd like.

```
<div id="ptr">
  <!-- Pull down arrow indicator -->
  <span class="genericon genericon-next"></span>

  <!-- CSS-based loading indicator -->
  <div class="loading">
    <span id="l1"></span>
    <span id="l2"></span>
    <span id="l3"></span>
  </div>
</div>

<div id="content">
  <!-- Content that should be draggable for refreshing goes in here -->
</div>
```

This will work just fine with your own loading indicators or pull down arrow, just make sure they're wrapped in the element you're using to hold the pull to refresh UX. Don't forget to include the CSS if you want to use a similar visual setup as the demo.

In order for this to function, you'll need to load both Hammer.js and the wptr.js script, and then initialize the WebPullToRefresh module. Add this just before the closing body tag:

```
<script src="lib/hammer.1.1.3.js"></script>
<script src="lib/wptr.1.0.js"></script>

<script>
  window.onload = function() {
    WebPullToRefresh.init( {
      loadingFunction: exampleLoadingFunction
    } );
  };
</script>
```

You will also need to provide a loading function at initization time. This function should perform the async loading pieces you need to load new items, and return a promise.

```
var exampleLoadingFunction = function() {
  return new Promise( function( resolve, reject ) {
    // Run some async loading code here

    if ( /* if the loading worked */ ) {
      resolve();
    } else {
      reject();
    }
  } );
};
```

### Optional Parameters

There are a few optional parameters you can pass on initialization:

```
{
	// ID of the element holding dragable content area
	contentEl: 'content',

	// ID of the element holding pull to refresh loading area
	ptrEl: 'ptr',

	// Number of pixels of dragging down until refresh will fire
	distanceToRefresh: 70,
}
```

[Try a Demo](http://apeatling.com/demos/web-ptr/) | [Read the Blog Post](http://apeatling.com/2014/javascript-pull-to-refresh-web/)


text:
# [Return a string's even characters.](https://www.codewars.com/kata/566044325f8fddc1c000002c)

Write a function that returns a sequence (index begins with 1) of all the even characters from a string. If the string is smaller than two characters or longer than 100 characters, the function should return "invalid string".

For example:

```
"abcdefghijklm" --> ["b", "d", "f", "h", "j", "l"]
"a"             --> "invalid string"
```

---

## Tags

- Arrays
- Data Types
- Fundamentals
- Strings

repository: marcobiedermann/codewars

repo_name: marcobiedermann/codewars


text:
erlmqtt
=======

An Erlang client library for MQTT 3.1 (but not for MQTT 3.1.1, yet).

### Building

    $ make

### Testing

    $ make test && make dialyse

### Trying out

This API may change, especially with respect to receiving messages.

(Assuming RabbitMQ or another MQTT broker is running on localhost:1883)

    $ erl -pa ebin

*Opening a connection and subscribing*

```erlang
1> {ok, C} = erlmqtt:open_clean("localhost", []).
{ok,<0.35.0>}
2> {ok, _} = erlmqtt:subscribe(C, [{"topic/#", at_most_once}]).
{ok,[at_most_once]}
```

`open_clean` starts a fresh connection that doesn't keep state around
when disconnected. The second argument is a proplist of options, for
example, `[{keep_alive, 600}]`.

Also exported are `open/2` and `open/3`, which start connections with
persistent state (though resumption of those after disconnection is
not fully implemented yet).

*Publishing messages*

```erlang
3> erlmqtt:publish(C, "topic/a/b", <<"payload">>).
ok
```

There's also a `publish/4` which accepts a proplist of options, e.g.,
`[retain, at_least_once]`, and `publish_sync/4` and `publish_sync/5`,
which publish a message using guaranteed delivery and return when the
message has been delivered (or in the case of `publish_sync/5`, if it
has timed out).

```erlang
4> erlmqtt:publish_sync(C, "/dev/null", <<"payload">>, at_least_once).
ok
```

Currently, using "quality of service" (guaranteed delivery) other than
`at_most_once` does not get you a lot; the connection will enact the
correct protocol, but if it crashes you will still lose the state.

*Receiving messages*

```erlang
5> erlmqtt:recv_message(1000).
{<<"topic/a/b">>,<<"payload">>}
6> erlmqtt:recv_message(1000).
timeout
7> erlmqtt:publish(C, "topic/foo", <<"payload">>).
8> erlmqtt:poll_message().
{<<"topic/foo">>,<<"payload">>}
9> erlmqtt:poll_message().
none
```

When a connection is opened, the calling process is volunteered as the
message consumer. This means the connection will deliver messages to
its mailbox. `recv_message/0` and `recv_message/1` wait for a message
to arrive (in the latter case, for a limited time) and return it as a
pair of topic and payload. `poll_message/0` returns a pair of topic
and payload if a message is available in the mailbox now, otherwise
`'none'`.

### Examples

The scripts `erlmqtt_pub` and `erlmqtt_sub` give examples of publishing
and subscribing respectively. Presently they must be run from the
repository directory. Use the argument `--help` with either to see its
usage.

repository: yuejw/erlmqtt

repo_name: yuejw/erlmqtt


text:
# Group Members + Publication

## Key
**member**= member of Students Team on this GitHub repo
**invitation sent**= individual has been added using the email address they provided. Please check your email to accept membership to Team.

Group 1
Tomas Kanholm (@tkanholm - member)
Juntian Wei (@jwei2019 - member)
Turkey Alsaeedy (@Turkeyalsaeedy - member)
Publication: _____________________________________

Group 2
Javid Ghaemmaghami (@javidgmh - member)
Yuan Gao (@ShyanneG - member)
Canyuan Yang (@CanyuanYang - member)
***Publication: _____________________________________***

Group 3
April Yang (@jiugeyang - member)
Weifei Wang（@weifeiwang0906 - member)
Xiying Ding (@xzd5071 - member)
***Publication: _____________________________________***

Group 4
Nikhita Gogate (@nikigogate -  member)
Nuerye Ainiwan (@nurya-anwer - member)
Christian Zevallos Delgado (@czd18 - member)
Wei Shao (@Albert-Shao - member)
***Publication: _____________________________________***

Group 5
Elizabeth C. Lee (@ECL314 -  member)
Nirmala Ramnarine (@nramnarine - member)
Najuma Babirye (@nbabirye - member)
Publication: Single-Cell RNA Sequencing Identifies Extracellular Matrix Gene Expression by Pancreatic Circulating Tumor Cells.

Group 6
Derek Cao (@cderek7 - member)
Evan Littleton (@evanlittleton - member)
Erin Bonner (@ebonner13 - member)
Publication: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6735387/

Group 7
Micah Madrid (@mkmadrid - member)
Ling Sheng Loh (@lingsloh - member)
***June Beshea<EMAIL_ADDRESS>invitation sent)***
Publication: miRCancerdb: a database for correlation analysis between microRNA and gene expression in cancer

Group 8
Zuleima Munoz<EMAIL_ADDRESS>- member )
Lindsay Hopson<EMAIL_ADDRESS>- member)
***Publication: ____________________________***


text:
---
layout: about
title: about
permalink: /
# subtitle: Google

profile:
  align: right
  image: prof_pic.jpg
  image_circular: false # crops the image to make it circular
  # address: >
  #<EMAIL_ADDRESS>
news: true  # includes a list of news items
latest_posts: true  # includes a list of the newest posts
selected_papers: false # includes a list of papers marked as "selected={true}"
social: true  # includes social icons at the bottom of the page
---

I work at [Google](https://cloud.google.com) as a Strategic Cloud Engineer in the cloud division. I help my clients make the most out of Google Cloud products. I specialise in data.

During my Bachelors degree at [Ashoka University](https://ashoka.edu.in/), I majored in Computer Science with a minor in Economics.

Beyond work, I spend time playing tennis and reading books. You can find my reading list [here](https://www.goodreads.com/review/list/116660458-sama?ref=nav_mybooks&shelf=to-read).


text:
# Setup

1. Required software
* [nvm](https://github.com/nvm-sh/nvm)
* [nodejs](https://github.com/nodejs/node)
* [reactjs](https://reactjs.org/)
* [mysql](https://www.mysql.com/)

2. Clone the application
    ```
    git clone https://github.com/simitt/apm-movie-demo-app.git
    cd apm-movie-demo-app
    ```

3. Set up the demo database

    Create the mysql database `moviedemo` and create a user that can read from this database. For example:

    NOTE: Replace the user and password placeholders with your mysql user and password.
    ```
    CREATE database moviedemo;
    CREATE USER '<mysql-user>'@'localhost' IDENTIFIED WITH mysql_native_password BY '<mysql-password>';
    GRANT ALL ON moviedemo.* TO '<mysql-user>'@'localhost';
    ```

    Fill the database with some data. For example, run the following command to add the provided sample data to the mysql database:
    ```
    mysql -u <mysql-user> -p moviedemo < ./movie-backend/data.sql
    ```

4. Ensure that the backend app is running and that it can connect to the mysql database.

    In `movie-backend/src/db.js` set the following information:
    ```
    const knex = require('knex')({
        client: 'mysql',
        connection: {
            host: '<IP_ADDRESS>',
            port: 3306,
            user: '<mysql-user>', // replace with mysql user
            password: '<mysql-password>', // replace with mysql user password
            database: 'moviedemo',
        }
    });
    ```

    Start the backend service in development mode
    ```
    cd movie-backend
    nvm use
    npm install
    npm run dev
    ```

5. Ensure that the backend application is reachable via http request by making a request to `http://localhost:3001/genres` (for example via using [curl](https://github.com/curl/curl) or [postman](https://www.postman.com/)).

6. Start the frontend app.
    ```
    cd movie-frontend
    nvm use
    npm install
    npm start
    ```

7. By default the app will be runnin on [http://localhost:3000](http://localhost:3000). Navigate to a browser and try it out.

repository: simitt/apm-movie-demo-app

repo_name: simitt/apm-movie-demo-app


text:
puppet-module-installer [![Build Status](https://travis-ci.org/backuity/puppet-module-installer.png?branch=master)](https://travis-ci.org/backuity/puppet-module-installer)
=======================

Installs puppet modules recursively from a `Puppetfile`.

# Installation

Until proper packages (Deb, Rpm) exist you can install the puppet-module-installer by downloading it from Maven Central:
<http://repo1.maven.org/maven2/org/backuity/puppet-module-installer_2.11/2.2.1/puppet-module-installer_2.11-2.2.1-one-jar.jar>

If you have `binfmt-support` installed you can simply give the executable permission to your jar:

    wget http://repo1.maven.org/maven2/org/backuity/puppet-module-installer_2.11/2.2.1/puppet-module-installer_2.11-2.2.1-one-jar.jar -O ~/bin/puppet-module-installer
    chmod u+x ~/bin/puppet-module-installer

If you don't have `binfmt-support`, you can create a bash script:

    #!/bin/bash

    java -jar ~/bin/puppet-module-installer.jar "$@"

And download the jar next to it:

    wget http://repo1.maven.org/maven2/org/backuity/puppet-module-installer_2.11/2.2.1/puppet-module-installer_2.11-2.2.1-one-jar.jar -O ~/bin/puppet-module-installer.jar

# Usage

The tool provides the following options:

  * `--help` : print a detailed help message
  * `--version` : print the version

Go to a folder containing a `Puppetfile` and run `puppet-module-installer`, it will download recursively all the module described by the `Puppetfile`.
You can inspect the graph of modules with the `puppet-module-installer graph` command, ex:

    Puppetfile
      ├ my-app(HEAD)
      │ ├ java(1.16.0)
      │ ├ jmxtrans(1.74.0)
      │ │ └ logrotate(1.0.0)
      │ │
      │ └ tomcat(2.23.0)
      │   ├ dynatrace(1.4.0)
      │   ├ introscope(3.4.0)
      │   ├ java(1.16.0)
      │   ├ jmxtrans(1.28.0)
      │   ├ nexus(1.10.0)
      │   ├ puppi(2.0.8)
      │   ├ ssl(1.76.0)
      │   └ stdlib(1.2.0)
      │
      ├ motd(HEAD)
      └ sudo(HEAD)

## Fetch mode

There are 5 different ways to retrieve the modules:

  * Normal : (*no option*) Stick to the versions found in the Puppetfile, when no version is found, HEAD is used.
  * Head : (`--head`) Use HEAD for all modules.
  * Latest : (`--latest`) Ask git for a list of tags choose the highest minor for the current major
  * Latest Forced : (`--latest-force`) Ask git for a list of tags and choose the highest
  * Latest Head : (`--latest-head`) Same as *Latest* unless HEAD is wanted

**Example**

Given 2 puppet modules :
  * *java* whose repository git is `ssh://repos/java.git` with the following tags : `v1.3, v2.5, v2.6, v3.2`
  * *nexus* whose repository git is `ssh://repos/nexus.git` with the following tags : `v1.10, v2.5`

Give the following puppet file :

    mod 'java',
      :git => 'ssh://repos/java.git',
      :ref => 'v2.5'

    mod 'nexus',
      :git => 'ssh://repos/nexus.git'

Here are results of the different modes:

 Mode           | Java  | Nexus
 -------------- | ----- | -----
 Normal         | v2.5  | HEAD
 Head           | HEAD  | HEAD
 Latest         | v2.6  | v2.5
 Latest forced  | v3.2  | v2.5
 Latest Head    | v2.6  | HEAD

# Puppetfile syntax

The syntax comes from [Librarian Puppet](https://github.com/rodjek/librarian-puppet).

repository: backuity/puppet-module-installer

repo_name: backuity/puppet-module-installer


text:
Ansible role for toolchain
==================================

Downloads and installs a toolchain from URL

[![GitHub Actions](https://github.com/mongodb-ansible-roles/ansible-role-mongo-toolchain/workflows/Molecule%20Test/badge.svg)](https://github.com/mongodb-ansible-roles/ansible-role-mongo-toolchain/actions?query=workflow%3A%22Molecule+Test%22)
[![GitHub Actions](https://github.com/mongodb-ansible-roles/ansible-role-mongo-toolchain/workflows/Release/badge.svg)](https://github.com/mongodb-ansible-roles/ansible-role-mongo-toolchain/actions?query=workflow%3A%22Molecule+Test%22)

Requirements
------------

None

Role Variables
--------------

| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-------:|:--------:|
| `toolchain_creates_directory` | Specify the directory this role creates | string | "" | no |
| `toolchain_dest` | Destination to install toolchain | string | /opt | yes |
| `toolchain_list_files` | Sets toolchain\_top\_level\_directory variable to be used by other toolchain roles for destination directory creation | boolean | false | yes |
| `toolchain_ur`l | URL of toolchain tarball | string | "" | no |
| `toolchain_delete_old_final_dest`l | Specify whether to delete the old toolchain first before downloading the new one. This can be used to install a new toolchain on a host that has space restrictions. Do not use this on static hosts as it could leave the host without the old and new toolchain installed | boolean | false | no |
| `toolchain_validate_certs` | Validate HTTPS or not | boolean | `true` | no

MacOS Specific Notes
--------------------

The macos-1014 distro, and Macs in general, have the BSD version of tar installed.

Unfortunately, the [unarchive ansible module](https://docs.ansible.com/ansible/latest/modules/unarchive_module.html) is not compatible with the BSD version of tar.

The GNU version of tar can be installed via `brew install gnu-tar`, which then installs the executable at `/usr/local/bin/tar`.

In order to get ansible to use this executable, you have to specify `/usr/local/bin` first in the $PATH before `/usr/bin`.

Example Playbook
----------------

```yaml
- hosts: all
  roles:
    - role: ansible-role-toolchain
      vars:
        toolchain_url: https://s3.amazonaws.com/boxes.10gen.com/build/toolchain-drivers/mongo-java-driver/java-toolchain-linux_x64-684d8a531d064469d4ca29e831e5929420e486d6.tar.gz
```

License
-------

[Apache License](LICENSE)

gha_language: Python


text:
---
page_title: "linuxkit_image_iso_bios Resource - terraform-provider-linuxkit"
subcategory: ""
description: |-
  linuxkit_image_iso_bios produces an ISO file suitable for booting on systems that support BIOS booting.
---

# Resource `linuxkit_image_iso_bios`

`linuxkit_image_iso_bios` produces an ISO file suitable for booting on systems that support BIOS booting.

## Schema

### Required

- **build** (String) The build tarball
- **destination** (String) The destination of the raw generated OS image

### Optional

- **id** (String) The ID of this resource.

license: ISC

repository: resinstack/terraform-provider-linuxkit

gha_language: Go

gha_license_id: ISC

repo_name: resinstack/terraform-provider-linuxkit


text:
# Vue-Business-Light

I used a free template [Osahan – Free Responsive Business Bootstrap Template](https://graygrids.com/item/osahan-free-responsive-business-bootstrap-template/)
to demonstrate some of the features remarkable library [Vue.js](http://vuejs.org/).

Main features of the package:

- can build reactive Web user interfaces.
- an process HTML templates to generate Web application views that be composed by different parts.
- assembly of modules is done by technology Asynchronous module definition (AMD).
To ensure this technology is used library [RequireJS]( http://requirejs.org/ ) is a JavaScript file and module loader.
- to separate the data used [Vuex](http://vuex.vuejs.org/en/intro.html) (state management pattern) for Vue.js applications.
- provides routing via [Vue-Router](http://router.vuejs.org/en/) to create a Single Page Application.
- the user interface is built using [Bootstrap3]( http://getbootstrap.com/ ) is the most popular HTML, CSS,
and JS framework for developing responsive, mobile first projects on the web.

### [Demo...](https://vue-business-light.firebaseapp.com/)

## Installing

### Prerequisites

- [Apache2](https://httpd.apache.org/download.cgi), [Nginx](http://nginx.org/en/) web server or similar

### Deploying

1. Clone or download [vue-business-light](https://github.com/bsa-git/vue-business-light) project with git.
2. Configure the web server so that the entry point was `index.html`.
3. Access your project url with web browser (eg. http://localhost/vue-business-light/index.html).

## Overview Vue.js

Main features of the Vue.js:

- Reactivity.
- Components .
- Modularity.
- Animations.
- Routing.
- Stability.

Vue.js (pronounced /vjuː/, like view) is a library for building interactive web interfaces.
The goal of Vue.js is to provide the benefits of reactive data binding and composable
view components with an API that is as simple as possible.

Vue.js itself is not a full-blown framework - it is focused on the view layer only.
It is therefore very easy to pick up and to integrate with other libraries or
existing projects. On the other hand, when used in combination with proper tooling
and supporting libraries, Vue.js is also perfectly capable of powering sophisticated
Single-Page Applications.

If you are an experienced frontend developer and want to know how Vue.js compares
to other libraries/frameworks, check out the [Comparison with Other Frameworks](http://vuejs.org/guide/comparison.html);

### [Learn more...](https://medium.com/the-vue-point/vue-2-0-is-here-ef1f26acf4b8#.xzsmgdym1)

## Optimization

To optimize, run:

    node app/js/r.js -o build_require.js

That build command creates an optimized version of the project in a
**public** directory. The main.js file will be optimized to include
all of its dependencies.

For more information on the optimizer:
http://requirejs.org/docs/optimization.html

For more information on using requirejs:
http://requirejs.org/docs/api.html

repository: bsa-git/vue-business-light

repo_name: bsa-git/vue-business-light