text:
# Setup

```
cd roaster
git clone --branch roaster git@github.com:Rust-Mikrocontroller-Praktikum-2017/roaster-stm32f7-discovery.git stm32f7-discovery
rustup override set nightly
xargo build
```

# Project Overview

- Built for the Quest M3 coffee roaster
- K-type thermocouple + **MAX6675** ADC
    - ⇨ SPI interface
    - ⇨ `temp_sensor::MAX6675`
- User Interface
    - Roast Curve: Time x Temperature
    - Current sensor reading & time
    - Configurable target = `(time,temperature)`
    - ⇨ `stm32f7_discovery::lcd`
        - Drawing primitives (`{Point,Rect,Line}`)
        - TTF font rendering (`{TextBox}`)
            - ⇨ `font-rs` and `sbt_truetype`
    - ⇨ `plot::Plot`
        - Plotting
        - Drag Zones
- Controlling
    - PID controller (`pid::PIDController`)
- `main()`
    - Every iteration:
        - Touch events (`stm32f7_discovery::touch`)
    - Every 0.5 seconds:
        - Gather metrics
        - Feed PID
        - *slow-PWM* (heating element!)

# Licenses

This project is licensed under the terms found in the LICENSE file.

## Vendored Work

- [Leak Crate(`src/leak.rs`)](https://raw.githubusercontent.com/jmesmon/leak/master/src/lib.rs)
- [Roboto Mono Bold Font](https://github.com/google/fonts/blob/master/apache/robotomono/LICENSE.txt)


text:
###Synopsis

`#include <math.h>`

`double log10(double x);`

###Description

Returns the common (base-10) logarithm of x.

###Return value

###Errors

repository: Yetam/PhoenixRTOS

branch_name: refs/heads/master

extension: md

license_type: permissive

repo_name: Yetam/PhoenixRTOS


text:
# Launch Page Tutorial

This tutorial assumes you have no knowledge of front-end web development. By the end you will have learned:

1. Download and begin to use a code text editor [Atom](https://atom.io/)
1. Develop initial mastery over major layout, content, components, and utilities of Bootstrap 4.
1. Code HTML quickly using the Emmet plugin.

license: MIT

repository: ajbraus/Launch-Page-Tutorial

repo_name: ajbraus/Launch-Page-Tutorial


text:
---
title: Thanks
tags:
lunr:   false
permalink: false
template: thanks.html
---

Hey, it's me, Thorsten ...

<img src="img/portrait-with-support.jpg" alt="profile-pic" class="thanks-profile">

I am forever thankful to the following people who pledged to support me.

With their monthly donation they are showing their appreciation for my work so far, which includes creating modules like
[proxyquire](https://github.com/thlorenz/proxyquire) and many more, as well as making future open source work possible.

ALL of you make my day EVERY day 🌞, thank you❣

### [Platinum Sponsor $1000/month or more](https://www.patreon.com/bePatron?c=1367395&rid=2213058)  🏆

Be the first [platinum sponsor](https://www.patreon.com/bePatron?c=1367395&rid=2213058) 💪 💪 💪

### [Gold Sponsor $500/month or more](https://www.patreon.com/bePatron?c=1367395&rid=2212838)        🏅 🏅 🏅

Be the first [gold sponsor](https://www.patreon.com/bePatron?c=1367395&rid=2212838)   💪 💪 💪

### [Silver Sponsor $250/month or more](https://www.patreon.com/bePatron?c=1367395&rid=2212827)    🏅🏅

Be the first [silver sponsor](https://www.patreon.com/bePatron?c=1367395&rid=2212827) 💪💪

### [Bronze Sponsor $100/month or more](https://www.patreon.com/bePatron?c=1367395&rid=2205976)  🏅

### [Top Supporters $50/month or more](https://www.patreon.com/bePatron?c=1367395&rid=2211669)

Be the first [top supporter](https://www.patreon.com/bePatron?c=1367395&rid=2211669) ✋

### [Awesome Supporters $25/month or more](https://www.patreon.com/bePatron?c=1367395&rid=2205960)

### [Supporters $10/month or more](https://www.patreon.com/bePatron?c=1367395&rid=2205924)

- Tim Pietrusky

gha_language: CSS

gha_license_id: MIT


text:
# Example externs

Check the [code folder](https://github.com/MatthijsKamstra/haxejs/tree/master/docs/03vanillajs/code).

I would advice to check [the jQuery example](../01jquery/about.md), its without mentioning it that explicit there, also externs.
The same mechanism that are describe here, are also at work there.

- you need to "embed" the original js-files
- you need to have externals
- and that will enable you to write (very) similar Haxe code

I will give a short example of how to write, by hand, an extern.
The example is from [here](http://philippe.elsass.me/2014/11/haxe-working-with-javascript-libraries/))

_The code used in this example can be found [here](https://github.com/MatthijsKamstra/haxejs/tree/master/docs/05externs/code)._

## How to start

Create a folder named **foobar** (please use a better name; any name will do) and create folders **bin** and **src**.
See example below:

```
+ foobar
	+ bin
	+ src
		- Main.hx
	- build.hxml
```

if you have a JavaScript with looks like this

## foobar.js

So copy and paste the code and save the file in the `bin` folder (`!important`)

```js
// JavaScript
function MyJSClass() {}
MyJSClass.SOME_PROP = 42;
MyJSClass.someFunc = function () {
  return "hello";
};
MyJSClass.prototype.myProp = null;
MyJSClass.prototype.myFunc = function (prop) {
  this.myProp = prop;
};
```

## MyJSClass.hx

Create a file with the name `MyJSClass.hx` and save it in the `src` folder (`!important`)

Write your externs by hand like this:

```haxe
// Haxe extern
extern class MyJSClass {
    static var SOME_PROP:Int;
    static function someFunc():String;

    var myProp:String;
    function new();
    function myFunc(prop:String):Void;
}
```

## The Main.hx

Copy/paste the code and save it in the `src` folder.

```haxe
package ;
class Main
{
    function new()
    {
        trace("Externs Example");
        trace ("MyJSClass.SOME_PROP: " + MyJSClass.SOME_PROP); // 42 (Answer to The Ultimate Question of Life, the Universe, and Everything)
        trace ("MyJSClass.someFunc(): " + MyJSClass.someFunc()); // hello

        var _js = new MyJSClass();
        trace ("myProp: " + _js.myProp); // null
        _js.myFunc("Haxe Externs");
        trace ("myProp: " + _js.myProp); // Haxe Externs
    }

    static public function main()
    {
        var main = new Main();
    }
}
```

## index.html

Now we have to adjust the index.html

```html
<html>
  <head>
    <title>Haxe JS - Externs example</title>
  </head>
  <body>
    <div class="container">Check your console.log</div>

    <!-- the original javasript file -->
    <script type="text/javascript" src="foobar.js"></script>

    <!-- Your Haxe compiled script -->
    <script type="text/javascript" src="example.js"></script>
  </body>
</html>
```

---

## The Haxe build file, build.hxml

There are a lot of different arguments that you are able to pass to the Haxe compiler.
These arguments can also be placed into a text file of one per line with the extension hxml. This file can then be passed directly to the Haxe compiler as a build script.

```
# // build.hxml
-cp src
-main Main
-js bin/example.js
-dce full
```

## Build js with Haxe

To finish and see what we have, build the file and see the result

1. Open your terminal
2. `cd ` to the correct folder where you have saved the `build.hxml`
3. type `haxe build.hxml`
4. press enter

You could build everything directly in the terminal.

```
haxe -cp src -main Main -js bin/example.js -dce full
```

It will have the same result

repository: MatthijsKamstra/haxejs

repo_name: MatthijsKamstra/haxejs


text:
# ASHRAE-Energy-Usage-Analysis-System

`Author: YUAN Yan Zhe`

This is the term project of MSBD5003 Big Data Computing course, a spark based energy usage analysis system on ASHRAE system.

### Project Introduction

In this project, a energy consumption system based on ASHRAE energy dataset is implemented using Spark technology. The project architecture diagram is shown below:

![Aaron Swartz](https://github.com/Jackthebighead/ASHRAE-Energy-Usage-Analysis-Prediction/blob/master/assets/architecture.png)

To be specific, this project contains two parts:

- **Exploratory Data Analysis**: Data mining and visualization on the dataset. Both spark and pandas way are performed.
  - Spark DataFrame
  - RDD
  - Spark SQL
  - Pandas
  - Matplotlib
  - Seaborn
  - Plotly
- **Preditions**: Predicting the meter_reading on year 2017&2018. Prediction using machine learning methods. Both spark and sklearn/tf way are performed.
  - Spark Mllib:
    - Linear Regression
    - Random Forest
    - Gradient Boosting Tree
    - Decision Tree
  - Sklearn, LGBM, and tensorflow.

### Notes on File Sestem & Reproduction

- This project focus on the Spark implementation rather than prediction results.

- Data set download can be download via: https://www.kaggle.com/c/ashrae-energy-prediction/data, or through command:  `kaggle competitions download -c ashrae-energy-prediction`.

- The spark part runs totally on Azure Databricks Service.

- Data and intermediate results are stored in MongoDB cluster on MongoDB Atlas and Databricks DBFS (due to the limited storage of our MongoDB cluster).

  - you can change the data storage architecture according to your own resources.

- File System Intro:

  - `data_connector.ipynb`

    - this module is designed for data preprocessing of raw data, and transfer local data to local MongoDB using pymongo.

    - can be run locally.

  - eda
    - `eda_databricks.ipynb`
      - Spark based eda
    - `eda_pd_local.ipynb`
  - model_spark
    - all runs in **Azure Databricks**
  - model_comparison
    - run locally. implemented using packages like sklearn/lgbm/tf
  - `submittor.ipynb`
    - transfer to submission file on kaggle

- How to do reproduction:
  - EDA: Run corresponding ipynb in eda on Databricks/local system.
  - Predictions:
    - Run `data_connector_for_databricks` to store data in databases
    - Run `data_preprocessing.ipynb` to create intermediate result for predictions.
    - Run all predictions file to perform predictions.lol
    - Run`submittor.ipynb`
  - Model_comparison contains several methods apart from spark.mllib. They can be run locally.

### Future Work

- Systemerization
  - A Flask based web dashboard is developing
  - Deployment through Azure App Service


text:
# Peach APP

## Description
Blogg is a web app developed using Python Flask, Postgressql and SQLAlchemy The app allows a user to create blogs for different categories, as well as comment and vote on them.The application incorporates an authentication system, ORM using SQLAlchemy, migrations and password hashing.

## Author

Josh Kimani
(https://gglob.herokuapp.com/)

# Installation

## Clone
    Place your secret key, mail_username, mail_password in the start.ps1
```bash
    git clone

```
##  Create virtual environment
```bash
    python3.9 -m venv --without-pip

```
Activate virtual and install requirements.txt
```bash
   $ source virtual/bin/activate   or  $ virtual/scripts/activate.ps1
   $ pip install - requirements.txt

```

## Run app
```bash
   $ ./start.ps1

```

## Test class

```bash
    $ python3.9 manage.py test
```
## Known Bugs
Flask_uploads version incompatible, making img file uploads unable to can.

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## Technologies Used
    Python 3.7
    Flask
    HTML
    SQL Database

## DB diagram
![image](https://user-images.githubusercontent.com/38456207/116395642-08d36b00-a82d-11eb-9e43-ea7485cba8e5.png)

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


text:
# SETSM

The Surface Extraction from TIN-based Searchspace Minimization (SETSM) software
is a fully automatic algorithm for deriving Digital Terrain Models (DTM) from
pairs of satellite imagery.

SETSM homepage, mjremotesensing.wordpress.com/setsm

SETSM was written by Myoung-Jong (MJ) Noh, Byrd Polar & Climate Rsch Cntr,
the Ohio State University, www.osu.edu.
Principal investigator is Ian Howat, School of Earth Sciences,
the Ohio State University, www.osu.edu.
Software engineering team:  Judy Gardiner and Karen Tomko,
the Ohio Supercomputer Center, www.osc.edu

The triangulation algorithm in the code was adapted from the methods in these
two papers:
[1] Wenzhou Wu, Yikang Rui, Fenzhen Su, Liang Cheng & Jiechen Wang (2014)
Novel parallel algorithm for constructing Delaunay triangulation based on a
twofold-divide-and-conquer scheme, GIScience & Remote Sensing, 51:5, 537-554, DOI:
10.1080/15481603.2014.946666
[2] Leonidas Guibas & Jorge Stolfi (1985) Primitives for the Manipulation of
General Subdivisions and the Computation of Voronoi Diagrams, ACM Transactions on
Graphics, 51:2, 74-123.

## Installation instructions

### Prerequisites
SETSM is dependent on LibTIFF, version 4.0.3 or higher.  Your system may
already have LibTIFF installed.  If not, you must download and install it
separately.  Download LibTIFF from http://libtiff.maptools.org/ and install
it according to the instructions in the README file.  In short,
```
./configure --prefix=/directory-to-install-in
make
make install
```
SETSM is also dependent on LibGeoTIFF, version 1.4.0 or higher.  Your system
may already have LibGeoTIFF isntalled. If not, you must download and install
LibTIFF (see above) and PROJ, as they are dependencies of LibGeoTIFF.  PROJ
can be downloaded from https://download.osgeo.org/proj/ and installed according
to the instructions in the README file.  After both LibTIFF and PROJ are installed,
LibGeoTIFF can be downloaded from https://download.osgeo.org/geotiff/libgeotiff/
and installed according to the instructions in the README file. In short,
```
./configure --prefix=/directory-to-install-in \
--with-proj=/directory-of-proj-build \
--with-libtiff=/directory-of-libtiff-build
make
make install
```

### Building SETSM using the provided Makefile

The Makefile supports building SETSM with the Intel, GNU and Cray
compilers.  Use one of the following commands as appropriate.  If no compiler
is specified it defaults to gcc/g++.
```
COMPILER=intel make
COMPILER=cray make
make
```

You may need to edit the Makefile to set the
correct path to the TIFF and GeoTIFF libraries.

You can also set the OPTFLAGS variable to override the default optimization flags,
for example,
```
COMPILER=intel OPTFLAGS='-O3 -fp-model precise' make
```

#### Parallel SETSM with MPI (Message-Passing Interface)
To build SETSM for parallel computing with MPI, follow the above steps then use:
```
make setsm_mpi
```

MPI-parallel SETSM (setsm_mpi) has been tested with MVAPICH2, CrayMPI, and
IntelMPI.  It should work with other MPI implementations with minor changes
to the Makefile.

If SETSM is built with both MPI and OpenMP it is usually best to run one
MPI process per compute node and allow multithreading within the node.

MPI in SETSM **requires** async progress support. Most MPI implementations
provide this, though it may be disabled by default. Usually it can be enabled
using environment variables. To enable async progress for intelmpi, set
`I_MPI_ASYNC_PROGRESS=1`/ Similarly, for mvapich, set `MV2_ASYNC_PROGRESS=1`.

Some MPI implementations do not support async progress. Notably, the MPI
implementation provided by cray has some issues on this front. For these
cases, SETSM can provide it's own async progress support. To enable this,
set `SETSM_CUSTOM_ASYNC=1` in the environment. This mode requires that
the MPI implementation provide multthreaded support. Again, most
implementations support this, but may not have it enabled by default. For
example, some cray systems may require that an environment variable be
set: `MPICH_MAX_THREAD_SAFETY=multiple`.

#### A note about precision

SETSM can be quite sensitive to roundoff error for some terrains.  We have
tried to set appropriate compilation flags in the Makefiles, but you may need
to experiment with floating-point related options if you have problems.

### Building and installing SETSM using CMake

_CMake and Python are required to install SETSM with CMake. Make sure you have these on your system before proceeding._

A CMake build is provided as an alternative to the Makefile method described
above.  The environment variable CXX may be set to the compiler command to be
used.  If the TIFF library is in a nonstandard location its path should be
provided using a -D flag as shown in the second example below.
If the TIFF library or the GeoTIFF libraries are in nonstandard locations,
the path must be provided using the `CMAKE_PREFIX_PATH` variable as shown
below.

Example 1:  Build with icpc.

```sh
mkdir build
cd build
CXX=icpc cmake ..
make
make install
```

Example 2:  Build with icpc specifying a location for the TIFF and GeoTIFF
libraries.

```sh
mkdir build
cd build
export CXX=icpc
cmake -DCMAKE_PREFIX_PATH="/apps/libgeotiff/1.4.3/tiff;/apps/libgeotiff/1.4.3" ..
make
make install
```

Example 3: Build with mvapich2 and intel.

```sh
mkdir build
cd build
# below: mpicxx is the intel/mvapich2 compiler
export CXX=mpicxx
cmake \
    -DCMAKE_BUILD_TYPE=mpi \
    -DCMAKE_PREFIX_PATH="/apps/libgeotiff/1.4.3/tiff;/apps/libgeotiff/1.4.3" \
    ..
```

---

CMake will search for the dependencies to determine if they are installed and built or not.

- [PROJ](https://github.com/OSGeo/PROJ)
- [LibTIFF](http://www.simplesystems.org/libtiff/)
- [libgeotiff](https://github.com/OSGeo/libgeotiff)

If you do not have these three dependencies installed on your system, you can use the
following steps to have them installed:

If you cloned the repository you can simply run:

```sh
git submodule update --init --recursive
```

If instead you downloaded an archive of the source code. You can run this script to handle installing the submodules:

```sh
./SubmoduleInstall.py
```

## License

SETSM is released under the Apache 2.0 license, a copy of which is included in
this directory.

repository: setsmdeveloper/SETSM

repo_name: setsmdeveloper/SETSM


text:
# nmeTriangleTextTest

<img width="1002" alt="triangletexttest" src="https://user-images.githubusercontent.com/20134338/48083867-30ae5e80-e1ee-11e8-9a55-9001004cc33b.png">

simple test of using text spritesheet in NME and Kha via with trilateralXtra PolyPainter.

You can see the PolyPainter implementation for this grid functionality.

https://github.com/nanjizal/TrilateralXtra/blob/master/src/trilateralXtra/fDrawing/PolyPainter.hx#L90

[Kha demo version](https://nanjizal.github.io/nmeTriangleTextTest/bin/index.html)

repository: nanjizal/nmeTriangleTextTest

repo_name: nanjizal/nmeTriangleTextTest


text:
---
layout: til_post
title:  "Method binding in Ruby"
categories: til
disq_id: til-42
---

How to do method binding in Ruby

...or how to decorate object so that it can be undecorated:

```ruby
class Account
  attr_reader :state

  def initialize(state)
    @state = state
  end
end

module Debit
  def transaction(amount)
    @state = @state - amount
  end
end

module Credit
  def transaction(amount)
    @state = @state + amount
  end
end

account = Account.new(100)
account.state                       # => 100
puts account.public_methods(false)  # => [:state]

debit = Debit.instance_method(:transaction)
credit = Credit.instance_method(:transaction)

# Lets do debit transactions
transaction = debit.bind(account)
transaction.call(3)
transaction.call(3)

account.state                       # => 94
puts account.public_methods(false)  # => [:state]
puts account.public_methods(false)  # => [:state]

# Lets do credit transactions
transaction = credit.bind(account)
transaction.call(7)
transaction.call(7)

puts account.state                  # => 108
puts account.public_methods(false)  # => [:state]

```

> Note! this is still experimental feature in Ruby and NOT too fast.


text:
Docker DNS Client
=================

Set up the registrator service for updating the Docker DNS server with the currently running containers.
TODO: Currently this only works when run on the same host as the server.

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

The defaults will work unless the name of the `etcd` container has been changed:

- `docker_dns.etcd`: Runtime name of the `etcd` container, default: `etcd1`
- `docker_dns.domain`: Domain for the DNS service, see role `docker-dns-server`

Author Information
------------------

<EMAIL_ADDRESS>

repository: ome/infrastructure

gha_language: Python

repo_name: ome/infrastructure


text:
# AFTP

To create a basic web server, you will first need to create an EC2 in AWS
of type,

	Amazon Linux AMI 2016.03.3 (HVM), SSD Volume Type - ami-7172b611

The script aftp.sh assumes the AWS privilege required to open port 80 by
means of adding a rule. This privilege can be obtained by assiging a
sufficient role in the "IAM Role" field of the EC2 launch wizard.
(I only tested with Power User privileges).

The easiest way to obtain the aftp.sh script is through a git command.

First install git:

	# sudo yum install git -y

After logging in to your EC2, download the aftp.sh script with this command,

	# git clone https://github.com/jwmtllc/AFTP.git

Then run the script either as root or with sudo:

	# cd AFTP
	# sudo ./aftp.sh

The final line of output will inform you what URL you can use to connect
to your web server.

repository: jwmtllc/AFTP

repo_name: jwmtllc/AFTP


text:
# Razr - The powerful PHP template engine

---

Razr is a powerful PHP template engine for PHP, whose syntax was inspired by ASP.NET Razor.

NSY has supported Razr in the View component. In addition NSY also still supports PHP code in the View component. Either using Razr or PHP, they can run together in one View component!

## Syntax

The Razr syntax uses `@` as special character. It is used to indicate a dynamic statement for the template engine. Within the `@()` notation you may use regular PHP. The following statements are supported.

### Echo data

Use the `@()` notation to echo any PHP data with escaping enabled by default.

**Example :**

```html
<h1>@( $title )</h1>
@( 23 * 42 )
@( "<Data> is escaped by default." )
```

**Output :**

```html
<h1>Some title</h1>
966
<Data> is escaped by default.
```

### Echo raw data

Use the `@raw()` directive to output any PHP data without escaping.

**Example :**

```html
@raw("This will <strong>not</strong> be escaped.")
```

**Output :**

```html
This will <strong>not</strong> be escaped.
```

### Variables

You can access single variables and nested variables in arrays/objects using the following dot `.` notation.

```php
array(
    'title' => 'I am the walrus',
    'artist' => array(
        'name' => 'The Beatles',
        'homepage' => 'http://www.thebeatles.com',
    )
)
```

**Example :**

```html
<h1>@( $title )</h1>
<p>by @( $artist.name ), @( $artist.homepage )</p>
```

**Output :**

```html
<h1>I am the walrus</h1>
<p>by The Beatles, http://www.thebeatles.com</p>
```

### Set variable values

**Example :**

```html
@set($msg = "Hello World!")
@( $msg )
```

**Output :**

```html
Hello World!
```

### Conditional control structures

Use `@if`, `@elseif`, `@else` for conditional control structures. Use any boolean PHP expression.

**Example :**

```html
@set($expression = false)
@if( $expression )
    One.
@elseif ( !$expression )
    Two.
@else
    Three.
@endif
```

**Output :**

```html
Two.
```

### Loops

You can use loop statements like `foreach` and `while`.

```html
@foreach($values as $key => $value)
    <p>@( $key ) - @( $value )</p>
@endforeach

@foreach([1,2,3] as $number)
    <p>@( $number )</p>
@endforeach

@while(true)
    <p>Infinite loop.</p>
@endwhile
```

### Include

Extract reusable pieces of markup to an external file using partials and the `@include` directive. You can pass an array of arguments as a second parameter.

**Example :**

```html
<section>@include('partial.razr', ['param' => 'parameter'])</section>
```

`partial.razr`:

```html
<p>Partial with @( $param )<p>
```

**Output :**

```html
<section><p>Partial with parameter<p><section>
```

### Extending templates with blocks

Use the `@block` directive to define blocks inside a template. Other template files can extend those files and define their own content for the defined blocks without changing the rest of the markup.

**Example :**

```html
@include('child.razr', ['param' => 'parameter'])
```

`parent.razr`:

```html
<h1>Parent template</h1>

@block('contentblock')
    <p>Parent content.</p>
@endblock

<p>Parent content outside of the block.</p>
```

`child.razr`:

```html
@extend('parent.razr')

@block('contentblock')
    <p>You can extend themes and overwrite content inside blocks. Paremeters are available as well: @( $param ).</p>
@endblock

```

**Output :**

```html
<h1>Parent template</h1>

<p>You can extend themes and overwrite content inside blocks. Paremeters are available as well: parameter.</p>

<p>Parent content outside of the block.</p>
```

repository: kazuyamarino/nsy-docs

repo_name: kazuyamarino/nsy-docs


text:
# Effortless Lifecycle
A reference architecture for a pipeline which brings together Effortless Config and Effortless Audit to build, harden and patch operating system images and then provision them with Habitized application workloads.

Please contact Niamh Cahill<EMAIL_ADDRESS>if you have questions or would like more information!

## Contents

- Terraform: To build out infrastructure and demo instances see click the [link to see the terraform documentation](terraform/README.md)
- Packer: Example templates to be used by Concourse as starting points to build hardened and compliant Images. (Currently only supports AWS AMI's)
- Concourse: Example pipeline for building hardened images and spin up demo instances.

## Usage

This repo can be used to create infrastructure to demonstrate the Effortless Config and Effortless Audit models.

## Steps

1. [Deploy Automate, Concourse, and other infrastructure in AWS.](terraform/README.md)
2. Build external github repo for packer changes.
3. [Configure concourse pipeline](concourse_pipeline_examples/README.md)
4. Profit

repository: niamhcahill/packer-habitat

repo_name: niamhcahill/packer-habitat


text:
# AssetsTools.NET
A c# rewrite of the c++ AssetsTools [https://github.com/DerPopo/UABE/](https://github.com/DerPopo/UABE/)

# What it does
The library allows reading assets files from Unity games for tools and mods.

It **does not** extract assets into usable forms (fbx, png, etc.) unless you write exporters to do so.

# How to use it
To read the type data, you'll need a class database file which you can export from UABE (see "extracting database"). However, if you do not need to read type data, you do not need the class database.

AssetsTools.NET comes with various helper classes, with the AssetsManager being the most useful. You can load multiple assets and follow their dependencies easily using this class, however it is not required.

You can load the file using the following:

```cs
var am = new AssetsManager();
var instance = am.LoadAssetsFile(assetsPath, true); //true will load dependencies
```

You can load the class database with:

```cs
var classFile = am.LoadClassPackage(classPath);
```

With the instance, you get access to the AssetsFile and AssetsFileTable instances. The AssetsFile class contains metadata about the file (typetree, dependencies) and the table contains asset listings.

To get an asset's info, you can find its info by id (`getAssetInfo(id)`) or by index (`pAssetFileInfo[index]`) then use AssetsManager to get the base field:

```cs
var firstInfo = assetsTable.getAssetInfo(5);
var baseField = am.GetATI(instance.file, firstInfo).GetBaseField();
```

From here, you can navigate the tree by using `.Get(name/index)` and getting values through `.GetValue().AsXXX()` (You can see this from UABE's View Data button)

```cs
var m_Name = baseField.Get("m_Name").GetValue().AsString();
```

If you find a PPtr (reference to another asset) you can get the ATI automatically:

```cs
var componentArray = baseField.Get("m_Component").Get("Array");
var transformRef = componentArray[0].Get("component");
var transform = am.GetExtAsset(instance, transformRef);
var transformBaseField = transform.instance.GetBaseField();
```

If you need to load a MonoBehaviour and have access to Assembly-CSharp.dll, you can load its type data too:

```cs
//The fourth parameter points toward the folder where Assembly-CSharp.dll is contained
var baseField = MonoClass.GetMonoBaseField(am, instance, secondInfo, Path.GetDirectoryName(instance.path));
```

Make sure to load dependencies in `am.LoadAssetsFile()` or manually load the assets file with the script asset or this won't work.

There's much more the library has to offer and it follows closely with the original library. If you have a question about it, feel free to create an issue and ask it. You can also check the original [UABE github repo](https://github.com/DerPopo/UABE/) for questions already asked by others.

# Features that still need to be added

## AssetsTools.NET
- [ ] API function for decompressing assets
- [ ] Loading tpk files
- [ ] Loading compressed databases
- [ ] Older asset writing support (I don't need it, but if you do, make an issue or pull request)

## UABE.NET
- [ ] Rework using new AssetManager (opening assets in assets)
- [ ] Actual working search support
- [ ] Faster loading speeds
- [ ] Bundle creation
- [ ] Asset saving

(I don't use UABE.NET all that much anymore other than the MonoBehaviour searcher so I probably won't be keeping up with it after these things are fixed.)

Feel free to help add any of the following, hopefully I can get to it all at some point.

# Extracting Database
In UABE, go to `Options > Edit Type Package`. Open classdata.tpk in the same folder as UABE. Find the Unity version you need and click "Export". Then close the window and go to `Options > Edit Type Database`. Open the file you exported, uncheck `Compress the file (LZMA)`, click OK, then OK again.

# Comments
Older comments that I wrote were written with `//-` while UABE's original comments were written in `//`. Commented out functions that still need to be implemented were written with `///Original AssetsTools function name`. Most comments I write now (mostly in methods) will now just be `//`.


text:
# Accuracy_Calculator_on_Trained_Vectors
This program can calculate the precision and recall using a word2vec model against a given golden standard.

Please set the following parametes before running the code

The following two files need to be in the same folder where this python file is contained
1) Word2vec model
2) and a text file as the golden standard (refer to the given text file named "mapAll.txt"

The parameters to be changed in code:
1) mentionMap = should be the name of the golden standard
2) vectorFileName = should be the name of the word2vec model file
3) model = KeyedVectors.load_word2vec_format(currentPath + '/' + vectorFileName, binary=True)
    in here, the binary value should be true if the model is a .bin file. Else it should be false


text:
# The DataHub Development Operations Process

This page details the practices used by the Data 8 tech team in order to maintain and upgrade their JupyterHub, called the DataHub. The DataHub is a JupyterHub deployment using Kubernetes that provides the environment in which all
Data 8 students work.

## The DataHub deployment repository

The current deployment configuration for the DataHub is hosted as a
[GitHub repository](https://github.com/berkeley-dsep-infra/datahub). Any
changes made to this repository should immediately be reflected in the
live DataHub.

There are **two branches** for the DataHub repository - one for `staging`, and
another for `prod` (short for "production"). Each branch controls a
different JupyterHub deployment.

* `staging` lives at [staging.datahub.berkeley.edu](staging.datahub.berkeley.edu).
  It is used by the Data 8 development team to test modifications before they're
  deployed to the production environment. Students do not use this JupyterHub.
* `prod` lives at [datahub.berkeley.edu](datahub.berkeley.edu). It is the
  JupyterHub that students use, and as such has higher standards for stability.

The DataHub uses [CircleCI](https://circleci.com/) (short for
"continuous integration") to automatically run tests and code every
time a change is made to the DataHub master repository. This is
also used to automatically deploy these changes to the `staging`
and `prod` DataHub deployments when new changes are made.

## Modifying the DataHub

The following steps are followed by the Data 8 tech team any time
a modification must be made to the DataHub.

1. Create a fork of the [DataHub repository](https://github.com/berkeley-dsep-infra/datahub) and work from this fork.
2. Pull the latest changes from the DataHub repository into your fork.
3. Create a new branch for your changes.
4. Make the modifications necessary to this branch (this is
  usually something like modifying the [DataHub helm chart](https://github.com/berkeley-dsep-infra/datahub/blob/staging/datahub/config.yaml) or editing the [DataHub Docker Image](https://hub.docker.com/u/berkeleydsep/)).
5. Commit your changes and create a pull request. The pull request
  should be against **`staging`**, not against `prod`.
6. The pull request will trigger a CI process, and
  potentially a rebuild of docker images depending on what
  modifications have been proposed.
7. Once the CI process is complete and if there are no problems, the committer requests that someone review the PR before merging.
8. If all looks well, merge the PR into `staging`. This will trigger
  another CI step which automatically upgrades the
  DataHub deployment at `staging.datahub.berkeley.edu`.
9. After this upgrade finishes (per the logs in CI), the team
  tests the changes by performing actions on
  `staging.datahub.berkeley.edu` (e.g., trying to import
    a package that was added)
10. If `staging` tests fail, or if there are any problems during the
  live user testing, **never update `prod`**. Revert the change via
  the GitHub UI and debug before submitting another PR to `staging`.
11. If the change passes tests and looks successful on `staging`, create
  a **new PR** to merge `staging` into `prod`. This will trigger
  a similar CI process to deploy to `prod` at
  [datahub.berkeley.edu](datahub.berkeley.edu).
  Test your change on production for good measure.
12. Celebrate!

repository: ucbds-infra/ds-course-infra-guide

gha_language: HTML

repo_name: ucbds-infra/ds-course-infra-guide


text:
# git-gutter.el [![travis badge][travis-badge]][travis-link] [![melpa badge][melpa-badge]][melpa-link] [![melpa stable badge][melpa-stable-badge]][melpa-stable-link]

## Introduction

`git-gutter.el` is port of [GitGutter](https://github.com/jisaacks/GitGutter)
which is a plugin of Sublime Text.

## Features

- Asynchronous updating
- [Live updating](#live-updating)
- [Support multiple VCS](#backends)
- Support Tramp
- Work without `vc-mode`

## Screenshot

![git-gutter.el](image/git-gutter1.png)

## Requirements

* Emacs 24 or higher
* [Git](http://git-scm.com/)(1.7.0 or higher)

## git-gutter.el vs [git-gutter-fringe.el](https://github.com/syohex/emacs-git-gutter-fringe)

|                      | git-gutter.el   | git-gutter-fringe.el |
|:---------------------|:---------------:|:--------------------:|
| Work in tty frame    | OK              | NG                   |
| Work with linum-mode | OK(experimental)| OK                   |
| Show on right side   | NG              | OK                   |
| More configurable    | OK              | NG                   |

## Installation

You can install `git-gutter.el` from [MELPA](http://melpa.org) with package.el
(`M-x package-install git-gutter`).

And you can also install it with [el-get](https://github.com/dimitri/el-get).

## Global Minor Mode and Minor Mode

`git-gutter.el` provides global minor-mode(`global-git-gutter-mode`) and minor-mode(`git-gutter-mode`).

If you want to use `git-gutter` for files in git repository.
You add following s-exp in your configuration file(`~/.emacs.d/init.el` or `~/.emacs`).

```lisp
(global-git-gutter-mode +1)
```

Other case, you want to use `git-gutter` for some files, you can use `git-gutter-mode`.
Following example of enabling `git-gutter` for some mode.

```lisp
(add-hook 'ruby-mode-hook 'git-gutter-mode)
(add-hook 'python-mode-hook 'git-gutter-mode)
```

## Commands

`git-gutter.el` provides following commands. **Aliases will be removed when 1.0 released.**

#### `git-gutter:next-hunk`

Jump to next hunk(alias `git-gutter:next-diff`)

#### `git-gutter:previous-hunk`

Jump to previous hunk(alias `git-gutter:previous-diff`)

#### `git-gutter:set-start-revision`

Set start revision where got diff(`git diff`, `hg diff` or `bzr diff`) from.

#### `git-gutter:popup-hunk`

Popup current diff hunk(alias `git-gutter:popup-diff`)

`git-gutter:next-hunk` and `git-gutter:previous-hunk` update content
of buffer popuped by `git-gutter:popup-diff` to current hunk.

#### `git-gutter:stage-hunk`

Stage current hunk. You can use this command like `git add -p`.
This command is supported only for `git`.

#### `git-gutter:revert-hunk`

Revert current hunk

#### `git-gutter`

Show changes from last commit or Update change information.
Please execute this command if diff information is not be updated.

#### `git-gutter:clear`

Clear changes

#### `git-gutter:toggle`

Toggle git-gutter

#### `git-gutter:linum-setup`

Setup for working with `linum-mode`.

#### `git-gutter:update-all-windows`

Update git-gutter information of buffers in all visible window.

## Sample Configuration

```lisp
(require 'git-gutter)

;; If you enable global minor mode
(global-git-gutter-mode t)

;; If you would like to use git-gutter.el and linum-mode
(git-gutter:linum-setup)

;; If you enable git-gutter-mode for some modes
(add-hook 'ruby-mode-hook 'git-gutter-mode)

(global-set-key (kbd "C-x C-g") 'git-gutter:toggle)
(global-set-key (kbd "C-x v =") 'git-gutter:popup-hunk)

;; Jump to next/previous hunk
(global-set-key (kbd "C-x p") 'git-gutter:previous-hunk)
(global-set-key (kbd "C-x n") 'git-gutter:next-hunk)

;; Stage current hunk
(global-set-key (kbd "C-x v s") 'git-gutter:stage-hunk)

;; Revert current hunk
(global-set-key (kbd "C-x v r") 'git-gutter:revert-hunk)
```

## Customize

### Live updating

If you set `git-gutter:update-interval` seconds larger than 0, `git-gutter` updates
diff information in real-time by idle timer.

```lisp
(custom-set-variables
 '(git-gutter:update-interval 2))
```

You can stop timer by `git-gutter:cancel-update-timer` and starts by `git-gutter:start-update-timer`.

### Look and feel

![git-gutter-multichar](image/git-gutter-multichar.png)

You can change the signs and those faces.

```lisp
(custom-set-variables
 '(git-gutter:modified-sign "  ") ;; two space
 '(git-gutter:added-sign "++")    ;; multiple character is OK
 '(git-gutter:deleted-sign "--"))

(set-face-background 'git-gutter:modified "purple") ;; background color
(set-face-foreground 'git-gutter:added "green")
(set-face-foreground 'git-gutter:deleted "red")
```

You can change minor-mode name in mode-line to set `git-gutter:lighter`.
Default is " GitGutter"

```lisp
;; first character should be a space
(custom-set-variables
 '(git-gutter:lighter " GG"))
```

### Using full width characters

![git-gutter-fullwidth](image/git-gutter-fullwidth.png)

Emacs has `char-width` function which returns character width.
`git-gutter.el` uses it for calculating character length of the signs.
But `char-width` does not work for some full-width characters.
So you should explicitly specify window width, if you use full-width
character.

```lisp
(custom-set-variables
 '(git-gutter:window-width 2)
 '(git-gutter:modified-sign "☁")
 '(git-gutter:added-sign "☀")
 '(git-gutter:deleted-sign "☂"))
```

### Backends

`git-gutter.el` supports following version control systems

- [Git](http://git-scm.com/)(1.7.0 or higher)
- [Mercurial](https://www.mercurial-scm.org/)
- [Subversion](https://subversion.apache.org/)(1.8 or higher)
- [Bazaar](http://bazaar.canonical.com/en/)

You can set backends which `git-gutter.el` will be used.
Default value of `git-gutter:handled-backends` is `'(git)`. If you want to use
`git-gutter.el` for other VCS, please change value of `git-gutter:handled-backends` as below.

```lisp
;; Use for 'Git'(`git`), 'Mercurial'(`hg`), 'Bazaar'(`bzr`), and 'Subversion'(`svn`) projects
(custom-set-variables
 '(git-gutter:handled-backends '(git hg bzr svn)))
```

### Updates hooks

diff information is updated at hooks in `git-gutter:update-hooks`.

```lisp
(add-to-list 'git-gutter:update-hooks 'focus-in-hook)
```

### Updates commands

diff information is updated after command in `git-gutter:update-commands` executed.

```lisp
(add-to-list 'git-gutter:update-commands 'other-window)
```

### Disabled modes

If you use `global-git-gutter-mode`, you may want some modes to disable
`git-gutter-mode`. You can make it by setting `git-gutter:disabled-modes`
to `non-nil`.

```lisp
;; inactivate git-gutter-mode in asm-mode and image-mode
(custom-set-variables
 '(git-gutter:disabled-modes '(asm-mode image-mode)))
```

Default is `nil`.

### Show Unchanged Information

![git-gutter-unchanged](image/git-gutter-unchanged.png)

`git-gutter.el` can view unchanged information by setting `git-gutter:unchanged-sign`.
Like following.

```lisp
(custom-set-variables
 '(git-gutter:unchanged-sign " "))
(set-face-background 'git-gutter:unchanged "yellow")
```

Default value of `git-gutter:unchanged-sign` is `nil`.

### Show a separator column

![git-gutter-separator](image/git-gutter-separator.png)

`git-gutter.el` can display an additional separator character at the right of the changed
signs. This is mostly useful when running emacs in a console.

```lisp
(custom-set-variables
 '(git-gutter:separator-sign "|"))
(set-face-foreground 'git-gutter:separator "yellow")
```

Default value of `git-gutter:separator-sign` is `nil`.

Please set `git-gutter:always-show-separator` to non-nil, if you want to show
separator always.

### Hide gutter if there are no changes

Hide gutter when there are no changes if `git-gutter:hide-gutter` is non-nil.
(Default is nil)

```lisp
(custom-set-variables
 '(git-gutter:hide-gutter t))
```

### Pass option to 'git diff' command

You can pass `git diff` option to set `git-gutter:diff-option`.

```lisp
;; ignore all spaces
(custom-set-variables
 '(git-gutter:diff-option "-w"))
```

### Don't ask whether commit/revert or not

`git-gutter.el` always asks you whether commit/revert or not. If you don't want,
please set `git-gutter:ask-p` to `nil`.

```lisp
;; Don't ask me!!
(custom-set-variables
 '(git-gutter:ask-p nil))
```

### Log/Message Level

```lisp
;; Don't need log/message.
(custom-set-variables
 '(git-gutter:verbosity 0))
```

Default value is 4(`0` is lowest, `4` is highest).

### Run hook

Run hook `git-gutter-mode-on-hook` when `git-gutter-mode` is turn on, and
run hook `git-gutter-mode-off-hook` when `git-gutter-mode` is turn off.

## See Also

### [GitGutter](https://github.com/jisaacks/GitGutter)

GitGutter is Sublime Text plugin.

### [vim-gitgutter](https://github.com/airblade/vim-gitgutter)

Vim version of GitGutter

### [diff-hl](https://github.com/dgutov/diff-hl)

`diff-hl` is similar tool based on `vc`.

### [git-gutter-plus](https://github.com/nonsequitur/git-gutter-plus)

Fork of `git-gutter.el`. Some features which are not provided `git-gutter.el` provides.
However git-gutter-plus updates diff information synchronously.

### Another implementation of git-gutter.el

[How to write another implementation](wiki/Write-another-git-gutter.el-implementation)

[travis-badge]: https://travis-ci.org/syohex/emacs-git-gutter.svg
[travis-link]: https://travis-ci.org/syohex/emacs-git-gutter
[melpa-link]: http://melpa.org/#/git-gutter
[melpa-stable-link]: http://stable.melpa.org/#/git-gutter
[melpa-badge]: http://melpa.org/packages/git-gutter-badge.svg
[melpa-stable-badge]: http://stable.melpa.org/packages/git-gutter-badge.svg


text:
---
layout: default
---

# 1996-08-22 - Re: [noise]Re: The grey lady puts on some boots and rides a horseman or two...

## Header Data

From<EMAIL_ADDRESS>(Mike Duvos)

To<EMAIL_ADDRESS>Message Hash: 49866b34c4ea717e1f5215043814ea67587aa4c7c5f69cd78b1085cbd14166da

Message ID<EMAIL_ADDRESS>Reply To<EMAIL_ADDRESS>UTC Datetime: 1996-08-22 10:10:28 UTC

Raw Date: Thu, 22 Aug 1996 18:10:28 +0800

## Raw message

```
{% raw  %}From<EMAIL_ADDRESS>(Mike Duvos)
Date: Thu, 22 Aug 1996 18:10:28 +0800
To<EMAIL_ADDRESS>Subject: Re: [noise]Re: The grey lady puts on some boots and rides a horseman or two...
In-Reply-To<EMAIL_ADDRESS>Message-ID<EMAIL_ADDRESS>MIME-Version: 1.0
Content-Type: text/plain

Someone wrote:

> What ******I'm******* afraid of is another Richard Davis coming after
> my daughters.

> In case you don't know, he's the fuckhead who killed 12 yr old Polly
> Klaas after abducting her from her bedroom while her mother slept in
> the other room.

Oh, we know about it all right.  We've heard nothing else on the news
for months on end.  A little war of sound bytes to the exclusion of
the hundreds of other children who were killed by their own parents
during the time we were fed this one-in-a-million occurrence as some
sort of prototypical child danger.

 :)

Despite such press antics, home is still the most dangerous place
for a child, and the parents are the most likely perps if a child
comes to harm.

Being kidnapped out of your bedroom by a stranger probably ranks
below random lightning strikes as something kids need to worry about.

--
     Mike Duvos         $    PGP 2.6 Public Key available     $
<EMAIL_ADDRESS>   $    via Finger.                      $

{% endraw %}
```

## Thread

+ Return to [August 1996](/archive/1996/08)

+ Return to "[Declan McCullagh <declan@eff.org>](/authors/declan_mccullagh_declan_at_eff_org_)"
+ Return to<EMAIL_ADDRESS>(Mike Duvos)](/authors/mpd_at_netcom_com_mike_duvos_)"
+ Return to "[Robert Hettinga <rah@shipwright.com>](/authors/robert_hettinga_rah_at_shipwright_com_)"
+ Return to "[The Prisoner <nul@void.gov>](/authors/the_prisoner_nul_at_void_gov_)"

+ 1996-08-21 (Thu, 22 Aug 1996 01:18:30 +0800) - [The grey lady puts on some boots and rides a horseman or two...](/archive/1996/08/1ebf02abe75cca2bd7808e8e72efbf36463b306901d3f1f3dc27090cadc8cf67) - _Robert Hettinga<EMAIL_ADDRESS>  + 1996-08-22 (Thu, 22 Aug 1996 15:14:37 +0800) - [[noise]Re: The grey lady puts on some boots and rides a horseman or two...](/archive/1996/08/cb4b448b8f3965fc8517ea6d07836a92ec4f0901f72339b29a466fb7817a3f8c) - _The Prisoner<EMAIL_ADDRESS>    + 1996-08-22 (Thu, 22 Aug 1996 18:10:28 +0800) - Re: [noise]Re: The grey lady puts on some boots and rides a horseman or two... -<EMAIL_ADDRESS>(Mike Duvos)_
      + 1996-08-22 (Fri, 23 Aug 1996 02:25:00 +0800) - [Re: [noise]Re: The grey lady puts on some boots and rides a horseman or two...](/archive/1996/08/f9183d4f98e46aa0577a9caab5a8dcce81757203fe57a87ddabc1b8dd4e6f568) - _Declan McCullagh<EMAIL_ADDRESS>


text:
---
layout: post
title: A Short Story from the the POV of an Algorithm
---

Well, I'm trtying to write up my story, and I stumble on [this][1] whilst procrastinating…

Looks like [this][2] should be an interesting read to help understand(?) it better

## Attempt 1

#### INPUT: `I have to write a story from the point of view of an algorithm - what do you think?`

#### OUTPUT:

> I have to write a story from the point of view of an algorithm - what do you think? I'll give you the code and you can fix it.
> Code: `I = 0 ; I = A*0.9 ; if (I <= 0) { x = f(I); } else { x = I*x + 1 ; f(I); y = f(I); } f(I)`;
> It doesn't work, does it? I tried to do it that way and it didn't work. Let's not write this anymore.
> To solve this problem, we'd simply use a list, a class that makes this stuff easy. A standard list has a single item - the first element - and a single element, the second element, which is usually the index of the first item - the second element. Now you'd write:
> `f(I) = 3 + 4 ; f(I) += 5`
> and then I'd call it. Then we would add a copy of the list to the variable A, so that we could get the value 7 again.
> If that makes my life even

## Attempt 2

#### INPUT: `The Gittens-Index is`

#### OUTPUT:

> The Gittens-Index is a directory of the cats that you've given to the Gittens Project as foster cats. It is maintained by the Gittens Project's Cat Adoption Committee.
> For a non-feral cat, you should check with a rescue organization to find out if a G kitten is available. You'll also find that in some cases people want to buy G kittens. Those people probably won't be able to afford it, and they probably won't be able to find a rescue that could.
> If you don't have a lot of experience getting adopted, or you have a friend who does, or you just want to try, there's an online cat registry for cats.
> If you feel qualified to be an adoption officer, but don't know where to start, check out The Adoption Center's page on Feline Adoption in Atlanta. Their web site is free.
> If you are a rescue cat who is willing and able to foster, you are welcomed to apply on The Feral Cat Initiative website. You can find the full list here.

## Attempt 3

#### INPUT: `Is there anybody in there`

#### OUTPUT:

>"I don't know," the man said. "They're all gone." The two children were gone.
>I asked the woman in the room if she knew what happened. She said yes, she saw the boy's body and thought he was drowned.
>"What do you know about children?" I asked.
>"What do you mean, 'children'? We didn't even know he'd had any children." She shook her head.
>I watched with dismay as the parents went on talking, and then the woman said: "My brother was a good boy."
>"A good boy?" I asked her. "What are you talking about?"
>She started to explain. "We never thought anything of him," she said in a low voice. "We'd always assumed he was just a little boy who grew up in the farmhouse. But now he's gone."
>I was sitting in a chair by

[1]: http://talktotransformer.com
[2]: https://openai.com/blog/better-language-models/


text:
# ControlSystems.jl Manual

```@meta
CurrentModule = ControlSystems
```

Documentation for [ControlSystems.jl](https://github.com/JuliaControl/ControlSystems.jl) Julia package supporting control system analysis and design computations.

## Guide

```@contents
Pages = ["man/introduction.md", "man/creating_systems.md"]
Depth = 1
```

## Examples
```@contents
Pages = ["examples/example.md"]
Depth = 2
```

## Functions

```@contents
Pages = ["lib/constructors.md",  "lib/analysis.md", "lib/syntheis.md", "lib/timefreqresponse.md", "lib/plotting.md"]
Depth = 1
```

gha_license_id: NOASSERTION


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

### Description

SQL injection vulnerability in the management console in Symantec Endpoint Protection Manager (SEPM) 11.0 before 11.0.7405.1424 and 12.1 before 12.1.4023.4080, and Symantec Protection Center Small Business Edition 12.x before 12.1.4023.4080, allows remote authenticated users to execute arbitrary SQL commands via unspecified vectors.

### POC

#### Reference
- http://www.exploit-db.com/exploits/31853
- http://www.exploit-db.com/exploits/31917

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

repository: trickest/cve

branch_name: refs/heads/main

repo_name: trickest/cve


text:
<!--
This is an auto-generated markdown.
You can change it in "src/organisms/TitleBar.jsx" and run build:docs to update this file.
-->
# TitleBar
Title bar is used to give user control and information about navigation.

```example
<ThemeProvider>
  <TitleBar alignH="space-between" color="blueIntense">
    <View direction="row" alignV="center">
      <SquareIconButton icon="armchair-filled" iconColor="white" />
      <Text color="white" strong>
        Get Relaxed
      </Text>
    </View>
    <SquareIconButton icon="search-filled" iconColor="white" />
  </TitleBar>
</ThemeProvider>
```
## Usage
| Name        | Type           | Description  |
| ----------- |:--------------:| ------------:|
|onClick|func|Callback when title bar is clicked
|color|string|Color of the title bar<br>Default: 'grey'
|children|node|

repository: dan-lee/elements

repo_name: dan-lee/elements


text:
# Support Us

If you find this project useful, please consider supporting its ongoing development with a donation. Your donation will help cover the costs of development, maintenance, and infrastructure.

I believe in open source software and its power to change the world for the better. However, I also recognize that developing and maintaining high-quality open source projects requires significant time and effort. By supporting me, you are helping to ensure that this project remains healthy and active, and that it can continue to benefit people around the world.

Your contribution, no matter how small, is deeply appreciated.

Thank you for your support!

[![Donate](https://mostafaznv.github.io/donate/donate.svg)](https://mostafaznv.github.io/donate)

repository: mostafaznv/larupload

gha_language: PHP

repo_name: mostafaznv/larupload


text:
I am a refactoring for creating new classes.

You can define the name, superclass, category and subclasses.

I am used by other refactorings that may create new classes, for example, RBSplitClassRefactoring.

My preconditions verify that I use a valid class name, that does not yet exists as a global variable,
and the subclasses (if any) were direct subclasses of the superclass.

repository: guillep/pharo

gha_language: Smalltalk

repo_name: guillep/pharo


text:
Manual Testing can be done as followed:

For both `Examplinvi.AccountActivity.ASP.NETCore` and `Examplinvi.AccountActivity.ASP.NETCore.3.0` do the following

* `SetUserCredentials` -> configures the credentials that will be used to subscribe the user to Account Activity
* `DeleteWebhook` -> cleanup
* `RegisterWebhook` -> set webhook with ngrok url
* `SubscribeToAccountActivity` -> make webhook receive events for the registered user
* `SubscribeToEvents` -> events will now output in console

On twitter.com

* Wait for 10 second after `SubscribeToAccountActivity` as this operation is not instantaneous on Twitter
* `Create a new Tweet`

Verify

* Check the console printed out the creation of the tweet


text:
# Pseudo Markets Unified Web API

The unified .NET Core Web API for Pseudo Markets. This Web API exposes functionality for user account management, gathering equity and ETF data, executing trades, and viewing portfolio performance.

# Try it out
You can test out the API via Swagger: https://app.pseudomarkets.live/swagger/index.html

# Requirements
You'll need the following to build, run, debug, and host the Pseudo Markets Web API

 - Visual Studio 2019 w/ .NET Core 3.1 SDK installed
 - Microsoft SQL Server 2017+ (any version)
 - Microsoft SQL Server Management Studio (SSMS)
 - Windows Server with IIS enabled or RHEL/CentOS with Apache

Additional setup instructions can be found under the Wiki.

(c) 2019 - 2020 Pseudo Markets

repository: pseudomarkets/PMUnifiedAPI

gha_language: C#

repo_name: pseudomarkets/PMUnifiedAPI


text:
*Quick links :*
[Home](/README.md) - [Compressed Part 1](/compressed/PART1.md) - [Compressed Part 2](/compressed/PART2.md) - [Compressed Part 3](/compressed/PART3.md) - [Compressed Part 4](/compressed/PART4.md)
***

# Assembling the RGB LED and DHT-11 with the ESP8266

## Lab Objectives

In this Lab you will connect the NeoPixel LED and DHT11 Temperature sensor and learn how to control it from the ESP8266.  You will learn:

- The electrical connections of the LED and how to connect to the ESP8266
- The electrical connections needed to connect the DHT sensor to the ESP8266

### Introduction

### Step 1 - Connecting the Neopixel to the ESP8266 board

Now you need to connect the NeoPixel to the ESP8266.  Before you start making any connections please disconnect the device from your laptop/workstation so there is no power getting to the device.  You should never make any connection changes when the device is powered on.

Before making the connections we need to identify the 4 connecting pins coming out of the LED.  If you examine the rim of the pixel cover you will see that one side is flattened (this should be the opposite side from the shortest pin) - this pin next to the flattened side is the **Data Out** pin.  We will not be using this pin, as we only have a single pixel.  You can chain pixels together connecting the **Data Out** pin to the **Data In** pin of the next pixel in the chain.

The shortest pin on the Pixel is the **Data In**
The longest pin on the Pixel is **Ground**
The remaining pin is **+'ve voltage**, which should be 5v, but it works with 3.3v that the ESP8266 board provides.

So, with the shortest pin on the left and the flat side on the right the pinout is (left to right):

- Data In (shortest pin)
- +'ve Voltage
- Gnd (longest pin)
- Data Out (no connection)

You need to connect the Data In, +'ve voltage and ground to the ESP8266 board as shown in the diagram.  Take care to ensure that the connections are as shown, as connecting the wrong pins can damage the ESP8266 board and/or the LED:

![ModeMCU LED Wiring](/images/NodeMCU_LED_Wiring.jpg)

### Step 2 - Connect the DHT sensor to your ESP8266 board

The DHT11 or DHT22 sensors add the ability to sense temperature and humidity.  The DHT22 is a more accurate version of the DHT11.

Disconnect the ESP8266 board from your laptop/workstation before connecting the DHT sensor.

The DHT sensors have 4 connecting pins.  When looking at the front of the sensor (mesh case) with the pins at the bottom, the connections are (left to right):

- +'ve voltage
- Data
- Not used
- Ground

![ModeMCU DHT Wiring](/images/NodeMCU_DHT.jpg)

***
*Quick links :*
[Home](/README.md) - [Compressed Part 1](/compressed/PART1.md) - [Compressed Part 2](/compressed/PART2.md) - [Compressed Part 3](/compressed/PART3.md) - [Compressed Part 4](/compressed/PART4.md)


text:
# Project 12: MySQL Employee Tracker

Unit 12 MySQL Homework: Employee Tracker

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

## Description

Project 12 for the MySQL portion of the class tasked the student with building an employee tracker in the node.js enviorment using the MySQL dependency as the database and to take the inforamtion stored in the database to create an internal tool to view employee, role, and department data. This
project required knoweldge of how to form SQL queries using multiple tables to display the information needed for each specific option in the application. in addition, the project required adding, updating, and deleting existing information in the SQL database tables.

What sets my project apart from the rest of the projects are three main areas. First, I included all bonus options to the program mentioned on the project outline. Second, my application ensures to validate the correct inforamtion being added, updated, or deleted from the database. This was
important as employees may share the same first and last name and if you try to delete or update an employee without their unique identifying value (the employee ID number for example), this would cause multiple rows to get updated. My program will prompt the user for the first name, last name, and
ID number to ensure that the correct employee is being updated as once you make a change to the database, it is hard to revert those changes. Lastly, my application has been beautified using back tick console logs for better formatting of messages while using the program. In addition to this, I have
implemented the Chalk node package to add color to the console log messages. The console log messages are color coded in a way to help the user know what they are doing. For example, the requests to update/add/delete a user will print in yellow and success messages will print in green. Any aborted
actions will print in blue.

This project was not too difficult and as I already had a background in PostgreSQL, it was not that hard to forumlate the querys to grab the inforamtion from the database I needed to perform the application actions. The more difficult concept to get down for this project was ensuring to design this
program with validation in mind to be sure that an employee removed or updated was the employee in question. To do this, as previously mentioned, I had to have the user confirm the unique identifyer for the employee which would be the employee.id value from the employee table. This prevents any
action from updating non-related accounts.

## Demo

<img src="/DemoImgs/EmployeeManagerMySQLGif.gif?raw=true">

## Table of Contents

-   [Installation](#installation)
-   [Usage](#usage)
-   [Credits](#credits)
-   [License](#license)
-   [Contributing](#contributing)
-   [Questions](#questions)

## Installation

To install this application, first, branch the Github Repo and clone the repo to your local machine. Then, you will need to install the node dependencies which can be done by running the npm install command in your terminal/bash shell.

After the dependencies have been installed, you will need to populate your MySQL database. This can be done with dummy data that is found in the sqlFiles folder. There are two files for this. First the db.sql which will creat the database and the three tables for employee, role, and department.
Second, there is a seed.sql file which will populate the database with data for each table.

After populating the data, you will need to add your MySQL password to the server.js file to ensure tha the connection to the database can be made and requests for actions can be pushed to the database.

Once this has been completed, you are ready to use the application!

## Usage

Once everything has been set up, the application can be launched by running the command node server.js or npm start. You will then be prompted with the header for the program shown in ASCII art and will have a set of options to pick from. From here, you can select what action you want to take.

## Credits

This application was completed by Jeff Quittman as a project for UCLA/Trilogy's Full Stack Software Development Bootcamp.

Dependencies for this project include the node modules:

Inquirer - for creating question prompts in the CLI. Chalk - for creating colorized console.log messages MySQL - for connecting the MySQL database to Node.js Console.Table - for console logging the table information from the SQL file in an easy to read format.

## License

    								MIT License

    		Unit 12 MySQL Homework: Employee Tracker   Copyright (C) 2020 Jeffrey Quittman

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

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

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

## Contributing

If you would like to contribute to this application, please feel free to email me via the email found in the questions section and we can discuss how to collaborate and enhance this application

## Tests

N/A

## Questions

-   For any questions related to this applicaiton, please contact me at<EMAIL_ADDRESS>
-   Please use this link to access my Github Profile: [https://github.com/JeffQuit](https://github.com/JeffQuit)

repository: JeffQuit/MySQL---Employee-Tracker-CLI

gha_language: JavaScript

repo_name: JeffQuit/MySQL---Employee-Tracker-CLI


text:
## Change log
----------------------

Version 4.29.0
-------------

ADDED:

- provide package.html for the javadoc of packages
- Donation buttons extended for paypal and bitcoin
- added new meanbean dependency for better unit testing of beans

CHANGED:

- update of parent version and of dependencies versions
- javadoc extended and improved

Notable links:
[keep a changelog](http://keepachangelog.com/en/1.0.0/) Don’t let your friends dump git logs into changelogs

repository: evo-sdk/jcommons-lang

repo_name: evo-sdk/jcommons-lang


text:
---
title: Taxonomy templates
description: Taxonomy templating includes taxonomy list pages, taxonomy terms pages, and using taxonomies in your single page templates.
categories: [templates]
keywords: [taxonomies,metadata,front matter,terms,templates]
menu:
  docs:
    parent: templates
    weight: 90
weight: 90
aliases: [/taxonomies/displaying/,/templates/terms/,/indexes/displaying/,/taxonomies/templates/,/indexes/ordering/, /templates/taxonomies/, /templates/taxonomy/]
toc: true
---

Hugo includes support for user-defined groupings of content called **taxonomies**. Taxonomies are classifications that demonstrate logical relationships between content. See [Taxonomies under Content Management](/content-management/taxonomies) if you are unfamiliar with how Hugo leverages this powerful feature.

Hugo provides multiple ways to use taxonomies throughout your project templates:

* Order the way content associated with a taxonomy term is displayed in a [taxonomy list template](#taxonomy-list-templates)
* Order the way the terms for a taxonomy are displayed in a [taxonomy terms template](#taxonomy-terms-templates)
* List a single content's taxonomy terms within a [single page template]

## Taxonomy list templates

Taxonomy list page templates are lists and therefore have all the variables and methods available to [list pages][lists].

### Taxonomy list template lookup order

See [Template Lookup](/templates/lookup-order/).

## Taxonomy terms templates

### Taxonomy terms templates lookup order

See [Template Lookup](/templates/lookup-order/).

### Taxonomy methods

A Taxonomy is a `map[string]WeightedPages`.

.Get(term)
: Returns the WeightedPages for a term.

.Count(term)
: The number of pieces of content assigned to this term.

.Alphabetical
: Returns an OrderedTaxonomy (slice) ordered by Term.

.ByCount
: Returns an OrderedTaxonomy (slice) ordered by number of entries.

.Reverse
: Returns an OrderedTaxonomy (slice) in reverse order. Must be used with an OrderedTaxonomy.

### OrderedTaxonomy

Since Maps are unordered, an OrderedTaxonomy is a special structure that has a defined order.

```go
[]struct {
    Name          string
    WeightedPages WeightedPages
}
```

Each element of the slice has:

.Term
: The Term used.

.WeightedPages
: A slice of Weighted Pages.

.Count
: The number of pieces of content assigned to this term.

.Pages
: All Pages assigned to this term. All [list methods][renderlists] are available to this.

## WeightedPages

WeightedPages is simply a slice of WeightedPage.

```go
type WeightedPages []WeightedPage
```

.Count(term)
: The number of pieces of content assigned to this term.

.Pages
: Returns a slice of pages, which then can be ordered using any of the [list methods][renderlists].

## Displaying custom metadata in taxonomy terms templates

If you need to display custom metadata for each taxonomy term, you will need to create a page for that term at `/content/<TAXONOMY>/<TERM>/_index.md` and add your metadata in its front matter, [as explained in the taxonomies documentation](/content-management/taxonomies/#add-custom-metadata-to-a-taxonomy-or-term). Based on the Actors taxonomy example shown there, within your taxonomy terms template, you may access your custom fields by iterating through the variable `.Pages` as such:

```go-html-template
<ul>
  {{ range .Pages }}
    <li>
      <a href="{{ .Permalink }}">{{ .Title }}</a>
      {{ .Params.wikipedia }}
    </li>
  {{ end }}
</ul>
```

## Order taxonomies

Taxonomies can be ordered by either alphabetical key or by the number of content pieces assigned to that key.

### Order alphabetically example

```go-html-template
<ul>
  {{ range .Data.Terms.Alphabetical }}
    <li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> {{ .Count }}</li>
  {{ end }}
</ul>
```

## Order content within taxonomies

Hugo uses both `date` and `weight` to order content within taxonomies.

Each piece of content in Hugo can optionally be assigned a date. It can also be assigned a weight for each taxonomy it is assigned to.

When iterating over content within taxonomies, the default sort is the same as that used for section and list pages: first by weight, then by date. This means that if the weights for two pieces of content are the same, then the more recent content will be displayed first.

The default weight for any piece of content is 0. Zero means "does not have a weight", not "has a weight of numerical value zero".

Weights of zero are thus treated specially: if two pages have unequal weights, and one of them is zero, then the zero-weighted page will always appear after the other one, regardless of the other's weight. Zero weights should thus be used with care: for example, if both positive and negative weights are used to extend a sequence in both directions, a zero-weighted page will appear not in the middle of the list, but at the end.

### Assign weight

Content can be assigned weight for each taxonomy that it's assigned to.

{{}}
tags = [ "a", "b", "c" ]
tags_weight = 22
categories = ["d"]
title = "Example"
categories_weight = 44
{{}}

The convention is `taxonomyname_weight`.

In the above example, this piece of content has a weight of 22 which applies to the sorting when rendering the pages assigned to the "a", "b" and "c" values of the 'tag' taxonomy.

It has also been assigned the weight of 44 when rendering the 'd' category.

With this the same piece of content can appear in different positions in different taxonomies.

Currently taxonomies only support the default ordering of content which is weight -> date.

There are two different templates that the use of taxonomies will require you to provide.

Both templates are covered in detail in the templates section.

A [list template](/templates/lists/) is any template that will be used to render multiple pieces of content in a single html page. This template will be used to generate all the automatically created taxonomy pages.

A [taxonomy template](/templates/taxonomy-templates/) is a template used to
generate the list of terms for a given template.

There are four common ways you can display the data in your
taxonomies in addition to the automatic taxonomy pages created by hugo
using the [list templates](/templates/lists/):

1. For a given piece of content, you can list the terms attached
2. For a given piece of content, you can list other content with the same
   term
3. You can list all terms for a taxonomy
4. You can list all taxonomies (with their terms)

## List terms assigned to a page

List the terms assigned to a page using the `.Page.GetTerms` method.

To render an unordered list:

```go-html-template
{{ $taxonomy := "tags" }}
{{ with .GetTerms $taxonomy }}
  <p>{{ (site.GetPage $taxonomy).LinkTitle }}:</p>
  <ul>
    {{ range . }}
      <li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
    {{ end }}
  </ul>
{{ end }}
```

To render a comma-delimited list:

```go-html-template
{{ $taxonomy := "tags" }}
{{ with .GetTerms $taxonomy }}
  <p>
    {{ (site.GetPage $taxonomy).LinkTitle }}:
    {{ range $k, $_ := . -}}
      {{ if $k }}, {{ end }}
      <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
    {{- end }}
  </p>
{{ end }}
```

## List content with the same taxonomy term

If you are using a taxonomy for something like a series of posts, you can list individual pages associated with the same taxonomy. This is also a quick and dirty method for showing related content:

### Example: showing content in same series

```go-html-template
<ul>
  {{ range .Site.Taxonomies.series.golang }}
    <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>
  {{ end }}
</ul>
```

## List all content in a given taxonomy

This would be very useful in a sidebar as “featured content”. You could even have different sections of “featured content” by assigning different terms to the content.

### Example: grouping "featured" content

```go-html-template
<section id="menu">
  <ul>
    {{ range $key, $taxonomy := .Site.Taxonomies.featured }}
      <li>{{ $key }}</li>
      <ul>
        {{ range $taxonomy.Pages }}
          <li hugo-nav="{{ .RelPermalink }}"><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
        {{ end }}
      </ul>
    {{ end }}
  </ul>
</section>
```

## Render a site's taxonomies

If you wish to display the list of all keys for your site's taxonomy, you can retrieve them from the [`.Site` variable][sitevars] available on every page.

This may take the form of a tag cloud, a menu, or simply a list.

The following example displays all terms in a site's tags taxonomy:

### Example: list all site tags

```go-html-template
<ul>
  {{ range .Site.Taxonomies.tags }}
    <li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> {{ .Count }}</li>
  {{ end }}
</ul>
```

### Example: list all taxonomies, terms, and assigned content

This example will list all taxonomies and their terms, as well as all the content assigned to each of the terms.

{{}}

  {{ range $taxonomy, $terms := site.Taxonomies }}

      {{ with site.GetPage $taxonomy }}
        {{ .LinkTitle }}
      {{ end }}

        {{ range $term, $weightedPages := $terms }}

            {{ .Page.LinkTitle }}

              {{ range $weightedPages }}

{{ .LinkTitle }}

              {{ end }}

        {{ end }}

  {{ end }}

{{}}

## `.Site.GetPage` for taxonomies

Because taxonomies are lists, the [`.GetPage` function][getpage] can be used to get all the pages associated with a particular taxonomy term using a terse syntax. The following ranges over the full list of tags on your site and links to each of the individual taxonomy pages for each term without having to use the more fragile URL construction of the ["List All Site Tags" example above](#example-list-all-site-tags):

{{}}
{{ $taxo := "tags" }}

  {{ with ($.Site.GetPage (printf "/%s" $taxo)) }}
    {{ range .Pages }}

{{ .Title }}

    {{ end }}
  {{ end }}

{{}}

[delimit]: /functions/delimit/
[getpage]: /functions/getpage/
[lists]: /templates/lists/
[renderlists]: /templates/lists/
[single page template]: /templates/single-page-templates/
[sitevars]: /variables/site/

repository: bep/hugo

gha_language: Go

repo_name: bep/hugo


text:
Hold RXBOT quickly and easily on your Discord server! RXBOT is powered by [Jackson](https://github.com/JacksonWellHemissi/RxBot).

![Example](https://i.imgur.com/nCpI72e.png)
![Example](https://i.imgur.com/mGzlk7Q.png)
## Invite
If you'd like to add **RxBot** to your server, use the following link:<br>
🔗 **https://discord.com/oauth2/authorize?client_id=723686131526533121&permissions=2080374975&scope=bot**

## Usage
* **$ghelp** - It displays a lot of commands that number up to 30 different commands
* **$gbot** - Knowing the status of the bot, the servers it entered, and the speed of response
* **$gnews**  - The latest news of the bot and the new developments, modifications and a lot more
## Musuic Commands
* **$mhelp** - Display all commands for music to change that from play, search, refresh, and skipel
* **$mplay** - To play the music via a link from YouTube or via the name, but you only have to enter an voice room for this

## Suggests, Bugs, Feature Requests
If you find bugs or would like to suggest features, Contact me via the bot **$gcontact**
## Self-Hosting
Self-hosting your own copy of this bot is not supported.The bot is separate from songs and general commands and there is a backup system running in the background to avoid problems

repository: OussamaHemissi/RxBot

repo_name: OussamaHemissi/RxBot


text:
# Services

## Handler

There are a couple of concepts related to services.

* [http.Handler](https://golang.org/pkg/net/http/#Handler)

The core interface for handline HTTP request.

```go
type Handler interface {
    ServeHTTP(ResponseWriter, *Request)
}
```

## Handlerfunc

You can turn a function (with the right signature) into a type, that satisfies
http.Handler.

* [http.HandlerFunc](https://golang.org/pkg/net/http/#HandlerFunc)

> The HandlerFunc type is an adapter to allow the use of ordinary functions as
> HTTP handlers. If f is a function with the appropriate signature,
> HandlerFunc(f) is a Handler that calls f.

With first class functions, it is possible to start an HTTP handler with a
single (long) line.

## HandleFunc

If we type `http.HandleFunc`, we are working on the `DefaultServeMux`, a
[http.ServeMux](https://golang.org/pkg/net/http/#ServeMux) added for convenience
in the http package.

> ServeMux is an HTTP request multiplexer. It matches the URL of each incoming
> request against a list of registered patterns and calls the handler for the
> pattern that most closely matches the URL.

The `ServeMux` is itself an HTTP handler, as it implements
[ServeHTTP](https://golang.org/pkg/net/http/#ServeMux.ServeHTTP).

## Code Review

* [Example 1](00-server/main.go)
* [Example 2](01-server-handlerfunc/main.go)
* [Example 3](02-server-handler/main.go)
* [Example 4](03-server-handle)
* [Example 4](04-server-handlefunc/main.go)
* [Example 5](05-two-handlers/main.go)
* [Example 6](06-handler-methods/main.go)
* [Example 7](07-methods/main.go)
* [Example 8](08-post/main.go)
* [Example 9](09-pattern/main.go)
* [Example 10](10-mux/main.go)
* [Example 11](11-gorilla-mux/main.go)

## Exercises

* [Debug Handler](template1/main.go) ([Answer](exercise1/main.go))

## Project

A todo web application.

* [todosvc](https://github.com/miku/todosvc)

repository: miku/goexp

repo_name: miku/goexp


text:
# Fuzzy Telegram
*A simple vanilla PHP web application displaying random quote of the day.*

## Details
Uses Slim, and bits.

## Requirements
pdo_mysql, php-xml

## Installation
composer install

## Development Environment
docker-compose up

Run migrations (phinx):

docker exec -it [container id] vendor/bin/phinx migrate

repository: iaibai/fuzzy-telegram

repo_name: iaibai/fuzzy-telegram


text:
# ogb-molecule-comp
This repository houses code for submission to the Open Graph Benchmark (OGB).

Results were submitted on September 21st, 2020 on behalf of Vir Biotechnology (www.vir.bio).

This submission focuses on two competitions related to molecular classification.

These are:
- ogb-molhiv (~40,000 compounds, one classification task)
- ogbg-molpcba (~430,000 compounds, 128 classification tasks)

For more information, see the graph classication datasets page on OGB:
https://ogb.stanford.edu/docs/graphprop/#ogbg-mol

Our aim with this submission is to establish a baseline for graph neural network
performance by demonstrating the performance of Morgan fingerprints combined
with untuned Random Forest classification.

# Results
For the ogb-molhiv competition, ROC AUC was 0.842 ± 0.003 on the validation set.
On the test set, ROC AUC was 0.806 ± 0.001. At the time of submission,
this resulted in a first place leaderboard standing.

For the ogbg-molpcba, average precision (AP) was 0.222 ± 0.0002 on the validation set.
Test set AP was 0.205 ± .0003. This was sufficient for fifth place standing
at the time of submission.

# Reproducibility
Below is the output of `conda list`
```
numpy                     1.18.5           py37ha1c710e_0
ogb                       1.2.2                    pypi_0    pypi
pandas                    1.1.0                    pypi_0    pypi
rdkit                     2<IP_ADDRESS>      py37hc20afe1_1    rdkit
tqdm                      4.48.2                     py_0
typing                    <IP_ADDRESS>                  pypi_0    pypi
scikit-learn              0.22.2.post1             pypi_0    pypi
```
Code was run on python 3.7.7.

repository: Yelrose/ogb-molecule-comp

repo_name: Yelrose/ogb-molecule-comp


text:
# Query usage {#task_187634 .task}

You can use this function to obtain usage data of a specific period of time, and analyze the data to make more informed business decisions. This topic describes the usage query function and how to query usage data.

You can query data based on the following conditions:

-   Domain or user.
-   Traffic, bandwidth, or number of requests.
-   Billing region. For more information, see [Basic service billing](../reseller.en-US/Pricing/Billing method/Basic service billing.md#)[Billing regions](../reseller.en-US/Pricing/Billing method/Basic service billing.md#section_gl3_gdl_l2b).

**Note:** You can specify a time range. You can query data of the last three months at most.

1.  Log on to the [Alibaba Cloud CDN console](https://partners-intl.aliyun.com/login-required#cdn).
2.  In the left-side navigation pane, click **Usage**.
3.  On the Usage tab, select query conditions such as traffic/bandwidth, number of requests, domain, time range, and billing region, and click **Search**.

    ![](images/8923_en-US_source.png)

    **Note:** If you want to export bills or billing details, see [Export a bill](reseller.en-US/Service Management/Usage Query/Export a bill.md#) or [Export details](reseller.en-US/Service Management/Usage Query/Export details.md#).

path: /intl.en-US/Service Management/Usage Query/Query usage.md

filename: Query usage.md


text:
# Testing `check_branches.sh`

The tests on `check_branches.sh` are in the file `check_branches_test.sh`, which relies on the testing framework [shUnit2](https://github.com/kward/shunit2).
To run the tests, two steps are required:

1. Install shUnit2:

```bash
$ sudo apt-get install shunit2 # for debian/ubuntu linux
$ brew install shunit2 # for macos
```

2. Run `check_branches_test.sh`:

```bash
$ ./check_branches_test.sh
```

repository: jianguda/repairnator

repo_name: jianguda/repairnator


text:
# multiline-cmdline

Constructs a command line from a multiline file, and sends it to `/bin/bash -c`.

* Lines starting with `#` are skipped. This lets you add comments and comment-out things.
* Otherwise, lines are joined, i.e., newlines simply become spaces.

Example:

```
#!/usr/bin/env mlcl
ls
# this is a comment, and the next one comments out something
# -L
-l -a
--color='never'
"${PWD}"
;
echo -e '\nCiao!\n'
```

This results in exec'ing `/bin/bash` with:

* argv[1]: `-c`
* argv[2]: `ls -l -a --color='never' "${PWD}" ; echo -e '\nCiao!\n' `

repository: treblacy/multiline-cmdline

repo_name: treblacy/multiline-cmdline


text:
# Authorization in corda

This Project help you to create the User Account in Node and Authorized the user on the basis of password.

# Pre-Requisites

See https://docs.corda.net/getting-set-up.html.

# Usage

### Shell

When started via the command line, each node will display an interactive shell:

    Welcome to the Corda interactive shell.
    Useful commands include 'help' to see what is available, and 'bye' to shut down the node.

    Tue Nov 06 11:58:13 GMT 2018>>>

You can use this shell to interact with your node. For example, enter `run networkMapSnapshot` to see a list of
the other nodes on the network:

    Tue Jan 07 15:23:22 IST 2020>>> run networkMapSnapshot
    - addresses:
         -"localhost:10008"
           legalIdentitiesAndCerts:
         -"O=PartyB, L=New York, C=US"
           platformVersion: 5
           serial:<PHONE_NUMBER>582
    - addresses:
         -"localhost:10002"
           legalIdentitiesAndCerts:
         -"O=Notary, L=London, C=GB"
           platformVersion: 5
           serial:<PHONE_NUMBER>531
    - addresses:
         -"localhost:10005"
           legalIdentitiesAndCerts:
         -"O=PartyA, L=London, C=GB"
           platformVersion: 5
           serial:<PHONE_NUMBER>063

You can find out more about the node shell [here](https://docs.corda.net/shell.html).

### Create Key First

    Tue Jan 07 15:23:19 IST 2020>>> flow start CreateKey

    ✅   Starting
    ➡   Done
    Flow completed with result: WNv3KutignVD6TdwSLbLDOfOLSztuFQr

### Create UserAcount on Party

    Tue Jan 07 15:19:15 IST 2020>>> flow start CreateAuthFlow accounttName: Prateek, toparty: PartyA, Authsecret: WNv3KutignVD6TdwSLbLDOfOLSztuFQr

     ✅   Starting
          Requesting signature by notary service
              Requesting signature by Notary service
              Validating response from Notary service
     ✅   Broadcasting transaction to participants
    ➡   Done
    Flow completed with result: SignedTransaction(id=B3FF09C6BBBD317B5896576EE6EBE5413DB98DD055E765F157E4521330746365)

### Check the state data on Party

     Tue Jan 07 15:28:49 IST 2020>>> run vaultQuery contractStateType: com.template.states.AuthState
     states:
     - state:
         data: !<com.template.states.AuthState>
           Username: "Prateek"
           Authtoken: "dN2fEkH+vwmjYmlarozo5N3bD9AlFMOysXIMSPwC5WEpbyXD0cnmVy/I+ZmQIRdE"
           loginto: "O=PartyA, L=London, C=GB"
           linearId:
             externalId: null
             id: "700d0535-2348-4517-a10a-70317e6476f7"
         contract: "com.template.contracts.AuthContract"
         notary: "O=Notary, L=London, C=GB"
         encumbrance: null
         constraint: !<net.corda.core.contracts.SignatureAttachmentConstraint>
           key: "aSq9DsNNvGhYxYyqA9wd2eduEAZ5AXWgJTbTEw3G5d2maAq8vtLE4kZHgCs5jcB1N31cx1hpsLeqG2ngSysVHqcXhbNts6SkRWDaV7xNcr6MtcbufGUchxredBb6"
       ref:
         txhash: "B3FF09C6BBBD317B5896576EE6EBE5413DB98DD055E765F157E4521330746365"
         index: 0
     statesMetadata:
     - ref:
         txhash: "B3FF09C6BBBD317B5896576EE6EBE5413DB98DD055E765F157E4521330746365"
         index: 0
       contractStateClassName: "com.template.states.AuthState"
       recordedTime: "2020-01-07T09:50:33.893Z"
       consumedTime: null
       status: "UNCONSUMED"
       notary: "O=Notary, L=London, C=GB"
       lockId: null
       lockUpdateTime: null
       relevancyStatus: "RELEVANT"
       constraintInfo:
         constraint:
           key: "aSq9DsNNvGhYxYyqA9wd2eduEAZ5AXWgJTbTEw3G5d2maAq8vtLE4kZHgCs5jcB1N31cx1hpsLeqG2ngSysVHqcXhbNts6SkRWDaV7xNcr6MtcbufGUchxredBb6"
     totalStatesAvailable: -1
     stateTypes: "UNCONSUMED"
     otherResults: []

  Check that the above has Authtoken which is encrypted:-

### Checking whether User is Authorised or not

    Tue Jan 07 15:22:48 IST 2020>>> flow start Validation Username: Prateek, AuthSecret: WNv3KutignVD6TdwSLbLDOfOLSztuFQr

    ➡   Starting
          Done
         You are validated user

### If user put some different Authtoken

         Tue Jan 07 15:22:48 IST 2020>>> flow start Validation Username: Prateek, AuthSecret: WNv3KutignVD6TdwSLbLDOfOLSztuTYU

         ➡   Starting

           Not validated user

### Trying to create same user with same Name on same party

    Tue Jan 07 15:25:03 IST 2020>>> flow start CreateAuthFlow accounttName: Prateek, toparty: PartyA, Authsecret: mdx2ivd87jKwDbtnkz6Lq0eAZf2lolUC

    ➡   Starting
    🚫   Done
    ☠   java.lang.IllegalArgumentException: There is already an account registered with the specified name Prateek.
    	☠   java.lang.IllegalArgumentException: There is already an account registered with the specified name Prateek.

### Check accounts on node

    Wed Jan 08 17:46:45 IST 2020>>> flow start AccountsonNode

     ✅   Starting
    ➡   Done
    Flow completed with result: [Prateek, Yudiz]


text:
---
title: Fun Facts About Switzerland, Part III
date: '2021-11-17T22:12:00.000Z'
description: ''
type: post
cover: './cover.jpg'
---

What is forbidden to ask in a Swiss restaurant? Where all the people go on Sundays? Where do all the cows go in summer? What is a Hüsli?

Our journey continues with another post about Switzerland. This time we will talk about life in the city, traveling and languages.

Bratwurst? 🌭

---

The most important question I get from my friends from Greece is related with nightlife. You see, Thessaloniki, my hometown, has a very vivid nightlife. People like to go out several times per week. We are even receive jokes about the coffee habit that we have from other cities of Greece.

Well, I have to say, Zurich has a pretty balanced nightlife. You can potentially find a wide list of options for entertainment, but it may be a little bit limited. Don't expect the variety of Berlin or London, for example.

What was unusual for me here is the fact that people are drinking on their way to the bar. You will see a lot of teenagers carrying beers on the street or sometimes even in the busses. No, they are not alcoholics, they are just trying to reduce their costs.

Public drinking is awesome in the summer. You don't need to dress perfectly to go out, you don't need to wait for hours in the lines, or to impress the doorman guy. You call your friends, you grab a couple of beers, snacks, sometimes a fully charged bluetooth speaker, which at the end it only works for 15 minutes. There are plenty of places to go, usually people prefer to stay by the lake. The vibe is really relaxed. Sometimes you may be lucky to find a spot next to a band, and you can enjoy excquisite music. Sometimes the music can be really poor.

![Credit: [Wyron A](https://unsplash.com/photos/PnFAa1ro9b0)](images/wyron-a-PnFAa1ro9b0-unsplash.jpg)
_Credit: [Wyron A](https://unsplash.com/photos/PnFAa1ro9b0)_

The story can be a little bit different for other cities. I have the sense that most of the Swiss cities are very silent at night, except of Zurich. The most disappointing for me was Geneva. Don't be surprised if you find no people on the streets on a Saturday summer night.

Zurich is known as the venue for the brightest Swiss festivals, events, and celebrations. Sometimes the whole city is being transformed into a trance club. You may enjoy popular bands and DJs. And it goes really wild. But the impressive thing is, the next morning, everything goes back to normal. No more confetti, empty cups, bottles, DNA, or any other waste. It's like nothing ever happened.

---

If you ever visit a Swiss city, you will most probably notice the water fountains. And I'm not talking about these large fountains that are used for decoration purposes, I'm talking about drinkable water flows. For example, in Zurich you will find 1,200 fountains.

In your face Fontana di Trevi.

A lot of people are carrying a small water bottle and they fill it up with fresh water.

![Credit: [Dorothea OLDANI](https://unsplash.com/photos/c01oPaDbxWw)](images/dorothea-oldani-c01oPaDbxWw-unsplash.jpg)
_Credit: [Dorothea OLDANI](https://unsplash.com/photos/c01oPaDbxWw)_

What is really weird is if you ever ask for tap water in a restaurant. The waiters will look at you like you are doing a crime or something. It's kinda ironic if you think that the water quality of Switzerland is one of the best you can find on earth.

---

What also impresses me is the fact that people travel a lot. And I mean a lot! Sometimes it's hard to meet friends because they may be in different mountains. The author is not excluded. Alongside Switzerland is in the center of Europe. For starters, Switzerland is next to Germany, Italy, French and Austria. The Swiss salary is also another factor that makes people less concerned about the hospitality and transportation costs.

Having a stressed week? No problem. Just book a Chalet on a mountain for the weekend and enjoy the iced view while you are relaxing in your warm Jacuzzi. What? It is summer you said? Kein Problem. Get a plane for Malta and in 2 hours you can get louse at the beach. It only costs hundred Swiss franks. That's what you will pay if you go out Saturday night anyway.

---

People in Switzerland like to plan in advance. Don't be surprised if you don't find any friend to join you for a coffee this weekend. Most probably they have planned to go to a mountain, ride the whole city with a bicycle, visit their parents in Saint Gallen, or even being in another country for a long weekend trip.

I have observed that people are more active here. They will most likely prefer to spend 1-2 days in their free time on the mountains, doing sports or enjoying the nature. I also changed my habits for the better.

![C441A2E0-E06A-484E-8952-322CE647CE5C_1_105_c.jpeg](images/C441A2E0-E06A-484E-8952-322CE647CE5C_1_105_c.jpeg)

That's why you may not find a lot of people in the city on Sundays. They are most likely to some away or they enjoy their family time. Restaurants and coffee bars are also likely to be closed for Sunday.

This means you should definitely reserve your table in advance. I have a friend who tried to book a table for brunch and they told him that the next available date is in one month.

> Even cows in Switzerland go for holidays during the summer months.

I'm not kidding. According to the [Federal Office for Agriculture](https://www.agrarbericht.ch/de/betrieb/strukturen/soemmerungsbetriebe?_sm_au_=iVVFrz6tDqV3040H), around 270,000 cows are marched from their valley farms to mountain meadows at the start of every summer, just to come back down again in early autumn. Apparently this [increases the quality of the milk](https://www.swissinfo.ch/eng/milk-run_why-swiss-cows-climb-mountains/44380436). Which is an extremely important ingredient for the famous Swiss cheese.

So don't get bored, do it like a cow!

> I have observed that many of my Swiss friends, travelled from 6 months up to a year somewhere in the world, right after their university studies.

Besides the fact that it's costly, and it's not an easy to manage if your budget doesn't allow it, I find it one of the nicest things to do in your life. You have the opportunity to discover the world and earn new experiences. Plus, you are more relaxed and prepared to ride your career train. Of course, as everything in this life, it depends on your wealth and life situation.

But don't let the money discourage you.  A lot of people take this opportunity to learn, for example Italian, so they leave for 1-3 months in Italy and they are working from there, practicing their language skills with native speakers. Companies will also welcome your decision, if the language is important to their business.

Now, you may ask, how you can manage to leave everything behind for such a long period of time. The best way is by subletting your apartment. You will help other people, and more precisely students, to find a decent and affordable place to stay. And the amount of money you will save is usually enough to pay for your accommodation.

---

Now I would like to open another big topic, which is the language.

> Switzerland has 4 official languages; German, French, Italian and Romansh. It is common to find people that speak or at least being able to understand most of the languages.

In Zurich people speak German (Deutsch). To be able to communicate with them it requires a lot of effort. You start by taking German classes. After some months, you feel empowered with your achievements. You can perfectly communicate with your teacher. Now it is time to practice your skills with locals, you think. What can possibly go wrong, right? Well, my friend, I'm afraid it's not gonna work.

![Luzern is one of the most beautiful Swiss cities.](images/luzern-by-night.jpeg)
_Luzern is one of the most beautiful Swiss cities._

In Switzerland we speak Swiss German (Schwiizertüütsch). Don't be surprised if you don't understand a thing from what you hear in the streets, even if you you speak German fluently. You may want to spend some time to learn the dialect. But that's also not enough.

And to make it even more difficult, the cantons of the German part have their own dialects. People from Zurich speak differently from people from Bern. Some cities have a lighter version, others a forcefull one.

What I was struggling the most here in Zurich is to learn how to greet people. You always need to check for the other person's age. There are different phrases for people younger than you, and different for older people. Also there are formal and informal phrases. You can't just say Grüezi to a kid that passes by, it will be very formal.

Of course, the more Swiss German you speak, the more people will like you, no matter which phrases you are using. Good luck when you go back to German-speaking countries. You now have the habit to speak with your Swiss dialect. I have a friend who received complaints because he wasn't speaking German in a German train somewhere in Germany. Of course, the old lady who complained didn't know this is a German dialect.

![Swiss house under the mountain](images/swiss-mountain-house.jpeg)

The only Swiss word I used to know before I move here was Müesli.

Yes, you most probably know it as well, it's the healthy yogurt companion. What I didn't know is that Swiss German is characterized by the frequent use of the diminutive. This means that nouns are usually “reduced in size” by adding the suffix “li” to them.

If you ever want to make fun of a Swiss friend, just put -li at the end of every word. Who knows, maybe you will catch some.

---

Once again, thank you for reading this post. I am saving the forth part for next time, which will probably be the last. After that, I will continue with my boring programming topics. I forgot how to write technical articles after all these posts.

The beautiful cover is taken at the lake Klöntalersee, by [Dave Ruck](https://unsplash.com/photos/pxjN_6Z_3x8)