text:
# Question 1

## Check AB

### Suppose you have a string, S, made up of only 'a's and 'b's. Write a recursive program that checks if the string was generated using the following rules:

**a. The string begins with an 'a'**

**b. Each 'a' is followed by nothing or an 'a' or "bb"**

**c. Each "bb" is followed by nothing or an 'a'**

**If all the rules are followed by the given string, return true otherwise return false.**

------------------------------------------------------------------------------------------------------------

**Constraints :**

  1 <= |S| <= 1000
  where |S| represents length of string S.

 ------------------------------------------------------------------------------------------------------------

**Input format :**

  String S

**Output format :**

  'true' or 'false'

 ------------------------------------------------------------------------------------------------------------

**Sample Input 1 :**

  abb

**Sample Output 1 :**

  true

**Sample Input 2 :**

  abababa

**Sample Output 2 :**

  false

 # Question 2

## Black Square

### Quite recently, a very smart student named Jury decided that lectures are boring, so he downloaded a game called "Black Square" on his super cool touchscreen phone.

**In this game, the phone's screen is divided into four vertical strips. Each second, a black square appears on some of the strips. According to the rules of the game, Jury must use this second to touch the corresponding strip to make the square go away. As Jury is both smart and lazy, he counted that he wastes exactly ai calories on touching the i-th strip.**

**You've got a string s, describing the process of the game and numbers a1, a2, a3, a4. Calculate how many calories Jury needs to destroy all the squares?**

------------------------------------------------------------------------------------------------------------

**Input format :**

The first line contains four space-separated integers a1, a2, a3, a4 (0 ≤ a1, a2, a3, a4 ≤ 104).

The second line contains string s (1 ≤ |s| ≤ 105), where the і-th character of the string equals "1", if on the i-th second of the game the square appears on the first strip, "2", if it appears on the second strip, "3", if it appears on the third strip, "4", if it appears on the fourth strip.

**Output format :**

Print a single integer — the total number of calories that Jury wastes.

------------------------------------------------------------------------------------------------------------

**Sample Input 1 :**

  1 2 3 4

  123214

**Sample Output 1 :**

  13

**Sample Input 2 :**

  1 5 3 2

  11221

**Sample Output 2 :**

  13

 # Question 3

## Beautiful Matrix

### You've got a 5 × 5 matrix, consisting of 24 zeroes and a single number one. Let's index the matrix rows by numbers from 1 to 5 from top to bottom, let's index the matrix columns by numbers from 1 to 5 from left to right. In one move, you are allowed to apply one of the two following transformations to the matrix:

**a. Swap two neighboring matrix rows, that is, rows with indexes i and i + 1 for some integer i (1 ≤ i < 5).**

**b. Swap two neighboring matrix columns, that is, columns with indexes j and j + 1 for some integer j (1 ≤ j < 5).**

**You think that a matrix looks beautiful, if the single number one of the matrix is located in its middle (in the cell that is on the intersection of the third row and the third column). Count the minimum number of moves needed to make the matrix beautiful.**

 ------------------------------------------------------------------------------------------------------------

**Input format :**

The input consists of five lines, each line contains five integers: the j-th integer in the i-th line of the input represents the element of the matrix that is located on the intersection of the i-th row and the j-th column. It is guaranteed that the matrix consists of 24 zeroes and a single number one.

**Output format :**

Print a single integer — the minimum number of moves needed to make the matrix beautiful.

 ------------------------------------------------------------------------------------------------------------

**Sample Input 1 :**

0 0 0 0 0

0 0 0 0 1

0 0 0 0 0

0 0 0 0 0

0 0 0 0 0

**Sample Output 1 :**

3

**Sample Input 2 :**

0 0 0 0 0

0 0 0 0 0

0 1 0 0 0

0 0 0 0 0

0 0 0 0 0

**Sample Output 2 :**

1

# Question 4

## Gravity Flip

### Little Chris is bored during his physics lessons (too easy), so he has built a toy box to keep himself occupied. The box is special, since it has the ability to change gravity.

**There are n columns of toy cubes in the box arranged in a line. The i-th column contains ai cubes. At first, the gravity in the box is pulling the cubes downwards. When Chris switches the gravity, it begins to pull all the cubes to the right side of the box. The figure shows the initial and final configurations of the cubes in the box: the cubes that have changed their position are highlighted with orange.**

**Given the initial configuration of the toy cubes in the box, find the amounts of cubes in each of the n columns after the gravity switch!**

 ------------------------------------------------------------------------------------------------------------

**Input format :**

The first line of input contains an integer n (1 ≤ n ≤ 100), the number of the columns in the box.

The next line contains n space-separated integer numbers. The i-th number ai (1 ≤ ai ≤ 100) denotes the number of cubes in the i-th column.

**Output format :**

Output n integer numbers separated by spaces, where the i-th number is the amount of cubes in the i-th column after the gravity switch.

 ------------------------------------------------------------------------------------------------------------

**Sample Input 1 :**

4

3 2 1 2

**Sample Output 1 :**

1 2 2 3

**Sample Input 2 :**

3

2 3 8

**Sample Output 2 :**

2 3 8

# Question 5

## Case of the Zeros and Ones

### Andreid the Android is a galaxy-famous detective.

**Once he thought about a string of length n consisting of zeroes and ones. Consider the following operation: we choose any two adjacent positions in the string, and if one them contains 0, and the other contains 1, then we are allowed to remove these two digits from the string, obtaining a string of length n - 2 as a result.**

**Now Andreid thinks about what is the minimum length of the string that can remain after applying the described operation several times (possibly, zero)? Help him to calculate this number.**

 ------------------------------------------------------------------------------------------------------------

**Input format :**

First line of the input contains a single integer n (1 ≤ n ≤ 2·105), the length of the string that Andreid has.

The second line contains the string of length n consisting only from zeros and ones.

**Output format :**

Output the minimum length of the string that may remain after applying the described operations several times.

 ------------------------------------------------------------------------------------------------------------

**Sample Input 1 :**

4

1100

**Sample Output 1 :**

0

**Sample Input 2 :**

5

01010

**Sample Output 2 :**

1

**Sample Input 3 :**

8

11101111

**Sample Output 3 :**

6

# Question 6

### There are N cities in Chefland numbered from 1 to N and every city has a railway station. Some cities have a train and each city has at most one train originating from it.

**The trains are represented by an array A, where Ai=0 means the i-th city doesn't have any train originating from it, Ai=1 means the train originating from the i-th city is moving right (to a higher numbered city), and Ai=2 means the train originating from the i-th city is moving left (to a lower numbered city).**

**Each train keeps on going forever in its direction and takes 1 minute to travel from the current station to the next one. There is a special station at city 1 which lets travellers instantaneously teleport to any other station that currently has a train. Teleportation and getting on a train once in the city both take 0 minutes and all trains start at time 0.**

**There are M travellers at city 1, and the i-th traveller has destination city Bi. They ask Chef to guide them to teleport to a particular station from which they can catch a train to go to their destination in the least time possible. In case it's not possible for a person to reach his destination, print −1.**

------------------------------------------------------------------------------------------------------------

**Constraints :**

1≤N,M≤105

0≤Ai≤2

1≤Bi≤N

The sum of N over all test cases is at most 106.

The sum of M over all test cases is at most 106.

 ------------------------------------------------------------------------------------------------------------

**Input format :**

The first line contains an integer T, the number of test cases. Then the test cases follow.

Each test case contains three lines of input.

The first line contains two integers N, M.

The second line contains N integers A1,A2,…,AN.

The third line contains M integers B1,B2,…,BM.

**Output format :**

For each test case, output M space-separated integers C1,C2,…,CM, where Ci is the minimum time required by the i-th traveller to reach his destination and if the i-th traveller can't reach his destination, Ci=−1.

 ------------------------------------------------------------------------------------------------------------

**Sample Input 1 :**

3

5 1

1 0 0 0 0

5

5 1

1 0 0 0 2

4

5 2

2 0 0 0 1

3 1

**Sample Output 1 :**

4

1

-1 0

# Question 7

### Rajesh is planning a heist in the reserve bank of Chefland. They are planning to hijack the bank for D days and print the money.

**The initial rate of printing the currency is P dollars per day and they increase the production by Q dollars after every interval of d days. For example, after d days the rate is P+Q dollars per day, and after 2d days the rate is P+2Q dollars per day, and so on. Output the amount of money they will be able to print in the given period.**

------------------------------------------------------------------------------------------------------------

**Constraints :**

1≤T≤105

1≤d≤D≤106

1≤P,Q≤106

 ------------------------------------------------------------------------------------------------------------

**Input format :**

The first line contains an integer T, the number of test cases. Then the test cases follow.

Each test case contains a single line of input, four integers D,d,P,Q.

**Output format :**

For each test case, output in a single line the answer to the problem.

 ------------------------------------------------------------------------------------------------------------

**Sample Input 1 :**

3

2 1 1 1

3 2 1 1

5 2 1 2

**Sample Output 1 :**

3

4

13

# Question 8

## Maximum Weaving Number

**Given two numbers A=a1a2...an and B= b1b2...Bm, we can weave these two numbers to produce the following numbers.**

**a1b1a2b2...anbnb(n+1)...bm,, if m>n

a1b1a2b2...ambma(m+1)...an if m<n

a1b1a2b2...anbn if m=n.

Similarly, we can also get b1a1b2a2.... as above.**

**We can also start weaving from the end. By weaving from the end, we can form the words: anbnb(n-1)a(n-1)... , bnanb(n-1)a(n-1)...

Thus, by weaving A and B, four new numbers are formed: weaving from the beginning, starting with A, weaving from the beginning, starting with B, weaving from the end, starting with A, weaving from the end, starting with B. While weaving two numbers A and B, if all the digits of A are weaved and some more digits are there in B, the remaining digits of B are just appended at the end.**

**For example, if A = 27 and B = 54 then there are four numbers that can be woven

2574

5247

7425

4752

and maximum out of these is 7425

Given two numbers A and B, write a code to compute the numbers woven by A &B and find the maximum woven number.**

 ------------------------------------------------------------------------------------------------------------

**Input format :**

First line contains the number A

Next line contains the number B

**Output format :**

Print the maximum woven number


text:
Introduction-to-3D-Game-Programming-With-DirectX11
==================================================

Book Example Code in [Introduction to 3D Game Programming With DirectX11 by Frank Luna ]
http://www.d3dcoder.net/

New Project setup:
==================

Do not modify the relative directory structure of these samples.  In particular, for each
project sample, the Common folder must be obtained from it via "../../Common".

Debug libraries:
----------------

d3d11.lib;d3dx11d.lib;D3DCompiler.lib;Effects11d.lib;dxerr.lib;dxgi.lib;dxguid.lib;%(AdditionalDependencies)

Release libraries:
------------------

d3d11.lib;d3dx11.lib;D3DCompiler.lib;Effects11.lib;dxerr.lib;dxgi.lib;dxguid.lib;%(AdditionalDependencies)

C/C++ Additional Include Directories:
-------------------------------------

1) Path to DirectX Header files.

2) ../../Common (or Absolute Path to Common)

Linker Additional Library Directories:
--------------------------------------

1) Path to DirectX Library files.

2) ../../Common (or Absolute Path to Common)

FXC Call (*.fx file Custom Build Tool)
--------
- Command Line
    - a) Debug mode:   fxc /Fc /Od /Zi /T fx_5_0 /Fo "%(RelativeDir)\%(Filename).fxo" "%(FullPath)"
    - b) Release mode: fxc /T fx_5_0 /Fo "%(RelativeDir)\%(Filename).fxo" "%(FullPath)"
- Description
    - a) Debug Description: fxc compile for debug: %(FullPath)
    - b) Release Description: fxc compile for release: %(FullPath)
- Outputs
    - Outputs: %(RelativeDir)\%(Filename).fxo

Compile Error
---------------
- Effects11d.lib Link Error
C:\Program Files\Microsoft DirectX SDK (June 2010)\Samples\C++\Effects11
https://github.com/Microsoft/FX11/archive/nov2015.zip
Build And Link Effects11.lib
- Effects11d.lib -> Build FX11-nov2015 project

- http://gpgstudy.com/gpgiki/Visual_Studio_2015%EC%97%90%EC%84%9C_%EC%98%88%EC%A0%9C_%EC%8B%A4%ED%96%89%ED%95%98%EA%B8%B0#3._Effects11_.EB.9D.BC.EC.9D.B4.EB.B8.8C.EB.9F.AC.EB.A6.AC_.EB.B9.8C.EB.93.9C_.EB.B0.8F_.EC.A0.81.EC.9A.A9

- VS2015 Build Error
   - d3dUtil.h, line 38, remove DXTrace macro code

- DirectX 11 초기화 오류
아래 사이트를 참조하자.
http://stackoverflow.com/questions/10586956/what-can-cause-d3d11createdevice-to-fail-with-e-fail

license: MIT

branch_name: refs/heads/master

extension: md

license_type: permissive


text:
# miniRouter - Fast PHP regex based router
miniRouter is a fast PHP router based on regular expressions inspired from [PHRoute](https://github.com/mrjgreen/phroute).
It is build essentially to support RESTful APIs with simple, yet powerful, high speed interface.

## Installation
Just include the `miniRouter.php` file in your index page and start using it.

### Friendly URL

In order to handle all requests using the router, you need to redirect all requests to the page you would like to define your routes in. Create a simple .htaccess file on your root directory if you're using Apache with mod_rewrite enabled.

```apache
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_URI} !\..+$
RewriteRule .* index.php [QSA,L]

```
Check the examples for implementation.

## Usage
### Defining routes

miniRouter supports GET, HEAD, POST, PUT, PATCH and DELETE methods.

```PHP
require_once('miniRouter.php');

$router = new miniRouter();

$router->get($route, $handler);     # match only get requests
$router->post($route, $handler);    # match only post requests
$router->put($route, $handler);     # match only put requests
$router->delete($route, $handler);  # match only delete requests
$router->patch($route, $handler);   # match only patch requests
$router->head($route, $handler);    # match only head requests
$router->any($route, $handler);     # match any request method

$router->start_routing();
```
These methods are defined by the HTTP method the route must match, and accept the route pattern and a callable handler, which can be a closure, function name or ['ClassName', 'method'] pair.

Note that the router doesn't by default echo the returned value from the handler, so if you want to send something back to the client you need to `echo` it, not to `return` it.

### Regex Shortcuts

URLs can use regular expressions directly into the URL or use one of these shortcuts

```
{:i}  => ([0-9]+)              # numbers only
{:a}  => ([0-9A-Za-z]+)        # alphanumeric
{:h}  => ([0-9A-Fa-f]+)        # hex
{:s}  => ([a-zA-Z0-9+_\-\.]+)  # alphanumeric and + _ - . characters

```
Here are some examples of using regex and shortcuts in routes

```PHP

  // you can pass parameters to controllers through URL using shortcuts
  $router->get('/hello/{:a}/', function($name) {
    echo "Hello, $name!";
  });

  // or you can use regular expressions directly into the URL
  $router->get('/hello-robot/(\d+)', function($robotNumber) {
    echo "Hello robot number $robotNumber!";
  });

  // URL parameters assigned to controller parameters in order
  // Note that regex can be used side by side with shortcuts
  $router->get('/hello-two/{:s}/([a-zA-Z0-9+_\-\.]+)', function($name1, $name2) {
    echo "Hello, $name1 and $name2!<br>";
  });

  // Parameters could be optional but you need to define default values for it's corresponding variables
  $router->get('/hello-anon/{:a}?/', function($name = "anonymous") {
    echo "Hello, $name!";
  });
```

### Named Routes for Reverse Routing

Pass in an array as the first argument, where the first item is your route and the second item is a name to reference it later.

```PHP
$router->get(['/user/{:a}', 'username'], function($name){
    echo 'Hello ' . $name;
});

$router->get(['/page/{:s}/{:i}', 'page'], function($slug, $id){
    echo 'You must be authenticated to see this page: ' . $id;
});

// Use the route name and pass any route parameters to redirect the browser to existing route path
// If you change your route path above, you won't need to go through your code updating any links/references to that route
$router->route('username', 'joe');
// this will redirect the browser to the path '/user/joe'

// if you passed a false value to the third argument, the browser will call the handler of the specified route without redirecting
$router->route('page', ['intro', 234], false);
// this will call the handler of the path '/page/intro/234'
```

### Groups
Groups apply prefixes to URLS.

```PHP

$router->group('/admin', function($router){

    $router->get('pages', function(){
        echo 'page management';
    });

    $router->get('products', function(){
        echo 'product management';
    });

    $router->get('orders', function(){
        echo 'order management';
    });
});
```

Groups can also define parameters in URL, parameters defined in a group is also passed to all group routes by default.

```PHP

$router->group('/api/v{:i}', function($router, $api_version){

    $router->get('users', function($version){
        echo $version;
    });

    if ($api_version >= 2) {
        $router->get('order/{:i}', function($api_version, $order_id){
            echo $api_version;
        });
    }
});
```

It's good to notice that the router adds only the domain name at the beginning of any route. So if all your routes are inside a subfolder or subdirectory, group all your routes with the folder name as prefix.

### Filters

You can Add a filter that must be true before a route can be accessed.

```PHP

$router->filter('isLoggedIn', function(){
    if($_SESSION['logged_in']) {
      return true
    } else {
      return false
    }
});

$router->get('/user/{:a}', function($name){
    echo 'Hello ' . $name;
}, "isLoggedIn");
```
If the filter returned any value that if casted to boolean will be `false`, it will prevent the route handler from being dispatched. You can check `false` values from [PHP booleans documentation](https://secure.php.net/manual/en/language.types.boolean.php#language.types.boolean.casting)

### Filter Groups

Wrap multiple routes in a route group to apply a filter to every route defined within. You can nest groups if required.

```php

$router->filter('auth', function(){
    if(!isset($_SESSION['user']))
    {
        header('Location: /login');
        return false;
    }
    return true;
});

$router->group('/', function($router){

    $router->get('/user/{:a}', function($name){
        echo 'Hello ' . $name;
    });

    $router->get('/page/{:i}', function($id){
        return 'You must be authenticated to see this page: ' . $id;
    });

}, "auth");
```

Check examples for more detailed practical use examples for miniRouter, especially for RESTful APIs.

## License
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

branch_name: refs/heads/main


text:
# Grafana Dashboards

To create a configmap for grafana dashboard or to update existing configmap,
1. Insert the `<dashboard-name>.json` grafana file to `dist/grafana` folder
2. Run `just dashboards` from the root directory to create corresponding
   config maps.
3. The config maps are stored in `/dist/grafana/dashboards` folder

repository: openshift/cincinnati

gha_language: Rust

repo_name: openshift/cincinnati


text:
# Noise Complaints

## Dataset

| Name | Value |
| :--- | :---- |
| Catalog | [Link](https://catalog.data.gov/dataset/noise-complaints) |
| Metadata | [Link](https://data.montgomerycountymd.gov/api/views/pv7j-pdxw) |
| Data: JSON | [100 Rows](https://data.montgomerycountymd.gov/api/views/pv7j-pdxw/rows.json?max_rows=100) |
| Data: CSV | [100 Rows](https://data.montgomerycountymd.gov/api/views/pv7j-pdxw/rows.csv?max_rows=100) |
| Host | data.montgomerycountymd.gov |
| Id | pv7j-pdxw |
| Name | Noise Complaints |
| Attribution | Montgomery County, MD |
| Category | Environment |
| Tags | noise, complaints |
| Created | 2016-11-08T19:38:32Z |
| Publication Date | 2016-11-10T16:30:32Z |

## Description

This dataset contains information on the Noise complaints initiated by citizens through 311 or web form. Update Frequency - Daily, Monday-Friday

## Columns

```ls
| Included | Schema Type | Field Name | Name             | Data Type     | Render Type   |
| ======== | =========== | ========== | ================ | ============= | ============= |
| Yes      | series tag  | case_no    | Case Number      | text          | number        |
| Yes      | time        | open_date  | Case Open Date   | calendar_date | calendar_date |
| No       |             | close_date | Case Close Date  | calendar_date | calendar_date |
| No       |             | case_year  | Case Year        | number        | text          |
| Yes      | series tag  | sub_type   | Case Sub-Type    | text          | text          |
| No       |             | address    | Address Zip Code | text          | text          |
```

## Time Field

```ls
Value = open_date
Format & Zone = yyyy-MM-dd'T'HH:mm:ss
```

## Series Fields

```ls
Excluded Fields = close_date,address,case_year
```

## Data Commands

```ls
series e:pv7j-pdxw d:2007-05-10T10:05:52.000Z t:sub_type="Industrial/commercial  construction/repair/demolit" t:case_no=19002 m:row_number.pv7j-pdxw=1

series e:pv7j-pdxw d:2016-02-05T13:04:59.000Z t:sub_type="Industrial/commercial  construction/repair/demolit" t:case_no=20161106 m:row_number.pv7j-pdxw=2

series e:pv7j-pdxw d:2007-12-28T10:58:39.000Z t:sub_type="Waiver Request" t:case_no=19847 m:row_number.pv7j-pdxw=3
```

## Meta Commands

```ls
metric m:row_number.pv7j-pdxw p:long l:"Row Number"

entity e:pv7j-pdxw l:"Noise Complaints" t:attribution="Montgomery County, MD" t:url=https://data.montgomerycountymd.gov/api/views/pv7j-pdxw

property e:pv7j-pdxw t:meta.view v:id=pv7j-pdxw v:category=Environment v:averageRating=0 v:name="Noise Complaints" v:attribution="Montgomery County, MD"

property e:pv7j-pdxw t:meta.view.license v:name="Public Domain"

property e:pv7j-pdxw t:meta.view.owner v:id=ajn4-zy65 v:screenName="MCG ESB Service" v:lastNotificationSeenAt=1491401045 v:displayName="MCG ESB Service"

property e:pv7j-pdxw t:meta.view.tableauthor v:id=ajn4-zy65 v:screenName="MCG ESB Service" v:roleName=administrator v:lastNotificationSeenAt=1491401045 v:displayName="MCG ESB Service"
```

## Top Records

```ls
| case_no  | open_date           | close_date          | case_year | sub_type                                          | address |
| ======== | =================== | =================== | ========= | ================================================= | ======= |
| 19002    | 2007-05-10T10:05:52 | 2013-01-08T13:35:40 | 2007      | Industrial/commercial construction/repair/demolit | 20871   |
| 20161106 | 2016-02-05T13:04:59 | 2016-04-07T09:37:35 | 2016      | Industrial/commercial construction/repair/demolit | 20906   |
| 19847    | 2007-12-28T10:58:39 | 2008-04-25T15:14:24 | 2007      | Waiver Request                                    | 20895   |
| 15816    | 2005-01-18T15:12:09 | 2005-01-27T09:58:44 | 2005      | Industrial/commercial Equipment Noise             | 20814   |
| 20161573 | 2016-06-03T08:12:52 | 2016-06-20T15:26:36 | 2016      | Industrial/commercial Equipment Noise             |         |
| 8280     | 1999-04-09T00:00:00 | 1999-05-06T00:00:00 | 1999      | Industrial/commercial Equipment Noise             | 20876   |
| 19944    | 2008-01-31T10:20:51 | 2008-04-01T09:21:40 | 2008      | Residential El Amplification Equip                | 20879   |
| 4883     | 1995-09-11T00:00:00 | 1995-11-30T00:00:00 | 1995      | Residential El Amplification Equip                | 20877   |
| 19392    | 2007-08-13T07:25:28 | 2007-08-30T12:04:42 | 2007      | Industrial/commercial construction/repair/demolit |         |
| 27313    | 2012-11-23T09:17:25 | 2013-01-14T11:45:22 | 2012      | Industrial/commercial Equipment Noise             | 20852   |
```

repository: SpellarBot/open-data-catalog

repo_name: SpellarBot/open-data-catalog


text:
# Templates

A simple template manager to replace placeholders inside strings.

## Usage

### Creating a Placeholder

First, you may need to create a Placeholder, it gives you a `$tag` property and a `value()` method to set up.

The `$tag` is the placeholder that will be replaced by the result of the `value()` method.

```php
// MyCustomPlaceholder.php

use LorenzoMilesi\Templates\Placeholder;

class MyCustomPlaceholder extends Placeholder
{
    protected static string $tag = '[custom]';

    public static function value() : string
    {
        return 'yey';
    }
}
```

### Using Placeholders in Templates

Then, anywhere should you need it, you may create a Template instance that will be responsible for transforming a given content by replacing every defined placeholders by their values.

```php
use LorenzoMilesi\Templates\Template;

// Load the template with given content and placeholders to replace
$template = Template::load('placeholders will be replaced, [custom]')
        ->addPlaceholder(MyCustomPlacehoder::up());

// This will return : "placeholders will be replaced, yey"
$template->__toString();
```

### PlaceholderFactory

Sometimes you do not want to create a custom placeholder in a class file, consequently, we created a PlaceholderFactory to setup anonymous placeholder classes on the fly:

```php
use LorenzoMilesi\Templates\Template;
use LorenzoMilesi\Templates\PlaceholderFactory;

$datePlaceholder = PlaceholderFactory::build('[date]', \Carbon\Carbon::today()->format('Y-m-d'));

Template::load('Today date is [date]')
    ->addPlaceholder($datePlaceholder);
```

So far, so good, you may add several placeholders and build successful template's replacement systems:

```php
use LorenzoMilesi\Templates\Template;
use LorenzoMilesi\Templates\PlaceholderFactory;

$datePlaceholder = PlaceholderFactory::build('[date]', \Carbon\Carbon::today()->format('Y-m-d'));

$userPlaceholder = PlaceholderFactory::build('[username]', auth()->user()->getName());

$teamPlaceholder = PlaceholderFactory::build('[teamname]', auth()->user()->team()->getName);

Template::load('Hello [username], we\'re on [date] and you joined [teamname] :)')
    ->addPlaceholder($datePlaceholder)
    ->addPlaceholder($userPlaceholder)
    ->addPlaceholder($teamPlaceholder);
```

### Some other things

You're free to define any format for placeholders:

```php
use LorenzoMilesi\Templates\Template;
use LorenzoMilesi\Templates\PlaceholderFactory;

$datePlaceholder = PlaceholderFactory::build('{date}', \Carbon\Carbon::today()->format('Y-m-d'));

Template::load('this will replace {date} but not [date]')
    ->addPlaceholder($datePlaceholder);
```

When you define placeholders on a Template, order matters:

```php
use LorenzoMilesi\Templates\Template;
use LorenzoMilesi\Templates\PlaceholderFactory;

$dateOne = PlaceholderFactory::build('{date}', \Carbon\Carbon::today()->format('Y-m-d'));

$dateTwo = PlaceholderFactory::build('{date}', \Carbon\Carbon::yesterday()->format('Y-m-d'));

/**
 * Given that $dateOne and $dateTwo replace the same tag,
 * Only $dateOne will work here, since it will replace
 * the tag before $dayTwo.
 */
Template::load('This is {date}')
    ->addPlaceholder($dateOne)
    ->addPlaceholder($dateTwo);
```

Lastly you may create placeholder switches:

```php
use LorenzoMilesi\Templates\Template;
use LorenzoMilesi\Templates\PlaceholderFactory;

$condition = rand(0, 1);

$conditionalTag = PlaceholderFactory::build('[condition]', $condition ? '[today]' : '[yesterday]');

$todayPlaceholder = PlaceholderFactory::build('[today]', \Carbon\Carbon::today()->format('Y-m-d'));

$yesterdayPlaceholder = PlaceholderFactory::build('[yesterday]', \Carbon\Carbon::yesterday()->format('Y-m-d'));

/**
 * This will use today or yesterday tag given a condition
 */
Template::load('This is [condition]')
    ->addPlaceholder($conditionalTag)
    ->addPlaceholder($todayPlaceholder)
    ->addPlaceholder($yesterdayPlaceholder);
```

## Licence

This package is delivered to you for free under the MIT Licence.

repository: lorenzo-milesi/templates

repo_name: lorenzo-milesi/templates


text:
# Quick Quotes

Group project for Flatiron Pre-college program. Searches quotes by tags and by quoted person.

![alt tag](http://i.imgur.com/EF7orr3.png)


text:
# start-node
### Started
This repository for those who want to start using nodejs to development a website.

Dependencies | Version
--- | --- |
[body-parser](https://github.com/expressjs/body-parser) | ![npm](https://img.shields.io/npm/v/body-parser)
[cookie-parser](https://github.com/expressjs/cookie-parser) | ![npm](https://img.shields.io/npm/v/cookie-parser)
[express](https://github.com/expressjs/express) | ![npm](https://img.shields.io/npm/v/express)
[pug](https://pugjs.org/api/getting-started.html) | ![npm](https://img.shields.io/npm/v/pug)
[request](https://github.com/request/request) | ![npm](https://img.shields.io/npm/v/request)
[serve-favicon](https://github.com/expressjs/serve-favicon) | ![npm](https://img.shields.io/npm/v/serve-favicon)
[eslint](https://github.com/eslint/eslint) | ![npm](https://img.shields.io/npm/v/eslint)
[eslint-config-google](https://github.com/google/eslint-config-google) | ![npm](https://img.shields.io/npm/v/eslint-config-google)
[nodemon](https://github.com/remy/nodemon) | ![npm](https://img.shields.io/npm/v/nodemon)
[mongoose](https://github.com/Automattic/mongoose) | ![npm](https://img.shields.io/npm/v/mongoose)

## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

### Prerequisites

What things you need to install the software and how to install them

Please install [Node.js](https://nodejs.org/en/) with LTS version before continue this start-node project.

Clone Repository
```
git clone https://github.com/laohanme/start-node
```

Go into the directory
```
cd start-node
```
Install all the library
```
npm install
```

### How to start
Just you need
```
npm start
```

## License

This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/laohanme/start-node/blob/master/LICENSE) file for details

repository: laohanme/start-node

gha_language: Pug

gha_license_id: MIT

repo_name: laohanme/start-node


text:
---
page_type: sample
languages:
- javascript
- typescript
products:
- angular
- ms-graph
- azure-active-directory
description: "Demonstrates how to use MSAL Angular to login, logout, protect a route, and acquire an access token for a protected resource such as Microsoft Graph."
urlFragment: "active-directory-javascript-singlepageapp-angular"
---

# Angular Single-page Application built with MSAL Angular and Microsoft identity platform

This sample demonstrates how to use [MSAL Angular](https://www.npmjs.com/package/@azure/msal-angular) to login, logout, protect a route, and acquire an access token for a protected resource such as Microsoft Graph.

**Note:** A quickstart guide covering this sample can be found [here](https://docs.microsoft.com/azure/active-directory/develop/quickstart-v2-angular).

**Note:** A more detailed tutorial covering this sample can be found [here](https://docs.microsoft.com/azure/active-directory/develop/tutorial-v2-angular).

## Key concepts

This sample demonstrates the following MSAL Angular concepts:

* Configuration
* Login
* Logout
* Protecting a route
* Acquiring an access token and attaching it to http calls

## Contents

| File/folder       | Description                                |
|-------------------|--------------------------------------------|
| `AppCreationScripts` | Contains automation scripts for Powershell users (can be safely removed if desired). |
| `e2e`             | End-to-end test files.                     |
| `src`             | Sample source code.                        |
| `.editorconfig`   | Defines editor config settings.            |
| `.gitignore`      | Define what to ignore at commit time.      |
| `angular.json`    | Angular configuration file.                |
| `browserslist`    | BrowsersList configuration file.           |
| `CHANGELOG.md`    | List of changes to the sample.             |
| `CODE_OF_CONDUCT.md` | Code of Conduct information.            |
| `CONTRIBUTING.md` | Guidelines for contributing to the sample. |
| `karma.conf.js` | Configuration for the karma test runner.   |
| `LICENSE`         | The license for the sample.                |
| `NG_README.md`    | README auto-generated by the Angular CLI.  |
| `package-lock.json` | Lockfile for npm. |
| `package.json`    | Package manifest for npm.                   |
| `README.md`       | This README file.                          |
| `SECURITY.md`     | Security disclosures.                      |
| `tsconfig.*.json` | TypeScript configuration files.            |
| `tslint.json`     | TS Lint configuration files.               |

**Note:** This sample's structure was generated with the [Angular CLI](https://cli.angular.io/).

## Prerequisites

[Node.js](https://nodejs.org/en/) must be installed to run this sample.

## Setup

1. [Register a new application](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) in the [Azure Portal](https://portal.azure.com). Ensure that the application is enabled for the [implicit flow](https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-implicit-grant-flow).

2. Open [src/app/app.module.ts](./src/app/app.module.ts) and provide the required configuration parameters:

```typescript
    MsalModule.forRoot({
      auth: {
        clientId: 'Enter_the_Application_Id_Here',
        authority: 'Enter_the_Cloud_Instance_Id_HereEnter_the_Tenant_Info_Here',
        redirectUri: 'Enter_the_Redirect_Uri_Here',
      },
      cache: {
        cacheLocation: 'localStorage',
        storeAuthStateInCookie: isIE, // set to true for IE 11
      },
    },
    {
      popUp: !isIE,
      consentScopes: [
        'user.read',
        'openid',
        'profile',
      ],
      unprotectedResources: [],
      protectedResourceMap: [
        ['Enter_the_Graph_Endpoint_Herev1.0/me', ['user.read']]
      ],
      extraQueryParameters: {}
    })
```

> :information_source: In order to support sign-ins with **work and school accounts** as well as **personal Microsoft accounts**, set your `authority` to use the **common** endpoint i.e. `https://login.microsoftonline.com/common`. Read more about [msal.js configuration options](https://docs.microsoft.com/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options).

1. Install project dependencies from the command line by navigating to the root of the repository and running `npm install`.

## Run the sample

1. Start the sample application with `npm start`.
2. In your browser, navigate to [http://localhost:4200](http://localhost:4200).

> How did we do? Consider taking a moment to [share your experience with us](https://forms.office.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR73pcsbpbxNJuZCMKN0lURpUOU1PMDY4MVlPNzU3NFM2M0JXREc2VkZDQSQlQCN0PWcu).

## Contributing

If you'd like to contribute to this sample, see [CONTRIBUTING.MD](./CONTRIBUTING.md).

## Code of Conduct

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode<EMAIL_ADDRESS>with any additional questions or comments.

repository: nicolgit/Angular-MSAL-Teams-Sample

repo_name: nicolgit/Angular-MSAL-Teams-Sample


text:
# Load testing

You may wonder how Gotenberg behaves under load.

In order to help you having an idea, we created a bunch of scenarios for the
[k6](https://docs.k6.io/docs) load testing tool.

The Gotenberg container (version `6.0.0` and default options) was hosted on a AWS EC2 `t2.micro` instance (1 vCPU and 1 Go of RAM, low to average network performances).

The k6 scenarios have been performed on a MacBook Pro 2016 (2 GHz Intel Core i5 and 16 Go 1867 MHz LPDDR3).

## HTML

The HTML scenario is quite simple:

* Ramp up from 0 to 100 virtual users, each one uploading as many time as possible the [HTML test data](../test/testdata/html).
* Stop when at least one response is not an HTTP 200 code.

```bash
$ k6 run --env MAX_VUS=100 --env BASE_URL=http://ec2-foo.eu-west-1.compute.amazonaws.com html.js

          /\      |‾‾|  /‾‾/  /‾/
     /\  /  \     |  |_/  /  / /
    /  \/    \    |      |  /  ‾‾\
   /          \   |  |‾\  \ | (_) |
  / __________ \  |__|  \__\ \___/ .io

  execution: local
     output: -
     script: html.js

    duration: -,  iterations: -
         vus: 1, max: 100

    done [==========================================================] 1m17.9s / 10m0s

    ✗ is status 200
     ↳  99% — ✓ 201 / ✗ 2
    ✗ is not status 504
     ↳  99% — ✓ 201 / ✗ 2
    ✓ is not status 500

    checks.....................: 99.34% ✓ 605   ✗ 4
    data_received..............: 46 MB  594 kB/s
    data_sent..................: 9.6 MB 123 kB/s
  ✗ failed requests............: 2      0.025646/s
    http_req_blocked...........: avg=1.63ms   min=2µs   med=4µs     max=74.77ms  p(90)=9.6µs    p(95)=19.66ms
    http_req_connecting........: avg=1.61ms   min=0s    med=0s      max=74.59ms  p(90)=0s       p(95)=19.57ms
    http_req_duration..........: avg=2.43s    min=1.31s med=1.67s   max=10.27s   p(90)=5.44s    p(95)=8.75s
    http_req_receiving.........: avg=97.95ms  min=103µs med=93.74ms max=202.48ms p(90)=114.51ms p(95)=132.99ms
    http_req_sending...........: avg=231.53µs min=92µs  med=201µs   max=2.33ms   p(90)=310.4µs  p(95)=333.59µs
    http_req_tls_handshaking...: avg=0s       min=0s    med=0s      max=0s       p(90)=0s       p(95)=0s
    http_req_waiting...........: avg=2.33s    min=1.22s med=1.58s   max=10.12s   p(90)=5.33s    p(95)=8.62s
    http_reqs..................: 203    2.603019/s
    iteration_duration.........: avg=2.43s    min=1.31s med=1.68s   max=10.27s   p(90)=5.45s    p(95)=8.75s
    iterations.................: 203    2.603019/s
    vus........................: 13     min=1   max=13
    vus_max....................: 100    min=100 max=100
```

In our use case, when reaching 13 virtual users (~2,6 requests per second), some incoming requests cannot be fulfilled before 10 seconds (`DEFAULT_WAIT_TIMEOUT` value).
During this test, CPU usage was high and memory usage went from 339 MiB to a peak of 421 MiB before going back to 364 MiB.

## Office

The Office scenario is the same as the HTML scenario, but with a [document.docx](../test/testdata/office/document.docx).

```bash
$ k6 run --env MAX_VUS=100 --env BASE_URL=http://ec2-foo.eu-west-1.compute.amazonaws.com office.js

          /\      |‾‾|  /‾‾/  /‾/
     /\  /  \     |  |_/  /  / /
    /  \/    \    |      |  /  ‾‾\
   /          \   |  |‾\  \ | (_) |
  / __________ \  |__|  \__\ \___/ .io

  execution: local
     output: -
     script: office.js

    duration: -,  iterations: -
         vus: 1, max: 100

    done [==========================================================] 47.9s / 10m0s

    ✓ is not status 500
    ✗ is status 200
     ↳  83% — ✓ 31 / ✗ 6
    ✗ is not status 504
     ↳  83% — ✓ 31 / ✗ 6

    checks.....................: 89.18% ✓ 99    ✗ 12
    data_received..............: 2.6 MB 54 kB/s
    data_sent..................: 3.4 MB 71 kB/s
  ✗ failed requests............: 6      0.125047/s
    http_req_blocked...........: avg=4.39ms   min=3µs   med=4µs    max=24.52ms p(90)=23.27ms  p(95)=23.62ms
    http_req_connecting........: avg=4.34ms   min=0s    med=0s     max=24.42ms p(90)=23.15ms  p(95)=23.52ms
    http_req_duration..........: avg=5.34s    min=1.74s med=4.33s  max=10.83s  p(90)=10.24s   p(95)=10.25s
    http_req_receiving.........: avg=42.49ms  min=67µs  med=49.1ms max=68.87ms p(90)=57.34ms  p(95)=62.06ms
    http_req_sending...........: avg=341.91µs min=215µs med=341µs  max=724µs   p(90)=443.99µs p(95)=514.79µs
    http_req_tls_handshaking...: avg=0s       min=0s    med=0s     max=0s      p(90)=0s       p(95)=0s
    http_req_waiting...........: avg=5.3s     min=1.7s  med=4.27s  max=10.83s  p(90)=10.24s   p(95)=10.25s
    http_reqs..................: 37     0.771121/s
    iteration_duration.........: avg=5.34s    min=1.74s med=4.35s  max=10.86s  p(90)=10.24s   p(95)=10.25s
    iterations.................: 37     0.771121/s
    vus........................: 8      min=1   max=8
    vus_max....................: 100    min=100 max=100
```

In our use case, when reaching 8 virtual users (~0.8 requests per second), some incoming requests cannot be fulfilled before 10 seconds (`DEFAULT_WAIT_TIMEOUT` value).
During this test, CPU usage was high and memory usage went from 315 MiB to a peak of 788 MiB before going back to 307 MiB.

## Merge

The Merge scenario is the same as the previous scenarios, but with a [gotenberg.pdf](../test/testdata/pdf/gotenberg.pdf) and a [gotenberg_bis.pdf](../test/testdata/pdf/gotenberg_bis.pdf).

```bash
$ k6 run --env MAX_VUS=100 --env BASE_URL=http://ec2-foo.eu-west-1.compute.amazonaws.com merge.js

          /\      |‾‾|  /‾‾/  /‾/
     /\  /  \     |  |_/  /  / /
    /  \/    \    |      |  /  ‾‾\
   /          \   |  |‾\  \ | (_) |
  / __________ \  |__|  \__\ \___/ .io

  execution: local
     output: -
     script: merge.js

    duration: -,  iterations: -
         vus: 1, max: 100

    done [==========================================================] 1m45.9s / 10m0s

    ✗ is status 200
     ↳  98% — ✓ 165 / ✗ 3
    ✗ is not status 504
     ↳  98% — ✓ 165 / ✗ 3
    ✓ is not status 500

    checks.....................: 98.80% ✓ 498   ✗ 6
    data_received..............: 69 MB  649 kB/s
    data_sent..................: 70 MB  661 kB/s
  ✗ failed requests............: 3      0.028302/s
    http_req_blocked...........: avg=2.28ms   min=2µs      med=5µs      max=33.24ms  p(90)=23.6µs   p(95)=23.38ms
    http_req_connecting........: avg=2.24ms   min=0s       med=0s       max=33.1ms   p(90)=0s       p(95)=23.04ms
    http_req_duration..........: avg=5.32s    min=632.86ms med=5.24s    max=10.17s   p(90)=9.42s    p(95)=9.91s
    http_req_receiving.........: avg=122.07ms min=82µs     med=114.72ms max=230.35ms p(90)=162.27ms p(95)=188.95ms
    http_req_sending...........: avg=16.56ms  min=349µs    med=1.37ms   max=223.25ms p(90)=12ms     p(95)=149.76ms
    http_req_tls_handshaking...: avg=0s       min=0s       med=0s       max=0s       p(90)=0s       p(95)=0s
    http_req_waiting...........: avg=5.18s    min=573.03ms med=5.09s    max=10.13s   p(90)=9.29s    p(95)=9.78s
    http_reqs..................: 168    1.58493/s
    iteration_duration.........: avg=5.33s    min=633.87ms med=5.24s    max=10.17s   p(90)=9.43s    p(95)=9.91s
    iterations.................: 168    1.58493/s
    vus........................: 18     min=1   max=18
    vus_max....................: 100    min=100 max=100
```

In our use case, when reaching 18 virtual users (~1.6 requests per second), some incoming requests cannot be fulfilled before 10 seconds (`DEFAULT_WAIT_TIMEOUT` value).
During this test, CPU usage was high and memory usage went from 310 MiB to a peak of 604 MiB before going back to 331 MiB.

repository: PhE/gotenberg

repo_name: PhE/gotenberg


text:
---
layout: page
title: About
---

Hello,

I'm Raúl, from Chile. I studied and graduated from Renewable Natural Resources Engineering at Universidad de Chile in 2008. After graduating, I worked as Inspector in the General Directorate of Water (DGA) in Copiapó and then as a Environmental Analysist in Ambimet, in Santiago. I was awarded with a Becas Chile and Fulbright BIO scholarship to start doctorate studies in 2011.

I started my PhD at University of Colorado (CU), in the beautiful city of Boulder. During the program I focused in meteorology subjects, developing my dissertation in the study of orographic precipitation along the coast of northern California by using a ground-based X-band Doppler radar. I defended my thesis and graduated in 2016.

Back in Chile in 2017, I started a postdoctoral position at Universidad de Chile, in the Department of Geophysics, where I studied the relationship between atmospheric rivers and extreme daily rainfall y central-southern Chile.

Currently, I'm Assistant Professor at Universidad de O'Higgins in Rancagua, Chile.


text:
---
layout: post
title: Even has Latex!
tags: [test, tutorial, markdown, latex]
authors: Doe, John Sr., School of Hard Knocks
---

## How to add $\LaTeX$ commands to your posts:

### Inline

To add inline math, you can use `$ <math> $`. Here is an example:

`$ \sum_{i=0}^j \frac{1}{2^n} \times i $` becomes
$ \sum_{i=0}^j \frac{1}{2^n} \times i $

### Block

To add block math, you *must* use `$$<math>$$`. Here are some examples:

```
$$\begin{equation}
a \times b \times c = 0 \\
j=1 \\
k=2 \\
\end{equation}$$
```

...becomes...

$$\begin{equation}
a \times b \times c = 0 \\
j=1 \\
k=2 \\
\end{equation}$$

```
$$\begin{align}
i2 \times b \times c =0 \\
j=1 \\
k=2 \\
\end{align}$$
```

...becomes...

$$\begin{align}
i2 \times b \times c =0 \\
j=1 \\
k=2 \\
\end{align}$$

Don't forget the enclosing `$$`! Otherwise, your newlines won't work:

```
\begin{equation}
i2=0 \\
j=1 \\
k=2 \\
\end{equation}
```

...becomes...

\begin{equation}
i2=0 \\
j=1 \\
k=2 \\
\end{equation}


text:
# airtable-github-export

> Export airtable tables to json/geojson in Github

We created this so that we could manage data for an online map in [Airtable](https://airtable.com/). It will export one or more tables in Airtable to an object of [GeoJSON](http://geojson.org/) files on Github. It parses each table for either a text field named `geometry`, which should be a stringified valid [GeoJSON geometry](https://tools.ietf.org/html/rfc7946#section-3.1), or two number fields named `lon` and `lat` which should be valid longitude and latitude in WGS84. The exported file will be of the format:

```
{
  <table_name>: {...} // GeoJSON FeatureCollection
}
```

## Usage

The script depends on several environment variables which you can set a `.env` file if you run this locally:

```
TABLES=Table 1, Table 2
GITHUB_TOKEN=xxxxxx
GITHUB_REPO=github_repo_name
GITHUB_OWNER=github_repo_owner_name
AIRTABLE_API_KEY=airtable_api_key
AIRTABLE_BASE_ID=airtable_base_id
GITHUB_BRANCH=github_branch_for_export
GITHUB_FILENAME=filename_for_github_export
```

Run the export with `node airtable-export.js`

We run this as a scheduled task on Heroku, and you can do the same by using the deploy button below:

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)

Once the app is deployed visit the 'Resources' page for your app on the Heroku dashboard, make sure the dynos are turned off, and configure the scheduler to run the export command `node airtable-export.js` at the schedule of your preference.

## Contribute

PRs accepted.

## License

MIT © Digital Democracy

repository: digidem/airtable-github-export

gha_language: JavaScript

repo_name: digidem/airtable-github-export


text:
## Portfoilo in react

  ## Description
  show case of work and projects as well as skill set

  ## Table Of Contents

  * [Installation](#installation)
  * [Usage](#usage)
  * [License](#license)
  * [Questions](#questions)
  * [Test](#test)

  Installation:
  go to page URL below

  Usage:
  https://andymmunro.github.io/reactportfolio.io/

  License:
  MIT

  Contributing:
  Andy M

  Test:
  NA

## Questions:
If you have any questions about the repo,
open an issue or contact me directly at AndyMMunro.
You can find more of my work at<EMAIL_ADDRESS>


text:
# Shingle UI

## Introduction
This is the UI part of the project.

## How to use it
Build it or download it. Put it in an http server like Nginx with the shingle.json file.  Example go to `http://localhost:1234/?doc=docs/shingle.json&cust=cust/custoShingle.json`.
Find a example of [working shingle](http://shingle.github.io).

## Functionalities
Here are some of Shingle functionalities:
- Code organization
- Search bar
- Customization
- API link

## Customization
You are able to customize the shingle.json file with a custo.json file. Example:
```json
{
  "resourceExtensions": [
    {
      "extensionName": "Legacy",
      "name": "Legacy API"
    },
    {
      "extensionName": "Deprecated",
      "name": "Legacy API"
    }
  ]
}
```

## Test locally
### Installation
You must use yarn, go in the `shingle-ui` directory:
```
yarn install
```
### Running

In the shingle-ui directory, run:

```
yarn dev
```

Which will start a server on http://localhost:1234.

in order to load a API resource, add your file in the dist directory then go to: `http://localhost:1234/?doc=/shingle.json`

repository: Jbbouille/shingle

gha_language: Java

repo_name: Jbbouille/shingle


text:
# Portfolio
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

## Table of Contents

* Description
* Usage
* Images
* License

---

## Description
> Goals of this assignment included the following:

1. Apply learned HTML and CSS syntax and formatting to create a Porfolio webpage from scratch.

2. Stylize the Portfolio using CSS properties and values such as flexbox.

3. Use media queries and other CSS properties to create a responsive layout that adapts to the user's viewport.

4. Include working links to deployed web applications that showcase my projects. (Placeholder images should be added and their links updated as web applications are completed)

6. Link potential employers to my contact information and public profiles such as GitHub and LinkedIn.

---

## Usage
> The purpose of this project is to create a Portfolio that will be continuously updated and shared with potential employers.

Access the webpage here:

<https://pao1ag.github.io/Portfolio/>

---

## Images

![Screenshot of Paola's Portfolio.](assets/images/portfolio-screenshot.png)

## License

This project is licensed under MIT License.


text:
---
date: "2022-01-07"
dnd/ref/characters:
  - Aeortis
dnd/ref/locations:
  - Baator
  - Phlegethos
tags:
- my/DND/campaigns/import_campaign/characters/NPC/ally
title: Aeortis
---

[Import Campaign Characters](/dnd/characters/)

## Aeortis

An apparent young girl who designed much [Fierna](/dnd/npcs/fierna)'s tower.

### Description

#### Appearance

- a (supposed) young girl, accompanied by three hellhounds

#### Personality

### Biography

### Relationships

#### Oneshoe

In payment for giving information to the party, Aeortis required the party to perform a service for her and retrieve a particular soul coin from [Fierna](/dnd/npcs/fierna)'s tower. [Oneshoe](/dnd/characters/oneshoe) signed a contract with Aeortis to cement this deal.

### Key Info

- expert in crafting obsidian and energy constructs
- designed much of Fierna's tower

### Quotations

### Trivia

### References

repository: tlake/static-site

gha_language: HTML

repo_name: tlake/static-site


text:
---
title: "Symmetric and centrifugal instabilities"
layout: post
---

More recently, I led a study which was purely theoretical. We found that curvature found within ocean fronts may cause cyclonic fronts to be less stable than anticyclonic fronts at low Richardson numbers ($Ri ~ 1$). This countered our understanding of stability/instability since under geostrophic flow at Ri = 1, stable flow requires vorticity to be cyclonic. This threshold for stability/instability can also help to explain why most submesoscale coherent vortices are anticyclonic. My coauthors and I have since written a two-part paper on the subject.

### References:

(stay tuned)

[jekyll-docs]: http://jekyllrb.com/docs/home
[jekyll-gh]:   https://github.com/jekyll/jekyll
[jekyll-talk]: https://talk.jekyllrb.com/

license: Unlicense


text:
# IKnowWhatYouDownload

Check Torrent downloads for last 30 days by User IP
This app is using http://iknowwhatyoudownload.com/ API

# Requirements
  - PHP
  - Composer
  - CURL PHP extension

# Installing and run

```sh
git clone https://github.com/alkhachatryan/iknowwhatyoudownload.git
cd iknowwhatyoudownload
```

Once you installed the program - run it.

```sh
php run.php
```

repository: jannik-behringer/iknowwhatyoudownload

repo_name: jannik-behringer/iknowwhatyoudownload


text:
# Image Editing Service #

IEService is lightweight image editing service like [Thumbor](https://github.com/thumbor/thumbor). IEService is very
small , useful and easy to use.

## Options ##

- resize images
- crop images
- crop and resize images
- can run with http and https (ssl supported)
- very small
- can run on all os witch supported python 3.7+

## Installation ##

At First install python 3.7+ on your os then install pillow ,Socket with pip and following codes:

- `pip install pillow`
- `pip install socket`

After that get IEService with git

- git `git clone https://github.com/amqq/IEService.git`

## Run IEService ##

you can run IEService after installation by

- `cd <IEService folder path>`
- `python3 IEService.py`

## Configuration ##

After you run IEService When DebugMode is False, IEService let you to configure them with some inputs

## Usage ##

IEService Just work with url Api there are type of IEService url Api

- Minimum resizer API :

`http://<YOUR_DOMAIN>:5001/?a=r&w=<IMAGE_WEIGHT>&p=<IMAGE_NAME>`

- Maximum resizer API :

`http://<YOUR_DOMAIN>:5001/?action=resize&weight=<IMAGE_WEIGHT>&height=<IMAGE_HIGHT>&quality=<IMAGE_QUALITY>&format=<jpeg OR webp OR png>&path=<IMAGE_NAME>`

- Minimum Image Cropper API :

`http://<YOUR_DOMAIN>:5001/?a=c&l=<IMAGE_LEFT>&t=<IMAGE_TOP>&p=<IMAGE_NAME>`

- Maximum Image Cropper API :

`http://<YOUR_DOMAIN>:5001/?action=crop&left=<IMAGE_LEFT>&right=<IMAGE_RIGHT>&top=<IMAGE_TOP>&bottom=<IMAGE_BOTTOM>&quality=<IMAGE_QUALITY>&format=<jpeg OR webp OR png>&path=<IMAGE_NAME>`

- Minimum Image Crop And Resize API:

`http://<YOUR_DOMAIN>:5001/?a=cr&l=<IMAGE_LEFT>&t=<IMAGE_TOP>&w=<IMAGE_WEIGHT>&p=<IMAGE_NAME>`

- Maximum Image Crop And Resize API :

`http://<YOUR_DOMAIN>:5001/?action=cr&left=<IMAGE_LEFT>&right=<IMAGE_RIGHT>&top=<IMAGE_TOP>&bottom=<IMAGE_BOTTOM>&weight=<IMAGE_WEIGHT>&height=<IMAGE_HIGHT>&quality=<IMAGE_QUALITY>&format=<jpeg OR webp OR png>&path=<IMAGE_NAME>`

## API Parameter ##

- ### Base Parameter ###
    - `action` or `a` => Action name to do `required`
        - can be set (`r` or `resize` to "Resize Image")  (`c` or `crop` to "Crop part of image") (`cr` to "Crop and
          Resize Image")
    - `path` or `p` => path of image `required`
    - `format` or `f` => format of response image (jpeg,png,webp) `optional`
    - `quality` or `q` => quality of response image (1 to 99) `optional`

- ### Image Resizer API Parameter ###
    - `weight` or `w` => weight of response image `required`
    - `height` or `h` => height of response image `optional`

- ### Image Cropper API Parameter ###
    - `left` or `l` => left pixels of image to crop `required`
    - `top` or `t` => top pixels of image to crop `required`
    - `right` or `r` => right pixels of image to crop `optional`
    - `bottom` or `b` => bottom pixels of image to crop `optional`

- ### Crop And Resize API Parameter ###
    - `weight` or `w` => weight of response image `required`
    - `height` or `h` => height of response image `optional`
    - `left` or `l` => left pixels of image to crop `required`
    - `top` or `t` => top pixels of image to crop `required`
    - `right` or `r` => right pixels of image to crop `optional`
    - `bottom` or `b` => bottom pixels of image to crop `optional`

 be happy :)

repository: amqq/IEService

repo_name: amqq/IEService


text:
If you are looking to fit a [log-logistic distribution][1] to your data, it is fairly straightforward to do so. In the example below, I am using the function `dllog` to get at the density of the log-logistic for a given set of values of the shape and scale parameter, but it is no trouble to write the PDF code yourself as well.

----

(Log-)Likelihood & MLE
====
The density of log-logistic distributed a random variable has the probability density function [PDF]:
$$
f(X_i; \alpha, \beta)  = \dfrac{\left(\tfrac{\beta}{\alpha}\right)\left(\tfrac{X_i}{\alpha}\right)^{\beta - 1}}{\left(1+ \left(\tfrac{X_i}{\alpha}\right)^{\beta}\right)^2}
$$
where $\alpha$ and $\beta$ are the scale and shape parameters respectively.

For a given sample of data $X_1, \ldots, X_N$, this implies that the log-likelihood of the sample is:
$$
\ell_N(\alpha, \beta \mid X_1, \ldots, X_N) = \sum_{i=1}^N \log f(X_i; \alpha, \beta)
$$

The MLE of the parameters given the sample of the data, is given by the maximizer of the log-likelihood:
$$
\hat{\alpha}_{MLE}, \hat{\beta}_{MLE} = \arg\max_{\alpha, \beta}\ell_N(\alpha, \beta \mid X_1, \ldots, X_N)
$$

----

Computing & optimizing the log-likelihood
====
In the code below:
0. I have used the function `rllog` to generate a random sample from a log-logistic distribution with parameters `c(5, 6)`.
1. The function `fnLLLL` computes the (negative) log-likelihood of the data.
2. The function `fnLLLL` uses the function `dllog` from the `FAdist` package to compute the PDF of the log-logistic distribution, $f$.
3. `optim` computes the values of $\alpha$, and $\beta$ that minimize the negative log-likelihood, and the values `c(2, 3)` are the intial values for the optimizer.
Those optimized values are $5.132758$ & $5.654340$, and the optimized value of the negative log-likelihood function is $9239.179$.

    # simulate some log-logistic data
    library(FAdist)
    vY = rllog(n = 1000, shape = 5, scale = 6)

    # log-likelihood function
    fnLLLL = function(vParams, vData) {
      # uses the density function of the log-logistic function from FAdist
      return(-sum(log(dllog(vData, shape = vParams[1], scale = vParams[2]))))
    }

    # optimize it
    optim(c(2, 3), fnLLLL, vData = vY)

This gives:

    > optim(c(2, 3), fnLLLL, vData = vY)
    $par
    [1] 5.132758 5.654340

    $value
    [1] 9239.179

    $counts
    function gradient
          57       NA

    $convergence
    [1] 0

    $message
    NULL

  [1]: http://en.wikipedia.org/wiki/Log-logistic_distribution

repository: tchakravarty/RExamples

repo_name: tchakravarty/RExamples


text:
---
# Documentation: https://wowchemy.com/docs/managing-content/

title: 'Systematic review and consensus definitions for the Standardised Endpoints
  in Perioperative Medicine (StEP) initiative: infection and sepsis.'
subtitle: ''
summary: ''
authors:
- J Barnes
- J Hunter
- Steve Harris
- M Shankar-Hari
- E Diouf
- I Jammer
- C Kalkman
- AA Klein
- T Corcoran
- S Dieleman
- MPW Grocott
- MG Mythen
- group StEP-COMPAC
tags:
- '""'
categories: []
date: '2019-01-01'
lastmod: 2021-07-04T13:15:51+01:00
featured: false
draft: false

# Featured image
# To use, add an image named `featured.jpg/png` to your page's folder.
# Focal points: Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight.
image:
  caption: ''
  focal_point: ''
  preview_only: false

# Projects (optional).
#   Associate this post with one or more of your projects.
#   Simply enter your project's folder or file name without extension.
#   E.g. `projects = ["internal-project"]` references `content/project/deep-learning/index.md`.
#   Otherwise, set `projects = []`.
projects: []
publishDate: '2021-07-04T12:15:51.797549Z'
publication_types:
- '2'
abstract: 'BACKGROUND: Perioperative infection and sepsis are of fundamental concern
  to perioperative clinicians. However, standardised endpoints are either poorly defined
  or not routinely implemented. The Standardised Endpoints in Perioperative Medicine
  (StEP) initiative was established to derive a set of standardised endpoints for
  use in perioperative clinical trials. METHODS: We undertook a systematic review
  to identify measures of infection and sepsis used in the perioperative literature.
  A multi-round Delphi consensus process that included more than 60 clinician researchers
  was then used to refine a recommended list of outcome measures. RESULTS: A literature
  search yielded 1857 titles of which 255 met inclusion criteria for endpoint extraction.
  A long list of endpoints, with definitions and timescales, was generated and those
  potentially relevant to infection and sepsis circulated to the theme subgroup and
  then the wider StEP-COMPAC working group, undergoing a three-stage Delphi process.
  The response rates for Delphi rounds 1, 3, and 3 were 89% (n=8), 67% (n=62), and
  80% (n=8), respectively. A set of 13 endpoints including fever, surgical site, and
  organ-specific infections as defined by the US Centres for Disease Control and Sepsis-3
  are proposed for future use. CONCLUSIONS: We defined a consensus list of standardised
  endpoints related to infection and sepsis for perioperative trials using an established
  and rigorous approach. Each endpoint was evaluated with respect to validity, reliability,
  feasibility, and patient centredness. One or more of these should be considered
  for inclusion in future perioperative clinical trials assessing infection, sepsis,
  or both, thereby permitting synthesis and comparison of future results.'
publication: '*Br J Anaesth*'
---

repository: docsteveharris/harris-data-lab

gha_language: TeX

repo_name: docsteveharris/harris-data-lab


text:
# alldayDO

 Daily Reminders and Task List

alldayDO was made for you to remember all your activities, shopping lists, travels and more in the easiest and practice way.
In a few clicks activties are saved and ready reminders.

Do you need to remember the shopping list for the weekend? alldayDO do it for you!
Remind to make the bags for a trip? Don’t worry, alldayDO is here to do job for you!

Did you tried to use anothers to-do-lists, techniques like pomodoro and even so you don’t feel your day so productive?
alldayDO will change your opinion!

alldayDO main advantages:

- Create your notes and edit your activities in few clicks
- Follow your activities performance
- In a irreverent way, we will remember all, from your gym, your shopping time to all your work appointments.

If you feel you need more productivity in your day, alldayDO is here to help you!

![](readme/1.png)
![](readme/2.png)
![](readme/3.png)

##Contact

Follow @fabintk on Twitter or mail me at<EMAIL_ADDRESS>
##Licence

Days Until Seasons is available under MIT licence.
Copyright (c) 2015 Fábio Nogueira.

repository: fabio-nogueira-almeida/alldayDO

repo_name: fabio-nogueira-almeida/alldayDO


text:
# jekyll-placeholders

[![Build Status](https://travis-ci.org/ample/jekyll-placeholders.svg?branch=master)](https://travis-ci.org/ample/jekyll-placeholders)

This gem makes Jekyll a little more self-aware. By default, Jekyll's support for defining collection permalinks is limited to [a few placeholder values](https://jekyllrb.com/docs/permalinks/#template-variables). When building complex layouts with nested URLs, this gem exposes any key/value pair defined in document frontmatter such that you can use them when defining your collection permalinks.

## Installation

Add the following to your `Gemfile` and bundle...

```ruby
gem "jekyll-placeholders", "~> 0.0.1", git: 'https://github.com/ample/jekyll-placeholders.git'
```

## Usage

Let's assume we have the following document frontmatter within our collections directory...

```
---
title: Some Article
slug: some-article
category_slug: some-category
layout: default
---
```

Our collections configuration looks like this...

```
collections:
  articles:
    output: true
    permalink: /articles/:category_slug/:slug
```

When the project is built, the document referenced above will be rendered to the following path...

[http://localhost:4000/articles/some-category/some-article](#)

### Deeply Nested Frontmatter

This gem even supports deeply nested references, where needed. Imagine the following frontmatter where `categories` is an array of objects...

```
---
title: Some Article
slug: some-article
categories:
  - title: Some Category
    slug: some-category
layout: default
---
```

You can achieve the same result by configuring your collection permalink, like this...

```
collections:
  articles:
    output: true
    permalink: /articles/(:categories/:0/:slug)/:slug
```

When the project is built, the document referenced above will be rendered to the following path...

[http://localhost:4000/articles/some-category/some-article](#)

## License

This project is licensed under the [3-Clause BSD License](https://opensource.org/licenses/BSD-3-Clause).

repository: ample/jekyll-placeholders

gha_language: Ruby

repo_name: ample/jekyll-placeholders


text:
# Worpress with Traefik and Adminer in Docker

## What's this?

It is a setup for Wordpress that persists the Wordpress instance and the database in your project folder so your changes don't get lost and can be comitted. It also lets you use a custom subdomain via Traefik since wordpress hardcodes all links and file usages to absolute urls.

It comes with a handy script to generate SSL certificates on your machine four your subdomain. The `traefik.toml` is setup to forward all incoming connctions to SSL (Port 443) so you will need a certificate.

## Setup the certificates
The scripts provided were made by my colleague and friend Till. You can find the standalone repo [here](https://github.com/grzegorczyk/SSL-Certificates)

First you need to become your very own SSL Certificate Authority. How to do this can be found here - over at [Delicious Brains](https://deliciousbrains.com/ssl-certificate-authority-for-local-https-development/). After **Adding the Root Certificate to macOS Keychain** you can stop - the rest will / can be done with the little script provided in the `docker/certs` folder - `mkssl.sh`.

**Drop-In Firefox**
While adding the Root certificate to your keychain provides you with the usage in Chrome and Safari - for Firefox you'll have to add the certificate to the trusted certificates in Firefox itself. This can be done by opening `Settings` (CMD + ,) and navigating to `Privacy & Security` - on the bottom of the page you can display the used certificates - do that. You can now import your own certificate and trust it - this way you can use your own SSL certificates also in Firefox for local development.
**Drop-In Firefox**

Eventually you'll have to modify the mkssl.sh - my CA is located at the home directory of my user - hence `~/elriccoCA.pem` and `~/elriccoCA.key` - if your location and / or name differs you will have to adjust this.

#### mkssl.sh

Eventually you'll have to give the script the right to read/write/execute - this can be done with

```
    $ sudo chmod 777 mkssl.sh
```

The provided `sslserverconftxt.txt` lets you skip all the questions usally asked by the ssl certificate generator - you can adjust this to your likings / project, but not really necessary.

You can create your own certificates now by changing to the `docker/certs` directory and executing

```
    $ ./mkssl.sh myprojectname.docker.localhost
```

## Traefik
Traefik is a reverse proxy which lets you create custom domains and link to it by exposing a frontend and delegating the connections to the backend. You can see what Traefik is doing by typing

```
    http://docker.localhost:8080
```
in your browsers address line.

### SSL certificates in Traefik

The SSL certificates located in `docker/certs` are mounted as volume `certs` in docker, so they are referenced just with `certs`. If you have a local folder on your machine to store certificates for development you can mount this folder by editing the line `./docker/certs/:/certs/` by referencing your folder eg. `~/SSL-Certificates/certs/:/certs/`.

Since I haven't found a way to set these up via labels in the `docker-compose.yml` you'll have to *hardcode* these into the `traefik.toml` found in `docker/traefik`.

Go to the line where it says

```
      [[entryPoints.https.tls.certificates]]
        certFile = "/certs/twa-test.docker.localhost.crt"
        keyFile = "/certs/twa-test.docker.localhost.key"
```

and change the filnames of the certificates accordingly, eg. `myprojectname.docker.localhost.crt` and `myprojectname.docker.localhost.key`

If you need several certificates you can just drop in another entry of certificates here, so that it looks like this:

```
      [[entryPoints.https.tls.certificates]]
        certFile = "/certs/twa-test.docker.localhost.crt"
        keyFile = "/certs/twa-test.docker.localhost.key"
      [[entryPoints.https.tls.certificates]]
        certFile = "/certs/myprojectname.docker.localhost.crt"
        keyFile = "/certs/myprojectname.docker.localhost.key"
```

## Environment and Custom Variables

Environment Variables can be set via the .env file. The configuration `docker-compose` will finally render out of it can be controlled by using

```
    $ docker-compose config
```

`COMPOSE_PROJECT_NAME` is here to customize your build with your project name - it makes sure all containers are named by your project, sets the subdomain for your wordpress instance and creates the default (external) network.

`TRAEFIK_DOMAIN` lets you override the standard domain of `docker.localhost`.
`docker.localhost` defaultly runs in Chrome (Mac) - but not for eg. in Firefox - for this you have to edit your `hosts` file with `<IP_ADDRESS> myprojectname.docker.localhost`. If you want to set the `TRAEFIK_DOMAIN` to something entirely different, say `whatever.lcl`, you'll have to edit the hosts file in any case, even for Chrome.

`WHOAMI_DOMAIN` sets the subdomain for the whoami container which just outputs the basic information of what image it is and that it is reachable. Since the `traefik.toml` is setup for forwarding to https you'll have to generate a SSL certificate for this too if you want to use it.

`MYSQL_ROOT_PASSWORD` sets the root password for the mysql database.

`MYSQL_DATABASE` sets up an empty database for your project. This can be anything containing letters, numbers and underscores. I like to go with the project name and ad `_wp` to it.

`MYSQL_USER` is for a dedicated user - so we don't use the `root` user here.

`MYSQL_PASSWORD` sets the password for the dedicated user.


text:
### [CVE-2022-26531](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-26531)
![](https://img.shields.io/static/v1?label=Product&message=ATP%20series%20firmware&color=blue)
![](https://img.shields.io/static/v1?label=Product&message=NAP203%20firmware&color=blue)
![](https://img.shields.io/static/v1?label=Product&message=NSG%20series%20firmware&color=blue)
![](https://img.shields.io/static/v1?label=Product&message=NWA50AX%20firmware&color=blue)
![](https://img.shields.io/static/v1?label=Product&message=NXC2500%20firmware&color=blue)
![](https://img.shields.io/static/v1?label=Product&message=USG%20FLEX%20series%20firmware&color=blue)
![](https://img.shields.io/static/v1?label=Product&message=USG%2FZyWALL%20series%20firmware&color=blue)
![](https://img.shields.io/static/v1?label=Product&message=VPN%20series%20firmware&color=blue)
![](https://img.shields.io/static/v1?label=Product&message=WAC500%20firmware&color=blue)
![](https://img.shields.io/static/v1?label=Product&message=WAX510D%20firmware&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-20%3A%20Improper%20Input%20Validation&color=brighgreen)

### Description

Multiple improper input validation flaws were identified in some CLI commands of Zyxel USG/ZyWALL series firmware versions 4.09 through 4.71, USG FLEX series firmware versions 4.50 through 5.21, ATP series firmware versions 4.32 through 5.21, VPN series firmware versions 4.30 through 5.21, NSG series firmware versions 1.00 through 1.33 Patch 4, NXC2500 firmware version 6.10(AAIG.3) and earlier versions, NAP203 firmware version 6.25(ABFA.7) and earlier versions, NWA50AX firmware version 6.25(ABYW.5) and earlier versions, WAC500 firmware version 6.30(ABVS.2) and earlier versions, and WAX510D firmware version 6.30(ABTF.2) and earlier versions, that could allow a local authenticated attacker to cause a buffer overflow or a system crash via a crafted payload.

### POC

#### Reference
- http://packetstormsecurity.com/files/167464/Zyxel-Buffer-Overflow-Format-String-Command-Injection.html

#### Github
- https://github.com/0xdea/advisories
- https://github.com/0xdea/exploits
- https://github.com/ARPSyndicate/cvemon
- https://github.com/hnsecurity/vulns

repository: trickest/cve

repo_name: trickest/cve


text:
# LaTeX-Templates

In this repository I collect LaTeX templates, styles and classes I develop
or use frequently. If I am not the author, this will be noted.
## Installation
### Classes and Styles
#### Release
Located on branch `master` just copy the `.sty` or `.cls` file into a
directory LaTeX searches (eg `~/texmf/latex/` for TeXLive under
Ubuntu).
If you are using TeXLive (under Ubuntu) you may simply clone this repo to that
directory, using MikTex makes things more complicated.
#### Development versions
Run LaTeX (not pdflatex) on the `.ins`-File. This will generate a new
`.sty` or `.cls` file. Then just proceed as above.
#### Generate Documentation
If the documentation in this repository does not correspond to the latest
version of the corresponding package or class, just run pdfLaTeX on the `.dtx`file, which will generate a ready-to-use `.cls` file.
## HomeworkAssignment
This class provides a relatively simple document–type for homework, mainly created
for assignments at the University during my studies in Computer Science.

repository: chiu/LaTeX-templates

repo_name: chiu/LaTeX-templates


text:
# Crafthead

Crafthead is a highly scalable, serverless Minecraft avatar rendering
solution built on [Cloudflare Workers](https://workers.cloudflare.com).
It runs on any of Cloudflare's 200+ datacenters worldwide with minimal
latency.

**Note**: if you're a causal browser and wound up here, you probably want
to go to [Crafthead.net](https://crafthead.net), the public instance
of Crafthead I run.

## Features

* **Extremely fast**
* Supports UUID fetching (dashed or not dashed) and username lookups
* Renders avatars from 8px to 300px

## Rolling your own

### Step 1: Reconsider

Use the public instance I've made available. You don't have to pay a single
dime for it. I pick up all the costs. Plus, if you use it, you get speedy
performance all the time since it is more likely my version will be available
to run immediately compared to yours.

If, on the other hand, you're looking to _hack_ on Crafthead, then keep reading.

### Step 2: You want to do it?

This project uses `wrangler`, so make sure you have that installed. It is also
_strongly_ recommnded you purchase a Cloudflare Workers Unlimited plan, otherwise
it is possible you could run into CPU limit problems at larger resolutions.

You'll also want [Node.js](https://nodejs.org), the [Rust toolchain](https://www.rust-lang.org/learn/get-started)
and [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/) too.

Then:
* Copy `wrangler.toml.dev` to `wrangler.toml` and fill in your own `account_id`
* Use `yarn install` to install all the development dependencies
* Use `wrangler publish`. You're done!

### Notes on `wrangler preview`

If you're looking to test Crafthead using `wrangler preview` or `wrangler dev`,
you should use the special-cased usernames `MHF_Steve` and `char`, which return
the default "Steve" skin. If your code affects username lookups, however, you
should consider deploying to `workers.dev` instead.

repository: MrMicky-FR/crafthead

repo_name: MrMicky-FR/crafthead


text:
---

news 2018-Dec-16:

## refactored!
Everything is in a different place now, sorry. But it urgently needed cleanup.
Please open an issue (or fork & pull request) if you find a broken link, thanks.
--> https://github.com/drandreaskrueger/chainhammer/issues

---

![chainhammer-logo.png](docs/chainhammer-logo.png)

---

# chainhammer v44
TPS measurements of parity aura, geth clique, quorum, tobalaba, etc.
It should work with any Ethereum type chain; we focused on PoA consensus.

## instructions

### folders
* `hammer/` - submits many transactions to blockchain - see next chapter 'chronology'
* `reader/` - reads in the whole chain, and visualizes TPS, blocktime, gas, bytes - see [reader/README.md](reader/README.md)
* `results/` - for each client one markdown file
* `docs/` - see esp. reproduce.md
* `env/` - Python virtualenv, created via script, see below
* `tests/` - all started via `./pytest.sh`

### chronology
See the [results/](results/) folder:

1. [log.md](results/log.md): initial steps; also tried *Quorum's private transactions*
1. [quorum.md](results/quorum.md): raft consensus, quorum is a geth fork
1. [tobalaba.md](results/tobalaba.md): parity fork of  EnergyWebFoundation
1. [quorum-IBFT.md](results/quorum-IBFT.md): IstanbulBFT, 2nd consensus algo in quorum
1. [geth.md](results/geth.md): geth clique PoA algorithm
1. [parity.md](results/parity.md): parity aura PoA algorithm, many attempts to accelerate
1. [eos.md](results/eos.md): not begun yet
1. [substrate.md](results/substrate.md): not begun yet

## results summary

| hardware  	| node type 	    | #nodes 	| config 	| peak TPS_av 	| final TPS_av 	|
|-----------	|-----------	    |--------	|--------	|-------------	|--------------	|
| t2.micro 	    | parity aura   	| 4      	| (D)    	| 45.5        	|  44.3        |
| t2.large 	    | parity aura   	| 4      	| (D)    	| 53.5        	|  52.9        |
| t2.xlarge 	| parity aura   	| 4      	| (J)    	| 57.1        	|  56.4        |
| t2.2xlarge 	| parity aura   	| 4      	| (D)    	| 57.6        	|  57.6        |
|               |                   |           |        	|         	    |              |
| t2.micro 	    | parity instantseal | 1      	| (G)    	| 42.3        	|  42.3        |
| t2.xlarge	    | parity instantseal | 1      	| (J)    	| 48.1        	|  48.1        |
|               |                   |           |        	|         	    |              |
| t2.2xlarge 	| geth clique     	| 3+1 +2    | (B)    	| 421.6       	| 400.0        |
| t2.xlarge 	| geth clique     	| 3+1 +2    | (B)    	| 386.1       	| 321.5        |
| t2.xlarge 	| geth clique     	| 3+1       | (K)    	| 372.6       	| 325.3        |
| t2.large 	    | geth clique     	| 3+1 +2    | (B)    	| 170.7       	| 169.4        |
| t2.small 	    | geth clique     	| 3+1 +2    | (B)    	|  96.8       	|  96.5        |
| t2.micro 	    | geth clique     	| 3+1       | (H)    	| 124.3       	| 122.4        |
|               |                   |           |        	|         	    |              |
| t2.micro SWAP | quorum crux IBFT 	| 4    	    | (I) SWAP! |  98.1         |  98.1   	   |
|               |                   |           |        	|         	    |              |
| t2.micro 	    | quorum crux IBFT 	| 4    	    | (F)     	| lack of RAM   |         	   |
| t2.large 	    | quorum crux IBFT 	| 4    	    | (F)    	| 207.7      	| 199.9        |
| t2.xlarge 	| quorum crux IBFT 	| 4    	    | (F)    	| 439.5      	| 395.7        |
| t2.xlarge 	| quorum crux IBFT 	| 4    	    | (L)    	| 389.1      	| 338.9        |
| t2.2xlarge 	| quorum crux IBFT 	| 4    	    | (F)    	| 435.4      	| 423.1        |
| c5.4xlarge 	| quorum crux IBFT 	| 4    	    | (F)    	| 536.4      	| 524.3        |

[Reproduce](docs/reproduce.md) these results easily; for the `config` column also see there.
Quickest reproduction with my [Amazon AMI readymade image](docs/reproduce.md#readymade-amazon-ami).
And see that bottom of [parity.md](results/parity.md) and [geth.md](results/geth.md)
and [quorum-IBFT.md](results/quorum-IBFT.md) for the latest runs, and additional details.

## faster wider more
* how I initially got this faster, *on Quorum*, step by step, please read the 1st logbook [log.md](results/log.md)
* then I improved per client, see each in [#chronology](#chronology)
* what to try next: [TODO.md](docs/TODO.md) = e.g. vary transaction size, automate more, etc.

### you
See [other-projects.md](docs/other-projects.md) using chainhammer, or projects which are similar to this.

*Please report back when you have done other / new measurements.*

#### Suggestions please: how can I speed this up further?
* parity [PE#9393](https://github.com/paritytech/parity-ethereum/issues/9393) 60 TPS ? (parity aura v1.11.11)
  * parity [SE#58521](https://ethereum.stackexchange.com/questions/58521/parity-tps-optimization-please-help) parity TPS optimization - please help - stackexchange.com
* geth [GE#17447](https://github.com/ethereum/go-ethereum/issues/17447) Sudden drop in TPS after total 14k transactions.
  * quorum [Q#479](https://github.com/jpmorganchase/quorum/issues/479#issuecomment-413603316)  Sudden drop in TPS around 14k transactions (Quorum IBFT)

## run

### install.sh ALL dependencies
New in v44: Installer for EVERYTHING that this repo needs!
```
cd chainhammer      # you must be in main folder
scripts/install.sh
```
but be CAREFUL:
Better only use on a disposable/cloud/virtualbox machine,
and NOT on your main work machine!!

or

only create the *virtualenv for the chainhammer Python programs*, then look into [scripts/install-virtualenv.sh](scripts/install-virtualenv.sh)

(For more details see [reproduce.md](docs/reproduce.md)).

### preparations

All python scripts & jupyer notebooks must be run *within that virtualenv*, e.g.:
```
cd hammer; source ../env/bin/activate
```
Now start your ethereum node(s), or simply: `source env/bin/activate; testrpc-py`

Before first ever run of chainhammer:
```
touch account-passphrase.txt
./deploy.py andtests
```
It tests whether communication with the ethereum node is working,
**and initially creates local files about the compiled and deployed contract**.
If there are connection problems, check the ports in [config.py](hammer/config.py) -->
`RPCaddress, RPCaddress2`.

### quickstart
Remember, in each new terminal virtualenv: `cd hammer; source ../env/bin/activate`

first terminal:
```
./tps.py
```
second terminal:
```
./deploy.py; ./send.py
```

Then, after all (e.g. 20,001) transactions have been seen,
extract the whole chain into `parity-run17.db` (example);
and create the diagrams

```
cd ../reader
rm -f parity-run17.db*

./blocksDB_create.py parity-run17.db
./blocksDB_diagramming.py parity-run17.db Parity-run-17
```

## unittests
```
./pytest.sh
```
enables the virtualenv,
then starts a `testrpc-py` Ethereum simulator on http://localhost:8545 in the background,
logging into `tests/logs/`;
then runs `./deploy.py andtests`;
and finally runs all the unittests, also logging into `tests/logs/`.

(Instead of testrpc-py) if you want to run tests with another node,
just start that; and run `pytest` manually:
```
source env/bin/activate
cd hammer; ./deploy.py andtests; cd ..
py.test -v --cov
```

There were 64 tests on December 4th, all 64 PASSED
(see this [logfile](tests/logs/tests-with_testrpc-py.log.ansi)  -->
`cat tests/logs/*.ansi` because colors) on these different Ethereum providers:

* testrpc instantseal (`testrpc-py`)  9 seconds
* geth Clique (`geth-dev`) 54 seconds
* quorum IBFT (`blk-io/crux`) 31 seconds
* parity instantseal (`parity-deploy`) 8 seconds
* parity aura (`parity-deploy`) 74 seconds

## credits

Please credit this as:

> benchmarking scripts "chainhammer"
> beginning developed at Electron.org.uk 2018
> current maintainer: Dr Andreas Krueger 2018
> https://github.com/drandreaskrueger/chainhammer

Consider to submit your improvements & [usage](docs/other-projects.md) as pull request. Thanks.

### short summary

> The open source tools 'chainhammer' submits a high load of
> smart contract transactions to an Ethereum based blockchain,
> then 'chainreader' reads the whole chain, and
> produces diagrams of TPS, blocktime, gasUsed and gasLimit, and the blocksize.
> https://github.com/drandreaskrueger/chainhammer

---

---

---

## chainhammer: hammer --> reader -->  diagrams
examples:

### geth clique on AWS t2.xlarge
[geth.md](results/geth.md) = geth (go ethereum client), "Clique" consensus.

50,000 transactions to an Amazon t2.xlarge machine.

Interesting artifact that after ~14k transactions, the speed drops considerably - but recovers again. [Reported](https://github.com/ethereum/go-ethereum/issues/17447#issuecomment-431629285).

![geth-clique-50kTx_t2xlarge_tps-bt-bs-gas_blks12-98.png](reader/img/geth-clique-50kTx_t2xlarge_tps-bt-bs-gas_blks12-98.png)
reader/img/geth-clique-50kTx_t2xlarge_tps-bt-bs-gas_blks12-98.png

### quorum IBFT on AWS t2.xlarge

[quorum-IBFT.md](results/quorum-IBFT.md) = Quorum (geth fork), IBFT consensus, 20 millions gasLimit, 1 second istanbul.blockperiod; 20000 transactions multi-threaded with 23 workers. Initial average >400 TPS then drops to below 300 TPS, see [quorum issue](https://github.com/jpmorganchase/quorum/issues/479#issuecomment-413603316))

![quorum-crux-IBFT_t2xlarge_tps-bt-bs-gas_blks320-395.png](reader/img/quorum-crux-IBFT_t2xlarge_tps-bt-bs-gas_blks320-395.png)

### quorum raft
OLD RUN on a desktop machine.

[quorum.md](results/quorum.md) = Quorum (geth fork), raft consensus, 1000 transactions multi-threaded with 23 workers, average TPS around 160 TPS, and 20 raft blocks per second)
![reader/img/quorum_tps-bt-bs-gas_blks242-357.png](reader/img/quorum_tps-bt-bs-gas_blks242-357.png)

### tobalaba
OLD RUN on a desktop machine.

[tobalaba.md](results/tobalaba.md) = Public "Tobalaba" chain of the EnergyWebFoundation (parity fork), PoA; 20k transactions; > 150 TPS if client is well-connected.

![reader/img/tobalaba_tps-bt-bs-gas_blks5173630-5173671.png](reader/img/tobalaba_tps-bt-bs-gas_blks5173630-5173671.png)

### parity aura v1.11.11 on AWS t2.xlarge
[parity.md#run-18](results/parity.md#run-18) =
using [parity-deploy.sh](https://github.com/paritytech/parity-deploy)
dockerized network of 4 local nodes with increased gasLimit, and 5 seconds blocktime;
20k transactions; ~ 60 TPS on an Amazon t2.xlarge machine.

N.B.: Could not work with parity v2 yet because of bugs
[PD#76](https://github.com/paritytech/parity-deploy/issues/76) and
[PE#9582](https://github.com/paritytech/parity-ethereum/issues/9582) -->
everything still on parity v1.11.11

![parity-v1.11.11-aura_t2xlarge_tps-bt-bs-gas_blks5-85.png](reader/img/parity-v1.11.11-aura_t2xlarge_tps-bt-bs-gas_blks5-85.png)
parity-v1.11.11-aura_t2xlarge_tps-bt-bs-gas_blks5-85.png

**Calling all parity experts: How to improve these too slow TPS results?**

See issue [PE#9393](https://github.com/paritytech/parity-ethereum/issues/9393),
and the [detailed log of what I've tried already](results/parity.md),
and the 2 shortest routes to reproducing the results: [reproduce.md](docs/reproduce.md).

Thanks.

gha_language: Jupyter Notebook


text:
---
layout:     post
title:      Talk Announcement
date:       2018-11-01 00:00:00
summary:    Upcoming talk at UW by Prof. Francis Bach.  Francis Bach will be visiting the week of Nov. 5, 2018, as part of the ADSI Distinguished Visiting Faculty Program. During his visit, Francis will be giving i) an ADSI Advanced Lecture on stochastic gradient descent, and ii) an ADSI Distinguished Lecture on machine learning research.
author:
image:      /images/francis_bach.jpg
image_url:
categories: news
---
We are happy to announce that [Francis Bach](https://www.di.ens.fr/~fbach/) will be visiting the week
of Nov. 5, 2018, as part of the ADSI Distinguished Visiting Faculty
Program.

During his visit, Francis will be giving i) an ADSI Advanced Lecture
on stochastic gradient descent, and ii) an ADSI Distinguished Lecture on
machine learning research.

Please see the flyers for the title, abstract, time, and location of the ADSI Distinguished Lecture.

Please note that registration for the lecture is now closed.

![Flyer for the talk](http://ads-institute.uw.edu/images/Bach-Flyer-1.png)

gha_language: CSS


text:
---
title: "glide.email.outbound.max_total_attachment_size_bytes"
description: "Property"
---

Description: The maximum combined size (in bytes) for all attachments on an outbound email. Attachments beyond this limit are ignored.

Value: `18874368`

repository: ASHISH-SERVICENOW/sn

repo_name: ASHISH-SERVICENOW/sn


text:
# Loader SearchBar

[![pub package](https://img.shields.io/pub/v/loader_search_bar.svg)](https://pub.dartlang.org/packages/loader_search_bar)

Flutter widget integrating search field feature into app bar, allowing to receive query change callbacks and automatically load new data set into ListView. It replaces standard AppBar widget and **needs to be placed underneath Scaffold** element in the widget tree to work properly.

![Loader SearchBar demo](https://thumbs.gfycat.com/HealthyAmbitiousImpala-max-14mb.gif)

## Getting started
To start using SearchBar insert it in place of an AppBar element in the Scaffold widget. Regardless of the use case, **defaultAppBar** named argument has to be specified, which basically is a widget that will be displayed whenever SearchBar is not in activated state:
```Dart
@override
Widget build(BuildContext context) {
   return Scaffold(
     appBar: SearchBar(
       defaultAppBar: AppBar(
         leading: IconButton(
           icon: Icon(Icons.menu),
           onPressed: _openDrawer,
         ),
         title: Text('Default app bar title'),
       ),
       ...
     ),
     body: _body,
     drawer: _drawer,
   );
}
```

## Optional attributes
 - searchHint - hint string being displayed until user inputs any text
 - iconified - boolean value indicating way of representing non-activated SearchBar:
   - *true* if widget should be showed as an action item in *defaultAppBar*
   - *false* if widget should be merged with *defaultAppBar* (only leading icon of the default widget and search input field are displayed in such case)
 - autofocus - boolean value determining if search text field should get focus whenever it becomes visible
 - attrs - SearchBarAttrs class instance allowing to specify part of exact values used during widget building (e.g. search bar colors, text size, border radius)
 - onActivatedChanged - callback function receiving widget's current state as a boolean value; triggered whenever user begins or cancels/ends search action

## Query callbacks
To get notified about user input specify *onQueryChanged* and/or *onQuerySubmitted* callback functions that receive current query string as an argument:
```Dart
appBar: SearchBar(
   ...
   onQueryChanged: (query) => _handleQueryChanged(context, query),
   onQuerySubmitted: (query) => _handleQuerySubmitted(context, query),
),
```

## QuerySetLoader
By passing QuerySetLoader object as an argument one can additionally benefit from search results being automatically built as ListView widget whenever search query changes:
```Dart
appBar: SearchBar(
  ...
  loader: QuerySetLoader<Item>(
     querySetCall: _getItemListForQuery,
     itemBuilder: _buildItemWidget,
     loadOnEachChange: true,
     animateChanges: true,
  ),
),

List<Item> _getItemListForQuery(String query) { ... }

Widget _buildItemWidget(Item item) { ... }
```

 - *querySetCall* - function transforming search query into list of items being then rendered in ListView (required)
 - *itemBuilder* - function creating Widget object for received item, called during ListView building for each element of the results set (required)
 - *loadOnEachChange* - boolean value indicating whether *querySetCall* should be triggered on each query change; if *false* query set is loaded once user submits query
 - *animateChanges* - determines whether ListView's insert and remove operations should be animated

## Contributions
Any kind of contribution to the project is welcomed.
Feel free to request new features, report encountered bugs or pull request changes you've made.
To do so, make use of [Pull requests](https://github.com/tomwyr/loader-search-bar/compare) and [Issues](https://github.com/tomwyr/loader-search-bar/issues/new) tabs.

repository: rcagantas/loader-search-bar

repo_name: rcagantas/loader-search-bar


text:
# Contributing

When contributing a major change to this repository, please first discuss the change you wish to make via [Discord Server](https://discord.gg/vafAXJV).
Minor issues can simply be addressed by sending by a pull request.

Please note we have a [Code of Conduct](CODE_OF_CONDUCT.md), please follow it in all your interactions with the project and its community.

## Pull Request Process

1. Fork the repository.
2. Commit your changes to your fork.
3. Submit a pull request.
4. Handle any feedback before the request is merged.
5. Accept our sincere Thank You!

repository: Bioblaze/node-project-template

repo_name: Bioblaze/node-project-template


text:
---
layout: base
title:  'Statistics of Form in UD_Latin-LLCT'
udver: '2'
---

## Treebank Statistics: UD_Latin-LLCT: Features: `Form`

This feature is language-specific.
It occurs with 1 different values: `Emp`.

27 tokens (0%) have a non-empty value of `Form`.
3 types (0%) occur at least once with a non-empty value of `Form`.
2 lemmas (0%) occur at least once with a non-empty value of `Form`.
The feature is used with 1 part-of-speech tags: <tt>ADV</tt> (27; 0% instances).

### `ADV`

27 <tt>ADV</tt> tokens (0% of all `ADV` tokens) have a non-empty value of `Form`.

The most frequent other feature values with which `ADV` and `Form` co-occurred: <tt>AdvType</tt><tt>=EMPTY</tt> (26; 96%), <tt>PronType</tt><tt>=EMPTY</tt> (26; 96%).

`ADV` tokens may have the following values of `Form`:

* `Emp` (27; 100% of non-empty `Form`): tamen, tame, ubique

repository: UniversalDependencies/docs

branch_name: refs/heads/pages-source

repo_name: UniversalDependencies/docs


text:
# How to angr

This is a stub for a step-by-step angr course.
This course is meant to supplement the examples, gitbook, and API reference by gradually introducing new users to more and more advanced angr features.

Where possible, we'll include slides explaining the underlying concepts and maybe even some video tutorials!

# TODO: basic symbolic execution - step a path group

# TODO: next steps - using avoid, etc to cut down on path explosion

# TODO: next steps - veritesting?

# TODO: next steps - custom hooks to replace binary code and make things easier for angr

# TODO: let's start on some static analysis (CFG example to target symbolic execution?)

# TODO: VFG, DDG, something?

# TODO: under-constrained symbolic execution based on VFG results?

# more advanced stuff!

repository: angr/angr-doc

repo_name: angr/angr-doc


text:
---
author: roundcrisis
comments: true
date: 2009-02-10 11:44:30+00:00
layout: post
slug: i-do-not-blog-about-winewait-actually-i-do
title: I do not blog about WINE...wait actually I Do!
wordpress_id: 136
categories:
- Linux
tags:
- Linux
---

I saw some incoming links from [curiouswines.ie](http://curiouswines.ie) and I though I would clarify I m not a [wine **_connoisseur_**](http://www.google.ie/search?hl=en&rlz=1C1CHMG_enIE291IE304&ei=h2WRSbGmKZWN-gaqxemJCw&sa=X&oi=spell&resnum=1&ct=result&cd=1&q=wine+connoisseur&spell=1)  (I ll keep trying tho :D) however, the word does remind me about WINE, the translation layer that allows windows applications to be run on Linux.

[ ![](http://appdb.winehq.org/images/winehq_logo_glass_sm.png)](http://www.winehq.org/about/)![](http://www.winehq.org/images/winehq_logo_text.png)

[](http://www.winehq.org/about/)Please note WINE stands for Wine Is Not an Emulator, hence not paying the penalties of one.  It looks like this is mostly for games, thou Photoshop and Autocad are supported (with minor issues) I dont really need either right now but you never know when you are going to need one.

For the more conventional wine (ie the one to drink), i think you better to talk to the guys down in Cork, [ curiouswines.ie ](http://curiouswines.ie/).

extension: markdown