text:
# Convolutional neural network in TensorFlow and Keras

In this repository you can find out how to implement CNN in Tensorflow/Keras for multiclass classification.

## Dataset

Dataset used in this project is MNIST dataset. You can download it by using built-in TensorFlow functions. For more explanation open the .ipynb file.

## Install

###     Supported Python version
         - Python version used in this project: 3.5+

###     Libraries used

> *  [TensorFlow](http://tensorflow.org) 1.2.0
> *  [Numpy](http://www.numpy.org) 1.10.4
> *  [Time]()
> *  [tqdm](https://pypi.python.org/pypi/tqdm) 4.15.0

## Code

The tensorflow version of CNN is inside **CNN_tensorflow_classification.ipynb**.

The Keras version is insider **Keras_cnn.ipynb**.

## Run

To run this project you will need some software, like Anaconda, which provides support for running .ipynb files (Jupyter Notebook).

After making sure you have that, you can run from a terminal or cmd next lines (Example  for Keras version):

`ipython notebook Keras_cnn.ipynb`

or

`jupyter notebook Keras_cnn.ipynb`

## License

MIT License

Copyright (c) 2017 Luka Anicin

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

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

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

repository: wendylop/cnn-tensorflow-keras

repo_name: wendylop/cnn-tensorflow-keras


text:
# Ciliomyces oropensis (Ces. ex Rabenh.) Höhn., 1906 SPECIES

#### Status
SYNONYM

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

#### Published in
null

#### Original name
Nectria oropensis Ces., 1857

### Remarks
null

repository: mdoering/backbone

path: /life/Fungi/Ascomycota/Sordariomycetes/Hypocreales/Bionectriaceae/Paranectria/Paranectria oropensis/ Syn. Ciliomyces oropensis/README.md

branch_name: refs/heads/master

extension: md

license_type: permissive

repo_name: mdoering/backbone


text:
# Cryptococcus hominis var. costantinii (Mello & L.G. Fern.) C.W. Dodge VARIETY

#### Status
ACCEPTED

#### According to
Index Fungorum

#### Published in
Medical mycology. Fungous diseases of men and other mammals 338 (1935)

#### Original name
Cryptococcus costantinii Guég.

### Remarks
null


text:
goconfig
========

[![Build Status](https://drone.io/github.com/Unknwon/goconfig/status.png)](https://drone.io/github.com/Unknwon/goconfig/latest)

## About

goconfig is a easy-use, comments-support configuration file parser for the Go Programming Language which provides a structure similar to what you would find on Microsoft Windows INI files.

The configuration file consists of sections, led by a "*[section]*" header and followed by "*name:value*" entries; "*name=value*" is also accepted. Note that leading whitespace is removed from values. The optional values can contain format strings which refer to other values in the same section, or values in a special DEFAULT section. Comments are indicated by ";" or "#"; comments may begin anywhere on a single line.

## Features

- It simplified operation processes, easy to use and undersatnd; therefore, there are less chances to have errors.
- It uses exactly the same way to access a configuration file as you use windows APIs, so you don't need to change your code style.
- It supports read recursion sections.
- It supports auto increment of key.
- It supports configuration file with comments each section or key which all the other parsers don't support!!!!!!!
- It supports get value through type bool, float64, int, int64 and string, methods that start with "Must" means ignore errors and get zero-value if error occurs.

## Example(Comments Support!!!!)

### config.ini

	; Google
	google=www.google.com
	search: http://%(google)s

	; Here are Comments
	; Second line
	[Demo]
	# This symbol can also make this line to be comments
	key1=Let's us GoConfig!!!
	key2=test data
	key3=this is based on key2:%(key2)s

	[What's this?]
	; Not Enough Comments!!
	name=try one more value ^-^

	[parent]
	name=john
	relation=father
	sex=male
	age=32

	[parent.child]
	age=3

	[parent.child.child]

	; Auto increment by setting key to "-"
	[auto increment]
	-:hello
	-:go
	-=config

### Code Fragment ([GoConfig_test.go](GoConfig_test.go))

```go
	c, err := LoadConfigFile("config.ini")
	if err != nil {
		t.Error(err)
	}

	// GetValue
	value, _ := c.GetValue("Demo", "key1") // return "Let's use GoConfig!!!"
	if value != "Let's us GoConfig!!!" {
		t.Error("Error occurs when GetValue of key1")
	}

	// GetComments
	comments := c.GetKeyComments("Demo", "key1") // return "# This symbol can also make this line to be comments"
	if comments != "# This symbol can also make this line to be comments" {
		t.Error("Error occurs when GetKeyComments")
	}

	// SetValue
	c.SetValue("What's this?", "name", "Do it!") // Now name's value is "Do it!"
	search, _ := c.GetValue(DEFAULT_SECTION, "search")
	c.SetValue(DEFAULT_SECTION, "path", search)
	key3, _ := c.GetValue("Demo", "key3")
	c.SetValue("Demo", "key3", key3)

	// You can even edit comments in your code
	c.SetKeyComments("Demo", "key1", "")
	c.SetKeyComments("Demo", "key2", "comments by code without symbol")
	c.SetKeyComments("Demo", "key3", "# comments by code with symbol")

	// Don't need that key any more? Pass empty string "" to remove! that's all!'
	c.SetValue("What's this?", "name", "") // If your key was removed, its comments will be removed too!
	c.SetValue("What's this?", "name_test", "added by test")

	// Support for recursion sections.
	age, _ := c.GetValue("parent.child", "age")
	if age != "3" {
		t.Errorf("Recursion section: should have %d but get %s.", 3, age) // 3, not 32.
	}
	name, _ := c.GetValue("parent.child", "name")
	if name != "john" {
		t.Errorf("Recursion section: should have %s but get %s.", "john", name) // "john", not empty.
	}
	name, _ = c.GetValue("parent.child.child", "name")
	if name != "john" {
		t.Errorf("Recursion section2: should have %s but get %s.", "john", name) // "john", not empty.
	}

	// GetSection and auto increment.
	se, _ := c.GetSection("auto increment")
	if len(se) != 3 {
		t.Errorf("GetSection: should have %d of map elements but get %d.", 3,
			len(se)) // 3
	}

	hello, _ := c.GetValue("auto increment", "#1")
	if hello != "hello" {
		t.Error("Error occurs when GetValue of auto increment: " + hello) // "hello", not empty.

- If you use other operation systems instead of windows, you may want to change global variable [ LineBreak ] in conf.go, replace it with suitable characters, default value "\r\n" is for windows only. You can also use "\n" in all operation systems because I use "\n" as line break, it may look strange when you open with Notepad.exe in windows, but it works anyway.
- API documentation: [Go Walker](http://gowalker.org/github.com/Unknwon/goconfig).

## Known issues

- Map is not thread-safe.

## References

- [goconf](http://code.google.com/p/goconf/)
- [robfig/config](https://github.com/robfig/config)
- [Delete an item from a slice](https://groups.google.com/forum/?fromgroups=#!topic/golang-nuts/lYz8ftASMQ0)

license: MIT

repository: huydeerpets/sdc

gha_license_id: MIT

repo_name: huydeerpets/sdc


text:
# Question
> Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right, which minimizes the sum of all numbers along its path.
>
> Note: You can only move either down or right at any point in time.
>
>  m == grid.length
>  n == grid[i].length
>  1 <= m, n <= 200
>  0 <= grid[i][j] <= 100

## Thoughts before Coding

## Pseudo Code

## Sketch

branch_name: refs/heads/main


text:
# DynamicDelaunayTriangulation
JS app that creates a delaunary triangulation graph with dynamic user input.
There are always two nodes, users can add and delete at whim

A Delaunay Triangulation graph is a triangulation in which all nodes are part of a triangulation, but no node is in two or more triangulations.

Example image:
![alt text](https://upload.wikimedia.org/wikipedia/commons/8/82/Delaunay_triangulation_does_not_minimize_edge_length.gif) <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/1f/Delaunay_circumcircles_centers.svg/1280px-Delaunay_circumcircles_centers.svg.png" width="300" height="300">

This is a summer project for fun.

repository: Camology/DynamicDelaunayTriangulation

repo_name: Camology/DynamicDelaunayTriangulation


text:
# argf

This is a small Go library that reads lines of text from either a file or files specified in `os.Args`, or, if
none are given, from stdin. It's similar to Ruby's `ARGF` or Perl's diamond operator.

This is mainly intended for tiny script-like CLI tools. Note that multiple goroutines should not call its
functions concurrently.

Here's how to write a simple version of `cat` using argf:

``` go
package main

import (
  "fmt"
  "github.com/cespare/argf"
  "os"
)

func main() {
  for argf.Scan() {
    fmt.Println(argf.String())
  }
  if err := argf.Error(); err != nil {
    fmt.Println(err)
    os.Exit(1)
  }
}
```

See full package documentation [at godoc.org](http://godoc.org/github.com/cespare/argf).

repository: buzztaiki/argf

repo_name: buzztaiki/argf


text:
---
title: "Z-Axis Cable Carrier"
slug: "z-axis-cable-carrier"
---

* toc
{:toc}

# Step 1: Prepare the cable carrier

Remove all of the snap-in **tabs** from the **z-axis cable carrier**. The z-axis cable carrier is the shortest cable carrier in the kit with 37 links in it (740mm) + end pieces.

# Step 2: Orient the cable carrier

There is only one orientation that the **z-axis cable carrier** mounts to the **cross-slide** and **z-axis**, and it is determined by the orientation of the **end pieces**. Inspect the images below to see how the cable carrier will be mounted, but do not attach it at this time.

{% include gallery.html images="
![z-axis cable carrier lower mount.png](_images/z-axis_cable_carrier_lower_mount.png)
![z cable carrier upper mount and bend.png](_images/z_cable_carrier_upper_mount_and_bend.png)
" %}

# Step 3: Lay out the tubing and wiring

Keeping the mounting orientation of the cable carrier in mind, lay the **UTM cable**, the two **liquid/gas tubes**, the **camera cable**, and the **z-axis motor and encoder cables** into the open cable carrier. The ends of everything should be offset from the end of the cable carrier as follows:

  * The ends of the tubes should extend 10cm beyond the end of the cable carrier.
  * The end of the UTM cable with bare wire ends (no connectors) should extend 10cm beyond the end of the cable carrier.
  * The end of the camera should extend 15cm beyond the end of the cable carrier.
  * The end of the z-axis motor cable with the white plug that connects to the motor should extend 100cm beyond the end of the cable carrier.
  * The end of the z-axis encoder cable with the white plug that connects to the encoder should extend 100cm beyond the end of the cable carrier.

![z-axis_cables.png](_images/z-axis_cables.png)

_Image of the extra lengths_

{%
include callout.html
type="success"
title="Organization is important!"
content="When laying the cables and tubing in the carrier, ensure that none of the cables or tubes criss-cross over each other. If they do, you will have trouble snapping in the tabs and you risk compressing the tubes and preventing air/water flow."
%}

# Step 4: Snap in some tabs

Snap in three **cable carrier tabs** at both ends of the cable carrier, and five more spread throughout the middle of the cable carrier so that as you mount the assembly, the cables and tubing will stay in place. You do not want to snap in all of the tabs at this time because that will make it difficult to adjust any of the tubes or cables if needed.

# Step 5: Mount the cable carrier to the cross-slide

Carefully lift the cable carrier assembly and drape it over the cross-slide.

![z cable carrier bend.png](_images/z_cable_carrier_bend.png)

Attach the **cable carrier** to the **cross-slide** using two **M5 x 45mm screws**, **M5 washers**, **M5 locknuts**, and the **cable carrier spacer block**. The screws should thread firmly through the cable carrier end pieces.

![z cc mount upper.png](_images/z_cc_mount_upper.png)

# Step 6: Attach the vertical cable carrier supports

Use two **M5 x 10mm screws** and **M5 tee nuts** to attach each of the five **vertical cable carrier supports** to the **z-axis extrusion**. Space the supports evenly along the extrusion as shown.

{% include gallery.html images="
![vertical cc support.png](_images/vertical_cc_support.png)
![vertical cc supports.png](_images/vertical_cc_supports.png)
" %}

# Step 7: Mount the cable carrier to the z-axis

Attach the **cable carrier** to the lowest **vertical cable carrier support** using two **M5 x 16mm screws**, **M5 washers**, **M5 locknuts**. The screws should thread firmly through the cable carrier end pieces. The mount should be about 100mm or more away from the UTM, but the location can be adjusted as necessary to aid cable installation.

![z cable carrier mount back.png](_images/z_cable_carrier_mount_back.png)

# Step 7: Feed the z-axis motor and encoder cables

Feed the **z-axis motor and encoder cables** up through the slots in the **vertical cable carrier supports**, and then through the slot in the **z-axis motor mount**.

![z motor guide.png](_images/z_motor_guide.png)

Connect the cables to the **z-axis motor and encoder**.

# Step 8: Add the vertical motor housing

Attach the **vertical motor housing** to the **z-axis extrusion** using two **M5 x 10mm screws** and **M5 tee nuts**.

![vertical housing.png](_images/vertical_housing.png)

# Step 9: Snap in the remaining tabs

Once everything is situated well, snap-in the remaining **cable carrier tabs**, ensuring that you maintain organization of the cables and tubing.

{%
include callout.html
type="warning"
title="Not easy to adjust"
content="Once you snap-in the remaining tabs, it will become impossible to adjust any of the cables and tubing without removing the majority of the tabs first.
%}

# What's next?

 * [Y-Axis Cable Carrier](y-axis-cable-carrier.md)

repository: onumag/farmbot-genesis

repo_name: onumag/farmbot-genesis


text:
# kafka-junit

This library wraps Apache Kafka's [KafkaServerStartable](https://github.com/apache/kafka/blob/1.1/core/src/main/scala/kafka/server/KafkaServerStartable.scala#L32) class and allows you to easily create and run tests against
one or more "real" kafka brokers. No longer do you need to setup and coordinate with an external kafka cluster for your tests! The library transparently supports running a single or multi-broker cluster.  Running a multi-broker cluster allows you to validate how your software reacts under various error scenarios, such as when one or more brokers become unavailable.

## Features
- Support for JUnit 4 and JUnit 5.
- Support for all Kafka versions from 0.11.0.x through 3.4.x
- Support for running either single broker cluster, or multi-broker clusters.
- Support for PLAINTEXT, SASL_PLAINTEXT, SASL_SSL, and SSL listeners.

## Using Kafka-JUnit with JUnit 4.

Please review [Kafka-JUnit4 Readme](kafka-junit4/) for usage instructions with JUnit4.

## Using Kafka-JUnit with JUnit 5.

Please review [Kafka-JUnit5 Readme](kafka-junit5/) for usage instructions with JUnit5.

## Using Kafka-JUnit-Core.

For use cases where you want to embed Kafka broker/cluster within your existing software, you can make use of the core package directly.  Please review [Kafka-JUnit-Core Readme](kafka-junit-core/) for usage instructions.

# Contributing

Found a bug? Think you've got an awesome feature you want to add? We welcome contributions!

## Submitting a Contribution

1. Search for an existing issue. If none exists, create a new issue so that other contributors can keep track of what you are trying to add/fix and offer suggestions (or let you know if there is already an effort in progress).  Be sure to clearly state the problem you are trying to solve and an explanation of why you want to use the strategy you're proposing to solve it.
1. Fork this repository on GitHub and create a branch for your feature.
1. Clone your fork and branch to your local machine.
1. Commit changes to your branch.
1. Push your work up to GitHub.
1. Submit a pull request so that we can review your changes.

 We might also ask you to rebase it if master changes after you open your pull request.*

## Acceptance Criteria

We love contributions, but it's important that your pull request adhere to some of the standards we maintain in this repository.

- All tests must be passing!
- All code changes require tests!
- All code changes must be consistent with our checkstyle rules.
- Great inline comments.

# Other Notes

## Checkstyle

We use checkstyle aggressively on source and tests, our config is located under the 'script' folder and can be imported into your IDE of choice.

## Releasing

Steps for proper release:
- Update release version: `mvn versions:set -DnewVersion=X.Y.Z`
- Validate and then commit version: `mvn versions:commit`
- Update CHANGELOG and README files.
- Merge to master.
- Deploy to Maven Central: `mvn clean deploy -P release-kafka-junit`
- Create release on Github project.

## Changelog

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

[View Changelog](CHANGELOG.md)

## License

BSD 3-Clause [View License](LICENSE.txt).

repository: salesforce/kafka-junit

gha_language: Java

repo_name: salesforce/kafka-junit


text:
# Mininet Rest Frontend

Provides a simple REST API to allow creation of networks within Mininet.  Supported API's and payloads are shown below.  **NOTE** all POST methodes require setting *Content-Type: 'application/json'* in the request header.

## Cleanup

Removes all switches, hosts and links from Mininet.

**Method**: POST

**Endpoint**: /cleanup

**Results**: OK

## Switches

Provides the ability to create a new switch and get status of one or more switches.

### Create Switch
**Method**: POST

**Endpoint**: /switch

**Payload**:

```
{
  "switches": [
    {
      "name": "sw4",
      "dpid": "0000000000000004"
    },
    {
      "name": "sw5",
      "dpid": "0000000000000005"
    }
  ]
}
```

### Get All Switches
**Method**: GET

**Endpoint**: /switch

**Results**:

```
[
  {
    "interface": [
      {
        "status": "OK",
        "mac": null,
        "name": "lo"
      }
    ],
    "connected": false,
    "name": "sw5",
    "dpid": "0000000000000005"
  },
  {
    "interface": [
      {
        "status": "OK",
        "mac": null,
        "name": "lo"
      }
    ],
    "connected": false,
    "name": "sw4",
    "dpid": "0000000000000004"
  }
]
```

### Get One Switch
**Method**: GET

**Endpoint**: /switch/<switch_name>

**Results**:

```
{
  "interface": [
    {
      "status": "OK",
      "mac": null,
      "name": "lo"
    }
  ],
  "connected": true,
  "name": "sw4",
  "dpid": "0000000000000004"
}
```

## Links

Provides the ability to create a new link and get status of all links.

### Create Link
**Method**: POST

**Endpoint**: /links

**Payload**:

```
{
  "links": [
    {
      "node1": "sw5",
      "node2": "sw4"
    }
  ]
}
```

### Get Links
**Method**: GET

**Endpoint**: /links

**Results**:

```
[
  {
    "status": "(OK OK)",
    "name": "sw5-eth1:sw4-eth1"
  }
]
```

## Controller

Provides the ability to create a new controller and get status of all controllers.

### Create Controller
**Method**: POST

**Endpoint**: /controller

**Payload**:

```
{
  "controllers": [
  	{
  		"name": "floodlight",
  		"host": "<IP_ADDRESS>",
  		"port": 6653
  	}
  ]
}
```

### Get Controllers
**Method**: GET

**Endpoint**: /controller

**Results**:

```
[
  {
    "host": "<IP_ADDRESS>",
    "name": "floodlight",
    "port": 6653
  }
]
```

## Topology

The topology endpoint allows sending in a complete topology in a single API call.

### Create Topology
**Method**: POST

**Endpoint**: /topology

**Payload**:

```
{
  "controllers": [
  	{
  		"name": "floodlight",
  		"host": "<IP_ADDRESS>",
  		"port": 6653
  	}
  ],
  "links": [
    {
      "node1": "sw1",
      "node2": "sw2"
    }
  ],
  "switches": [
    {
      "name": "sw1",
      "dpid": "0000000000000001"
    },
    {
      "name": "sw2",
      "dpid": "0000000000000002"
    }
  ]
}
```

### Get Topology
**Method**: GET

**Endpoint**: /topology

Returns back the created topology.

```
{
  "controllers": [
    {
      "host": "<IP_ADDRESS>",
      "name": "floodlight",
      "port": 6653
    }
  ],
  "switches": [
    {
      "interface": [
        {
          "status": "OK",
          "mac": null,
          "name": "lo"
        },
        {
          "status": "OK",
          "mac": null,
          "name": "sw1-eth1"
        }
      ],
      "connected": true,
      "name": "sw1",
      "dpid": "0000000000000001"
    },
    {
      "interface": [
        {
          "status": "OK",
          "mac": null,
          "name": "lo"
        },
        {
          "status": "OK",
          "mac": null,
          "name": "sw2-eth1"
        }
      ],
      "connected": true,
      "name": "sw2",
      "dpid": "0000000000000002"
    },
  ],
  "links": [
    {
      "status": "(OK OK)",
      "name": "sw2-eth1:sw1-eth1"
    }
  ]
}
```

## TODO

1. create_host
2. shutdown link
3. shutdown switch
4. block traffic via iptables on a link (simulate failure at the core of a link while the ports stay up.
5. dump_flows from the switches
6. shutdown a controller
7. specify controller(s) a switch is connected to
8. ping between hosts

repository: nikitamarchenko/open-kilda

repo_name: nikitamarchenko/open-kilda


text:
# game-of-life

A game of life html page powered by Vue components.

Made with [the Vue webpack template](https://github.com/vuejs-templates/webpack).

Just check [the github page ](https://sergeon.github.io/vue-components-game-of-life/) with the game. So cool :-D!

## Disclaimer:

Those kind of things should be made with canvas. This is just a project to explore [Vue](https://vuejs.org).

## Build Setup

``` bash
# install dependencies
yarn || npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report
```

repository: Sergeon/vue-components-game-of-life

repo_name: Sergeon/vue-components-game-of-life


text:
### Do you track users?
We count the number of people visiting our homepage, as shown by the page counter.  We also count the number of times the DCG is run.  And nothing else.
We do not collect any information on IP addresses.
We do not collect any information on your parameter inputs.
We do not collect any information on your outputs.

### Has the original method in Grimm et al (2018) been altered for the online tool?
Yes, three changes have been implemented.  These are:

- Choice of pooling method
- Alternative curve fitting procedure
- Alternative method for calculating diffusion curves for centiles

Further details of these changes can be found via the DCG methods tab.

### Which method of expert elicitation should I use?
The distribution and parameters used within our original work used the tercile method set within the Sheffield Elicitation Framework (SHELF).  These values were elicited from individual interviews with three experts and combined through linear aggregation.
However, we would not consider this to be the ‘best method’; in general, group elicitation is preferred, whilst the method used for the derivation of distribution and parameters is more open to debate.  The choice of method needs to be made carefully, taking into consideration your own requirements and constraints. Piloting is essential.
For further information on elicitation methods go to our Elicitation page.

### Are any other distributions available for expert elicitation?
Whilst the use of other distributions is possible, we have focused on those available within SHELF and the MATCH Uncertainty Elicitation Tool.  We have added a triangular distribution to allow for the quick specification of values from informal discussions, but we would not recommend this as a method for generating robust results.

### Can I generate the results using the original method in Grimm et al (2018)?
The original methods can not be generated using this online tool.  The original methods can be implemented outside this tool by following the description given in the journal article.

### How are the time horizon and time intervals derived?
You don’t need to know…but you can override this and specify your own.

### Can an alternative time horizon or time intervals be chosen?
Yes.

### Can I request changes to the DCG?
Yes, contact us.  But we may not be able to do it.

Or [Bugs report](https://github.com/Sheffield-Diffusion-Curve/DCGApp/issues).

### Can I get the code that sits beneath the DCG?
This is freely available via Github.  Search for Sheffield-Diffusion-Curve

### Has a description of the tool been published in a journal?
We will be submitting this to a journal in the near future.

### How should I report the use of the tool in a paper?
Clearly, this is ultimately up to you.  It must meet the requirements of the publisher, but we would suggest that you cite the original paper (Grimm et al, 2018) that developed the methods and which is peer reviewed.  The URL for the tool should also be cited.

### How quick is the DCG?
Very quick. It will run in around 3 second for 1000 re-samples, but might a bit slower due to server loading. If its performance drops much below this, please let us know.

repository: Sheffield-Diffusion-Curve/DCGApp

repo_name: Sheffield-Diffusion-Curve/DCGApp


text:
---
layout: post
title: The Bellman-Ford Algorithm
date: 2016-08-09
categories: blog
tags: [Algorithms,Notes, Dynamics programming]
description: The Bellman-Ford Algorithm
---

**Input:**

Directed graph G = (V,E), edge lengths $c_e$ for each e ∈ E, source vertex s ∈ V . [Can assume no parallel edges.]

**Goal:**

For every destination v ∈ V , compute the length (sum of edge costs) of a shortest s-v path.

### On Dijkstra’s Algorithm

**Good News**

O(E log V) running time using heaps

**Bad News**

* Not always correct with negative edge lengths

* Not very distributed

### Optimal Substructure

Suppose the input graph G has no negative cycles, **For every v, there is a shortest s-v path with ≤ n − 1 edges**

**Key idea:**

Artificially restrict the **number of edges** in a path. Subproblem size ⇐⇒ Number of permitted edges

### The Recurrence

**Notation**

$L_{i,v}$ minimum length of a s-v path, with no bigger than i edges

**Recurrence**

$L_{i,v}$ = min ( $L_{i-1,v}$, $min_{u,v \in E} L_{i-1,w} + C_{wv}  $ )

### Running Time

$O(n^2)$ Space Complexity

Outer loop: V loop

Inner Choice: $\sum_{v \in V} \mbox(indeg) V$

Time $O(E * V)$

### Python Implentation

```Python
def bellman_ford(graph,	node):
    n =	len(graph.keys())
    distance = [float("inf") for _ in range(n)]
    predecessor	[ None for _ in	range(n)]
    distance[node] = 0
    #relax
    for	i in range(1,n-1):
	for u in graph.keys():
            for	v,w in graph[v]:
		if distance[u]+w<distance[v]:
                    distance[v] = distance[u]+w
                    predecessor[v] = u
    #check if there is any negative circle
    for	u in graph.keys():
	for v, w in graph[u]:
            if distance[v] > distance[u] + w:
		print "Found a negative circle!"
		return
    return distance, predecessor

```

gha_language: JavaScript


text:
This Screener is from 'Design is a Job,' by Mike "Fucking" Monteiro. It's a damn great book. This is from their site

I recommend you buy it: http://www.abookapart.com/products/design-is-a-job

#CLIENT SCREENER

* What is the primary business and structure of your business/organization?

* Summarize the project

* What are your major goals for this project?

* Where do you see us adding the most value/complementing your existing team?

* Who will be working on this project from your end? Will any additional outside partners or agencies be involved and how?

* What is motivating you or enabling you to do this project now?

* When does our work need to be finished? What is your target total completion date? What is driving that?

* What is most important about this project?

How important is each of these?
: Change in company strategy
: Rebranding/New image/Look and feel
: Engineering/Backend development
: Improving key metrics/Quantifying success or results/Conversion
: Content strategy/writing
: Understanding your audience or organization
: Getting it done as fast as possible
: Getting it done as inexpensively as possible
: Differentiating from competition
: Reach new audience
: Better demonstrate value or correct misconceptions
: Working relationship/communication with your design partner
: Who is/are your audience/your target users/your customers?
: What does success look like? How will you know this project has succeeded?

* What are you worried about? What do you imagine going wrong?

* Is there anything about your organization that might make this project easier or harder in any specific ways?

* What is your budget range?

* What does the selection process look like on your end? How many people are you talking to and when do you expect to be making a decision?

repository: digisavvy/business-documents-agreements

repo_name: digisavvy/business-documents-agreements


text:
% RTCHitN(3) | Embree Ray Tracing Kernels 4

#### NAME

    RTCHitN - hit packet of runtime size

#### SYNOPSIS

    #include <embree4/rtcore.h>

    struct HitN;

    float& RTCHitN_Ng_x(RTCHitN* hit, unsigned int N, unsigned int i);
    float& RTCHitN_Ng_y(RTCHitN* hit, unsigned int N, unsigned int i);
    float& RTCHitN_Ng_z(RTCHitN* hit, unsigned int N, unsigned int i);

    float& RTCHitN_u(RTCHitN* hit, unsigned int N, unsigned int i);
    float& RTCHitN_v(RTCHitN* hit, unsigned int N, unsigned int i);

    unsigned& RTCHitN_primID(RTCHitN* hit, unsigned int N, unsigned int i);
    unsigned& RTCHitN_geomID(RTCHitN* hit, unsigned int N, unsigned int i);
    unsigned& RTCHitN_instID(RTCHitN* hit, unsigned int N, unsigned int i, unsigned int level);

#### DESCRIPTION

When the hit packet size is not known at compile time (e.g. when
Embree returns a hit packet in the `RTCFilterFuncN` callback
function), Embree uses the `RTCHitN` type for hit packets. These hit
packets can only have sizes of 1, 4, 8, or 16. No other packet size
will be used.

You can either implement different special code paths for each of these
possible packet sizes and cast the hit to the appropriate hit packet
type, or implement one general code path that uses the `RTCHitN_XXX`
helper functions to access hit packet components.

These helper functions get a pointer to the hit packet (`hit`
argument), the packet size (`N` argument), and returns a reference
to a component (e.g. x component of `Ng`) of the the i-th hit of
the packet (`i` argument).

#### EXIT STATUS

#### SEE ALSO

[RTCRayN]

repository: embree/embree

repo_name: embree/embree


text:
Ness Computing JMX Component
============================

Component Charter
-----------------

* Expose MBeans server and exporter
* Bind JMX to defined ports and IPs.
* Expose JMX information through REST API.

Component Level
---------------

* Use logging, lifecycle, config, galaxy.

----
Copyright (C) 2012 Ness Computing, Inc.

repository: hgschmie/components-ness-jmx

repo_name: hgschmie/components-ness-jmx


text:
# Gosl. rnd. Random numbers and probability distributions

More information is available in [the documentation of this package](http://rawgit.com/cpmech/gosl/master/doc/xxrnd.html).

repository: BoonieBear/gosl

repo_name: BoonieBear/gosl


text:
# Overview

Set of scripts used to gather current state from a network.  This can be
used to take a point-in-time snapshot of a network before and after a change
is made.

Uses the NAPALM Python library as the interface to network devices.

Inventory files use the Ansible inventory format.

# Usage

Currently extending the IOSDriver class from NAPALM with a new `get_cdp_neighbors` function.  Goal is to submit a PR to bring this into NAPALM.

Example:

    # Print the CDP table from a device in a CSV format

    usage: cdp_gather.py [-h] [--host HOST] [--inventory INVENTORY] [--user USER]
                         [--passvar PASSVAR]

    optional arguments:
      -h, --help              show this help message and exit
      --host HOST             Device Host/IP
      --inventory INVENTORY   Ansible Inventory file to use (instead of --host)
      --user USER             User ID
      --passvar PASSVAR       Environmental variable with PW. Otherwise, prompt.

repository: rbenigno/netstate

repo_name: rbenigno/netstate


text:
---
aliases:
- /2011/03/19/aesthetics-in-protest
title: Aesthetics in Protest
date: 2011-03-19
media-type:
- audio
tags:
- Left Forum
- Left Forum 2011
- Aesthetics
- Journal of Aesthetics and Protest
- Protest
- Reclaim the Streets
- Yes Men
speakers:
- Chris Mansour
- Jamie Keesling
- Laurel Whitney
- Marc Herbst
- Stephen Duncombe
series:
- Left Forum 2011
- Left Forum
---

_A panel discussion organized by the Platypus Affiliated Society, held on March 19, 2011 at Left Forum, Pace University._

## Audio Recording

{{% audio type="mpeg" src="https://archive.org/download/AestheticsInProtest/LfAestheticsInProtestsNls.mp3" %}}

A transcript of Chris Mansour's remarks appears in [Platypus Review #39](/2011/08/31/antinomy-of-art-and-politics/)

## Panelists

[Chris Mansour](/speakers/chris-mansour)
 - Parsons School of Design, Platypus Affiliated Society

[Jamie Keesling](/speakers/jamie-keesling/)
 - 491

[Laurel Whitney](/speakers/laurel-whitney/)
 - Yes Men

[Marc Herbst](/speakers/marc-herbst/)
 - Journal of Aesthetics and Protest, Reclaim the Streets

[Stephen Duncombe](/speakers/stephen-duncombe)
 - New York University

## Description

This panel will focus on the aesthetic tropes that activists use to express political dissent. Theatrical gestures such as street art (e.g., glamdalism), dance parties (e.g., Funk the War), or costumes have found their way into protest tactics. Simultaneously, many contemporary artists create 'activist' or 'social' art by pulling off media pranks against the government or corporations (e.g., Yes Men), reenact past protests (e.g., Mark Tribe or Sharon Hayes) and other forms of public performances. What are the historical roots that contribute to the use of current aesthetic interventions in political protests? In what ways do they expand or limit the possibilities for protests to transform the social order? How does experimenting with aesthetic and artistic sensibilities influence our political consciousness and practice? Political thinkers and art-activists will address these questions in order to make sense of the various forms of protest today.


text:
# About RegReplace

## Overview

RegReplace is a Sublime Text plugin that allows creating commands consisting of sequences of find and replace instructions.

![edit panel](imgs/edit_panel.png)

## Features

- Create find and replace rules that can then be used to create Sublime Commands to call at any time.
- Chain multiple regular expression find and replace rules together.
- Create rules that can filter regular expression results by syntax scope.
- Create rules that target specific scopes and apply regular expression to the content.
- Create commands that highlight results and require confirmation before replacing.
- Create find and fold/unfold commands to fold or unfold the found results instead of replacing them.
- Create find and mark/unmark commands to simply highlight or unhighlight results instead of replacing them.
- Create advanced commands that can run a plugin to do more complex replaces.

repository: Yubyf/RegReplace

repo_name: Yubyf/RegReplace


text:
(hadoop-terraform-oracle-cloud) deploy Hadoop on Oracle Cloud Infrastructure
https://docs.google.com/spreadsheets/d/1RbTIA_83ZvYVCA9q7ybimA5zBD6a6jJ3Q5nRlpHB2WI/

# Quickstart-hadoop

These are Terraform modules that deploy [Hadoop](https://hadoop.apache.org/) on [Oracle Cloud Infrastructure (OCI)](https://cloud.oracle.com/en_US/cloud-infrastructure).

## About
Apache Hadoop is an open-source software for reliable, scalable, distributed computing.  Hadoop framework allows distributed processing of large data sets across clusters of computers using simple programming models

Oracle Cloud Infrastructure Hadoop Terraform Module deploys a secure Hadoop replica set on Oracle Cloud Infrastructure (OCI) using Terraform.

## Prerequisites
1. [Download and install Terraform](https://www.terraform.io/downloads.html) (v0.10.3 or later)
2. [Download and install the OCI Terraform Provider](https://github.com/oracle/terraform-provider-oci) (v2.0.0 or later)
3. Export OCI credentials using guidance at [Export Credentials](https://github.com/oracle/terraform-provider-oci#export-credentials).

## Usage

```hcl
module "hadoop" {
  source               = "./modules"
  compartment_id       = "${var.compartment_ocid}"
  display_name         = "${var.display_name}"
  availability_domains = "${var.availability_domains}"
  image_id             = "${var.image_id}"
  subnet_ids           = "${var.subnet_ids}"
  ssh_authorized_keys  = "${var.ssh_authorized_keys}"
  ssh_private_key      = "${var.ssh_private_key}"
  bastion_host         = "${var.bastion_public_ip}"
  bastion_user         = "${var.bastion_user}"
  bastion_private_key  = "${var.bastion_private_key}"
}
```


text:
# LINQ

# LINQ

Let's progress our learning slightly

LINQ is a special language generated by Microsoft to read databases.

LINQ has 2 types

    from c in customers
    where c.City="Berlin"
    select c

    customers.Where(c=>c.City=="Berlin");

# Getting Started

Microsoft have their own test database
1) Northwind ==> Business database with customers
2) Adventure Works

url: https://raw.githubusercontent.com/venkatthatavarthi/course-notes/ccba9a2c4a26e17d9f12ecb73cd9c0318445d6b1/course notes-old/C Course Notes August 2019/LINQ.md

repository: venkatthatavarthi/course-notes

repo_name: venkatthatavarthi/course-notes


text:
# AEM-CLI

Have you tried to create docker image for your lovely AEM?
AEM CLI gives you ability to install AEM in a following manner:
```
aem start -q AEM_6.3_quickstart.jar -p 4502 -r author --detached
aem installPkg package-with-SP1.zip
aem stop 4502
```

## Follow me

- [Installation](docs/how-to-install.md)
- [Tips and tricks](docs/tips-and-tricks.md)

## Available commands
### aem start

Usage: `aem start [options]`

Starts or installs AEM from specified quickstart file and waits until startup is completed.

Options:

```
-p, --port <port>              AEM port (default: 4502)
-r, --runmodes <runmodes>      Comma separated runmodes (default: author)
-q, --quickstart <quickstart>  Path to quickstart jar file (default: aem-quickstart.jar)
-d, --detached                 Whether to start AEM in detached mode
-t, --timeout <timeout>        Timeout in seconds after installation (default: 30)
-h, --help                     output usage information
```

Example: `aem start -q AEM_6.3_quickstart.jar -p 4502 -r author --detached`

Explanation: starts AEM from AEM_6.3_quickstart.jar on port 4502 with author runmode in separated OS process.

**NOTE**
This command will wait until startup is finished if run with detached option.

### aem installPkg

Usage: `aem installPkg [options] <zipFile>`

Upload specified ZIP file to AEM and install it. Supports URL as source.

Options:

```
-p, --port <port>        AEM port (default: 4502)
-t, --timeout <timeout>  Timeout in seconds after installation (default: 30)
-h, --help               output usage information
```

### aem installBundle

Usage: `installBundle [options] <bundle>`

Installs specified bundle to AEM. Supports URL as source.

Options:

```
-p, --port <port>        AEM port (default: 4502)
-t, --timeout <timeout>  Timeout in seconds after installation (default: 5)
-h, --help               output usage information
```

### aem stop

Usage: `aem stop [options] <port>`

Stop AEM processes (including sub-processes) and wait until all are exit.

Options:
```
-s, --signal <signal>  The signal to send, either as a string or number. (default: SIGINT)
-h, --help             output usage information
```

### aem remove

Usage: `remove [options] <path>`

Removes specified path in CRX.

Options:

```
-p, --port <port>        AEM port (default: 4502)
-t, --timeout <timeout>  Timeout in seconds after installation (default: 0)
-h, --help               output usage information
```

repository: vhonchar/aem-cli

repo_name: vhonchar/aem-cli


text:
# Bootstrapping a Developer System

To do development for Engage Digital, it is useful to set up an agent which can receive and send messages and a source channel to receive messages from and post messages to.

This tutorial covers setting up a basic email source and and using Engage Digital to receive and send email, which you can develop against.

**Configuration**

Setting up the agent and source channel allows Engage Digital to receive and respond to messages.

1. Enable the "Create a source" Permission
1. Create a Community
1. Create an Email Source

**Handle Test Message**

Sending and responding to a test message allows your app to respond to message flows.

1. Send an Inbound Email
1. Respond to the Inbound Email

## Configuration

### Enable the "Create a source" Permission

Before you can create a source, make sure you have the "Create a source" Permission.

1. Check the role for your user by goiong to the "Admin" > "AGENTS MANAGEMENT" > "Agents" page and look up the Role namefor your agent.
1. Navigate to "Admin" > "AGENTS MANAGMENT" > "Roles" and click on the edit Pencil icon for your user's Role Name.
1. Under the "ADMIN - MANAGE MESSAGES" section, verify the "Create a source" permission is checked. If it is not, add it and click "Save".

### Creating a Community

Before you can create a source, a Community is needed to attach the Source channel to. If you don't already have a Community, use the following instructions to create one.

1. In the Enage Digital Console, go to "Admin" > "MESSAGES MANAGEMENT" > "Communties".
1. In the upper right corner, click "+" and then "Email" to bring up the "Create a community page".
1. Type a name into the "Name" field such as "Email".
1. Leave "Active" checked and click "Save".

### Create an Email Source

To use Engage Digital, a message needs to b configured to send and receive messages. Engage Digital Supports many different Source messaging channels, including custom ones.

To bootstrap your system we will describe how to set up a simple Email Source as it is one of the simplest to set up. This will enable you to send and receive messages. See thee Engage Digital documentation for setting up other message sources.

In your Engage Digital console, perform the following steps:

1. Navigate to: "Admin" > "MESSAGES MANAGEMENT" > "Sources"
1. Click the "+" in the upper right corner and then select "Email" to bring up the "Create a source" page.
1. Under "GENERAL SETTINGS" > "Name", enter a name for this source. A common approach is to use the email address you select in "POSTMARK SETTINGS" > "Email Address" mentioned below.
1. Under "GENERAL SETTINGS" > "Community", select the desired community, which will be the one you created in thee previous section.
1. Under "POSTMARK SETTINGS" > "Email Address". You can use the default email address. For quick setup, either use the default email address or just use the SMTP username and use the existing SMTP hostname. For example, you can use an email like the following<EMAIL_ADDRESS>It is possible to use a custom email domain but that is outside the scope of this tutorial. See the Engage Digital documentation for more.
1. Click "Save" at the bottom of the page.

To verify the settings, click on the source name in the esource list and verify that the "GENERAL SETTINGS" > "Active" checkbox is clicked, and that the "POSTMARK SETTINGS" > "Enable" checkbox is clicked.

## Handle Test Message

### Send an Inbound Email

Use any email client to send an email to the one you chose above. For example:

<EMAIL_ADDRESS>
### Respond to the Inbound Email

1. Navigate to "FOLDERS" > "New Messages" to view inbound messages. Select the message from the queue you wish to respond to and click "Engage".
1. Click "Engage" to move the message to the "Global Inbox".
1. Click the "Global Index" folder, select the message, and click "Reply" to bring up the Email Reply window. Type a reply and click "Send".

repository: embbnux/engage-api-docs

repo_name: embbnux/engage-api-docs


text:
# CSS Style guide

## “Outside In” — Ordering CSS Properties by Importance

A [poll on CSS tricks][1] found that a staggering 39% of developers order their CSS rules randomly, while 45% group by type.

I have taken ordering by type one step further, and created groups of properties with properties ordered within.

This method attempts to start with big picture stuff, like layout and size, and works towards finer details, like typography and list styles.

The name and inspiration for this method comes from [Guy Routledge][2] in [this article][3].

The grouping and order I use is as follows:
* Layout (position, display, top, bottom, flex, etc)
* Box Model Properties (width, height, margin, padding, overflow, etc)
* Border (width, height, radius, image, etc)
* Background (color, image, position, size, etc)
* Animation (transition, animation, etc)
* Typography (font, line-height, align, color, shadow, decoration, quotes, white-space, etc)
* List (style, position, type, image)
* Table (layout, empty-cells, border-spacing, etc)
* Navigation (nav-index, nav-left, etc)
* Misc (zoom, counter, cursor, pointer-events)

Some other rules that I work by:
* Width before Height
* Properties affecting sides are ordered same as the shorthand order, following the W3C spec
  * top, right, bottom, left
* Border radius is
  * top-left, top-right, bottom-right, bottom-left
* Blank lines between groups of properties (if there are more than 4 properties)

## How to use this repo

You can view a full list of all properties in the correct order in `All properties.txt`

For a list suitable for use in an IDE, see `IDE.txt` or you can import the `.editorconfig` file

##### Other files (for those curious enough)
* `styles` directory
  * Contains individual files for each group of properties
* `build.sh`
  * Generates `All properties.txt` and `IDE.txt` from the files in `styles`

[1]: https://css-tricks.com/poll-results-how-do-you-order-your-css-properties/
[2]: http://www.guyroutledge.co.uk/
[3]: https://webdesign.tutsplus.com/articles/outside-in-ordering-css-properties-by-importance--cms-21685

license: Unlicense

repository: MacroMan/CSS-style-guide

repo_name: MacroMan/CSS-style-guide


text:
# Lab Report: Continuous Integration
___
**Course:** CIS 411, Spring 2021
**Instructor(s):** [Trevor Bunch](https://github.com/trevordbunch)
**Name:** Julina Metz
**GitHub Handle:** [julinametz](https://github.com/julinametz)
**Repository:** https://github.com/julinametz/cis411_lab2_arch
___

# Step 1: Confirm Lab Setup
- [X] I have forked the repository and created my lab report
- [X] I have reviewed the [lecture / discsussion](../assets/04p1_SolutionArchitectures.pdf) on architecture patterns.
- [X] If I'm collaborating on this project, I have included their handles on the report and confirm that my report is informed, but not copied from my collaborators.

# Step 2: Analyze the Proposal
Serve central is a web and mobile application that allows volunteers to register and search for service opportunities in their area.

## Step 2.1 Representative Use Cases

| Use Case #1 | |
|---|---|
| Title | Volunteer Registration for Service Event |
| Description / Steps | 1. Volunteer selects event
||2. Volunteer enters any information required for the event
||3. Volunteer confirms registration
||4. Volunteer is provided with additional details such as exact meeting time and location for the event
||5. Organization is notified a volunteer has registered.   |
| Primary Actor | Volunteer |
| Preconditions | 1. Volunteer has created an account |
| Postconditions | 1. Volunteer’s account updates to show they attended the service event
||2. Service event updates to show current number of volunteers registered |

| Use Case #2 | |
|---|---|
| Title | Service Event Registration |
| Description / Steps | 1. Organization navigates to new event registration page
||2. Organization enters all necessary details including but not limited to: location, meeting time, and service event description.
||3. Organization confirms registration |
| Primary Actor | Organization hosting a service event |
| Preconditions | 1. Organization has created an account
||2. Organization has been verified |
| Postconditions | 1. The event is posted for volunteers to see |

## Step 2.2 Define the MVC Components

| Model | View | Controller |
|---|---|---|
| Service Events | Available Events Feed | ShowEventsController  |
| Organization | Organization Information Page | ShowProfileController |
| Events | New Service Event Form | AddEventController |
| Volunteer | Volunteer Registration Form | RegistrationEventController |

## Step 2.3 Diagram a Use Case in Architectural Terms
![Use Case Diagram](/assets/Use%20Case%20Diagram.PNG) When an organization wants to add a new service event, they navigate to the New Service Event Form view. They will enter the service event information, which will be passed through the AddEventController to the Events Model. The Events Model will update the information in the database and update the view to show the organization a confirmation of the added event.

# Step 3: Enhancing an Architecture

## Step 3.1 Architecture Change Proposal
I would continue using MVC as the architectural model even with the added requirements. Switching architectural models after several months of successful operation would be difficult and  since it isn’t necessary to incorporate the new features, it isn’t worth it. One drawback is that the MVC architecture could become difficult to maintain when more changes are required down the line.

## Step 3.2 Revised Architecture Diagram
![Revised Diagram](/assets/Revised%20Diagram.PNG)
The third party now has access to the model to input and retrieve data. The organization specific interface is connected to the controller and view to show that the user can interact directly with the website through the controller, or they can access the site from an organization specific interface and that will affect the view.

# Step 4: Scaling an Architecture
Load balancing should be implemented to handle the increase in traffic. It will be able to handle the bursts in traffic and deliver with latency of less than 15 seconds. The load balancing architecture also allows for redundancy and it will be easily scalable so we can handle the necessary 50TB of data storage. One downside for implementing load balancing is the cost.

Microservice architecture would work well to satisfy the last two requirements because it can offer brokered communication for authorized parties to access the data they need. It would easily be able to examine patterns of volunteers. Microservice would also be able to handle increased traffic flow and is easily scalable for growing data storage requirements.

A new architecture will be needed because the current architecture cannot handle the amount of traffic in the new requirements. Microservice is probably the best option for the current requirements, however load balancing is also a good option.


text:
---
layout: default
---

## About Me

I am a graduate student at California Institute of Technology, working on modeling and analysis of synthetic biological circuits. I am working in the [Murray Lab](http://www.cds.caltech.edu/~murray/wiki/index.php?title=Main_Page). Refer to the [Projects](https://ayush-pandey.github.io/projects) and [Publications](https://ayush-pandey.github.io/publication) page for more information on my current work.

Before joining Caltech, I graduated with a bachelors and a masters degree from the Indian Institute of Technoloy (IIT) Kharagpur, India. My Bachelor of Technology (Hons.) degree is in instrumentation engineering and Master of Technology in
Control System Engineering from the Electrical Engineering department.

## Research Interests

* Control theory
* Systems and synthetic biology
* Robust and optimal control
* Robotics

---

## Note -
### _I have moved my webpage to Caltech domain, so this will not be updated anymore. For the latest version, visit this [link](http://www.its.caltech.edu/~apandey/)._

gha_language: HTML


text:
# TL;DR

```
hexaforce:~ relics9$ docker version
Client: Docker Engine - Community
 Version:           18.09.2

hexaforce:~ relics9$ docker-compose version
docker-compose version 1.23.2, build 1110ad01

hexaforce:~ relics9$ php -v
PHP 7.3.5 (cli) (built: May  2 2019 12:40:36) ( NTS )

hexaforce:~ relics9$ composer -v
Composer version 1.8.4 2019-02-11 10:52:10

hexaforce:~ relics9$ laravel -v
Laravel Installer 2.1.0
```

## procedure
```

git clone git@github.com:hexaforce/laravel-docker.git

cd laravel-docker

#### New creaate Laravel application
laravel new laravel
cat .env.docker > ./laravel/.env

cd laravel

composer install
php artisan key:generate

#### Or your Laravel repository
# git submodule add https://github.com/<your>/<laravel-repository>.git laravel

cd ..

docker-compose up

```

## look up

http://localhost:8080/

![SS](ss.png "SS")

## php debugging
![debug](php-debug.png "debug")

## redis gui

* Redis Commander
http://localhost:8081/

## windows
It may not work with docker for windows.Please refer to the following.
https://forums.docker.com/t/volume-mounts-in-windows-does-not-work/10693
Installing [Cygwin](https://www.cygwin.com/) may help.

repository: hexaforce/laravel-docker

repo_name: hexaforce/laravel-docker


text:
viking
======

Docker PaaS Platform for node.js applications.

The main objective of viking is to help you move westward and colonize server-farms with viking apps.

STATUS - Defunct - this version was the brainstorm - version 2 is composed out of bits

```
 /-\  //\ (-)  ~  ~  (-)  ~~~~     ~~~~
 \\-\//-/ |-| |-|/-/ |-| |----\   /----|
  \\-V-/  |-| |- -<  |-| |-|||-| |-(_|-|
   \\-/   |-| |-|\-\ |-| |-|||-|  \----|
                                   __|-|
                                  |---/
```

## installation

```
$ wget -qO- https://raw.github.com/binocarlos/viking/master/bootstrap.sh | sudo bash
```
## example viking file

This is an example stack that has 3 node.js workers - 1 one them with a volume and 2 services.

```yaml
# our viking is born
viking:
  name: ragnar
  comment: Ragnarr Hamster Loðbrók

# must build boats before sail
# can use local images in FROM statements using:
# FROM viking:<stackname>/<imagename>
build:
  src: |
    FROM quarry/monnode
    ADD . /srv/app
    RUN cd /srv/app && npm install
# images can inherit from other images in viking
# this image inherits from ragnar/src
  inherit: |
    FROM viking:ragnar/src
    RUN echo "setting" > /etc/mysetting

# our warrior viking formation
deploy:
  # the db viking - this is a node.js process that wraps a leveldb
  # we save the leveldb data into a volume so when we push new code - the data is still there
  db:
    # what boat this warrior will use
    image: viking:ragnar/src
    # expose docker ports - this automatically writes an endpoint to etcd for everything to see
    expose:
      - 80
    # allow persistent data - if a container has a volume it means it will be run on the same server each time
    volume:
      - /data/db
    # the command we run for this node
    run: mon node index.js --volume=/data/db
    # where the command is run
    cwd: /srv/app/db
  # a stateless service - this can be scaled and will run anywhere
  logic:
    # we use the same base codebase
    image: viking:ragnar/src
    # this means 2 processes will be run on different servers (if possible)
    scale: 2
    expose:
      - 80
    # and they have specific instructions
    run: mon node index.js
    cwd: /srv/app/logic
  # a HTTP serving process - this is stateless and will expose domains to the front router
  website:
    image: viking:ragnar/src
    scale: 3
    expose:
      - 80
    run: mon node index.js
    cwd: /srv/app/website
    # each domain is automapped to the front end HTTP router
    # this applies to each of the exposed ports in the image
    domains:
      - "thetracktube.com"
      - "www.thetracktube.com"
      - "tracktube.local.digger.io"
      - "tracktube.lan.digger.io"
  # a static website - this required no memory it will be virtuall hosted by the generic web server
  help:
    type: website
    # the document_root triggers static website mode
    document_root: ./help/www
    # static websites get hooked up to the front router too
    domains:
      - "help.thetracktube.com"
      - "*.help.thetracktube.com"
  # a service - these are fixed containers (with volumes) that are not restarted
  mongo:
    image: quarry/mongo
    # dont restart this process when we push code - multiple versions of code can use the same service this way
    service: true
    expose:
      - 27017
    volume:
      - /data/db
  redis:
    image: quarry/redis
    service: true
    expose:
      - 6379
    volume:
      - /data/db
```

## jobs

Here are the various jobs performed by files in /lib

### host
the process that runs on ALL viking servers (master or slave)

if the server is a master then host will react to a change in the etcd master and launch the leader on that server

### leader
this process runs on only one viking server - the master that is designated as etcd leader

the leader runs the dispatch, network, deployment, schedule and monitor modules

#### network
the network looks after the physical hosts we have on the network by managing a folder in etcd

#### deployment
the main database interface to the current state of the stack in terms of running processes

#### schedule
the interface to creating jobs - this will use the deployment to manage /proc

#### dispatch
this listens on /proc for new jobs and decides where on the network the job will run - the dispatch is what chooses where stuff runs

#### dowding
the main planner function - dowding knows what resources (servers) we have and the requirements for each process it will try to meet

#### monitor
monitors all running services and keeps /ports up to date with current endpoints

### slave
runs on each viking slave - listens to /deploy/hostname

## config
load the config from /etc/viking and env

## builder
loop over a viking file and build images and commit them to the registry

## stack
represent a single stack with its source directory

## vikingfile
process the YAML file that describes a stack

## volume
simple api to a docker volume

## state
load the current state of the whole stack

## server
represent a single server

## process
wrap a running process with mon

## job
represent a single process to be run

## imagebank
keep a log of images uploaded to the registry

## hostmonitor
running on every viking host - update /host/hostname

## endpoints
load the network information for running processes

## dockerrun
wrap a docker run statement

## container
wrap a docker container

## deploy job

The flow for the keys when deploying a job:

 1. write the job to /proc from anywhere (via schedule module)
 2. dispatch is listening to /proc
 3. dowding choose which server from /host
 4. dowding use /fixed to keep services locked onto one server
 5. deployment runJob which writes to
   * /run/stack/node/tag = hostname
   * /deploy/hostname/stack/node/tag = ''
 6. slave which is listening to /deploy/hostname
 7. use /count (via deployment) for sanity check against failing containers
 8. write /deploy/hostname/stack/node/tag = container_name
 9. write /ports/stack/node/port/proto/ip/hostPort/jobId

## etcd keys

The database for the stack is distributed using [etcd](https://github.com/coreos/etcd).

The keys are:

 * /image/stack/tag/node - the images we have uploaded to the local registry
 * /host/hostname - a list of the servers currently on our network
 * /proc/stack/tag/node - the list of processes to run
 * /run/stack/tag/node = hostname - allocation table
 * /deploy/hostname/stack/tag/node = <containerName> - deployment table
 * /counter/hostname/stack/tag/node - failed run table
 * /ports/stack/tag/node/port/proto/ip/hostPort/jobId - network
 * /images/stack/tag/node - images uploaded to the registry

## api

The rest api:

### `GET /v1/ping`

return true if the API is working

### `GET /v1/info`

return a JSON object of the current state

### `GET /v1/network`

list the servers on the network

### `GET /v1/server/SERVERNAME`

get the full JSON for a single server

### `GET /v1/stacks`

get a list of the current stacks

### `GET /v1/stack/STACKNAME`

get the info for a stack

### `GET /v1/tags/STACKNAME`

get a list of the tags for a stack

### `GET /v1/nodes/STACKNAME/TAG`

get a list of the nodes for a stack + tag

### `GET /v1/allocate/STACKNAME/TAG/NODENAME`

## license

MIT

repository: binocarlos/viking-brainstorm

repo_name: binocarlos/viking-brainstorm


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

### Description

In phpMyAdmin 4 before 4.9.4 and 5 before 5.0.1, SQL injection exists in the user accounts page. A malicious user could inject custom SQL in place of their own username when creating queries to this page. An attacker must have a valid MySQL account to access the server.

### POC

#### Reference
- https://cybersecurityworks.com/zerodays/cve-2020-5504-phpmyadmin.html

#### Github
- https://github.com/ARPSyndicate/cvemon
- https://github.com/CnHack3r/Penetration_PoC
- https://github.com/Mr-xn/Penetration_Testing_POC
- https://github.com/SexyBeast233/SecBooks
- https://github.com/YIXINSHUWU/Penetration_Testing_POC
- https://github.com/hasee2018/Penetration_Testing_POC
- https://github.com/huike007/penetration_poc
- https://github.com/huike007/poc
- https://github.com/nomi-sec/PoC-in-GitHub
- https://github.com/password520/Penetration_PoC
- https://github.com/soosmile/POC
- https://github.com/whale-baby/exploitation-of-vulnerability
- https://github.com/winterwolf32/CVE-S---Penetration_Testing_POC-
- https://github.com/xMohamed0/CVE-2020-5504-phpMyAdmin
- https://github.com/xuetusummer/Penetration_Testing_POC
- https://github.com/yedada-wei/-
- https://github.com/yedada-wei/gongkaishouji

repository: trickest/cve

repo_name: trickest/cve


text:
# blockmatic.io

Blockmatic Official Website

## Contributing

Read the [contributing guidelines](https://developers.blockmatic.io) for details.

## License

MIT © [Blockmatic](http://blockmatic.io)

---

## Blockmatic

Blockmatic is building a robust ecosystem of people and tools for the development of blockchain applications.

[blockmatic.io](https://blockmatic.io)

<!-- Please don't remove this: Grab your social icons from https://github.com/carlsednaoui/gitsocial -->

<!-- display the social media buttons in your README -->

[![Blockmatic Twitter][1.1]][1]
[![Blockmatic Facebook][2.1]][2]
[![Blockmatic Github][3.1]][3]

<!-- links to social media icons -->
<!-- no need to change these -->

<!-- icons with padding -->

[1.1]: http://i.imgur.com/tXSoThF.png (twitter icon with padding)
[2.1]: http://i.imgur.com/P3YfQoD.png (facebook icon with padding)
[3.1]: http://i.imgur.com/0o48UoR.png (github icon with padding)

<!-- icons without padding -->

[1.2]: http://i.imgur.com/wWzX9uB.png (twitter icon without padding)
[2.2]: http://i.imgur.com/fep1WsG.png (facebook icon without padding)
[3.2]: http://i.imgur.com/9I6NRUm.png (github icon without padding)

<!-- links to your social media accounts -->
<!-- update these accordingly -->

[1]: http://www.twitter.com/blockmatic_io
[2]: http://fb.me/blockmatic.io
[3]: http://www.github.com/blockmatic

<!-- Please don't remove this: Grab your social icons from https://github.com/carlsednaoui/gitsocial -->

gha_language: TypeScript


text:
# Platform-Security-Bundle

The Security bundle extends the [OroSecurityBundle](https://github.com/orocrm/platform/tree/master/src/Oro/Bundle/SecurityBundle) and provides the developers additional core security functionality.

[![Code Climate](https://codeclimate.com/github/DigitalState/Platform-Security-Bundle/badges/gpa.svg)](https://codeclimate.com/github/DigitalState/Platform-Security-Bundle)
[![Test Coverage](https://codeclimate.com/github/DigitalState/Platform-Security-Bundle/badges/coverage.svg)](https://codeclimate.com/github/DigitalState/Platform-Security-Bundle/coverage)

## Table of Contents

- [Migration Extensions](#migration-extensions)
- [Todo](#todo)

## Migration Extensions

This bundle introduces a convenient [migration extension](Migration/Extension) to help with loading yml-based acl data fixtures.

**Example**:

```php
<?php

namespace Gov\Bundle\DemoBundle\Migrations\Data\ORM;

use Doctrine\Common\DataFixtures\AbstractFixture;
use Ds\Bundle\UserBundle\Migration\Extension\AclExtensionAwareInterface;
use Ds\Bundle\UserBundle\Migration\Extension\AclExtensionAwareTrait;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
use Doctrine\Common\Persistence\ObjectManager;

class LoadAclData extends AbstractFixture implements AclExtensionAwareInterface, ContainerAwareInterface
{
    use AclExtensionAwareTrait;
    use ContainerAwareTrait;

    public function load(ObjectManager $manager)
    {
        // Currently extensions are not automatically injected via the *AwareInterface.
        $this->setAclExtension($this->container->get('ds.security.migration.extension.acl'));
        //

        $resource = __DIR__.'/../../../Resources/data/acl.yml';
        $this->aclExtension->import($resource, $manager);
    }
}
```

```yml
acl:
    ROLE_CASE_MANAGER:
        Entity:DsCaseBundle:CaseEntity: [ VIEW_SYSTEM, CREATE_SYSTEM, EDIT_SYSTEM, DELETE_SYSTEM, ASSIGN_SYSTEM ]
        Entity:DsCaseStatusBundle:Status: [ VIEW_SYSTEM, CREATE_SYSTEM, EDIT_SYSTEM, DELETE_SYSTEM, ASSIGN_SYSTEM ]
```

## Todo

repository: DigitalState/Platform-Security-Bundle

branch_name: refs/heads/develop

gha_language: PHP

repo_name: DigitalState/Platform-Security-Bundle


text:
# @aws-sdk/token-providers

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/token-providers/latest.svg)](https://www.npmjs.com/package/@aws-sdk/token-providers)
[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/token-providers.svg)](https://www.npmjs.com/package/@aws-sdk/token-providers)

A collection of all token providers. The token providers should be used when the authorization
type is going to be token based. For example, the `bearer` authorization type set using
[httpBearerAuth trait][http-bearer-auth-trait] in Smithy.

## Static Token Provider

```ts
import { fromStatic } from "@aws-sdk/token-providers";

const token = { token: "TOKEN" };
const staticTokenProvider = fromStatic(token);

const staticToken = await staticTokenProvider(); // returns { token: "TOKEN" }
```

## SSO Token Provider

```ts
import { fromSso } from "@aws-sdk/token-providers";

// returns token from SSO token cache or ssoOidc.createToken() call.
const ssoToken = await fromSso();
```

## Token Provider Chain

```ts
import { nodeProvider } from "@aws-sdk/token-providers";

// returns token from default providers.
const token = await nodeProvider();
```

[http-bearer-auth-trait]: https://smithy.io/2.0/spec/authentication-traits.html#smithy-api-httpbearerauth-trait

---

### Development

This package contains a minimal copy of the SSO OIDC client, instead of relying on the full client, which
would cause a circular dependency.

When regenerating the bundled version of the SSO OIDC client, run the esbuild.js script and then make the following changes:

- Remove any dependency of the generated client on the credential chain such that it would create
  a circular dependency back to this package. Because we only need the `CreateTokenCommand`, the client, and this command's
  associated `Exception`s, it is possible to remove auth dependencies.
- Ensure all required packages are declared in the `package.json` of token-providers.


text:
# Responsive Page Text

> Mixins for LESS and Sass (.scss) to make all page text —font sizes and line heights— responsive

Set your font-sizes and line-heights with these mixins, set a mobile scale factors for font size and line height if you want to (or use the defaults), and all text on your page will scale down automagically.

Want some text to scale differently? Use a media query to give that text a different full-size value for mobile.

Want some text to always stay the same size? Want some text to keep its font size while scaling its line height? Want some text to keep its line height while scaling its font size? Just don't use the mixin for the things you want to keep constant, or override the mixin with an explicit style.

## Demos:

- LESS: https://codepen.io/henry/pen/brOzZw?editors=1100
- Sass (.scss): https://codepen.io/henry/pen/qXLwZa?editors=1100

	![responsive-page-text](https://user-images.githubusercontent.com/3282350/29940024-e200b6ac-8e5b-11e7-8584-ecc71c6e6abf.gif)

## Usage

1. Set variables

	name | argument | default | what is it?
	-----|----------|---------|------------
	`fz` | `{number}`, unitless | `14` | page base font-size (e.g. for 14px, `14`)
	`lh` | `{number}`, unitless | `18` | page base line-height (e.g. for 18px, use `18`)
	`mobile-font-size-factor` | `{number}`, unitless | `.74` | the factor by which to scale font size on mobile
	`mobile-line-height-factor` | `{number}`, unitless | `mobile-font-size-factor * 5/4` | the factor by which to scale line height on mobile

2. Style with the font-size and line-height mixins

	mixin | argument | default | what does it do?
	------|----------|---------|-----------------
	`fz()` | `{number}`
 pixel font size / 1px | `fz` | sets font size
	`lh()` | `{number}`
 ratio of line height to font size | `lh` | sets line height
	`fzlh()` | `{number,number}`
 arg1: unitless font size
 arg2: unitless line height | `fz, lh` | shorthand to set both `fz()` and `lh()`

	### Examples

	- Setting font size to 20px and line height to 24px:

		```less
		// LESS
		my-target {
		  .fzlh(20,24)
		}
		```

		```scss
		// Sass.scss
		my-target {
		  @include fzlh(20,24)
		}
		```

	- Setting font size to 20px:

		```less
		// LESS
		my-target {
		  .fz(20)
		}
		```

		```scss
		// Sass.scss
		my-target {
		  @include fz(20)
		}
		```

	- Setting line spacing to double-spaced:

		```less
		// LESS
		my-target {
		  .lh(2)
		}
		```

		```scss
		// Sass.scss
		my-target {
		  @include lh(2)
		}
		```


text:
---
title: "Islam and Jihad"
created_at: Sat Apr 22 11:29:33 MDT 2017
kind: article
tags:
  - religion
  - islam_jihad
  - islam
---

  Jihad Watch online - Robert Spencer site

  The History of Jihad: From Muhammad to ISIS Hardcover – August 7, 2018 by Robert Spencer (Author)
  $24.30 at amazon

  historyofislam.com/contents

Prof. Dr. Nazeer Ahmed, PhD
Prof. Dr. Ibrahim B. Syed, DSc
Dr. Ibrahim Gamard, PhD
Dr. Abdullah Hakim Quik, PhD
Prof. Dr. Abdel Latif Aljibury, PhD

sword and scimitar
raymond ibrahim

  raymond ibrahim
  raymondibrahim.com/about

RAYMOND IBRAHIM is a widely published author, public speaker, and Middle
East and Islam specialist.  His books include The Al Qaeda Reader
(Doubleday, 2007), Crucified Again: Exposing Islam’s New War on
Christians (Regnery, 2013), and Sword and Scimitar: Fourteen Centuries
of War between Islam and the West (Da Capo, Spring 2018).

Ibrahim’s dual-background—born and raised in the U.S. by Coptic
Egyptian parents born and raised in the Middle East—has provided
him with unique advantages, from equal fluency in English and Arabic,
to an equal understanding of the Western and Middle Eastern mindsets,
positioning him to explain the latter to the former. His interest in
Islamic civilization was first piqued when he began visiting the Middle
East as a child in the 1970s. Interacting and conversing with the locals
throughout the decades has provided him with an intimate appreciation
for that part of the world, complementing his academic training.

  Sword and Scimitar: Fourteen Centuries of War between Islam and the West
  hardcover at amazon $24.30

Charles Martel - Battle of Tours

  thoughtco.com article
  Muslim Invasions: Charles Martel

Bill Warner, PhD - Political Islam

  politicalislam.com

  Political Islam Youtube channel

  Political Islam youtube
  Bill Warner, PhD: Why We Are Afraid, No Subtitles

  Red Ice TV youtube
  Dr. Bill Warner - The True History of Muslim Conquests - Hour 1

Medina 1/2 Jewish

Apostasy wars with Abu Baqr

  Red Ice TV youtube
  Radio 3Fourteen - Dr. Bill Warner - Political Islam: History of Islam in Europe

  The Christian Post - search: Islam

Nonie Darwish - Arabs for Israel

  Answering Islam Site

  americanthinker.com/articles
  Can Islam ever be reformed? By Nonie Darwish

Muslim reformer Zuhdi Jasser has recently attacked leaders of the anti-Jihad movement in America.

In 2007 a horrific article was written against Wafa Sultan and myself
in the cover of a prominent Egyptian magazine Rose El Yousef, in which
we were both condemned as “apostates” who are just as bad as Muslim
terrorists, Taliban leaders and the blind Sheikh, Omar Abdel-Rahman,
who caused the 1993 world trade center bombing. Note that the Egyptian
magazine did not place a photo of Usama Bin Laden, because he was popular
among many Muslims.

  wikipedia.org/wiki
  Wafa Sultan

Book (2009).  A God Who Hates by Wafa Sultan

Paperback: 256 pages
Publisher: St. Martin's Griffin; Reprint edition (April 26, 2011)
Language: English
ISBN-10:<PHONE_NUMBER>
ISBN-13:<PHONE_NUMBER>361

M. Zuhdi Jasser

A Battle for the Soul of Islam
An American Muslim Patriot's Fight to Save His Faith

by M. Zuhdi Jasser

  Former Muslims Unitied Site

Jim Sharp Class

<EMAIL_ADDRESS>
http://www.meforum.org/

  Daniel Pipes, Director,
  Middle East Forum

Sandra Solomon

  The Glazov Gang youtube
  Sandra Solomon Moment: What Islam Taught Me About the Jews.

  Political Islam youtube
  https://www.youtube.com/watch?v=8CvmkdOh9Y0

Links

  Islam 101 by Gregory M. Davis pdf

  historyofjihad.org

History of Islamic Conquest

711 to 788 - Umayyad conquest of Hispania

  wikipedia.org/wiki
  Umayyad conquest of Hispania

Forces commanded by Tariq ibn Ziyad disembarked in early 711 at Gibraltar
at the head of an army consisting of Berbers (north-western Africa). He
campaigned his way northward after the decisive Battle of Guadalete
against the usurper Roderic, after which he was reinforced by an Arab
force led by his superior wali Musa ibn Nusair. By 717, the combined
force had crossed the Pyrenees into Septimania and Provence (734).

Battle of Toulouse (721)

  wikipedia.org/wiki
  Battle of Toulouse (721)

The Battle of Toulouse (721) was a victory of an Aquitanian Christian
army led by Duke Odo of Aquitaine over an Umayyad Muslim army besieging
the city of Toulouse, and led by the governor of Al-Andalus, Al-Samh
ibn Malik al-Khawlani. The victory checked the spread of Umayyad control
westward from Narbonne into Aquitaine.

Aftermath

Arab historians agree that the Battle of Toulouse was a total
disaster. After the defeat, some Umayyad officials and soldiers managed
to escape, among them Abdul Rahman Al Ghafiqi. However, the clash halted
indefinitely the Umayyad expansion northwards. Al-Andalus was at the
time re-organising into a new after-Gothic order. The Umayyads kept the
military initiative raiding several times the south of Gaul (up to Autun
in 725), but avoided new serious campaigns into the north-west.

Odo's victory earned him widespread renown in Aquitaine and recognition
abroad, he came up reinforced. He was hailed as champion of Christianity
by the Pope in Rome, and was even presented with gifts. Charles steered
clear of the political and military developments in the south of Gaul
for another 10 years, until 732.

The fateful engagement, the so-called Balat Al Shuhada of Toulouse,
would be still remembered in memorials by Al-Andalus Muslims for the
following 450 years, as opposed to the Battle of Poitiers, held as a
minor battle.

Discussion

Some historians believe that the Battle of Toulouse halted the Muslim
conquest of Europe even more than the later—and more celebrated—Battle
of Tours (10 October 732, between Tours and Poitiers), but this is highly
problematic: for even had the Arabs won at Toulouse, they still would
have had to conquer the Franks to retain control of the region. However,
nearly all historians agree that the Christian victory at Toulouse was
important in a macrohistorical sense in that it gave Charles Martel badly
needed time to strengthen his grip on power and build the veteran army
which stood him in such good stead eleven years later at Tours. The eleven
years between Toulouse and Tours without question gave him time to fully
secure power, inspire the loyalty of his troops, and, most importantly,
drill the core of veterans who stood so stoutly in 732.

While Odo faded into history after his horrific defeat at Bordeaux,
the Battle of Toulouse is important as it bought time for Martel to
prepare for the invasion mounted by Abd al Rahman in 732. However, others
(e.g. Archibald Lewis, Roger Collins, etc.) hold that Umayyad attacks
were raids or razzias, like the one reaching as far north as Autun in
725, and not real attempts to conquer Francia. Ironically, while Odo is
forgotten, Martel was hailed in later times as the "savior of Europe"
by many Western and European authors and academic figures.

  wikipedia.org/wiki
  Battle of the River Garonne, also known as the Battle of Bordeaux

The Battle of the River Garonne, also known as the Battle of Bordeaux,
was fought in 732 between an Umayyad army led by Abdul Rahman Al
Ghafiqi, governor of Al-Andalus, and Aquitanian forces led by Duke Odo
of Aquitaine.

The battle

Following the victory at Bordeaux, Abdul Rahman engaged Odo's forces
on the Garonne River, or possibly at the Dordogne River, in his march
northward. Abdul Rahman's army was numbered 70,000 to 80,000 and defeated
Odo, according to Benett. However, such huge figures on the tradition
of medieval chronicles have been questioned, since the expedition was
an unusually large raid against the Aquitanian duke Odo (Lewis, A.R.;
Collins, R.). The defeat was comprehensive and most of Odo's forces were
wiped out or ran in disarray, after which the Umayyads looted the rich
monasteries of northern Aquitaine before resuming their march towards
Tours, a town said to be holding abundant wealth and treasures.

Aftermath

This plundering gave Odo enough time to re-organise his Aquitanian troops
and according to chronicles notified Charles of the impending danger to
the Frankish kingdom. The Frankish leader took notice, accepted Odo's
formal submission and Odo joined Charles's army to form its left wing. The
Umayyad armies were finally defeated by forces (size of the two armies
is debated by modern historians) led by Charles Martel at the Battle of
Tours that took place somewhere between Poitiers and Tours on 10 October,
732 (or 733 according to latest research).

The farthest reaching political consequences of this defeat were Charles
Martel's intervention in Aquitaine, the temporary end of Basque-Aquitanian
sovereignty and Odo's formal submission to Charles, confirmed after the
Battle of Tours-Poitiers.

  wikipedia.org/wiki
  732AD - Battle of Tours

The Battle of Tours (10 October 732) — also called the Battle of
Poitiers and, by Arab sources, the Battle of the Palace of the Martyrs

The Battle of Tours followed two decades of Umayyad conquests in Europe
which had begun with the invasion of the Visigothic Christian Kingdoms
of the Iberian Peninsula in 711. These were followed by military
expeditions into the Frankish territories of Gaul, former provinces of
the Roman Empire. Umayyad military campaigns had reached northward into
Aquitaine and Burgundy, including a major engagement at Bordeaux and a
raid on Autun. Charles's victory is widely believed to have stopped the
northward advance of Umayyad forces from the Iberian Peninsula, and to
have preserved Christianity in Europe during a period when Muslim rule
was overrunning the remains of the old Roman and Persian Empires.

Moors

The invasion of Hispania, and then Gaul, was led by the Umayyad
Dynasty (Arabic: بنو أمية banū umayya / الأمويون
al-umawiyyūn also "Umawi"), the first dynasty of caliphs of the
Islamic empire after the reign of the Rashidun Caliphs (Abu Bakr, Umar,
Uthman, and Ali) ended. The Umayyad Caliphate, at the time of the Battle
of Tours, was perhaps the world's foremost military power. Great expansion
of the Caliphate occurred under the reign of the Umayyads. Muslim armies
pushed east across Persia and west across North Africa through the late
7th century.

In 711-18, Tariq ibn Ziyad led forces across the Strait of Gibraltar to
conquer the Visigothic Kingdom of Hispania. The Muslim empire under the
Umayyads was now a vast domain that ruled a diverse array of peoples. It
had destroyed what were the two former foremost military powers, the
Sasanian Empire, which it absorbed completely, and the greater part of
the Byzantine Empire, including Syria, Armenia and North Africa, although
Leo the Isaurian stemmed the tide when he defeated the Umayyads at the
Battle of Akroinon (739), their final campaign in Anatolia.

Franks

The Frankish realm under Charles Martel was the foremost military power of
Western Europe. During most of his tenure in office as commander-in-chief
of the Franks, it consisted of north and eastern France (Austrasia,
Neustria and Burgundy), most of western Germany, and the Low Countries
(Luxembourg, Belgium and the Netherlands). The Frankish realm had begun
to progress towards becoming the first real imperial power in western
Europe since the fall of Rome. However, it continued to struggle against
external forces such as the Saxons, Frisians, and other opponents such
as the Basque-Aquitanians led by Odo the Great (Old French: Eudes),
Duke over Aquitaine and Vasconia.


text:
---
heading: HubSpot CRM
seo: Endpoint Setup | HubSpot CRM | Cloud Elements API Docs
title: Endpoint Setup
description: Endpoint setup
layout: docs
breadcrumbs: /docs/elements.html
elementId: 168
parent: Back to Element Guides
order: 5
---

## Endpoint Setup

Follow these steps to setup your HubSpot CRM application with the endpoint.

Via a web browser, login to your HubSpot account:
[http://developers.hubspot.com/](http://developers.hubspot.com/).

1. Click "Create App"
![HubSpot Connected App step 1](http://cloud-elements.com/wp-content/uploads/2016/01/HubSpotAPI1.png)

2. Name your App

3. Click "Create"
![HubSpot Connected App step 2](http://cloud-elements.com/wp-content/uploads/2016/01/HubSpotAPI2.png)

4. Click on the newly created app from the dashboard
![HubSpot Connected App step 3](http://cloud-elements.com/wp-content/uploads/2016/01/HubSpotAPI3.png)

5. Fill out App info and make note of the "Client ID" and "Client Secret" (NOTE: your HubSpot Portal ID is also required for provisioning via the Legacy OAuth spec)
Click the EDIT button at the top of the page to fill out your scope.
![HubSpot Connected App step 4](img/hubspot-connected-app.png)

Next [create an instance](hubspot-crm-create-instance.html).

repository: davewilks/Dave-Devportal

repo_name: davewilks/Dave-Devportal


text:
---
uid: crmscript_ref_Ticket_setValue_String_colName_String_value
title: Ticket.setValue(String colName, String value)
intellisense: Ticket.setValue
keywords: setValue(String,String)
so.topic: reference
---

# Ticket.setValue(String colName, String value)

Sets column colName to the given value.
Obs: For this to actually affect the ticket, you will have to use the function `save()` after you have set all the values you want.

## Parameters

 - colName
 - value: A String representation of the value to set

## Values

Possible values are the extrafields on the ticket and the following:

 - title
 - category: the category id
 - ownedBy: (owned\_by), the id of the user who owns the ticket
 - slevel: the security level of the ticket, 1 is internal, 2 is external
 - priority: the id
 - status: 1 = active, 2 = closed, 3 = postponed, 4 = deleted, 5 = composed
 - ticketStatus: (ticket\_status), the id of the custom status field
 - custId: the id of the primary customer
 - customers: comma separated list of customer ids
 - createdBy: the id of the user who posted the ticket, 1 if the ticket is posted into the system
 - author: a string containing the name of the ticket author
 - activate: the datetime when the ticket was activated
 - createdAt: (created\_at), the datetime when the ticket was created
 - repliedAt: (replied\_at), the datetime when the ticket first was replied at
 - stopEscalation
 - readStatus (read\_status)
 - deadline
 - filterAddress
 - timeToClose
 - realTimeToClose
 - dbiAgentId
 - dbiKey
 - dbiLastModified
 - dbiLastSyncronized

repository: stianol/crmscript

repo_name: stianol/crmscript


text:
ngin
====

nGin (pronounced: "engine") is a .NET based game engine. I wrote what's there as a proof-of-concept for my thesis.

The main focus was the loosely coupled architecture, the messaging system and the task scheduling.
Looking at it now, it terrifies me - the threading, the strings, the tests...but that shows that I've grown since then :-)

It's by no means complete and probably not useful to anyone without serious work. It may however be interesting to poke at or draw inspiration from or learn how not to do certain things.

The project used to be in SVN, hence the directory structure (trunk + tags). Similarly, NuGet did not exist so there's nice little TXT files pointing out which DLL's to put where in order for the build to Just Work.

** UPDATE: The linked download is not the demo I thought it was. I'll try to dig it up from my old external drive and upload if I find it **

I just dumped the files here for now, I cannot guarantee that it builds or that the demo runs. It sure used to when I zipped this stuff up, but you never know.

System requirements for demo:
I frankly cannot remember. Nothing crazy. It's compiled for Windows, though. Something along the lines of this should do:
- .NET 3.5 (? not sure, maybe 2.0 would work, too)
- ngin should work under Mono, not sure about the 3rd party deps though. Their newer version should have better Mono support
- Windows (x64 might work, but I'm not sure)
- Any self-respecting ATI or Nvidia graphics device of the past 5 years should handle it with ease. You can tweak Ogre3D in ogre.cfg (i.e. to switch Direct3D/OpenGL, resolution and the likes)
- Mouse and keyboard for input

repository: galaktor/ngin

repo_name: galaktor/ngin


text:
* Managing Files and Folders
  * [Managing files with libraries](file_folder_managing/libraries_managing.md)
  * [Restoring deleted files](file_folder_managing/restoring_deleted_files.md)
  * [Finding old file versions](file_folder_managing/finding_older_version_files.md)
  * [Library history and snapshots](file_folder_managing/library_history_and_snapshots.md)
  * [Setting history retention period](file_folder_managing/setting_library_history.md)
  * [Deleting a library](file_folder_managing/deleting_a_library.md)
  * [Viewing files within Web App](file_folder_managing/viewing_files_within_web_app.md)
  * [Full text file search](file_folder_managing/full-text_file_search.md)
* Sharing and Collaboration
  * [Sharing files and folders](sharing_collaboration/sharing_files_and_folders.md)
  * [Managing groups](sharing_collaboration/groups_managing.md)
  * [Locking files](sharing_collaboration/file_locking.md)
  * [Folder permission](sharing_collaboration/folder_permission.md)
  * [Departments Sharing](sharing_collaboration/departments.md)
* Wiki and Knowledge Management
  * [Manage Library as Wiki](wiki/manage_library_as_wiki.md)
* Desktop Client and Syncing
  * [Install and sync Files](syncing_client/install_sync.md)
  * [Syncing existing folders](syncing_client/syncing_existing_folders.md)
  * [Selective sync sub-folders](syncing_client/selective_sync_sub-folders.md)
  * [Read-only syncing](syncing_client/read-only_syncing.md)
  * [Unsync and resync libraries](syncing_client/unsync_and_resync_library.md)
  * [Setting sync interval](syncing_client/setting_sync_interval.md)
  * [Proxy settings](syncing_client/proxy_settings.md)
  * [File conflicts](syncing_client/file_conflicts.md)
  * [Excluding files](syncing_client/excluding_files.md)
  * [Install On Linux](syncing_client/install_linux_client.md)
  * [Seafile Client for a Cli server](syncing_client/linux-cli.md)
* Drive Client
  * [Using Seafile Drive Client](drive_client/using_drive_client.md)
  * [Using drive client 2.0 on Windows](drive_client/drive_client_2.0_for_windows_10.md)
  * [Drive Client for Linux](drive_client/drive_client_for_linux.md)
* Security and Encryption
  * [How to use encrypted libraries](security_and_encryption/use_encrypted_libraries.md)
* Organization Management
  * [Integration with ADFS/SAML](organization_management/integration_with_ADFS_SAML.md)
* [FAQ](faq.md)

repository: haiwen/seafile-user-manual

gha_language: CSS

repo_name: haiwen/seafile-user-manual


text:
# spa-dating-app

An Angular 5 based single page application (SPA) used to provide the front-end functionality of a dating website.

## API
The API consumed by this project can be found in [api-dating-app](https://github.com/pkrastev25/api-dating-app).

## Core features

* Registration and login of users
* Customizable user profile, together with the ability to upload photos
* Filtering and sorting functionality of users
* The ability to like other users
* Private chat messaging system
* Appropriate error handling in the form of text and visual graphics

## Dependencies

* [Bootstrap](https://getbootstrap.com/)
* [Font Awesome](https://fontawesome.com/)
* [AlertifyJS](http://alertifyjs.com/)
* [NGX Bootstrap](https://github.com/valor-software/ngx-bootstrap)
* [Bootswatch](https://bootswatch.com/)
* [UnderscoreJS](http://underscorejs.org/#)
* [NGX Gallery](https://www.npmjs.com/package/ngx-gallery)
* [NG File Upload](https://github.com/valor-software/ng2-file-upload)
* [Time Ago Pipe](https://www.npmjs.com/package/time-ago-pipe)
* [Auth0 Angular JWT](https://www.npmjs.com/package/@auth0/angular-jwt)

## License

   Copyright 2018 Petar Krastev

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

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

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


text:
---
layout: splash
author_profile: true
header:
  overlay_color: "#000"
  overlay_filter: "0.2"
  overlay_image: /assets/images/header.jpeg
  cta_label: "Join Us!"
  cta_url: /contact/
excerpt: "We are driven by the revolution of big data and AI in plant biology and agriculture."
intro:
  - excerpt: 'We are interested in understanding the connections between genotypes and phenotypes.
              Our approach is to use interpretable machine learning methods to extract meaningful information from big data and to make actionable predictions.'

feature_row:
  - image_path: /assets/images/myb_network2.jpg
    alt: "placeholder image 1"
    title: "Regulatory genomics"
    excerpt: "Understand gene regulation using networks."
    url: /research/RegulatoryGenomics/
    btn_label: "Read More"
    btn_class: "btn--primary"
  - image_path: /assets/images/field.jpeg
    alt: "placeholder image 2"
    title: "Disease detection"
    excerpt: "With sequencing and imaging."
    url: /research/DiseaseDetection/
    btn_label: "Read More"
    btn_class: "btn--primary"
  - image_path: /assets/images/soybean.jpeg
    title: "Phenomics and GWAS"
    excerpt: "Associate phenotypes with genetic variations"
    url: /research/Phenotyping/
    btn_label: "Read More"
    btn_class: "btn--primary"
feature_row2:
  - image_path: /assets/images/machine_learning.jpg
    alt: "placeholder image 2"
    title: "Machine learning"
    excerpt: 'We utilize advanced statistical and machine learning methods in genomics and phenomics research'
    url: "https://github.com/LiLabAtVT"
    btn_label: "Read More"
    btn_class: "btn--primary"
feature_row3:
  - image_path: /assets/images/plants.jpeg
    alt: "placeholder image 2"
    title: "Plant and microbial genomes"
    excerpt: 'We apply computational tools to study genomes of plant and microbial species'
    url: "https://github.com/LiLabAtVT"
    btn_label: "Read More"
    btn_class: "btn--primary"
---
{% include feature_row id="intro" type="center" %}

{% include feature_row %}

{% include feature_row id="feature_row2" type="center" %}

{% include feature_row id="feature_row3" type="center" %}


text:
# Angular Project Template

I come up with the idea to create the project with the following the main reason:
I used Angular CLI a lot to create a new project.  Although Angular CLI is great, a new generated project does not contain all ingredients I wanted.  Therefore, I created the project to keep it as my new Angular project template.

The project shows how Angular (6) can combines with following technology:
* SCSS: Use SCSS rather than css
* Bootstrap: Use Bootstrap rather than create styles from scratch
  * Picked up "Navbar example" as an example for the home page
  * Also used ng-bootstrap
* Prettier: Opinionated Code Formatter
* Firebase
* VS Code: Contain .editorconfig

## Used as a project template

If you use the project as a template to create a new project rather than us Angular CLI to generate, you can following steps to create/change:
* Clone the project
* Remove the ".git" folder
* Create a new repository on the command line
  * Run "git init"
  * git commit -m "first commit"
  * git remote add origin https://github.com/...
* Update the following npm settings in package.json
```
{
  "name": "{project name}",
  "version": "{project version}",
  "repository": {
    "type": "git",
    "url": "{repository URL}"
  },
  "license": "MIT",
  ...
}
```
* Update angular.json: Replace all "get-started-angular" with the new project name
* Update title in index.html
* Replace favicon.ico
* Firebase:
  * If you are not using Firebase, you can simply remove firebase.json and .firebaserc
  * If you are using Firebase, you just need to open .firebaserc and update Firebase project name used
* VS Code: If you are using other code editing tool, you can remove .editorconfig
* Bootstrap: If you need JS of Bootstrap, you may install jQuery `npm install<EMAIL_ADDRESS>--save`

## Development

### Start a dev server

Run `npm run start` for a dev server. Navigate to `http://localhost:3000/`. The app will automatically reload if you change any of the source files.

### Build

Run `npm run build` to build the project. The build artifacts will be stored in the `dist/` directory. Use `npm run build:prod` for a production build.

### Test

* Run `npm run test` to execute the unit tests via [Karma](https://karma-runner.github.io).
* Run `npm run test:cov` to execute the unit tests plus get test coverage
* Run `npm run e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).

repository: donlin/get-started-angular

repo_name: donlin/get-started-angular


text:
# Contact Us

For questions and suggestions, or to report bugs, please [file an issue on github](https://github.com/chanzuckerberg/cellxgene/issues).

For all other inquiries, please contact us at [cellxgene<EMAIL_ADDRESS>

repository: foolMan-kang/cellxgene-documentation

repo_name: foolMan-kang/cellxgene-documentation