text:
# flask-raspberrypi-servo

Install a webserver, and deploy a website on a raspberry pi to move a servo motor.

Follow these steps before you start cloning the repo.

set keyboard to english us

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install vim

~/.vimrc

set smartindent

set tabstop=4

set expandtab

sudo apt-get install nginx

sudo service nginx start

sudo apt-get install build-essential python-dev

sudo pip install uwsgi

sudo pip install flask
#

cd Desktop
mkdir switch
cd switch

#

vim app.py

    from flask import Flask
    app = Flask(__name__)

    @app.route("/")
    @app.route("/home")
    def home():
        return "hello world"

    if __name__ == "__main__":
	app.run()
#
python app.py
try running the app using python and mod_wsgi:

python app.py

try running the app using uwsgi:

uwsgi --socket <IP_ADDRESS>:8000 --protocol=http -w app:app

make wsgi init file in the app directory

    [uwsgi]

    chdir = /home/pi/Desktop/switch
    module = app:app

    master = true
    processes = 1
    threads = 2

    uid = pi
    gid = pi
    socket = /tmp/app.sock
    chmod-socket = 777
    vacuum = true

    die-on-term = true

#
Test initialization

uwsgi --ini /home/Desktop/switch/uwsgi_config.ini

check that a file was created at /tmp/ with app.sock
#

Set uswgi to start after reboot

sudo vi /etc/rc.local

add this line after exit 0

/usr/local/bin/uwsgi --ini /home/pi/Desktop/switch/uwsgi_config.ini --uid pi --gid pi --daemonize /var/log/uwsgi.log

#
sudo rm /etc/nginx/sites-enabled/default

sudo service nginx start

sudo vim /etc/nginx/sites-available/app_proxy

    server {
    listen 80;
    server_name localhost;

    location / { try_files $uri @app; }
    location @app {
    include uwsgi_params;
    uwsgi_pass unix:/tmp/app.sock;
    }
    }

sudo ln -s /etc/nginx/sites-available/app_proxy /etc/nginx/sites_enabled

sudo service nginx restart

make sure there is an init call to uwsgi that creates the 777 socket
and check localhost:80

repository: PabloEckardt/flask-raspberrypi-servo

repo_name: PabloEckardt/flask-raspberrypi-servo


text:
---
name: Xamarin.Android - Hello World (Publishing)
description: "A simple hello world type application to that goes along with the Xamarin topic Publishing an Application (get started)"
page_type: sample
languages:
- csharp
products:
- xamarin
extensions:
    tags:
    - getstarted
urlFragment: helloworldpublishing
---
# Hello World (Publishing for Xamarin.Android)

This is a simple hello world type application to that goes along with
the Xamarin topic [Publishing an Application](https://docs.microsoft.com/xamarin/android/deploy-test/publishing/).

This project contains a sample keystore called `xample.keystore`. This
keystore is only for demonstration purposes. Do not use it for anything
other than example purposes. The password is `password`, and the
keystore contains one key named `publishingdoc` with the password of
`password`.

![Android app screenshot](Screenshots/screenshot.png)

repository: xamarin/monodroid-samples

branch_name: refs/heads/main

extension: md

gha_language: C#

license_type: permissive

repo_name: xamarin/monodroid-samples


text:
# Challenge 4: A perfect fit

Being happy with your work from yesterday, Santa asks you to do even more research: This time, he wants to have an idea of how much magic he needs to use in order to teleport his presents down each persons chimney. When asking how to calculate the amount of magic required, Santa says:

"Well, if the present fits through the chimney, it does not require any. If it does not, the present needs to be teleported. In that case, the amount of magic required is equal to the volume of the present.

## Task

You are to design a function, that takes the following arguments:

- `W` - the width of the chimney.
- `H` - the height of the chimney.
- `X` - the length of the present.
- `Y` - the height of the present.
- `Z` - the depth of the present.

The function should return the amount of magic required to get the present through the chimney.

Important thing to remember: A present can be rotated in order to fit through!

## Example

```yaml
W=2, H=2, X=1, Y=1, Z=3
Return: 0

W=4, H=1, X=5, Y=3, Z=2

Return: 30

W=10, H=3, X=7, Y=8, Z=3

Return: 0

```
Note: You only need to worry about rotating the present by 90 degrees in any axis.

## Submission

You can submit your code [here](https://docs.google.com/forms/d/1SsjQ2lDbAs_g1H49ZS44y6Tw1KuX3sM9f6GKW_YaNaI).

license: MIT

repository: thomaskoppelaar/coladvent

repo_name: thomaskoppelaar/coladvent


text:
---
layout: post
title: Polyrhythms
category: Learning
comments: true
featured: /public/images/2023/07/10/poly.png
featured_alt_text: An screenshot of webpage showing concentric arcs and circles on them.
featured_hero: true
hero_darken: true
hero_link: https://ae-app-labs.github.io/web-polyrhythms/
hero_link_text: Try It
summary:
tags: [javascript, canvas]
---
Have you seen polyrthmics animation before? If not check this video first.

<iframe width="360" src="https://www.youtube.com/embed/50o0r6XFkt0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

I came across a video on youtube where a developer explained how to code this using html, javascript and the Canvas API.
Once I had tried to wet my feet with Canvas API but that did not work, and I did not try.

But looking at this detailed explanation, I felt it doable and would love to see it running.

So I went through a lot of steps and concepts, with the reference code modified a lot it was difficul to verify if I had missed some minor detail.
I did end with a totally blank screen a couple of times as well as number of javascript errors on the console.

Finally after spending around half a day of working on it, I soon had a working version and the understanding of how it worked.
It was a lot of fun working on and learning these concepts. Most of what we see out there are made with some abstract framework, but
here it is created step by step with plain vanilla javascript.

I thought of capturing a 20 minute video of this and uploading to YouTube just to share with the others.
In kind of a couple of days, it had crossed 1000 views and a lot of engagement via comments - a viral video from my standards where the 2nd one has 80 views in a month and uploaded a couple of months ago.

![YouTube Analytics](/public/images/2023/07/10/analytics.jpg)

I never expected a lot of engagement, hence I did not even add any detail or explanation about what the video was.
A lot of people were confused, that I had to create another video with a proper intro and explanation.

The source code is linked below, as well as proper attribution given to [Hyperplexed](https://www.youtube.com/@Hyperplexed) here as well as in the YouTube videos.

## References
1. [Video from Hyperplexed](https://www.youtube.com/watch?v=Kt3DavtVGVE)
2. [Source Code](https://github.com/ae-app-labs/web-polyrhythms)
3. [Try it](https://ae-app-labs.github.io/web-polyrhythms/)

gha_language: CSS


text:
# doglang

Dog language written in Rust. This is the "bootstrap" compiler.

A bootstrap compiler is the initial implementation of a language in a different language, before
it is capable of compiling itself. If the language gets far enough, eventually the bootstrap
compiler will not be maintained and only exist for posterity sake. It turns out, in this case, that
the chicken comes first, then the egg, and then the new chicken.

## Setup Instructions

* Install git: https://git-scm.com/downloads
* Install LLVM [LLVM setup](llvm%20setup.md)
* Install Rust [Rust setup](rust%20setup.md)
* Install CLion [CLion setup](clion%20setup.md)
* Clone: https://github.com/erikhyrkas/doglang.git

## Read the Docs

[Dog docs](https://github.com/erikhyrkas/doglang/blob/main/docs/README.md)

## Helpful links
Rust:
* https://doc.rust-lang.org/rust-by-example/index.html
* https://doc.rust-lang.org/std/index.html
* https://github.com/rust-lang/rust
* https://doc.rust-lang.org/nomicon/index.html
* https://m-decoster.github.io//2017/01/16/fighting-borrowchk/

Utility:
* http://ellcc.org/demo/index.cgi
* https://mapping-high-level-constructs-to-llvm-ir.readthedocs.io/en/latest/README.html

Language comparison:
* https://www.programming-idioms.org/

LLVM more specifically:
* https://crates.io/crates/llvm-sys
* https://releases.llvm.org/2.7/docs/LangRef.html
* https://llvm.org/docs/tutorial/index.html
* http://llvm.org/doxygen/

repository: erikhyrkas/doglang

gha_language: Rust

repo_name: erikhyrkas/doglang


text:
# Galactinia subisabellina var. ianthina Grelet ex Le Gal, 1967 VARIETY

#### Status
SYNONYM

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

#### Published in
Bull. trimest. Soc. mycol. Fr. 83: 358 (1967)

#### Original name
Galactinia subisabellina var. ianthina Grelet ex Le Gal, 1967

### Remarks
null

repository: mdoering/backbone

path: /life/Fungi/Ascomycota/Pezizomycetes/Pezizales/Pezizaceae/Peziza/Peziza isabellina/ Syn. Galactinia subisabellina ianthina/README.md

branch_name: refs/heads/master

repo_name: mdoering/backbone


text:
# save-seistool

[![Join the chat at https://gitter.im/BIDS-collaborative/save-seistool](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/BIDS-collaborative/save-seistool?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Saving the seistool from the Berkeley Seismo group / Solaris

### The team
```
* Proxima
* Allen
* Ashwini
* Ankur
* Anna
```

### Team meetings
```
Default team meeting information:
Location: 202 South Hall
Timing: 12 PM - 2 PM, Thursday

Location: 190 Doe Library
Timing: 3:30 PM - 6:00 PM, Tuesday
```
=======

repository: BIDS-collaborative/save-seistool

repo_name: BIDS-collaborative/save-seistool


text:
This lab sheet and all other materials can be found on GitHub here: https://github.com/QMUL-ECS735P/lab-week-5/

# OWL, Ontologies, and Protege
> **Session objectives:**
>   - Get familiar with Protege
>   - Visualise class hierarchies
>   - Build a simple ontology

## 1. Introduction
In this lab we'll be using Protege, a program for creating and exploring ontologies. The lab machines already have protege installed, to run it simply open a terminal session and type:

```
protege
```

and it will start up. If you want to use your own computer, you can download Protege here: http://protegewiki.stanford.edu/wiki/Install_Protege5

The Protege wiki and University of Manchester tutorials would be useful to keep on hand, refer to them both when you get stuck:
  - http://protegewiki.stanford.edu/wiki/Main_Page
  - http://owl.cs.manchester.ac.uk/publications/talks-and- tutorials/protg-owl-tutorial/

## 2. Examining OWL ontologies with Protege
You should have a `pizza.owl` file included in the lab materials; open Protege and then open this pizza ontology. You may also open Protege and use "Open from URL..." and paste in this URL: https://www.raw.githubusercontent.com/QMUL-ECS735P/lab-week-5/master/pizza.owl

Click the `Entities` tab and explore the class hierarchy. You should see something like this on the left pane:
![](https://github.com/QMUL-ECS735P/lab-week-5/raw/master/01-class-hierarchy.png)

Select a specific class, such as AmericanHot, what can we learn about it?

![](https://github.com/QMUL-ECS735P/lab-week-5/raw/master/02-class-description.png)

Along with classes, we also have object properties. Navigate to the `Object properties` tab to see all the properties defined in this ontology.

![](https://github.com/QMUL-ECS735P/lab-week-5/raw/master/03-object-properties.png)

## 3. Visualising class hierarchies
Navigate to `Window -> Tabs -> OntoGraf` and then click the now visible `OntoGraf` tab. Start selecting some classes from the class hierarchy to place them into the OntoGraf display.

Along the top of the OntoGraf display are a number of options to change how the classes are laid out in the display. Below is an example of the "Vertical Directed" display. Experiment with a few different displays so you can see how the class hierarchy is ordered.

![](https://github.com/QMUL-ECS735P/lab-week-5/raw/master/04-ontograf.png)

## 4. Creating ontologies with Protege
Your task is to create an ontology that formalises the following statements:

1) No one who appreciates Beethoven fails to keep silent when Moonlight Sonata is being played.

4) Therefore, guinea pigs don't appreciate Beethoven.

Take a moment to understand each of these statements, then identifiy the classes and object properties we'll need to formalise these statements in an ontology.

---

Create a new ontology by navigating to `File -> New` (or pressting `Ctrl+N`) and navigate to the `Entities` tab like before. To get you started, create two new classes:
- `appreciates_beethoven`
- `guinea_pigs`
by clicking the `add subclass` button.

![](https://github.com/QMUL-ECS735P/lab-week-5/raw/master/05-add-subclass.png)

We need to construct our ontology such we can prove `guinea_pigs` and `appreciates_beethoven` are **disjoint**.

![](https://github.com/QMUL-ECS735P/lab-week-5/raw/master/06-disjoint-with.png)

## 5. Using a reasoner in Protege
Protege can use several powerful OWL reasoners to determine whether our ontology is valid. Go to the `Reasoner` menu and select the HermiT reasoner if it is not already selected, then go back to the menu and start the reasoner.

We want to use the reasoner to prove that `guinea_pigs` and `appreciates_beethoven` are disjoint. To do this, create a new class `nobody` and define it as a `SubClass Of` both `guinea_pigs` and `appreciates_beethoven`.

Press `Ctrl+R` to re-run our reasoner, and then in the `Classes` tab click on the drop-down menu on the right and select "Inferred".

We should see our `nobody` class inferred as a subclass of the _bottom_ concept (that's `owl:Nothing`).

![](https://github.com/QMUL-ECS735P/lab-week-5/raw/master/07-inferred-classes.png)


text:
## About

This task renders Dust templates against a context to produce HTML.

## Getting Started

Install this plugin with the command:

```js
npm install grunt-dust-html
```

Next, add this line to your project's grunt file:

```js
grunt.loadNpmTasks("grunt-dust-html");
```

Lastly, add the configuration settings (see below) to your grunt file.

## Documentation

This task has two required properties, `src` and `dest`. `src` is the path to your source file and `dest` is the file this task will write to (relative to the grunt.js file). If this file already exists **it will be overwritten**.

An example configuration looks like this:

```js
grunt.initConfig({
  dusthtml: {
    dist: {
      src: "src/home.dust",
      dest: "dist/home.html",

      options: {
        // see below for options. this is optional.
      }
    }
  }
});
```

### Optional Configuration Properties

This plugin can be customized by specifying the following options:

* `whitespace`: Whether or not to preserve whitespace. `false` by default.
* `basePath`: The base location to all your templates so that includes/partials can be resolved correctly.
* `defaultExt`: The default template extension. Defaults to `.dust`.
* `module`: The name of the Dust module to use. Defaults to
`dustjs-linkedin` but can also be `dust` for plain ol' dust, or
`dustjs-helpers` for the LinkedIn Dust build with helpers. If this option is
anything other than the default, make sure you have installed the module via
`npm install`.
* `context`: A JavaScript object to render the template against. This option supports a few different types:

**String**: the location to a file containing valid JSON:

```js
context: "/path/to/file.json"
```

**Object**: a regular ol' JavaScript object:

```js
context: {
  pageTitle: "My Awesome Website"
}
```

**Array**: an array of contexts, either string (files to parse) or JavaScript objects, or both. Each item in the array will be merged into a single context and rendered against the template:

```js
context: [
  "path/to/context.json",
  "path/to/another/context.json",
  { more: "data" }
]
```

### FAQ

1. *Why does the output say undefined?*
Most likely dust is trying to include a file but it can't resove the path properly. Make sure you're setting a `basePath` option.

repository: kodysmith/basicBackboneSite

repo_name: kodysmith/basicBackboneSite


text:
---
layout: post
date:	2010-08-03 10:22:00
title:  Some more mammals at Bannerghatta....
tags: [archived-posts]
categories: archives
permalink: /:categories/:year/:month/:day/:title/
---
On Sunday, 8 of us went birding, and after having had our fill of the Baya Weavers, and other birds, at the pond, we walked up the gentle slopes to the BhavAni temple and the kalyANi....and on the way, we saw how elephants can "hide" (sorry for the pun, just couldn't resist it!) in the bamboo thickets....

The first sighting of that grey hide was quite exciting...but immediately Sripad spotted the mahout, and we realized that these were the Bannerghatta camp elephants, which had been let loose to graze in the forest, and were now being taken back by the mahouts.

Slowly, in answer to the mahouts' calls, VanithA appeared out of the thickets...

As the mahout continued calling, Vanashree also appeared...

I don't think they were mother and daughter,  but they were very close....

In this video, one can clearly hear the clanking of the chains:

<lj-embed id="443"/>

Later, as Sripad and I walked in the area beyond the kalyANi, the elephants came up, with Vanitha carrying a load of firewoood:

Elephants are still so useful in the forest....however, I didn't quite like the sight of the chains.

Sometimes I wonder...we've used horses, dogs, elephants and so many other animals for our purposes...isn't this, too, a form of slavery?


text:
LambdaMOO
=========

This application launches LambdaMOO, the famous MOO/MUD platform originally created by Pavel Curtis at Xerox PARC.

How to Run
----------

1. Deploy the Backbone file:

```
spine deploy
```

2. Telnet to your new LambdaMOO server:

```
telnet lambdamoo-<your subdomain>.spi.ne 8888
```

repository: getspine/spine-examples

repo_name: getspine/spine-examples


text:
# rust-vst
[![Travis Build][trav-img]][trav-url]
[![Appveyor Build][appv-img]][appv-url]
<!--- [![crates.io][crates-img]][crates-url] --->

A library to help facilitate creating VST plugins in rust.

This library is a work in progress and as such does not yet implement all
opcodes. It is enough to create basic VST plugins without an editor interface.

## Library Documentation
  * https://rust-dsp.github.io/rust-vst

## TODO
  - Implement all opcodes
  - Proper editor support
  - Write more tests
  - Provide better examples

## Usage
To create a plugin, simply create a type which implements `plugin::Plugin` and
`std::default::Default`. Then call the macro `plugin_main!`, which will export
the necessary functions and handle dealing with the rest of the API.

## Example Plugin
A simple plugin that bears no functionality. The provided Cargo.toml has a
crate-type directive which builds a dynamic library, usable by any VST host.

`src/lib.rs`

```rust
#[macro_use]
extern crate vst2;

use vst2::plugin::{Info, Plugin};

#[derive(Default)]
struct BasicPlugin;

impl Plugin for BasicPlugin {
    fn get_info(&self) -> Info {
        Info {
            name: "Basic Plugin".to_string(),
            unique_id: 1357, // Used by hosts to differentiate between plugins.

            ..Default::default()
        }
    }
}

plugin_main!(BasicPlugin); // Important!
```

`Cargo.toml`

```toml
[package]
name = "basic_vst"
version = "0.0.1"
authors = ["Author<EMAIL_ADDRESS>
[dependencies]
vst2 = "0.0.1"

[lib]
name = "basicvst"
crate-type = ["cdylib"]
```

[trav-img]: https://travis-ci.org/rust-dsp/rust-vst.svg?branch=master
[trav-url]: https://travis-ci.org/rust-dsp/rust-vst
[appv-img]: https://ci.appveyor.com/api/projects/status/npiyjfithlx50hfs?svg=true
[appv-url]: https://ci.appveyor.com/project/rustdsp/rust-vst
[crates-img]: https://img.shields.io/crates/v/vst2.svg
[crates-url]: https://crates.io/crates/vst2

#### Packaging on OS X

On OS X VST plugins are packaged inside of loadable bundles.
To package your VST as a loadable bundle you may use the `osx_vst_bundler.sh` script this library provides.

Example:

```
./osx_vst_bundler.sh Plugin target/release/plugin.dylib
Creates a Plugin.vst bundle
```

## Special Thanks
[Marko Mijalkovic](https://github.com/overdrivenpotato) for [initiating this project](https://github.com/overdrivenpotato/rust-vst2)


text:
# SNMP Cisco Configuration

## Macros used

There are no macros links in this template.

## Template links

There are no template links in this template.

## Discovery rules

There are no discovery rules in this template.

## Items collected

|Name|Description|Type|Key and additional info|
|----|-----------|----|----|
|Running startup last changed|
The value of sysUpTime when the startup configuration was last written to. In general this is the default configuration used when cold starting the system. It may have been changed by a save of the running configuration or by a copy from elsewhere.
|`SNMP agent`|ccmHistoryStartupLastChanged
Update: 3600
|
|Running configuration last saved|
The value of sysUpTime when the running configuration was last saved (written). If the value of ccmHistoryRunningLastChanged is greater than ccmHistoryRunningLastSaved, the configuration has been changed but not saved. What constitutes a safe saving of the running configuration is a management policy issue beyond the scope of this MIB. For some installations, writing the running configuration to a terminal may be a way of capturing and saving it. Others may use local or remote storage. Thus ANY write is considered saving for the purposes of the MIB.
|`SNMP agent`|ccmHistoryRunningLastSaved
Update: 3600
|
|Who changed configuration|
This object indicates the user who last reset the Config Change Tracking ID.
|`SNMP agent`|ccmctIdWhoChanged
Update: 3600
|
|Running configuration last changed|
The value of sysUpTime when the running configuration was last changed. If the value of ccmHistoryRunningLastChanged is greater than ccmHistoryRunningLastSaved, the configuration has been changed but not saved.
|`SNMP agent`|ccmHistoryRunningLastChanged
Update: 3600
|

## Triggers

There are no triggers in this template.

gha_license_id: MIT


text:
# Shibui 渋い
Shibui is the design language driving [Haiku's](https://haikuforteams.com) apps & websites.  Browse the design language in our up-to-the-moment [docs](https://shibui.haikuforteams.com).

![image](https://user-images.githubusercontent.com/2100885/70292363-ebfb4b00-1792-11ea-937d-42475c44742f.png)

The Shibui codebase is a collection of design files, code, scripts, compilers, and documentation — created to help the Haiku team deliver better UIs faster.

Changes made to Shibui via this repo will propagate across Haiku websites native apps.

*This project is powered by the open source project [Diez][diez-site].  Diez enables this whole project to be maintained in a single TypeScript codebase.  Diez is built & maintained by the Haiku team and the Diez community.*

## Why a design language?

Shibui helps our team in these ways:

 - **Consistency** - integrating with any codebase means more visually consistent UIs
 - **Efficiency** - make changes once and propagate everywhere
 - **Creativity** - design & dev teams explore new frontiers instead of pushing pixels

## Where are your UI components?

We don't yet have any open-source UI component libraries.

We started our design system "language-first," but UI components are coming soon.

# Getting started

## Developers

Developers can consume this package via pre-built SDKs for each platform or by cloning and compiling this source with [Diez][diez-site].

### Pre-built SDKs

**Web**

First, install Shibui as a dependency:

```
$ yarn add @haiku/shibui
```

Then consume the design language via JavaScript/TypeScript or CSS/SCSS:

JavaScript/Typescript:

```js
import {Diez, DesignLanguage} from '@haiku/shibui';

new Diez(DesignLanguage).attach((tokens) => {
  // ...
});
```

CSS/SCSS:

```scss
@import<EMAIL_ADDRESS>
h1 {
  @include shibui-typography-heading1();
}
```

**iOS**

Coming soon, in the meantime you can [compile from the source](#compiling-from-the-source).

**Android**

Coming soon, in the meantime you can [compile from the source](#compiling-from-the-source).

### Compiling from the source

First, clone and set-up the repo:

```shell
$ git clone git@github.com:HaikuTeam/shibui.git
$ cd shibui
$ yarn install
```

Then, compile the design language to your desired SDK:

```shell
$ yarn diez compile -t [web|ios|android]
```

Look for the SDK files in `build/diez-haiku-shibui-[web|ios|android]`, and consume accordingly depending on your target platform.

If you need more info, check out the [Diez guides][diez-guides].

## Designers

![image](https://user-images.githubusercontent.com/1357566/70190512-f80bdd80-16aa-11ea-84d6-0bc1ae452f85.png)

`/designs/shibui.sketch` is the living source of truth for many of Shibui's design tokens.

Simply open `/designs/shibui.sketch` in Sketch and make some changes.  Once saved, you can run `yarn diez exact` from the terminal and the changes will propagate to the design language in TypeScript.

Feel free to fork this repo and explore.  You can easily create your own theme or brand on this chassis — or feel free to make contributions back to our own design language!  Your changes may ship to prod.

[diez-site]: https://diez.org
[diez-guides]: https://diez.org/getting-started/

repository: HaikuTeam/shibui

gha_language: TypeScript

repo_name: HaikuTeam/shibui


text:
This component displays a clock. This clock has a fixed size of 260px by 260px so it will fit even on the litlest device :)

#### Color ####

Like any component of this lib, you are free to choose the color you want, just by modifying the color props. The base color for every component is #929292.

!!! The colors handled are currently only RGB hexadecimal colors like: #929292 !!!

```jsx { "props": { "style": { "backgroundColor": "#6a8d88", "textAlign": "center", "padding": "60px 20px" } } }
import { NeuClock } from "neumorphism-react";

<NeuClock color="#6a8d88" />
```

#### Donut ####

You can also add a prop called donut to the clock to have a donut styled clock.

```jsx { "props": { "style": { "backgroundColor": "#929292", "textAlign": "center", "padding": "60px 20px" } } }
import { NeuClock } from "neumorphism-react";

<NeuClock donut />
```

#### Distance ####

You can play with the distance prop to control the elevation of the NeuClock component. Base value is 5.

```jsx { "props": { "style": { "backgroundColor": "#8d3c37", "textAlign": "center", "padding": "60px 20px" } } }
import { NeuClock } from "neumorphism-react";

<NeuClock color="#8d3c37" distance={3} />
```

### Fully customizable ###

The NeuClock component support prop propagation and style propagation. Thus you can pass your how styles and props to the component.

! Make sure that the styles and props you pass to the component will not interfere with the component behavior !

repository: TrendingTechnology/neumorphism-react

repo_name: TrendingTechnology/neumorphism-react


text:
---
permalink: /
title: "Home"
excerpt: "About me"
author_profile: true
redirect_from:
  - /about/
  - /about.html
---

Hi! I am **_Adam A. Q. MOHAMMED_**. I’ve graduated with a Doctor of Engineering in Computer Science and Technology from  [Sichuan University](http://www.scu.edu.cn/), advised by [Prof. Jiancheng Lv](https://baike.baidu.com/item/%E5%90%95%E5%BB%BA%E6%88%90/12631172?fr=aladdin).

Education
======
+ 2017.10 - 2021.12, **_Ph.D_**.[DICALab](http://dicalab.cn/), [Sichuan University](http://www.scu.edu.cn/) (SCU).
  - Advisor: Prof. Jiancheng Lv
  - Major : Computer Science and Technology
+ 2013.9 - 2015.7., **_M.S_**, Faculty of electrical engineering, [Oran University of Science and Technology - Mohamed Boudiaf](https://www.univ-usto.dz/) (USTO-MB).
  - Advisor: Prof. Abdelhamid LOUKIL.
  - Major : Networks, Telecoms, Vision and Multimedia.
  - Ranking: Second class honors
+ 2009.9 - 2013.7, **_B.S_**, Faculty of Technology, [University of M’sila](https://www.univ-msila.dz/en/).
  - Major : Communication Engineering
  - Ranking: first class honors
+ 2007.9 - 2008.9, **_High School_**, AlTawoon , Taiz.
  - Ranking: first class honors

Awards & Honors
======
+ **_China Scholarship Council Scholarship_**, 2017.
+ **_Second Class honors_** USTO-MB University, 2015.
+ **_Yemeni Postgraduate Scholarship_**, 2014.
+ **_First Class honors_** University of M’sila , 2013.
+ **_Yemeni Scholarship_** for Excellent Undergraduate Students, 2010.
+ **_First Class_** at High School, 2008.

For more info about me, please contact me at<EMAIL_ADDRESS>


text:
Static Site Contact Form
========================

Basically, what it says on the tin. I've got a statically generated site, but I
also want a contact form on it, so what's a person to do? Well, one option is
to post the form to a small non-static site to deliver the form submission by
email. This app will do that.

How it Works
------------

Once deployed, point a form on your static site to the address you've deployed
this app. Any form data submitted to this app will be emailed to the email
address you configure. The person submitting the form will get redirected back
to your site (where exactly they end up after submitting will be configurable).

```html
<!-- put a form like this on your site -->
<form method="post" action="http://contact.example.com">
  <label for="name">Name</label>
  <input type="text" name="name" id="name">

  <label for="body">Message</label>
  <textarea name="body" id="body"></textarea>

  <input type="submit" value="Send">
</form>
```

Deploying
---------

Built to be deployed to Heroku, and the documentation that follows reflects
this, but you can do whatever you want. For information about deploying an app
to Heroku, check out [their docs][heroku-quickstart].

#### SMTP (Preferred)

Set the `DELIVERY_SERVER` environment variable with a valid SMTP URI:

```
heroku config:set<EMAIL_ADDRESS>```

#### Sendgrid (Alternate)

If you don't have an SMTP server to use, you can spin up a free Sendgrid
account (for low volumes) with Heroku. Heroku will provide the correct
environment variables for this app to deliver through Sendgrid

```
heroku addons:add sendgrid:starter
```

Once you've completed this, log into Heroku's web interface and click into the
Sendgrid add-on, since there's few steps they ask you to complete (making
choices on some settings, and so on) before delivering email.

### Recipient

You **must** configure a recipient email address with the RECIPIENT environment
variable.

```
heroku config:set<EMAIL_ADDRESS>```

### Sender

You can optionally specify the email address that these emails come from with the SENDER environment variable. If not configured, defaults to the recipient email address.

```
heroku config:set<EMAIL_ADDRESS>```

### Redirect

You can optionally specify a URL (thank-you page, perhaps) to redirect the
visitor back to once the email is delivered. If you don't specify this, they'll
get redirected back to the page they came from.

```
heroku config:set REDIRECT=http://example.com/thankyou
```

TODOs
-----

* Robust test suite
* JS endpoint to return some JSON upon success, to be handled by the sending page?
* Some type of CSRF protection?

[heroku-quickstart]:https://devcenter.heroku.com/articles/quickstart

repository: nicmarson/static-site-contact-form

extension: markdown

repo_name: nicmarson/static-site-contact-form


text:
# DOM TDD with JSDOM

We earlier saw, in [TDD with Mocha](../mocha/mocha.md), how we can start on
JavaScript TDD using Mocha. We used a very simple application and test.

In this section we show how frontend tooling can combine to provide
a TDD workflow targeted at browsers, using a fake DOM from the
[jsdom](https://github.com/tmpvar/jsdom) project.

## Overview

- Explain the need for a DOM in frontend TDD

- Install and setup `jsdom`

- Use Mocha setup/teardown hooks

- Make a "helpers" file to re-use common setup

## Fake DOM

We have been doing JavaScript TDD in Node, a headless environment.
But our goal is to write frontend application that run in the browser.
That means a DOM, plus some other non-Node machiner such as XHR.

For example, many frameworks, such as jQuery, expect there to be a DOM.
Your code won't even *import* without some globals for a `window` and
a `document`.

Fortunately there are solutions, such as
[jsdom](https://github.com/tmpvar/jsdom) which simulate what you need.
With `jsdom`, we can resume our Pythonic workflow: sit in PyCharm,
writing tests which import code and make assertions.

## Getting a DOM

Let's mix jQuery into the our `incrementor` from the Mocha Intro article
and see what happens. First we install it from npm and save it as a dependency
in our `package.json`:

.. code-block:: bash

    $ npm install --save jquery

We can now change our application code: instead of a function that returns an
incremented value, we increment the text node value of a `<div>`:

.. literalinclude:: app.js
    :language: js
    :caption: JSDOM app.js
    :emphasize-lines: 1,4

Our application code imports `jquery` using NodesJS/CommonJS
module imports, then changes the `<div>` content to equal
the incremented value.

We re-use the previous section's `test4.js` as `test1.js` in this
article:

[include](../../../src/jsdom/test1.js)

When we run the test now, though, armageddon ensues:

.. code-block:: bash

    Error: jQuery requires a window with a document
        at module.exports (jsdom/node_modules/jquery/dist/jquery.js:29:12)
        at incrementer (jsdom/app.js:4:5)
        at Context.<anonymous> (jsdom/test1.js:6:22)

Our first thought is: go get a browser. We could use
[PhantomJS](http://phantomjs.org) which has good package for Mocha
support. We could start over with the
[Karma test runner](http://https://karma-runner.github.io/0.13/index.html).
But these are *big* solutions. Slow, with lots of fiddling necessary, and not
all headless.

Enter [jsdom](https://github.com/tmpvar/jsdom). This package simulates a
DOM, in your browser. While jsdom isn't perfect in simulating a browser, it is
fast and, relatively speaking, lightweight.

Let's install it as a development dependency:

```
$ npm install jsdom --save-dev
```

We now can write a `test2.js` which imports `jsdom` and sets some
global variables that `jQuery` expects. With that in place, we can import
`jQuery`:

[include](../../../src/jsdom/test2.js)

This test suite has a test that ensures we are setup correctly by
reading the initial text value of the `<div>`. The second test
executes our function and checks the updated value of the `<div>`.

And our tests pass! All is good...except, it isn't.

## Mocha Setup and Teardown

Python unit testers will spot the problem quickly: we aren't testing
in isolation! The second test modifies the `<div>`. Any subsequent
tests wouldn't be against a fresh `<div>`. If we added a third
test as a copy of the first, we'd see that:

[include](../../../src/jsdom/test3.js)

This third test fails, as the `<div>` has the value from the second
test, not the initial value.

Like Python's `unittest`, Mocha has concepts of `before`,
`beforeEach`, and `afterEach`. Let's say we want to balance speed
and isolation. We'd like to make a DOM once for all tests, but clean
up the `<body>` before each test. `test4.js` shows this:

[include](../../../src/jsdom/test4.js)

Our `Hello World` test suite initializes `$` and `incrementer`
at the test-suite scope. The `before` function runs once,
loading our application code once a DOM is setup and initialized. Then,
before each test, the `<body>` is reset to `<div>1</div>`.

Does this look like boilerplate that you'll repeat in each test? Let's
make a `helper.js` module that we can import at the top of all of
our tests, to provide such initialization:

[include](../../../src/jsdom/helper.js)

Our tests, as shown in `test5.js`, now look a lot nicer by importing
`helper.js` at the top:

[include](../../../src/jsdom/test5.js)

## Wrapup

This turned out to be pretty simple. Suspiciously simple, in fact. As it
turns out, this is one of those areas where frontend development is in
constant churn. `jsdom` won't always work, and other approaches will
have features that you can't live without.

Still, the basics of this article apply: you *can* do JavaScript TDD,
not just for server-side JavaScript in Node, but also frontend JavaScript
in browsers. It takes some patience to get it setup, but it sure beats the
normal browser development cycle of:

- Change code

- Switch to browser

- Reload

- Sprinkle `console.log` statements

- Sacrifice goats that nothing else broke


text:
![logo](../../tokbox-logo.png)

# OpenTok One-to-One Communication Sample App for Android
Version 1.1

This document describes how to use the OpenTok One-to-One Communication Sample App for Android. You will learn best practices for managing the audio, video, and camera elements on an Android mobile device. We recommend this is as your first step in delivering interoperable, production-quality audio/video solutions on the OpenTok platform.

You can configure and run this sample app within just a few minutes!

This guide has the following sections:

* [Prerequisites](#prerequisites): A checklist of everything you need to get started.
* [Quick start](#quick-start): A step-by-step tutorial to help you quickly import and run the sample app.
* [Exploring the code](#exploring-the-code): This describes the sample app code design, which uses recommended best practices to implement the one-to-one communication features.

## Prerequisites

To be prepared to develop your one-to-one communication app:

1. Install [Android Studio](http://developer.android.com/intl/es/sdk/index.html)
2. Download the [OpenTok Android SDK](https://tokbox.com/developer/sdks/android/). **OpenTok Android SDK version 2.8.x** is required for this sample app.
3. Review the [OpenTok Android SDK Requirements](https://tokbox.com/developer/sdks/android/#developerandclientrequirements)
4. Your app will need a **Session ID**, **Token**, and **API Key**, which you can get at the [OpenTok Developer Dashboard](https://dashboard.tokbox.com/).

_**NOTE**: The OpenTok Developer Dashboard allows you to quickly run this sample program. For production deployment, you must generate the **Session ID** and **Token** values using one of the [OpenTok Server SDKs](https://tokbox.com/developer/sdks/server/)._

## Quick start

To get up and running quickly with your app, go through the following steps in the tutorial provided below:

1. [Importing the Android Studio Project](#importing-the-android-studio-project)
2. [Adding the OpenTok SDK](#adding-the-opentok-sdk)
3. [Configuring the App](#configuring-the-app)

To learn more about the best practices used to design this app, see [Exploring the code](#exploring-the-code).

### Importing the Android Studio project

1. Clone the OpenTok One-to-One Communication Sample App repository.
2. Start Android Studio.
3. In the **Quick Start** panel, click **Open an existing Android Studio Project**.
4. Navigate to the **android** folder, select the **OnetoOneSample** folder, and click **Choose**.

### Adding the OpenTok SDK included in the Accelerator Pack Common for Android

There are 2 options for installing the OpenTok Android Accelerator Pack:

#### Using the repository

1. Clone the [OpenTok Accelerator Pack repo](https://github.com/opentok/acc-pack-common).
2. From your app project, right-click the app name and select **New > Module > Import Gradle Project**.
3. Navigate to the directory in which you cloned **OpenTok Accelerator Pack**, select **android-accelerator-pack**, and click **Finish**.
4. Open the **build.gradle** file for the app and ensure the following lines have been added to the `dependencies` section:

```
compile project(':android-accelerator-pack')

```

#### Using Maven

Modify the build.gradle for your solution and add the following code snippet to the section labeled 'repositories’:

maven { url  "http://tokbox.bintray.com/maven" }

Modify the build.gradle for your activity and add the following code snippet to the section labeled 'dependencies’:

compile 'com.opentok.android:accelerator-pack:1.0.0'

### Configuring the app

Now you are ready to add the configuration detail to your app. These will include the **Session ID**, **Token**, and **API Key** you retrieved earlier (see [Prerequisites](#prerequisites)).

In **OpenTokConfig.java**, replace the following empty strings with the required detail:

   ```java
    // Replace with a generated Session ID
    public static final String SESSION_ID = "";

    // Replace with a generated token
    public static final String TOKEN = "";

    // Replace with your OpenTok API key
    public static final String API_KEY = "";
   ```

You may also set the `SUBSCRIBE_TO_SELF` constant. Its default value, `false`, means that the app subscribes automatically to the other client’s stream. This is required to establish communication between two streams using the same Session ID:

```java
public static final boolean SUBSCRIBE_TO_SELF = false;
```

You can enable or disable the `SUBSCRIBE_TO_SELF` feature by invoking the `OneToOneCommunication.setSubscribeToSelf()` method:

```java
OneToOneCommunication comm = new OneToOneCommunication(
  MainActivity.this,
  OpenTokConfig.SESSION_ID,
  OpenTokConfig.TOKEN,
  OpenTokConfig.API_KEY
);

comm.setSubscribeToSelf(OpenTokConfig.SUBSCRIBE_TO_SELF);

```

_At this point you can try running the app! You can either use a simulator or an actual mobile device._

## Exploring the code

This section describes how the sample app code design uses recommended best practices to implement the one-to-one communication features.

For detail about the APIs used to develop this sample, see the [OpenTok Android SDK Reference](https://tokbox.com/developer/sdks/android/reference/) and [Android API Reference](http://developer.android.com/reference/packages.html).

  - [Class design](#class-design)
  - [Session and stream management](#session-and-stream-management)
  - [User interface](#user-interface)
  - [Audio, video, camera](#audio-video-camera)

_**NOTE:** The sample app contains logic used for logging. This is used to submit anonymous usage data for internal TokBox purposes only. We request that you do not modify or remove any logging code in your use of this sample application._

### Class design

The following classes represent the software design for this sample app.

| Class        | Description  |
| ------------- | ------------- |
| `MainActivity`    | Implements the UI and media control callbacks. |
| `OpenTokConfig`   | Stores the information required to configure the session and authorize the app to make requests to the backend server.   |
| `PreviewControlFragment`   | Manages the toolbar for the local audio and video controls, and the start/end call button. |
| `RemoteControlFragment`   | Manages the icons to enable/disable the audio and video of the remote subscriber. |
| `PreviewCameraFragment `   | Manages the camera control. |

### Session and stream management

The `OneToOneCommunication` class, included in the Accelerator Pack Common for Android, is the backbone of the one-to-one communication features for the app.

This class uses the OpenTok API to initiate the client connection to the OpenTok session and manage the audio and video streams.

```java
public class OneToOneCommunication implements
        Session.SessionListener,
        Publisher.PublisherListener,
        Subscriber.SubscriberListener,
        Subscriber.VideoListener {
   . . .
}
```

#### Interfaces implemented by the class

The `OneToOneCommunication` class implements the interfaces described in the following table. See their descriptions in the [OpenTok Android SDK Reference](https://tokbox.com/developer/sdks/android/reference/) for information about the methods required to implement them.

| Interface        | Description  |
| ------------- | ------------- |
| [`Session.SessionListener`](https://tokbox.com/developer/sdks/android/reference/com/opentok/android/Session.SessionListener.html)   | Monitors session state, handling client connections and stream events. |
| [`Publisher.PublisherListener`](https://tokbox.com/developer/sdks/android/reference/com/opentok/android/PublisherKit.PublisherListener.html)      | Monitors publisher stream events.  |
| [`Subscriber.SubscriberListener`](https://tokbox.com/developer/sdks/android/reference/com/opentok/android/SubscriberKit.SubscriberListener.html) | Monitors subscriber events.  |
| [`Subscriber.VideoListener`](https://tokbox.com/developer/sdks/android/reference/com/opentok/android/SubscriberKit.VideoListener.html) | Monitors subscriber video events.  |

#### Methods

The following `OneToOneCommunication` methods are used for session and stream management, and in most cases are required by the interfaces implemented by the class.

| Feature        | Methods  |
| ------------- | ------------- |
| Manage the session connections.   | `start()`, `end()`, `isStarted()`, `onConnected()`, `onDisconnected()`, `isRemote()`  |
| Manage the subscription streams.  | `onStreamCreated()`, `onStreamDestroyed()`, `onStreamReceived()`, `onStreamDropped()`  |
| Manage audio events.              | `getLocalAudio()`, `getRemoteAudio()` |
| Manage video events.              | `getLocalVideo()`, `getRemoteVideo()`, `onVideoDataReceived()`,`onVideoEnabled()`, `onVideoDisableWarning()`, `onVideoDisableWarningLifted()` |
| Manage camera events.              | `swapCamera()` |

### User interface

As described in [Class design](#class-design), the following classes set up and manage the UI fragments for the local and remote controls:

   - `PreviewControlFragment`
   - `RemoteControlFragment`
   - `PreviewCameraFragment`

These classes work with the following `MainActivity` methods, which manage the views as the publisher and subscriber participate in the session.

| Feature        | Methods  |
| ------------- | ------------- |
| Manage the UI containers. | `onCreate()`  |
| Reload the UI views whenever the device [configuration](http://developer.android.com/reference/android/content/res/Configuration.html), such as screen size or orientation, changes. | `onConfigurationChanged()`  |
| Manage the UI for local and remote controls. | `onDisableLocalAudio()`, `onDisableLocalVideo()`, `onCall()`, `onDisableRemoteAudio()`, `onDisableRemoteVideo()`, `showRemoteControlBar()`, `onCameraSwap()` |

You can also create custom UI responses to OpenTok events fired in your implementation of the `OneToOneCommunication.Listener` interface. For example, if a communication error occurs, you can develop and display a custom alert in the `MainActivity` class.

### Audio, video, camera

The following `OneToOneCommunication` methods are used to manage the local and remote media devices.

| Feature        | Methods  |
| ------------- | ------------- |
|  Enable and disable local audio and video.  | `enableLocalMedia(MediaType, boolean)`
 `MediaType ` is `AUDIO` or `VIDEO`
`true` (enabled) or `false` (disabled) |
|  Enable and disable remote audio and video.  | `enableRemoteMedia(MediaType, boolean)`
 `MediaType ` is `AUDIO` or `VIDEO`
`true` (enabled) or `false` (disabled) |
|  Swap between multiple cameras on a device (normal and selfie modes).  | `swapCamera()` |

repository: jneimantokbox/one-to-one-sample-apps

gha_language: Java

repo_name: jneimantokbox/one-to-one-sample-apps


text:
# The 23andMe Styleguide [![Build Status](https://travis-ci.org/23andMe/style.svg?branch=master)](https://travis-ci.org/23andMe/style)

#### The official repository for 23andMe Design System component implementation

## Getting going

1. Clone this repo: `git clone https://github.com/23andMe/style.git`
2. CD into the dir: `cd style`
3. Install stuff: `npm install`
4. Start er up: `npm run start`
5. View in browser: `https://localhost:8000`

## Developing in StyleDot

Editing happens under `style/src` and that processed outputs to `style/lib` and `style/docs`.
* `style/src/lib` is where the Design System components live. Edit here if you'd like to add or update an actual component for use in the styleguide and npm package.
* `style/src/docs` is where the framing for the styleguide website lives. Edit here if you'd like to update or add a component example to the styleguide.

Running `npm run start` from earlier will automatically watch for changes and update them in the browser.

**Careful:** You might have noticed that the files under `style/lib/scss` and `style/src/lib/scss` are identical. This can get confusing at times, make sure you're always editing the files that are under `style/src`

## Running tests
Tests are written using Jest, and are pretty easy to run: `npm run test`


text:
Role Name
=========

Basic node, currently debian, keep track on initial setup

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

    ansible-galaxy install ykhrustalev.basenode

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

Debian version >= 6

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

There are fooloing defaults defined

    ---
    basenode_motd: |
      |                                 |
      |    Server managed by Ansible    |
      |                                 |

    # packages to be installed for debian
    basenode_debian_packages:
      - curl
      - htop
      - iftop
      - iotop
      - openssh-client
      - openssh-server
      - rsync
      - strace
      - sudo
      - tmux
      - unzip
      - vim
      - wget

Role does not use any hardcoded variables

Dependencies
------------

None

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

To use add

    - hosts: servers
      roles:
         - role: ykhrustalev.basenode
           basenode_packages:
             - vim

License
-------

MIT

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

Yuri Khrustalev

repository: ykhrustalev/ansible-basenode

repo_name: ykhrustalev/ansible-basenode


text:
---
layout: post
title: "Equivalence Between Wasserstein and Value-Aware Model-based Reinforcement Learning"
date: 2018-06-01 21:54:18
categories: arXiv_AI
tags: arXiv_AI Reinforcement_Learning
author: Kavosh Asadi, Evan Cater, Dipendra Misra, Michael L. Littman
mathjax: true
---

* content
{:toc}

##### Abstract
Learning a generative model is a key component of model-based reinforcement learning. Though learning a good model in the tabular setting is a simple task, learning a useful model in the approximate setting is challenging. Recently Farahmand et al. (2017) proposed a value-aware (VAML) objective that captures the structure of value function during model learning. Using tools from Lipschitz continuity, we show that minimizing the VAML objective is in fact equivalent to minimizing the Wasserstein metric.

##### Abstract (translated by Google)
学习生成模型是基于模型的强化学习的关键组成部分。虽然在表格设置中学习好模型是一项简单的任务，但在大致设置中学习一个有用的模型是具有挑战性的。最近Farahmand等人。 （2017）提出了一个价值意识（VAML）目标，该目标捕捉模型学习过程中价值函数的结构。使用来自Lipschitz连续性的工具，我们证明最小化VAML目标实际上相当于最小化Wasserstein度量。

##### URL
[http://arxiv.org/abs/1806.01265](http://arxiv.org/abs/1806.01265)

##### PDF
[http://arxiv.org/pdf/1806.01265](http://arxiv.org/pdf/1806.01265)


text:
---
layout: default
title: Using The Bridge
parent: Usage & Installation
nav_order: 2
---
# Usage
{: .no_toc }

## Table of contents
{: .no_toc .text-delta }

1. TOC
{:toc}

---

## Panel Location

The RizomUV Bridge panel can be found in the 3D View Sidebar, the hotkey for the default "Blender" keymap to show the sidebar is **N**.

**Info:** The panel is only enabled in object mode.
{: .notice .notice-info}

---

---

## File Operations

### Exporting

Select one or more objects and click the **Export** button, RizomUV will open with your objects loaded and run a auto UV script (if you selected one).

#### Startup Script

These are scripts that will be automatically run when RizomUV opens, they automatically place seams and pack a quick UV map. This provides a good base to begin creating your final UV map.

**Warning:** Your UV map names must contain alphabetical and numerical characters only.
{: .notice .notice-warning}

**Warning:** Each object needs to have the same UV maps. For example, if the first object has two UV maps; map1 and map2, every object you are exporting should have those maps.
{: .notice .notice-warning}
---

### Importing

Select your objects and click the **Import** button, each UV set on your original objects will be updated.

**Warning:** The script uses name matching to transfer the UV maps so it is important that you do not change the names of your original objects between operations.
{: .notice .notice-warning}

---

### Texture Image Export

This field allows you to select a texture map that you can see in the RizomUV viewport and grid background. Once RizomUV opens you need to set your shading mode to **Viewport Texture Custom**, your texture will then be visible.

**Warning:** The file format must be one of: .tiff, .png, .jpg, .tga or .bmp
{: .notice .notice-warning}

---

---

## RizomUV Settings

This section of the UI allows you to choose some of the settings RizomUV loads up with, the settings are fairly self explanatory and have tooltips if you need them.

repository: koloved/BlenderRizomUVBridge

gha_language: Python

repo_name: koloved/BlenderRizomUVBridge


text:
# Contribute to SalesNetwork

If you want to contribute to SalesNetwork visit the docs here: [online][1]/[offline][2]

## Publishing NuGets

Visit the main documentation of SalesNetwork here: [online][3]/[offline][4]

## Links

[1]: https://git-1.it2media.de/SalesNetwork/snwx/blob/develop/docs/development/contributing/index.md#contribute-to-salesnetwork
[2]: ../snwx/docs/development/contributing/index.md#contribute-to-salesnetwork
[3]: https://git-1.it2media.de/SalesNetwork/snwx/blob/develop/docs/development/contributing/nuget.md
[4]: ../snwx/docs/development/contributing/nuget.md


text:
# psqr

[![Build Status](https://travis-ci.org/narqo/psqr.svg?branch=master)](https://travis-ci.org/narqo/psqr)
[![GoDoc](https://godoc.org/github.com/narqo/psqr?status.svg)](https://godoc.org/github.com/narqo/psqr)

Go implementation of [The P-Square Algorithm for Dynamic Calculation of Quantiles and Histograms Without Storing Observations][1].

> The algorithm is proposed for dynamic calculation of [..] quantiles. The estimates are produced dynamically as the observations are generated. The observations are not stored, therefore, the algorithm has a very small and fixed storage requirement regardless of the number of observations.

[1]: http://www.cs.wustl.edu/~jain/papers/ftp/psqr.pdf

repository: narqo/psqr

gha_language: Go

repo_name: narqo/psqr


text:
# Zombeee

An endless Zombeee match built with vanilla Javascript, rendered minimally and square-ly.

Use `WASD` or the arrow keys to move around the map. Use `x` to shoot at the zombies. You only have 3 lives, so move carefully!

![zombeee](https://cloud.githubusercontent.com/assets/2068077/26044795/4f6bc756-38fb-11e7-99e8-11d6bcddf9b8.gif)

repository: alvinwan/zombeee

repo_name: alvinwan/zombeee


text:
# Changelog

All notable changes to this project will be documented in this file.

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

## [5.0.1] - 2021-05-26

### Fixed

- Fix visibility of `IsExternalInit`

## [5.0.0] - 2020-11-11

### Changed

- [**Breaking**] Removed `netstandard1.0` target framework
- [**Breaking**] Changed `Parser<T>.Filters` property to `GetFilters()` method
- [**Breaking**] Changed `Parser<T>.ParameterTags` property to `GetParameterTags()` method
- [**Breaking**] Changed `Parser<T>.Tags` property to `GetTags()` method

### Issues

- [#71](https://github.com/k94ll13nn3/Strinken/issues/71): Remove .NET Standard 1.0

## [4.1.1] - 2018-08-27

### Fixed

- Fix repository url for `NuGet`

## [4.1.0] - 2018-08-27

### Added

- Add [SourceLink](https://github.com/dotnet/sourcelink)
- Add `netstandard2.0` target framework

### Issues

- [#60](https://github.com/k94ll13nn3/Strinken/issues/60): Add SourceLink

## [4.0.0] - 2018-05-31

### Changed

- [**Breaking**] Change assembly versionning to be `Major.Minor` (instead of `Major.Minor.Patch`)
- [**Breaking**] Add a new property to `IFilter`: `AlternativeName`. This property can be used to set an alternative name composed of the following characters for the filter: `!`, `%`, `&`, `*`, `.`, `/`, `<`, `=`, `>`, `@`, `^`, `|`, `~`, `?`, `$` or `#`.
- [**Breaking**] All classes are now under the `Strinken` namespace only
- [**Breaking**] Reworked the resolution and compilation of a string. The compilation of a string now returns a `CompiledString` and is no longer stored in the parser. This `CompiledString` can be passed to an overload of `Resolve` for the resolution. Bulk resolution of values is now also possible.

### Fixed

- Fix a potential `NullReferenceException` in some base filters

### Issues

- [#54](https://github.com/k94ll13nn3/Strinken/issues/54): AssemblyVersion should be Major.Minor
- [#51](https://github.com/k94ll13nn3/Strinken/issues/51): Add possibility to register a filter under a new name
- [#49](https://github.com/k94ll13nn3/Strinken/issues/49): Consider bringing everything under the same namespace
- [#46](https://github.com/k94ll13nn3/Strinken/issues/46): Possible null reference exception in base tests
- [#45](https://github.com/k94ll13nn3/Strinken/issues/45): Add bulk resolution
- [#44](https://github.com/k94ll13nn3/Strinken/issues/44): Add possibility to compile more than one string

## [3.3.0] - 2017-09-14

### Changed

- Remove net45 version.

### Fixed

- Fix incorrect enum visibility

## [3.2.1] - 2017-07-01

### Fixed

- Fix regression : arguments were no longer passed to the filter validation process.

## [3.2.0] - 2017-06-18

### Added

- New tag : Value tag
- New tags : Number tags
- Add base class for filter without arguments.

### Changed

- (Internal) New tokens registration and parsing mechanism.

### Issues

- [#43](https://github.com/k94ll13nn3/Strinken/issues/43): Add an abtract filter class that does not allow arguments
- [#42](https://github.com/k94ll13nn3/Strinken/issues/42): Number tags
- [#41](https://github.com/k94ll13nn3/Strinken/issues/41): Value tag

### Pull Requests

- [#40](https://github.com/k94ll13nn3/Strinken/pull/40): Parsing and tokens registration improvements (by [k94ll13nn3](https://github.com/k94ll13nn3))

## [3.1.0] - 2017-04-23

### Added

- New filter : Repeat
- Add possibility to register and unregister base filters
- Add a Parser contructor that allows the creation of a parser without base filters

### Changed

- New project logo

### Issues

- [#38](https://github.com/k94ll13nn3/Strinken/issues/38): Repeat filter
- [#35](https://github.com/k94ll13nn3/Strinken/issues/35): Remove the state machine
- [#31](https://github.com/k94ll13nn3/Strinken/issues/31): Add a Parser contructor that allows the creation of a parser without base filters
- [#27](https://github.com/k94ll13nn3/Strinken/issues/27): Move to Wyam for the docs
- [#26](https://github.com/k94ll13nn3/Strinken/issues/26): Global filters registration

### Pull Requests

- [#36](https://github.com/k94ll13nn3/Strinken/pull/36): Remove the state machine (by [k94ll13nn3](https://github.com/k94ll13nn3))

## [3.0.0] - 2016-12-03

### Added

- New site for the project : https://k94ll13nn3.github.io/Strinken/
- New tag type : parameter tag
- New filter : Replace
- Add possibility to compile a string

### Changed

- Rework internal parsing engine

### Fixed

- Invalid tag and filter names are now throwing an exception
- Exclude comma from possible argument character

### Issues

- [#23](https://github.com/k94ll13nn3/Strinken/issues/23): Add possibility to compile a string
- [#16](https://github.com/k94ll13nn3/Strinken/issues/16): Replace filter
- [#12](https://github.com/k94ll13nn3/Strinken/issues/12): Update documentation for 3.0.0
- [#11](https://github.com/k94ll13nn3/Strinken/issues/11): Exclude comma from possible argument character
- [#9](https://github.com/k94ll13nn3/Strinken/issues/9): Validate tag and filter name when creating the parser
- [#8](https://github.com/k94ll13nn3/Strinken/issues/8): Add gh-pages site
- [#7](https://github.com/k94ll13nn3/Strinken/issues/7): Create non-generic tags

### Pull Requests

- [#24](https://github.com/k94ll13nn3/Strinken/pull/24): Add possibility to compile a string (by [k94ll13nn3](https://github.com/k94ll13nn3))
- [#20](https://github.com/k94ll13nn3/Strinken/pull/20): Add replace filter (by [k94ll13nn3](https://github.com/k94ll13nn3))
- [#18](https://github.com/k94ll13nn3/Strinken/pull/18): Implementation of parameter tags (by [k94ll13nn3](https://github.com/k94ll13nn3))
- [#15](https://github.com/k94ll13nn3/Strinken/pull/15): Parser rewrite (by [k94ll13nn3](https://github.com/k94ll13nn3))
- [#10](https://github.com/k94ll13nn3/Strinken/pull/10): State machine and engine improvements (by [k94ll13nn3](https://github.com/k94ll13nn3))

## [2.0.0] - 2016-07-26

### Changed

- Rework parser creation
- Library now targets `netstandard1.0` instead of `netstandard1.1`
- Empty tag and filter names ared now considered as invalid by the builder.
- Empty or null string is now considered as valid by the parser.
- The validation method now returns a `ValidationResult`

### Issues

- [#6](https://github.com/k94ll13nn3/Strinken/issues/6): Handle empty tag/filter name as invalid
- [#3](https://github.com/k94ll13nn3/Strinken/issues/3): Add documentation for ParserBuilder

## [1.0.1] - 2016-07-19

### Fixed

- Fix versioning

## 1.0.0 - 2016-07-18

Initial release.

[5.0.1]: https://github.com/k94ll13nn3/Strinken/compare/v5.0.0...v5.0.1
[5.0.0]: https://github.com/k94ll13nn3/Strinken/compare/v4.1.1...v5.0.0
[4.1.1]: https://github.com/k94ll13nn3/Strinken/compare/v4.1.0...v4.1.1
[4.1.0]: https://github.com/k94ll13nn3/Strinken/compare/v4.0.0...v4.1.0
[4.0.0]: https://github.com/k94ll13nn3/Strinken/compare/v3.3.0...v4.0.0
[3.3.0]: https://github.com/k94ll13nn3/Strinken/compare/v3.2.1...v3.3.0
[3.2.1]: https://github.com/k94ll13nn3/Strinken/compare/v3.2.0...v3.2.1
[3.2.0]: https://github.com/k94ll13nn3/Strinken/compare/v3.1.0...v3.2.0
[3.1.0]: https://github.com/k94ll13nn3/Strinken/compare/v3.0.0...v3.1.0
[3.0.0]: https://github.com/k94ll13nn3/Strinken/compare/v2.0.0...v3.0.0
[2.0.0]: https://github.com/k94ll13nn3/Strinken/compare/v1.0.1...v2.0.0
[1.0.1]: https://github.com/k94ll13nn3/Strinken/compare/v1.0.0...v1.0.1


text:
# Oro\Bundle\EmailBundle\Entity\Email

## FIELDS

### activityTargets

A records to which the email record associated with.

## FILTERS

### exclude-current-user

Indicates whether the current user should be excluded from the result.

## SUBRESOURCES

### suggestions

#### get_subresource

Retrieve records that might be associated with the email.

### activityTargets

#### get_subresource

Retrieve records to which the email associated.

#### get_relationship

Retrieve the IDs of records to which the email associated.

#### add_relationship

Associate records with the email.

#### update_relationship

Completely replace association between records and the email.

#### delete_relationship

Delete association between records and the email.

repository: successmarket/oroinc-platform

gha_license_id: NOASSERTION

repo_name: successmarket/oroinc-platform


text:
# TicTacToe

## Todo
- ~~Replace circle with white pawn in SVG format~~
- ~~Replace cross with black pawn in SVG format~~
- ~~Extend the board (and also the rule) to 5x5~~
- ~~If you could, please make the board resizeable~~
- If this was a professional project, how would you test your solutions? - Using the react-test-renderer or the React Native Testing Library, I'd focus on a few behavirout such as:
  - Renders the correct number of spaces
  - Renders the spaces with correct size and color
  - Toggles user turn and player's turn correctly
  - etc

repository: tiagodprovenzano/CustomTicTacToe

repo_name: tiagodprovenzano/CustomTicTacToe


text:
---
layout: default
---

# 1997-12-23 - No Subject

## Header Data

From: Anonymous<EMAIL_ADDRESS>To<EMAIL_ADDRESS>Message Hash: 5cafa74f5e935e3d7f4af286cdfa7435983dfb990bc41da5d94f64dedf7203d9

Message ID<EMAIL_ADDRESS>Reply To: _N/A_

UTC Datetime: 1997-12-23 17:44:01 UTC

Raw Date: Wed, 24 Dec 1997 01:44:01 +0800

## Raw message

```
{% raw  %}From: Anonymous<EMAIL_ADDRESS>Date: Wed, 24 Dec 1997 01:44:01 +0800
To<EMAIL_ADDRESS>Subject: No Subject
Message-ID<EMAIL_ADDRESS>MIME-Version: 1.0
Content-Type: text/plain

At 10:11 PM 12/22/97 -0800, you wrote:
>What is the best long gun for a Cypherpunk?
>
>
You didn't say if you were interested in a trophy or just filling the freezer nor if you would be in open country or in the bush. A good all around choice would be one of the medium power thirty caliber cartridges.  It would be prudent to use ammunition lo!
aded with well constructed bullets because some Cypherpunks are thick skinned, particularly those with law degrees.

LongPigMuncher

{% endraw %}
```

## Thread

+ Return to [December 1997](/archive/1997/12)

+ Return to "[Anonymous <anon@anon.efga.org>](/authors/anonymous_anon_at_anon_efga_org_)"
+ Return to "[Rabid Wombat <wombat@mcfeely.bsfs.org>](/authors/rabid_wombat_wombat_at_mcfeely_bsfs_org_)"

+ 1997-12-23 (Wed, 24 Dec 1997 01:44:01 +0800) - No Subject - _Anonymous<EMAIL_ADDRESS>  + 1997-12-23 (Wed, 24 Dec 1997 02:23:16 +0800) - [Re: your mail](/archive/1997/12/1444a8bb7e5d6dc6c01b2d4e9070501bc76bdecacfc2610a0fd9404a0d242937) - _Rabid Wombat<EMAIL_ADDRESS>


text:
PlayPG
======

An MMO client/server architecture with RPG elements to gameplay. Servers are designed to be highly modular and scalable and for multiple instances to run concurrently while minimising fragmentation between game worlds; that is, for each "realm" every player should be able to interact with each other.

Each server should run functionally on a Raspberry Pi 2 for a small number of players, meaning that testing and early deployment is very cheap. Each type of server also supports IPv4 and IPv6 as standard.

Setup should be as simple as installing dependencies, checking out the submodules (`git submodule --init --recursive`) running:

```
mkdir build && cd build
cmake ..
make -j4
```

and going! You'll need to install [APG](https://github.com/SgtCoDFish/APG) first, which is the helper library associated with the game.

Target Platforms
----------------
### Client
- Windows (Vista or later, not XP)
In theory, PlayPG should run on Vista and above (but not XP). In practice, it's tested on Windows 10 and will work best there. Uses OpenGL, but a DirectX renderer would be fantastic if it were added to APG.

- Linux
Tested on Ubuntu using proprietary graphics drivers. Would be nice to run on a Pi, but untested as of yet.

### Server
- Linux (Tested on Ubuntu 15.10, Debian + Raspbian Jessie)

The server only targets Linux flavours for deployment, although at the time of writing runs fine on Windows with the caveat that some native winsock2 features fail (SDL2_net seems to work fine). It would be nice, but isn't essential, for this to continue.

### Other Platforms
The code should be easily portable: any areas where cross-platform differences appear should be clearly marked and easy to change in the future, meaning that while \*BSD/OS X are not supported, they should be easy enough to do in theory. Likely this would also require changes to [APG](https://github.com/SgtCoDFish/APG), espcially for native POSIX sockets.

Getting Started with Development
================================

Platform Specific Tips
----------------------

### Ubuntu 15.10
#### General

#### ODB
ODB is built using the old ABI and must be rebuilt. This isn't too hard; for example, using MySQL:

```
apt-get source libodb-dev
apt-get source libodb-mysql-dev

> extract both files
> then, in each directory...

./configure CXXFLAGS=-std=c++1y -DGLIB_CXX_USE_CXX11_ABI=1
make -j4
sudo make install
```

#### Boost
By default, the boost packages with Ubuntu 15.10 (wily) are built with the old C++ ABI and are therefore completely useless if you're otherwise using the standard toolset for modern C++.

To build boost on the new abi (assuming you've downloaded the latest source of boost from [the boost downloads page](http://www.boost.org/users/download/)):

```
tar xf boost_1_59_0.tar.gz # replace version as appropriate
cd boost_1_59_0
./bootstrap.sh --with-toolset=<clang|gcc> --with-libraries=program_options,filesystem,system # toolset and libraries as needed
./b2 toolset=<clang|gcc> cxxflags="-std=c++14 -w" define=_GLIBCXX_USE_CXX11_ABI=1 -j4
```

### Raspberry Pi (Raspbian/DietPi Jessie)
#### General
~~It is _not reccommended_ to run a login server on a Raspberry Pi. This is because the cryptographic code relating to login is much better handled on a 64-bit system as many of the operations relating to SHA and RSA encryption rely on 64-bit integers which are considerably slower on 32-bit processors like those in the Pi.~~ UPDATE: After changing to use SHA-256 this is not so true as SHA256 requires mainly 32-bit operations.

The long and short of this is that you'd likely have to choose a lower standard of encryption to be able to process login attempts on a Pi feasibly, as with the defaults it can take half a second or more to decrypt an RSA password and hash it, which with concurrent login attempts could lead to long delays for login. Map servers should run much more efficiently, however.

#### ODB
No libraries for ODB are provided in DietPi repos (unsure about Raspbian), so you need to compile yourself, although the process is as standard as you can get:

```
sudo apt-get install libmysqld-dev
./configure
make -j4
sudo make install
```

The harder part is the lack of an executable; the error message you'll get if you charge ahead is that g++ was compiled without plugin support, which it does actually have. You just need to install some more libraries relating to plugin development.

There's also a bug under g++ 4.9.2 which will stop you from compiling odb-2.4.0, see [here](http://www.codesynthesis.com/pipermail/odb-users/2015-February/002378.html). This is fixed by passing -fno-devirtualize to ./configure.

```
sudo apt-get install gcc-4.9-plugin-dev libcutl-dev libexpat-dev
cd odb-2.4.0
./configure CXXFLAGS=-fno-devirtualize
make -j4
sudo make install
```

Finally, you probably also need to add -fno-devirtualize to PlayPG when you compile it (because of the same bug). For example, assuming you're building a headless server:

```
cmake -DCMAKE_CXX_FLAGS=-fno-devirtualize -DCMAKE_BUILD_TYPE=Debug -DAPG_NO_SDL=ON ..
make -j4
```

There might be problems with building in Debug mode too; you might need to experiment. Once the Debian family is past the C++11 ABI change, these sorts of things should be much more clean.

#### Boost
You'll have to recompile from scratch because the Boost libraries provided by default are really out-of-date (1.55 at time of writing, when 1.60 is out). It's not pleasant and it's strongly recommended that if you have a cross compiler for the Pi you use it, because compiling natively is likely going to take a long time. PlayPG requires at least 1.56 but if you're compiling from scratch, why not use a more modern version anyway?

```
cd boost_1_60_0 # or whatever version you're using
./bootstrap.sh --with-libraries=filesystem,system,program_options # build them all by removing this option
																  # but if you're compiling natively and you do that, you're nuts
./b2 cxxflags="-std=c++1y" link=static threading=multi
sudo ./b2 install
```

### Debian (Jessie)
On the whole, the same applies for Debian as applies for Raspbian Jessie. The main difference is that, by default, it seems the odb libraries build without including the mysql libraries (assuming that you're using mysql). You'll need to specify -lmysqlclient manually. E.g.:

```
cmake -DAPG_NO_SDL=ON -DPlayPG_SERVER_LIBS=mysqlclient ..
```

### Windows
Boost is best built manually if you've not already got an installation of it, and you might need to set -DBOOST_ROOT=<path>.

Similar goes for OpenSSL; see [this guide](http://developer.covenanteyes.com/building-openssl-for-visual-studio/) for details (run 7-zip as admin to unzip and preserve symlinks)

When using CMake, testing is done for -G "NMake Makefiles". Generating projects files should work (but if you have experience in this area, testing is appreciated!)

### OS X
No attempt is made to run either the client or server on OS X due to a lack of hardware for testing and experience. If you want to implement it, feel free! In theory, there's nothing stopping the OS X deployment being similar to Linux, but platform-specific bugs/differences always crop up.

repository: SgtCoDFish/PlayPG

repo_name: SgtCoDFish/PlayPG


text:
# gentle-python-pptx

This library is created for repetitive processing large pptx presentations more CPU- and memory- effective than [python-pptx](https://github.com/scanny/python-pptx) library.

## Persisting cache feature

The library caches all properties calculated from the xml and allows to save the cache and restore it on the second pptx-file load.

## PPTX parsing status

`gentle-python-pptx` handles but `python-pptx` don't:
- Colors
- Nested text formatting
- Shapes adding/removal/duplication
- Slides adding/removal/duplication

`python-pptx` handles but `gentle-python-pptx` don't:
- Specification-right pptx parsing
- Tables
- Charts
- Notes slides

## How to use

```python
from gpptx.load import PresentationContainer

with open('file.pptx', mode='rb') as f:
    container = PresentationContainer(f)
    presentation = container.presentation
    # ...
```

repository: mszbot/gentle-python-pptx

repo_name: mszbot/gentle-python-pptx


text:
# es-cah-pay
Escape JSON as a string. In case you want to do something weird, like include JSON in JSON.

You can run this in your browser here: https://adalohq.github.io/es-cah-pay/

This was created during the beta of In App Purchases. Specifically for turning a Google Service Account JSON object into a string so that it can be passed to our subscription verification endpoint.

https://www.youtube.com/watch?v=cmCFT0qxzb8

repository: AdaloHQ/es-cah-pay

repo_name: AdaloHQ/es-cah-pay


text:
---
hrs_structure:
  division: '2'
  volume: '9'
  title: '24'
  chapter: '431'
  section: '431:6-601'
type: hrs_section
tags:
  - Business
menu:
  hrs:
    identifier: HRS_0431-0006-0601
    parent: HRS0431
    name: '431:6-601 Insurer investment pools'
weight: 11810
title: Insurer investment pools
full_title: '431:6-601 Insurer investment pools'
---
**[PART VI. INVESTMENT POOLS]**

**§431:6-601 Insurer investment pools.** (a) For purposes of this section:

"Business entity" means a corporation, limited liability company, association, partnership, joint stock company, joint venture, mutual fund trust, or other similar form of business organization, whether organized for-profit or not-for-profit.

"Class one money market mutual funds" means a mutual fund that at all times qualifies for investment using the bond class one reserve factor under the Purposes and Procedures of the SVO or any successor publication.

"Government money market mutual fund" means a money market mutual fund that at all times:

(1) Invests only in obligations issued, guaranteed, or insured by the government of the United States or collateralized repurchase agreements composed of these obligations; and

(2) Qualifies for investment without a reserve under the Purposes and Procedures of the SVO or any successor publication.

"Money market mutual fund" means a mutual fund that meets the conditions of 17 Code of Federal Regulations part 270.2a-7, under the Investment Company Act of 1940 (15 United States Code section 80a-1 et seq.), as amended, or renumbered.

"Obligation" means a bond, note, debenture, trust certificate, including equipment certificate, production payment, negotiable bank certificate of deposit, bankers' acceptance, credit tenant loan, loan secured by financing net leases and other evidence of indebtedness for the payment of money (or participation, certificates, or other evidence of an interest in any of the foregoing), whether constituting a general obligation of the issuer or payable only out of certain revenues or certain funds pledged or otherwise dedicated for payment.

"Qualified bank" means a national bank, state bank, or trust company that at all times is no less than adequately capitalized as determined by the standards adopted by the United States banking regulators and that is either regulated by state banking laws or is a member of the Federal Reserve System.

"Repurchase transaction" means a transaction in which an insurer purchases securities from a business entity that is obligated to repurchase the purchased securities or equivalent securities from the insurer at a specified price, either within a specified period of time or upon demand.

"Reverse repurchase transaction" means a transaction in which an insurer sells securities to a business entity and is obligated to repurchase the sold securities or equivalent securities from the business entity at a specified price, either within a specified period of time or upon demand.

"Securities lending transaction" means a transaction in which securities are loaned by an insurer to a business entity that is obligated to return the loans, securities, or equivalent securities to the insurer, either within a specified period of time or upon demand.

(b) An insurer may acquire investments in investment pools that:

(1) Invest only in:

(A) Obligations that are rated 1 or 2 by the SVO or have an equivalent of an SVO 1 or 2 rating (or, in the absence of a 1 or 2 rating or equivalent rating, the issuer has outstanding obligations with an SVO 1 or 2 or equivalent rating) by a nationally-recognized statistical rating organization recognized by the SVO and have:

(i) A remaining maturity of three hundred ninety-seven days or less or a put that entitles the holder to receive the principal amount of the obligation which put may be exercised through maturity at specified intervals not exceeding three hundred ninety-seven days; or

(ii) A remaining maturity of three years or less and a floating interest rate that resets no less frequently than quarterly on the basis of a current short-term index (federal funds, prime rate, treasury bills, London InterBank Offered Rate or commercial paper) and is subject to no maximum limit, if the obligations do not have an interest rate that varies inversely to market interest rate changes;

(B) Government money market mutual funds or class one money market mutual funds; or

(C) Securities lending, repurchase, and reverse repurchase transactions that meet all the requirements of section 431:6-318; or

(2) Invest only in investments which an insurer may acquire under this article, if the insurer's proportionate interest in the amount invested in these investments does not exceed the applicable limits of this article.

(c) For an investment in an investment pool to be qualified under this article, the investment pool shall not:

(1) Acquire securities issued, assumed, guaranteed, or insured by the insurer or an affiliate of the insurer;

(2) Borrow or incur an indebtedness for borrowed money, except for securities lending and reverse repurchase transactions that meet the requirements of this article; or

(3) Permit the aggregate value of securities then loaned or sold to, purchased from or invested in any one business entity under this section to exceed ten per cent of the total assets of the investment pool.

(d) The limitations of sections 431:6-105 and 431:6-402 shall not apply to an insurer's investment in an investment pool; however, an insurer shall not acquire an investment in an investment pool under this section if, as a result of and after giving effect to the investment, the aggregate amount of investments then held by the insurer under this section:

(1) In any one investment pool would exceed ten per cent of its admitted assets;

(2) In all investment pools investing in investments permitted under subsection (b)(2) would exceed twenty-five per cent of its admitted assets; or

(3) In all investment pools would exceed thirty-five per cent of its admitted assets.

(e) For an investment in an investment pool to be qualified under this section, the manager of the investment pool shall:

(1) Be organized under the laws of the United States or a state and designated as the pool manager in a pooling agreement;

(2) Be the insurer, an affiliated insurer, or a business entity affiliated with the insurer, a qualified bank, a business entity registered under the Investment Advisers Act of 1940 (15 U.S.C. §80a-1 et seq.), as amended, or, in the case of a reciprocal insurer or interinsurance exchange, its attorney-in-fact, or in the case of a United States branch of an alien insurer, its United States manager or affiliates or subsidiaries of its United States manager;

(3) Compile and maintain detailed accounting records setting forth:

(A) The cash receipts and disbursements reflecting each participant's proportionate investment in the investment pool;

(B) A complete description of all underlying assets of the investment pool (including amount, interest rate, maturity date (if any), and other appropriate designations); and

(C) Other records that on a daily basis, allow third parties to verify each participant's investment in the investment pool; and

(4) Maintain the assets of the investment pool in one or more accounts, in the name of or on behalf of the investment pool, under a custody agreement with a qualified bank. The custody agreement shall:

(A) State and recognize the claims and rights of each participant;

(B) Acknowledge that the underlying assets of the investment pool are held solely for the benefit of each participant in proportion to the aggregate amount of its investments in the investment pool; and

(C) Contain an agreement that the underlying assets of the investment pool shall not be commingled with the general assets of the custodian qualified bank or any other person.

(f) The pooling agreement for each investment pool shall be in writing and shall provide that:

(1) An insurer and its affiliated insurers or, in the case of an investment pool investing solely in investments permitted under subsection (b)(1), the insurer and its subsidiaries, affiliates, or any pension or profit sharing plan of the insurer, its subsidiaries and affiliates or, in the case of a United States branch of an alien insurer, affiliates or subsidiaries of its United States manager, at all times, shall hold one hundred per cent of the interests in the investment pool;

(2) The underlying assets of the investment pool shall not be commingled with the general assets of the pool manager or any other person;

(3) In proportion to the aggregate amount of each pool participant's interest in the investment pool:

(A) Each participant owns an undivided interest in the underlying assets of the investment pool; and

(B) The underlying assets of the investment pool are held solely for the benefit of each participant;

(4) A participant, or in the event of the participant's insolvency, bankruptcy, or receivership, its trustee, receiver, or other successor-in-interest, may withdraw all or any portion of its investment from the pool under the terms of the pooling agreement;

(5) Withdrawals may be made on demand without penalty or other assessment on any business day, but settlement of funds shall occur within a reasonable and customary period thereafter not to exceed five business days. Distributions under this paragraph shall be calculated in each case net of all then applicable fees and expenses of the investment pool. The pooling agreement shall provide that the pool manager shall distribute to a participant, at the discretion of the pool manager:

(A) In cash, the then fair market value of the participant's pro rata share of each underlying asset of the investment pool;

(B) In kind, a pro rata share of each underlying asset; or

(C) In a combination of cash and in kind distributions, a pro rata share in each underlying asset; and

(6) The pool manager shall make the records of the investment pool available for inspection by the commissioner.

(g) The investment pool authorized under these provisions shall be a business entity.

(h) Transactions between the pool and its participants shall not be subject to section 431:11-106\. Investment activities of pools and transactions between pools and participants shall be reported annually in the registration statement required by section 431:11-105\. [L 1997, c 233, pt of §1; am L 2004, c 122, §23; am L 2008, c 142, §10]

repository: SamMade/BlueAndKrabby

repo_name: SamMade/BlueAndKrabby


text:
# daimatus

![Logo](images/logo.png)

## Introduction

> This is a fullstack web used as online learning platform for fourth grade student. This web has client side for student to watch learning materials and do quiz. The admin web for teacher used for customize learning materials and quizzes. This web built using php native, html, css, and js.

## Demo
Check out the working live demo [client-site](https://daimatus.000webhostapp.com/) and [admin-site](https://daimatus.000webhostapp.com/)) with username : daimatus-admin and pass: daimatus-admin.

## Web Screenshoot
![Home](../assets/home_web.PNG)

![Materi](../assets/materi_web.PNG)

![Video](../assets/video_web.PNG)

![Kui](../assets/kuis_web.PNG)

![Admin Matpel](../assets/admin_matpel.PNG)

![Admin Kuis](../assets/admin_kuis.PNG)

## Mobile Screenshoot
The client site for students is compatible with mobile devices of all sizes.

## Technologies
* PHP 8.0.3
* HTML 5
* CSS
* JS
* MySQL
* Font Awesome 4.7.0
* Bootstrap 5.0
* JQuery 3.5.1
* SweetAlert 2

## Setup
Run this project using locally xampp:

* Open xampp, start apache and mysql and then open phpmyadmin
* Clone or download daimatus and move it to htdocs directory on xampp
* On phpmyadmin create new database and name it daimatus
* Klik import and choose file daimatus.sql from daimatus website in htdocs directory
* Open browser and go to link localhost/daimatus
* To open admin web got to localhost/daimatus/admin and login with username : daimatus-admin and password : daimatus-admin

## Features
Client site :
* List of all subjects
* Every subject have a list of topic material
* Students can watch video material on a topic
* Students can do a quiz on a topic, submit the quiz, and get the grade
* can display cute emoticon and play audio for a correct or wrong answer on quiz

Admin site :
* can log in to an existing admin account, create a new account, or update the account
* Ability to upload, update, and delete subject, topic, subtopic, and logo of a subject
* Ability to upload, update, and delete video materials
* Ability to upload, update, and delete quiz material
* monitor students quizzes grade
* can display or hide a subject

## License
This project is licensed under the terms of the [MIT license](https://github.com/erwintobing15/daimatus/blob/main/LICENSE).


text:
# ASP.NET Core Workshop

## Installers

### .NET Core SDK 2.2
Follow instructions from https://dotnet.microsoft.com/download

### Visual Studio 2017 (Offline Installer)
1. Run vs_community.exe in vs2017 folder
1. Select **only** `.NET Core` and `Web Development` workloads

### VS Code (on USB drive)
1. Install VS Code from USB drive or http://code.visualstudio.com.

repository: desjoerd/aspnetcore-concepts-workshop

repo_name: desjoerd/aspnetcore-concepts-workshop


text:
# Luna - Wrapping the Moon

More README coming soon, this project is being extracted from `dragon-mud` with
some syntax improvements/cleanup and comment improvements.

Becuase of that, still very much a WIP, the API will change between versions. And
this README will grow to accomodate.

## Special Thanks

Luna is built on top of the very excellent [gopher-lua](https://github.com/yuin/gopher-lua)
to provide a Lua state for executing source code inside of your Go library. If you're looking
for something more lightweight than Luna then you should look no further than here.

Luna is also powered by a lightweight wrapper for gopher-lua, [gopher-luar](https://github.com/layeh/gopher-luar)
which uses reflection to enable more flexibility in passing data to and from a Lua state.

repository: bbuck/luna

repo_name: bbuck/luna


text:
---
scapolite:
    class: rule
    version: '0.51'
id: auditd_data_retention_flush
id_namespace: org.ssgproject.RHEL-8
title: Configure auditd flush priority
rule: <see below>
rationale: <see below>
description: <see below>
applicability:
  - system: org.scapolite.xccdf.applicability
    severity: medium
  - system: https://scap.nist.gov/schema/cpe/2.2
    cpes:
      - cpe:/a:machine
implementations:
  - relative_id: '01'
    title: Automated fix
    automations:
      - system: urn:xccdf:fix:script:sh
        href: auditd_data_retention_flush.sh
  - relative_id: '02'
    title: Automated fix
    automations:
      - system: urn:xccdf:fix:script:ansible
        href: auditd_data_retention_flush.ansible
        complexity: low
        disruption: low
checks:
  - relative_id: '01'
    automations:
      - system: http://oval.mitre.org/XMLSchema/oval-definitions-5
        idref: oval:ssg-auditd_data_retention_flush:def:1
        href: auditd_data_retention_flush.oval.xml
        exports:
          - value_id_namespace: org.ssgproject.RHEL-8
            value_idref: var_auditd_flush
            variable_idref: oval:ssg-var_auditd_flush:var:1
  - relative_id: '02'
    automations:
      - system: http://scap.nist.gov/schema/ocil/2
        idref: ocil:ssg-auditd_data_retention_flush_ocil:questionnaire:1
        href: auditd_data_retention_flush.ocil.xml
crossrefs:
  - system: https://nvd.nist.gov/cce/index.cfm
    idref: CCE-80680-2
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '1'
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '12'
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '13'
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '14'
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '15'
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '16'
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '2'
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '3'
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '5'
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '6'
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '7'
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '8'
    relation: ''
  - system: https://www.cisecurity.org/wp-content/uploads/2017/03/Poster_Winter2016_CSCs.pdf
    idref: '9'
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: APO10.01
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: APO10.03
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: APO10.04
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: APO10.05
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: APO11.04
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: BAI03.05
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: DSS01.03
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: DSS03.05
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: DSS05.02
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: DSS05.04
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: DSS05.05
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: DSS05.07
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: MEA01.01
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: MEA01.02
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: MEA01.03
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: MEA01.04
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: MEA01.05
    relation: ''
  - system: http://www.isaca.org/COBIT/Pages/default.aspx
    idref: MEA02.01
    relation: ''
  - system: http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-171.pdf
    idref: 3.3.1
    relation: ''
  - system: http://iase.disa.mil/stigs/cci/Pages/index.aspx
    idref: CCI-001576
    relation: ''
  - system: https://www.gpo.gov/fdsys/pkg/CFR-2007-title45-vol1/pdf/CFR-2007-title45-vol1-chapA-subchapC.pdf
    idref: 164.308(a)(1)(ii)(D)
    relation: ''
  - system: https://www.gpo.gov/fdsys/pkg/CFR-2007-title45-vol1/pdf/CFR-2007-title45-vol1-chapA-subchapC.pdf
    idref: 164.308(a)(3)(ii)(A)
    relation: ''
  - system: https://www.gpo.gov/fdsys/pkg/CFR-2007-title45-vol1/pdf/CFR-2007-title45-vol1-chapA-subchapC.pdf
    idref: 164.308(a)(5)(ii)(C)
    relation: ''
  - system: https://www.gpo.gov/fdsys/pkg/CFR-2007-title45-vol1/pdf/CFR-2007-title45-vol1-chapA-subchapC.pdf
    idref: 164.312(a)(2)(i)
    relation: ''
  - system: https://www.gpo.gov/fdsys/pkg/CFR-2007-title45-vol1/pdf/CFR-2007-title45-vol1-chapA-subchapC.pdf
    idref: 164.312(b)
    relation: ''
  - system: https://www.gpo.gov/fdsys/pkg/CFR-2007-title45-vol1/pdf/CFR-2007-title45-vol1-chapA-subchapC.pdf
    idref: 164.312(d)
    relation: ''
  - system: https://www.gpo.gov/fdsys/pkg/CFR-2007-title45-vol1/pdf/CFR-2007-title45-vol1-chapA-subchapC.pdf
    idref: 164.312(e)
    relation: ''
  - system: https://www.isa.org/templates/one-column.aspx?pageid=111294&productId=116731
    idref: <IP_ADDRESS>.7
    relation: ''
  - system: https://www.isa.org/templates/one-column.aspx?pageid=111294&productId=116731
    idref: <IP_ADDRESS>.9
    relation: ''
  - system: https://www.isa.org/templates/one-column.aspx?pageid=111294&productId=116731
    idref: <IP_ADDRESS>.8
    relation: ''
  - system: https://www.isa.org/templates/one-column.aspx?pageid=111294&productId=116731
    idref: <IP_ADDRESS>.7
    relation: ''
  - system: https://www.isa.org/templates/one-column.aspx?pageid=111294&productId=116731
    idref: <IP_ADDRESS>
    relation: ''
  - system: https://www.isa.org/templates/one-column.aspx?pageid=111294&productId=116731
    idref: <IP_ADDRESS>
    relation: ''
  - system: https://www.isa.org/templates/one-column.aspx?pageid=111294&productId=116731
    idref: <IP_ADDRESS>
    relation: ''
  - system: https://www.isa.org/templates/one-column.aspx?pageid=111294&productId=116785
    idref: SR 2.10
    relation: ''
  - system: https://www.isa.org/templates/one-column.aspx?pageid=111294&productId=116785
    idref: SR 2.11
    relation: ''
  - system: https://www.isa.org/templates/one-column.aspx?pageid=111294&productId=116785
    idref: SR 2.12
    relation: ''
  - system: https://www.isa.org/templates/one-column.aspx?pageid=111294&productId=116785
    idref: SR 2.8
    relation: ''
  - system: https://www.isa.org/templates/one-column.aspx?pageid=111294&productId=116785
    idref: SR 2.9
    relation: ''
  - system: https://www.isa.org/templates/one-column.aspx?pageid=111294&productId=116785
    idref: SR 6.1
    relation: ''
  - system: https://www.isa.org/templates/one-column.aspx?pageid=111294&productId=116785
    idref: SR 6.2
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.12.4.1
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.12.4.2
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.12.4.3
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.12.4.4
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.12.7.1
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.14.2.7
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.15.2.1
    relation: ''
  - system: https://www.iso.org/standard/54534.html
    idref: A.15.2.2
    relation: ''
  - system: http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf
    idref: AU-9
    relation: ''
  - system: http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf
    idref: AU-12(1)
    relation: ''
  - system: https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.04162018.pdf
    idref: DE.CM-1
    relation: ''
  - system: https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.04162018.pdf
    idref: DE.CM-3
    relation: ''
  - system: https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.04162018.pdf
    idref: DE.CM-7
    relation: ''
  - system: https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.04162018.pdf
    idref: ID.SC-4
    relation: ''
  - system: https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.04162018.pdf
    idref: PR.PT-1
    relation: ''
  - system: https://nvd.nist.gov/cce/index.cfm
    idref: CCE-80680-2
    relation: ''
---

## /rule

Configure auditd flush priority

## /rationale

Audit
data should be synchronously written to disk to ensure log integrity.
These parameters assure that all audit event data is fully synchronized
with the log files on the disk.

## /description

The
`auditd` service can be configured to synchronously write audit event
data to disk. Add or correct the following line in
`/etc/audit/auditd.conf` to ensure that audit event data is fully
synchronized with the log files on the disk:

``` {html="http://www.w3.org/1999/xhtml" ns0="http://checklists.nist.gov/xccdf/1.1"}
flush =
```