text:
🔌 Stream Deck Restream.io plugin

> Integrate [Elgato Stream Deck](https://www.elgato.com/en/gaming/stream-deck) with [Restream.io](https://restream.io).

## 🚀 Quick start

[Download the latest release](https://github.com/dflydev/streamdeck-restreamio/releases/download/latest/com.dflydev.streamdeck.restreamio.streamDeckPlugin) from GitHub.

## Author

👥 **dflydev**

* Website: [dflydev.com](https://dflydev.com?utm_source=streamdeck-restreamio&utm_medium=readme-author)
* Twitter: [@dflydev](https://twitter.com/dflydev)
* Github: [@dflydev](https://github.com/dflydev)

👤 **Beau Simensen**

* Website: [beausimensen.com](https://beausimensen.com?utm_source=streamdeck-restreamio&utm_medium=readme-author)
* Twitter: [@dflydev](https://twitter.com/beausimensen)
* Github: [@simensen](https://github.com/simensen)

## 🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/dflydev/streamdeck-restreamio/issues).

## ❤ Support the development

Give a ⭐ if this project helped you!

Did this project save you time? Did this project increase your productivity? Did this project solve a problem for you? Did this project make your life easier? Please also consider donating or buying a license!

* [Sponsor Beau Simensen on GitHub](https://github.com/sponsors/simensen)
* [Sponsor dflydev on GitHub](https://github.com/sponsors/dflydev)
* [Sponsor dflydev on OpenCollecctive](https://opencollective.com/dflydev)

## 📝 License

Copyright © 2021 [dflydev](https://github.com/dflydev).

This project is [MIT](https://github.com/dflydev/streamdeck-restreamio/blob/master/LICENSE) licensed.

repository: dflydev/streamdeck-restreamio

repo_name: dflydev/streamdeck-restreamio


text:
# RPM bindings for ruby

![maintained](https://img.shields.io/maintenance/yes/2016.svg) [![Build Status](https://travis-ci.org/dmacvicar/ruby-rpm-ffi.svg?branch=master)](https://travis-ci.org/dmacvicar/ruby-rpm-ffi)

* http://github.com/dmacvicar/ruby-rpm-ffi

# WARNING

This is an alpha release! There is still work to be done

# Quickstart

## Working with RPM package files

```ruby
require 'rpm'

pkg = RPM::Package.open("file.rpm")
pkg.arch => "x86_64"

pkg.files.each do |file|
  puts file.path
end

pkg.changelog.each do |entry|
  puts "#{entry.name} #{entry.time} #{entry.text}"
end
```

## Querying the rpm database

```ruby
require 'rpm'

RPM.transaction do |ts|
  ts.each do |pkg|
    puts pkg
  end
end
```

## Install a package

```ruby
require 'rpm'

pkg = RPM::Package.open('foo.rpm')

RPM.transaction(rootdir) do |t|
  t.install(pkg, 'foo.rpm')
  t.commit
end
```

## Introduction

This library is a replacement for the ruby-rpm gem, originally
writen by Kenta Murata around 2002 for the Kondara distribution. Later
mantained by David Lutterkort and myself.

Why?

* The original gem supports ancient rpm versions not in use anymore
* The original gem was written in C using MRI API
* The #ifdef'ing required to support multiple rpm versions made the code
  hard to maintain

This gem:

* Is pure ruby
* Is documented
* Has as a goal to support only the latest rpm version plus the ones in
  use some releases back in popular rpm based distros
* Uses FFI, so it should work with other interpreters
  (Because https://github.com/rubinius/rubinius/issues/682 it currently does
  not work on Rubinius)
* Does not target rpm5, but it may support it someday

As an example the code that implements RPM::Package was reduced
from 1130 lines of code to 320.

# Architecture

The gem is divided in two modules:

* RPM::C:: which contains the 1:1 mapping to the librpm API
  Not all functions are attached, only the ones we actually use.
* RPM:: contains the actual higher level API

# Status, Compatibility and Differences with ruby-rpm

* Only rpm 4.11.x or later will be supported
* You can use symbols: instead of RPM::TAG_DESCRIPTION you
  can use just :description. 'rpm/compat' is by default loaded
  and provides compatibility with the RPM::TAG_* style constants
* RPM::DB is not supported. Use RPM::Transaction
* Spec and Source classes are not implemented yet

## TESTING

Unit tests can be run using the `rake test` command.

### Docker tests

In order to not damage your system, you can run the testsuite under docker:

* Build the docker images:

```console
rake docker_images
```

* Run the testsuite under Docker

```console
rake docker_test
```

## TODO

* Check Package#signature should return String?
    => ruby-rpm seems to return symbol
* Food for thought: Package dependencies and changelog
  methods could just use []. Calling headerGet directly saves
  us from doing one iteration per attribute
* Not sure if Spec can be implemented as it was before with
  newer rpms.

## API Checklist and TODO

### Low level 1:1 RPM::C API

* http://rpm.org/wiki/Releases/4.14.0
  - [ ] Add rpmfiVerify() and rpmfilesVerify()
  - [ ] Add pmsqPoll(), rpmsqActivate(), rpmsqSetAction(), rpmsqBlock()
  - [ ] Add rpmDigestBundleAddID()
  - [ ] Add RPMTRANS_FLAG_NOCAPS flag to disable file capabilities
  - [ ] Add RPMVSF_NOPAYLOAD flag to disable payload digest verification
  - [ ] Add pgpPubkeyKeyID()
  - [X] Add rpmPushMacro() and rpmPopMacro() (to replace addMacro() and delMacro())
  - [ ] Remove headerNVR(), headerNEVRA(), headerGetNEVR(), headerGetNEVRA(), headerGetEVR(), headerGetColor(), rpmfiMD5(), expandMacros(), addMacro(), delMacro()

* http://rpm.org/wiki/Releases/4.13.0
  - [ ] Add rpmsqSetInterruptSafety()
  - [ ] Add/Change rpmPkgSign()
  - [ ] Add RPMCALLBACK_ELEM_PROGRESS callback type
  - [ ] Add rpmExpandMacros()

* http://rpm.org/wiki/Releases/4.12.0
  - [ ] Add rpmtxnBegin() and rpmtxnEnd()
  - [ ] Add rpmtsImportHeader()
  - [ ] Add rpmtsAddReinstallElement()
  - [ ] Add rpmdbIndexIteratorNextTd()
  - [ ] Add file info set iterator functions: rpmfiFLinks(), rpmfiFindFN(), rpmfiStat()
  - [ ] Add rpmfiOFN(), rpmfiOBN(), rpmfiODN(), rpmfiFindOFN()
  - [ ] Add rpmteFiles()
  - [ ] Add rpmdsTagF(), rpmdsTagEVR(), rpmdsD(), rpmdsPutToHeader(), rpmdsTi(), rpmdsTagTi() and rpmdsSinglePoolTix()

* http://rpm.org/wiki/Releases/4.11.0
  - [ ] Add rpmstrPool object + associated functions
  - [ ] Add rpmIsGlob()
  - [ ] Add rpmtdToPool()
  - [ ] Add rpmGetArchColor()

### RPM

- [ ] RPM#expand
- [X] RPM#[]
- [X] RPM#[]=
- [ ] RPM#readrc
- [ ] RPM#init_macros
- [ ] RPM#verbosity
- [ ] RPM#verbosity=

### RPM::Package

- [X] Package#open
- [X] Package#new
- [X] Package#create
- [ ] Package#load
- [ ] Package#clear_cache
- [ ] Package#use_cache
- [X] Package#[]
- [ ] Package#delete_tag
- [X] Package#sprintf
    [?] Package#signature
- [X] Package#arch
- [X] Package#name
- [X] Package#version
- [X] Package#files
- [X] Package#provides
- [X] Package#requires
- [X] Package#conflicts
- [X] Package#obsoletes
- [X] Package#changelog
- [ ] Package#add_dependency
- [ ] Package#add_string
- [ ] Package#add_string_array
- [ ] Package#add_int32
- [ ] Package#dump
- [X] Package#to_s
- [ ] Package#inspect
- [ ] Package#copy_to

### RPM::Dependency

- [X] Dependency#initialize
- [X] Dependency#name
- [X] Dependency#version
- [X] Dependency#flags
- [X] Dependency#owner
- [X] Dependency#lt?
- [X] Dependency#gt?
- [X] Dependency#eq?
- [X] Dependency#le?
- [X] Dependency#ge?
- [X] Dependency#satisfy?
- [X] Dependency#nametag
- [X] Dependency#versiontag
- [X] Dependency#flagstag

### RPM::Provide

- [X] Provide#initialize

### RPM::Require

- [X] Require#initialize
- [ ] Require#pre?

### RPM::Conflict

- [X] Conflict#initialize

### RPM::Obsolete

- [X] Obsolete#initialize

### RPM::ChangeLog

- [X] ChangeLog#time
- [X] ChangeLog#name
- [X] ChangeLog#text

### RPM::Version

- [X] Version (Comparable)
- [X] Version#initialize
- [X] Version#<=>
- [X] Version#newer?
- [X] Version#older?

- [X] File#config?
- [X] File#doc?
- [X] File#donotuse?
- [X] File#missingok?
- [X] File#specfile?
- [X] File#ghost?
- [X] File#license?
- [X] File#readme?
- [X] File#exclude?
- [X] File#replaced?
- [X] File#notinstalled?
- [X] File#netshared?

### RPM::DB

- [ ] DB (Enumerable)
- [ ] DB#new
- [ ] DB#open
- [ ] DB#init
- [ ] DB#rebuild
- [ ] DB#close
- [ ] DB#closed?
- [ ] DB#root
- [ ] DB#home
- [ ] DB#writable?
- [ ] DB#each_match
- [ ] DB#each
- [ ] DB#transaction
- [ ] DB#init_iterator
- [ ] DB#dup
- [ ] DB#clone

### RPM::MatchIterator

- [X] MatchIterator (Enumerable)
- [X] MatchIterator#each
- [X] MatchIterator#next_iterator
- [X] MatchIterator#offset
- [X] MatchIterator#set_iterator_re
- [X] MatchIterator#regexp
- [X] MatchIterator#set_iterator_version
- [X] MatchIterator#version
- [X] MatchIterator#get_iterator_count
- [X] MatchIterator#length

### RPM::Transaction

- [ ] Transaction#db
- [ ] Transaction#script_file
- [ ] Transaction#script_file=
- [ ] Transaction#install
- [ ] Transaction#upgrade
- [ ] Transaction#available
- [ ] Transaction#delete
- [ ] Transaction#check
- [ ] Transaction#order
- [ ] Transaction#keys
- [ ] Transaction#commit
- [ ] Transaction#abort
- [ ] Transaction#dup
- [ ] Transaction#clone

### RPM::Source

- [ ] Source#initialize
- [ ] Source#fullname
- [ ] Source#to_s (alias fullname)
- [ ] Source#num
- [ ] Source#no?

### RPM::Patch

### RPM::Icon

### RPM::Spec

- [ ] Spec#open
- [ ] Spec#new
- [ ] Spec#buildroot
- [ ] Spec#buildsubdir
- [ ] Spec#buildarchs
- [ ] Spec#buildrequires
- [ ] Spec#build_restrictions
- [ ] Spec#sources
- [ ] Spec#packages
- [ ] Spec#build
- [ ] Spec#expand_macros
- [ ] Spec#dup
- [ ] Spec#clone

# LICENSE

* Copyright © 2011 Duncan Mac-Vicar Prett<EMAIL_ADDRESS>* Copyright © 2011 SUSE Linux Products GmbH

* This gem is a pure-ruby rewrite of ruby-rpm:
  Copyright © 2002 Kenta Murata. Relicensed with his permission.

Licensed under the MIT license. See MIT-LICENSE for details.

license: MIT

repository: ruckc/ruby-rpm-ffi

branch_name: refs/heads/master

extension: md

gha_license_id: MIT

license_type: permissive

repo_name: ruckc/ruby-rpm-ffi


text:
# blender_2_8_fbx_post_import_script
Attempt to understand what is missing in imported hard edges
![image](Trial_1.png)
Context

fbx importing take in split meshes where hard edges should be; when applying "remove doubles" on these meshes the result is a lack of detail(softened edges). Normally people has "bug reported" remove doubles,.. this is unfair to remove doubles since the shading is acting as it should and so is remove doubles.

Steps the script should implement:

1: get the edge boundary loop of all mesh islands, store vertecii info,

2: get the result of what remove doubles does right before creating faces.

3: get borders of diferent mesh islands that would be joined by remove doubles

4: store those edges relations, in "confronted pairs" maybe

5: apply remove doubles

6: for compared (degrees of face normals?)radians above a threshold mark the edge as hard


text:
# Couchbase Receiver

This receiver fetches stats from a couchbase cluster using the following endpoints:
- `/pools/default` [endpoint](https://docs.couchbase.com/server/6.5/rest-api/rest-cluster-details.html)
- `/pools/default/buckets/{bucket_name}/stats` [endpoint](https://docs.couchbase.com/server/6.5/rest-api/rest-bucket-stats.html).

Supported pipeline types: `metrics`

> :construction: This receiver is in **BETA**. Configuration fields and metric data model are subject to change.
## Prerequisites

This receiver supports Couchbase versions `6.5`, `6.6`, and `7.0`.

## Configuration

The following settings are required:
- `endpoint` (default: `http://localhost:8091`): The URL of any node within the cluster to be monitored.
- `username`
- `password`

The following settings are optional:

- `collection_interval` (default = `10s`): This receiver collects metrics on an interval. Valid time units are `ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`.
- `tls` (defaults defined [here](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md)): TLS control. By default insecure settings are rejected and certificate verification is on.

### Example Configuration

```yaml
receivers:
  couchbase:
    endpoint: http://localhost:8901
    username: otelu
    password: $COUCHBASE_PASSWORD
    collection_interval: 10s
```

The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md).

## Metrics

Details about the metrics produced by this receiver can be found in [metadata.yaml](./metadata.yaml)

branch_name: refs/heads/main

gha_language: Go


text:
# Alpine Container for Machine Learning

[![](https://images.microbadger.com/badges/image/petronetto/machine-learning-alpine.svg)](https://microbadger.com/images/petronetto/machine-learning-alpine "Get your own image badge on microbadger.com")
[![GitHub issues](https://img.shields.io/github/issues/Petronetto/machine-learning-alpine.svg)](https://github.com/Petronetto/machine-learning-alpine/issues)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/Petronetto/machine-learning-alpine/master/License.txt)
[![Twitter](https://img.shields.io/twitter/url/https/github.com/Petronetto/machine-learning-alpine.svg?style=social)](https://twitter.com/intent/tweet?text=Wow:&url=%5Bobject%20Object%5D)

## What is include
- Python 3.5
- NumPy
- SciPy
- Scikit-learn
- Pandas
- Matplotlib
- Seaborn
- XGBoost
- Jupyter Notebook

All in only ~200 MB :)

## Running the container
- Clone this repository: `git clone git@github.com:Petronetto/machine-learning-alpine.git`

- Enter in project folder: `cd machine-learning-alpine`

- Run: `docker-composer up` and open your browser in `http://localhost:8888`

See the `Welcome.ipynb` to see the package versions.

### Enabling Warning Messages
By default the Warning Messages are disabled, if you want to enable, simply umcomment
the `environment` section in `docker-compose.yml` file.

Enjoy :)

License: [MIT](License.txt)

repository: jairoandre/machine-learning-alpine

repo_name: jairoandre/machine-learning-alpine


text:
---
layout: page
header:
  title: Soroka Clinical Research Center
  image_fullwidth: twodudes.png
  caption: Soroka Clinical Research Center
  caption_url: https://vsevkayf.github.io/OmarKhayyam/
title: "Team"
meta_title: "team"
subheadline: "Here we are"
teaser: ""
permalink: "/team/"
---

your content

your content

your content

$('.autoplay').slick({
  slidesToShow: 3,
  slidesToScroll: 1,
  autoplay: true,
  autoplaySpeed: 2000,
});

Office

Prof. Victor Novack MD, PhD

Head of Soroka Clinical Research Center

Telephone: 972-8-640-3486

Email<EMAIL_ADDRESS>

.

Ruthie Bekore, B.Sc

Administrative Director

Telephone: 972-8-624 4240

Email<EMAIL_ADDRESS>
.

Tamar Gibor, B.Sc

Senior Project Manager, Sponsored Researh

Telephone: 972-8-640 3589

Email<EMAIL_ADDRESS>
.

Maayan Yitshak-Sade, MPH

Scientific Director

<EMAIL_ADDRESS>
.

Gili Talmon

Study Coordinator

.

Michal Lamberger

Medical Secretary

Email<EMAIL_ADDRESS>
.

Stav Amran

Study Coordinator

.

Poliana shamgar, RN, MHA

Study Nurse

Telephone: 972-8-6400255

Email<EMAIL_ADDRESS>
.

Michal kravitz

Study Coordinator

.

Irena Kantor

Clinical Research Project Manager

Telephone: 972-8-6244245

.

Research Assistants

Research assistants are involved in different stages of research planning such as protocol writing, preparing IRB submission, performing statistical analysis in a variety of medical fields.

.

Yotam Lior, B. Med. Sc

A M.D PhD student at Ben-Gurion University of the Negev.

Email<EMAIL_ADDRESS>
.

Arik Kachko

A 4th year medical student at Ben-Gurion University of the Negev.

Email<EMAIL_ADDRESS>
.

Yuval Mizrakli

A 4th year medical student at Ben-Gurion University of the Negev.

Email<EMAIL_ADDRESS>
.

Yotam Dizitser

A 3rd year medical student at Ben-Gurion University of the Negev.

.

Daniel Halperin

A 4th year medical student at Ben-Gurion University of the Negev.

Email<EMAIL_ADDRESS>
.

Nitsan Mendelson

A 3rd year medical student at Ben-Gurion University of the Negev.

Email<EMAIL_ADDRESS>

.

Avital Blum

A 2nd year medical student at Ben-Gurion University of the Negev.

Email<EMAIL_ADDRESS>
.

Maya Vardi

A 3rd year medical student at Ben-Gurion University of the Negev.

Email<EMAIL_ADDRESS>
.

Gil Goldinger

Gali Steiner

Liat Oxman

Adi Segal

Ron Eshel

Sagi Shashar

Tarah Coreanu

.

Yael Vekselman

Logistic and Administrative Assistant

.

Programmers

Hagar Racach

Vladimir Okun

.

PhD Students

Alina Vodonos, MPH

Statistical Consultant

Email<EMAIL_ADDRESS>
.

Iftach Sagy, MD

PhD Candidate in Department of Health Systems Management in Ben Gurion University of the Negev.

Email<EMAIL_ADDRESS>
.

Muhammad  Abu Taila, RN, MPH

Statistical Consultant

Email<EMAIL_ADDRESS>
.

Orit Barrett, MD

PhD Candidate in faculty of Health Science in Ben Gurion University of the Negev.

Email<EMAIL_ADDRESS>
.

Had pleasure to work with:

Adi  Regev

Yael Baumfeld

Maya Paryente wiessman

Shiri Shechner

Katya Belov

Gabriela Delgado

Dafna Oz

Kama Sembira

Janan Awesat

Yael Perl

Noa Gohar

Ruthie Maayan

Renana Wilkof

Shira Yuval

Eiman Egbaria

Batel Dahan

Dafna Dalla-Torre Levy

Hilel Vardi

Ronen Toledan

Shay Hertz

Tali shafat

Adva Gutman

Moshe Stavsky

Keren Houri

Whitney  Aquenda

Yuval Mirkin

repository: vsevkayf/OmarKhayyam

repo_name: vsevkayf/OmarKhayyam


text:
# @varasto/query

Collection of useful query and bulk operation utilities for [Varasto storages]
that use [simple-json-match] schemas for finding entries.

[varasto storages]: https://www.npmjs.com/package/@varasto/storage
[simple-json-match]: https://www.npmjs.com/package/simple-json-match

## Installation

```sh
$ npm install --save @varasto/query
```

## Usage

The package provides following functions.

### Searching for single entry

#### find()

```TypeScript
find(
  storage: Storage,
  namespace: string,
  schema: Schema
): Promise<JsonObject | undefined>
```

Searches for an entry from given namespace that matches given schema and
returns value of first matching result. If no entry in the namespace matches
the schema, `undefined` is returned instead.

#### findKey()

```TypeScript
findKey(
  storage: Storage,
  namespace: string,
  schema: Schema
): Promise<string | undefined>
```

Searches for an entry from given namespace that matches given schema and
returns key of first matching result. If no entry in the namespace matches
the schema, `undefined` is returned instead.

#### findEntry()

```TypeScript
findEntry(
  storage: Storage,
  namespace: string,
  schema: Schema
): Promise<[string, JsonObject] | undefined>
```

Searches for an entry from given namespace that matches given schema and
returns both key and value of first matching result. If no entry in the
namespace matches the schema, `undefined` is returned instead.

### Searching for multiple entries

#### findAll()

```TypeScript
findAll<T extends JsonObject>(
  storage: Storage,
  namespace: string,
  schema: Schema
): Promise<T[]>
```

Searches for entries from given namespace that match given schema and returns
their values. If no entries match the given schema, empty array is returned
instead.

#### findAllKeys()

```TypeScript
findAllKeys(
  storage: Storage,
  namespace: string,
  schema: Schema
): Promise<string[]>
```

Searches for entries from given namespace that match given schema and returns
their keys. If no entries match the given schema, empty array is returned
instead.

#### findAllEntries()

```TypeScript
findAllEntries<T extends JsonObject>(
  storage: Storage,
  namespace: string,
  schema: Schema
): Promise<[string, T][]>
```

Searches for entries from given namespace that match given schema and returns
them in an array. If no entries match the given schema, empty array is returned
instead.

### Partition utilities

#### partition()

```TypeScript
partition<T extends JsonObject>(
  storage: Storage,
  namespace: string,
  schema: Schema
): Promise<[T[], T[]]>
```

Splits values of entries from given namespace into two arrays depending on
whether they match the given schema. Entries that match the schema will be
returned first element of returned array, while the remaining entries will
be second.

#### partitionKeys()

```TypeScript
partitionKeys(
  storage: Storage,
  namespace: string,
  schema: Schema
): Promise<[string[], string[]]>
```

Splits keys of entries from given namespace into two arrays depending on
whether they match the given schema. Entries that match the schema will be
returned first element of returned array, while the remaining entries will
be second.

#### partitionEntries()

```TypeScript
partitionEntries<T extends JsonObject>(
  storage: Storage,
  namespace: string,
  schema: Schema
): Promise<[[string, T][], [string, T][]]>
```

Splits entries from given namespace into two arrays depending on whether they
match the given schema. Entries that match the schema will be returned first
element of returned array, while the remaining entries will be second.

### Bulk operations

#### updateAll()

```TypeScript
updateAll<T extends JsonObject>(
  storage: Storage,
  namespace: string,
  schema: Schema,
  value: Partial<T>
): Promise<T[]>
```

Performs an bulk update where all entries from given namespace that match the
given schema are partially updated with given value. Returns updated values or
empty array if no entry matched the given schema.

#### updateAllEntries()

```TypeScript
updateAllEntries<T extends JsonObject>(
  storage: Storage,
  namespace: string,
  schema: Schema,
  value: Partial<T>
): Promise<[string, T][]>
```

Performs an bulk update where all entries from given namespace that match the
given schema are partially updated with given value. Returns updated entries
(key and value) or empty array if no entry matched the given schema.

#### deleteAll()

```TypeScript
deleteAll(
  storage: Storage,
  namespace: string,
  schema: Schema
): Promise<number>
```

Performs an bulk deletion where all entries from the given namespace that match
the given schema are deleted. Returns total number of deleted entries or 0 if
no entry matched the given schema.

repository: RauliL/varasto

gha_language: TypeScript

repo_name: RauliL/varasto


text:
# ResponsiveAeon, elegant & minimalistic CSS grid system!

#### Simple, fast and intuitive! this matter!

> _**SASS** and **LESS** are awesome tools, **Grunt.js** and **Node.js** kick ass, but what about the beginners?_

---

#### A simple and minimalist alternative to start with Responsive Design and fluid Grids for WebDesigners.

### Features:

* Extreme simple responsive grid system based on 12 columns layout.

* Only **one** CSS file.

* Ease names to remember, **col** + 1 = col1. So just: col1, col2, col3 and goes on.

* Friendly warning to OLD browsers.

* Include AI and PNG templates for Designers.

* Include HTML5 index example file.

---

### Folder & File Structure:

CSS - folder (aeon-grid.css, aeon-grid.min.css).

JS - folder (Place your Scripts Here).

Images - folder (favicon.ico and iphone icons).

Templates - folder (Ai, Png files).

---

### Quick start

#### 1. Include the **CSS** stylesheet on your own **HTML** file or use **our** index file.

	<link rel="stylesheet" type="text/css" media="all" href="css/aeon-grid.css" />

#### 2. Compose the HTML like the example.

#### 3. Done! there's no more to learn. Simple, Fast and Intuitive.

---

More infos on: http://www.newaeonweb.com.br/responsiveaeon/

A simple demo can be checked here: http://www.newaeonweb.com.br/responsiveaeon/demo/demo.html

Enjoy and contribute!

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/newaeonweb/responsiveaeon-cssgrid/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

repository: pramodkumarkarn/ResponsiveAeon-Cssgrid

repo_name: pramodkumarkarn/ResponsiveAeon-Cssgrid


text:
# Changelog

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

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

## [6.5.0] - 2023-07-11

- Updated Subdue skill now cancels an attack, if subdue reduces the attack to 0
- Update corrosive skill
- Added options `update-corrosive-protect-armor` and `no-update-corrosive-protect-armor` to toggle new behaviour (default: updated)

## [6.4.0] - 2023-04-14

- Updated `strict-db` to discard the database. This is now the default behavior for tuo.
- Added `no-strict-db` to disable default

## [6.3.1] - 2024-04-11

- Fixed Bravery On Play for 1D+ cards (#52)

## [6.3.0] - 2024-04-11

- Update Orbocalypse Raid and bges.txt

## [6.2.1] - 2023-04-11

- Changed poison to full damage.
- Fixed barrier protection on play (#45).
- Update Orbocalypse Raid and bges.txt

## [6.2.0] - 2023-04-07

- Update counter skill
- Added options `update-counter-without-damage` and `no-update-counter-without-damage` to toggle new behaviour (default: updated)
- Update poison skill
- Added options `update-poison-after-attacked` and `no-update-poison-after-attacked` to toggle new behaviour (default: updated)

## [6.1.0] - 2023-04-04

- Added changes of versions [4.5.0-4.8.0] to database+ml tuo version [5.0.0-6.0.0]

## [4.8.0] - 2023-04-04

- Update subdue skill
- Added options `update-subdue-before-attack` and `no-update-subdue-before-attack` to toggle new behaviour (default: updated)
- Changed order of operations on an attack to:
    Flying
    Subdue
    Attack-Damage
    OA-Skills
    Counter
    Leech
    Drain
    Berserk
    Mark

## [4.7.0] - 2023-04-02

- Update leech skill
- Added options `update-leech-increase-max-hp` and `no-update-leech-increase-max-hp` to toggle new behaviour (default: updated)

## [4.6.0] - 2023-04-02

- Update mimic skill
- Added options `update-dont-evade-mimic-selection` and `no-update-dont-evade-mimic-selection` to toggle new behaviour (default: updated)

## [4.5.0] - 2023-04-02

- Update barrier skill
- Added options `update-barrier-each-turn` and `no-update-barrier-each-turn` to toggle new behaviour (default: updated)

## [6.0.0] - 2023-04-02

- Add machine learning in data/*.pmml
- To train you own model checkout ml/README.md

## [5.0.0] - 2023-03-25

- Add database in data/database.yml


text:
---
title: Next Steps
position: 40
guide: true
environment: angular
---

# Next Steps

Sadly our tutorial is now complete, but your journey with NativeScript is just beginning. Let’s look at the some steps you can take to build your next app with NativeScript.

## Join the NativeScript community

Regardless of what you choose to do next with NativeScript, joining the NativeScript community is a great way to keep up with the latest and greatest in the NativeScript world. Here are some ways you can get involved:

- **Follow [@nativescript](https://twitter.com/nativescript) on Twitter** for updates on all things NativeScript.
- **Sign up for the [NativeScript newsletter](https://www.nativescript.org/nativescript-newsletter)**. The newsletter will deliver NativeScript articles, news, plugin updates, and more straight to your inbox.
- **Join the [NativeScript Community Slack](http://developer.telerik.com/wp-login.php?action=slack-invitation)**. The community Slack is a great place to chat with others in the NativeScript community.

## Start your own app

Although you’re welcome to use Groceries as the basis of your own app, if you want to start a new app from scratch, the NativeScript CLI provides a `--ng` option for starting apps with TypeScript and Angular preconfigured. For example, the following command creates an app named “MyNextGreatApp”:

```
tns create MyNextGreatApp --ng
```

Once you have your app up and running, let’s look at some of the resources you can use as you develop.

## Bookmark NativeScript learning resources

There are a variety of NativeScript learning materials that go above and beyond what was offered in this tutorial. You may wish to refer to any of the following as you take your app from a prototype to the app stores:

- The NativeScript team provides a series of [real-world app samples](https://www.nativescript.org/app-samples-with-code) that are all open source on GitHub. These samples are great to reference as you’re developing your application.
- The [NativeScript code samples reference](http://docs.nativescript.org/angular/code-samples/overview) contains a number of copy and paste friendly examples for building your user interface.
- The [NativeScript resources page](https://www.nativescript.org/resources) lists further NativeScript learning material, such as training, books, and screencasts.
- [NativeScript Snacks](http://www.nativescriptsnacks.com/) is a collection of bite-sized video tutorials—perfect for learning how a NativeScript concept works quickly.
- The NativeScript documentation site has detailed guides on topics that were out of scope for this guide, including [unit testing](http://docs.nativescript.org/core-concepts/testing), [debugging](http://docs.nativescript.org/core-concepts/debugging), [transpiling Babel or TypeScript code](http://docs.nativescript.org/core-concepts/transpilers), and [publishing to the iOS App Store](http://docs.nativescript.org/core-concepts/publishing-ios-apps) and [Google Play](http://docs.nativescript.org/core-concepts/publishing-android-apps).
- The third-party site [NativeScripting](https://nativescripting.com/) has a series of high-quality free and premium videos that cover a variety of NativeScript topics.

## Let us know what you think

Finally, we’d love if you could take a minute to tell us what you thought about the this guide. Your feedback helps us make this tutorial better.

<iframe src="https://docs.google.com/forms/d/1r0q8YJ7yzXcDClfu29FTFITvU1_x-2MdGjZBMPrSXCw/viewform?embedded=true" width="760" height="1300" style="max-width: 100%;" frameborder="0" marginheight="0" marginwidth="0">Loading...</iframe>

repository: renestalder/docs

repo_name: renestalder/docs


text:
---
layout: post
title: 334. Increasing Triplet Subsequence
subtitle: 递增字串问题
author: Bin Li
tags: [Coding, LeetCode]
image:
comments: true
published: true
---

Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array.

Formally the function should:

Return true if there exists i, j, k
such that arr[i] < arr[j] < arr[k] given 0 ≤ i < j < k ≤ n-1 else return false.
Note: Your algorithm should run in O(n) time complexity and O(1) space complexity.

Example 1:
```
Input: [1,2,3,4,5]
Output: true
```
Example 2:
```
Input: [5,4,3,2,1]
Output: false
```

## Solutions
　　写了个暴力解决，果然超时了：
```python
class Solution(object):
    def increasingTriplet(self, nums):
        """
        :type nums: List[int]
        :rtype: bool
        """
        if nums is None or len(nums) < 3:
            return False

        n = len(nums)

        pre = float('inf')
        count = 1
        for i in range(n-2):
            for j in range(i+1, n-1):
                for k in range(j+1, n):
                    if nums[i] < nums[j] < nums[k]:
                        return True
        return False
```

　　参考得到一种 $O(n^2)$ 的解法：
```python
class Solution(object):
    def increasingTriplet(self, nums):
        if len(nums) < 3:
            return False
        i,j,k = 0,1,2
        while k < len(nums):
            if nums[i] < nums[j] < nums[k]:
                return True
            while nums[i] >= nums[j]:
                i = j
                j, k = i + 1, i + 2
                if k > len(nums) -1 :
                    return False
            while nums[j] >= nums[k]:
                k += 1
                if k > len(nums) - 1:
                    j, k = j + 1, j + 2
                    break
# Runtime: 40 ms, faster than 76.41% of Python online submissions for Increasing Triplet Subsequence.
# Memory Usage: 12.3 MB, less than 25.08% of Python online submissions for Increasing Triplet Subsequence.
```

　　还有一种玄学的 $O(n)$ 解法：
```python
class Solution(object):
    def increasingTriplet(self, nums):
        if len(nums) < 3:
            return False
        first = second = float('inf')
        for n in nums:
            if n <= first:
                first = n
            elif n <= second:
                second = n
            else:
                return True
        return False
# Runtime: 36 ms, faster than 82.74% of Python online submissions for Increasing Triplet Subsequence.
# Memory Usage: 12.2 MB, less than 68.20% of Python online submissions for Increasing Triplet Subsequence.
```
　　如果这里限制不是 3，而是拓展到 n 又该怎么做呢？
## References
1. [334. Increasing Triplet Subsequence](https://leetcode.com/problems/increasing-triplet-subsequence/)


text:
# `ez-react-redux` User Guide

No...no...no🙅♂🙅♀, `ez-react-redux` is a **_bad_** pattern👎👎👎!

You shouldn't use it in any productions.

But it's a life saver in small projects.

- No reducers(out of the box)
- Immediately update your state any time any where without the hindrance of reducers
- Get rid of **immutable**, `immer` is internally embeded
- `useSelector` supported
- No React Context

And it also has the following features:

- Support multiple store instances
- Support `redux` ecosystem(like `redux-logger`)
- Support `Typescript`
- Very small size [![Bundle Size](https://badgen.net/bundlephobia/minzip/ez-react-redux)]()

## EZ at a Glance

```typescript
// Follow a property
const count = useSelector(store, state => state.count);

// Update a property
store.dispatch({
  type: 'add',
  updater(state) {
    state.count += 1;
  },
});
```

### Working example

```typescript
import { createStore, useSelector } from 'ez-react-redux';

type State = {
  count: number;
};

const initialState: State = {
  count: 0,
};

const store = createStore<State>(initialState);

function MyComponent() {
  const count = useSelector(store, state => state.count);

  function add() {
    store.dispatch({
      type: 'add',
      updater(state) {
        state.count += 1;
      },
    });
  }

  return (
    <div>
      <h1>{count}</h1>
      <button type="button" onClick={add}>
        +
      </button>
    </div>
  );
}
```

## API Reference

```typescript
import { Action, StoreEnhancer, Store } from 'redux';
/**
 * Updater is a function that describes how to update state.
 * @template S The type of the whole state
 */
export declare type Updater<S = any> = (state: S) => void;
/**
 * EZAction is the only action type for `ez-react-redux`
 * @template S The type of the whole state
 */
export interface EZAction<S = any> extends Action {
  updater?: Updater<S>;
}
/**
 * Create the store instance
 * @template S The type of the whole state
 */
export declare function createStore<S = any>(
  initialState: S,
  enhancer?: StoreEnhancer
): Store<S, EZAction<S>>;
/**
 * Property selector
 * @template S The type of the whole state
 */
export declare type Selector<S = any, T = unknown> = (state: S) => T;
/**
 * Property selector for React hooks
 * @template S The type of the whole state
 * @template T The type of the selected property
 */
export declare function useSelector<S = any, T = unknown>(
  store: Store<S>,
  selector: Selector<S, T>
): T;
```

repository: liyuanqiu/ez-react-redux

repo_name: liyuanqiu/ez-react-redux


text:
# Factorions

[![Build Status](https://travis-ci.com/scheinerman/Factorions.jl.svg?branch=master)](https://travis-ci.com/scheinerman/Factorions.jl)

Code to hunt for factorions in any base.

## Example
Hunt for all factorions in base-6:

```julia
julia> find_all_factorions(6);
Trying 7776 possibilities (up to 5 digits)
                 # progress bar deleted
1_6 = 1
2_6 = 2
41_6 = 25
42_6 = 26
 ```

gha_language: Julia


text:
# Scrum

Countable uses [Scrum](https://en.wikipedia.org/wiki/Scrum_(software_development)) to manage work delivery and collaboratively learn about problem domains. Check out the guide book from the inventor of Scrum [here](https://www.scrumguides.org/scrum-guide.html).

## Purpose

Learn how to achieve [Key Results](https://github.com/countable-web/open-source-corporation/blob/master/OKRS.md) rapidly together.

## Scope

Define how Countable "follows" Scrum.

## Principles

1. Ship work to real users and get feedback _every sprint_. Don't allow "work in progress" to not be released. Instead, plan your work so it's releasable every 2 weeks or _ideally, every day_.
2. Make sure everyone's clear on the _Objective of the work_.
3. _Communicate_ with your project team about how you're  least once a day about how you're reaching the objective.

## Process

### Project Objective and Key Results

Every team should have one or more [Objective](https://github.com/countable-web/open-source-corporation/blob/master/OKRS.md). This is a written goal discussed with the team to ensure clarity, and is used by the [Product Owner](#product-owner) to order the [Backlog](#backlog).

### Sprint

A sprint is a period (1 week to 1 month) punctuated by a Sprint meeting.

The [Scrum Master](#scrum-master) must review tickets for clarity (triage them) from Requests to Backlog.
The [Product Owner](#product-owner) must review tickets for priority (order the Backlog).

#### Sprint Meeting Goals

1. Measure what % done our Key Results are. Estimate completion of each KR. Quickly check any metrics necessary.
1. Each team member takes 2 minutes to what they shipped each week. Don't show work in progress. Screen share or show a visual is possible, only demonstrate what you've made ready to "ship". Then they take 1 minutes to indicate what's blocking their work, and we determine who will help them on it after the meeting.
1. Review any cards left in the sprint column. Why are they there? How can we avoid that?
1. The team moves cards they want to work on during the current sprint into the "sprint" column. They may always take more cards from the backlog later on they finish early.
1. Move the Trello Cards that best achieve the project's key results and no more than we can actually do, to the sprint column. _when does this happen?_

We release (ship) our work to real customers at the end of the sprint.

#### Stand-up Meetings
Countable doesn't hold synchronous stand-up meetings. Instead, every day, please share something on your team's public slack channel regarding the work you did. It's best to show a screenshot of your work for feedback.

## Reference

### Roles
These are the duties we must assigned when doing Scrum.

#### Product Owner
  * Develops User Stories by talking to real users and ensures those users' needs are being met by the team.
  * Clarifies how to achieve our [Key Results](https://github.com/countable-web/open-source-corporation/blob/master/OKRS.md), while taking input from team.
  * Triage the Trello Requests column into an Ordered Backlog of work.
  * Makes sure items in the backlog are clear to developers. The product owner is typically our client.

#### Scrum Master
  * Chair the sprint meeting, asking good questions in order to understand our progress towards the project goal.
  * Trains the team on Scrum and makes sure we're following the rules of scrum effectively (shipping each week, continuously learning, making tickets clear)
  * Find problems in workflow and make them visible for the team to work together on during the Sprint Plan meeting.

#### Developers (and other technicians)
  * Ensures they have a challenging yet doable amount of work in their sprint each sprint.
  * Takes care to understand items in their sprint.
  * Takes responsibility for shipping the work each sprint.

### Backlog

The Backlog is a list of all the actions we current believe will accomplish the goal of our project. This should be ordered by impact to effort ratio. That is, items which make the biggest difference in the least time should be done first.

We do not have daily stand-up meetings since our team works in different timezones. Instead, we have a slack channel where people should communicate about what they're working on, coordinate code reviews, and figure out logistics to ship their work every week, and generate ideas for the sprint plan meeting.

For a visual aid of how our work is processed, see this [Business Process Diagram](https://drive.google.com/open?id=1VrniT1lRqVu9sJr0ZMK1aQLnFwEuFIQD).

Note: Instead of just talking about what did you do this week, try to use a screen share feature to walk along all of your "done" trello tickets, explaining one by one. This helps the team to better understand all of your work.


text:
---
title: 'About Me'
avatar: './me.jpg'
skills:
  - JavaScript (ES6+)
  - HTML & (S)CSS
  - React
  - Redux
  - Node.js
  - Express
  - React-Native
  - Next.js
  - GraphQL
  - Typescript
  - PostgreSQL
  - MongoDB
  - Java
  - Android
---

Hello! I'm Gapur, a full-stack software engineer and writer. Here's the link to my blog on [medium](https://gapur-kassym.medium.com). I love programming, writing, speaking and traveling.

As a software engineer, I enjoy using my obsessive attention to detail, my unequivocal love for making things that change the world. That's why I like to make things that make a difference.

Here are a few technologies I've been working with recently:


text:
# GD32F150 Breakout board

This very simple 2-layer board exposes all pins of the gd32f150g8 (QFN-28) variant and includes:

- microUSB port
- 5V to 3V3 from the USB connector
- 8 MHz crystal

![Overview of the breakout board](./gd32f150_breakout.svg)


text:
# NServiceBus.Mandrill

[![ncarb-nsb-mandrill MyGet Build Status](https://www.myget.org/BuildSource/Badge/ncarb-nsb-mandrill?identifier=a524359f-6ff5-4ceb-9b24-89fc21a1471f)](https://www.myget.org/)

NServiceBus add-on to allow for sending [mandrill](https://mandrillapp.com/api/docs/) emails over the bus

## Getting Started

```ps
install-package NServiceBus.Mandrill
```

```cs
public class EndpointConfig : IConfigureThisEndpoint, AsA_Server
{
    public void Customize(BusConfiguration configuration)
    {
        var apiKey = ConfigurationManager.AppSettings["MANDRILL_API_KEY"]; //load your api key from somewhere
        configuration.UseMandrill(apiKey);
        //the rest of your setup...
    }
}

```

```cs
 var mail = new MandrillMessage();
 mail.FromEmail =<EMAIL_ADDRESS><EMAIL_ADDRESS>"Udi Dahan");
 mail.Subject = "NServiceBus.Mandrill test";
 mail.Text = "Hello NServiceBus! \nRegards";
 Bus.SendEmail(mail);
```

This is internally forwarding a message to a custom NServiceBus Satellite that will process the request using the Mandrill api, meaning that this email will be sent using the same transactional behavior you expect with any NServiceBus operation

## Handling responses

Optionally, you can write a message handler to handle the responses coming back from the API. To do this, use the configuration method to configure the satellite to return the response message:

```cs
configuration.UseMandrill(apiKey: apiKey, replyResult: true);
```

You'll then need to write a standard message handler for message type `MandrillEmailResult`

```cs
class EmailResultHandler : IHandleMessages<MandrillEmailResult>
{
    public void Handle(MandrillEmailResult message)
    {
        //do something with the message result
        Console.WriteLine("{0} {1} {2}", message.Response.Id, message.Response.Status, message.Response.Email);
    }
}
```

The Sample project includes an example using this approach to set a callback that retrieves the email content for all sent messages

## API errors

In the event that the Mandrill API returns an error (invalid api key, 5xx server errors, invalid message errors, etc) that is handled using the standard exception handling in NServiceBus, and may ultimately end up in the error queue, depending on your configuration.

gha_language: C#


text:
# Ole Gunnar Solskjaer issues update on Man Utd's January transfer plans

Published at: **2019-11-06T17:08:21+00:00**

Author: **Rich Jones, https://www.mirror.co.uk/authors/rich-jones/**

Original: [mirror](https://www.mirror.co.uk/sport/football/transfer-news/ole-gunnar-solskjaer-issues-update-20826610)

Ole Gunnar Solskjaer admits Manchester United's transfer business could be limited in January.
The Red Devils are looking to strengthen their struggling squad after a miserable start to the campaign.
Attacking reinforcements are on the agenda as well as an extra midfielder after struggling for goals so far this campaign.
But Solskjaer says they are aware of the difficulties of doing business in January as he hinted they could wait until the summer to do the bulk of their business.
After signing youngsters Aaron Wan-Bissaka and Daniel James in the summer, as well as centre-back Harry Maguire, Solskjaer confirmed long-term additions are again on the agenda as he continues his rebuild.
Asked about their transfer plans ahead of their Europa League clash with Partizan Belgrade, Solskjaer told reporters: "The priority now is to get the players fit and get to the next round [of the Europa League ].
"We always look at the long term with transfers, it might be none, might be one, might be two in January.
"It's always the summer... you can’t really do too many big deals in January."
United can guarantee a place in the last 32 of the Europa League with a win on Thursday.
And Solskjaer says the emergence of several young players such as Mason Greenwood and Brandon Williams has been the major positive from the European competition so far.
Solskjaer added: "We’ve seen some young players getting a chance and doing well.
"Mason's [Greenwood] given us a winner, Brandon [Williams] was fantastic in Belgrade, Jimmy [Garner] came through that game really well. We have given other players a chance to play which is important in the long run.
"For me, it’s been good to give the young kids a chance. Good to see young players play games and we’ve kept three clean sheets and that’s impressive."

license: Unlicense

repository: dsadlollioygjmzvcxv/tdc-exported

repo_name: dsadlollioygjmzvcxv/tdc-exported


text:
# IGME 430 Exercises #

Assignments completed during my second attempt at IGME 430 at the Rochester Institute of Technology.

## Exercises ##

1. [Introduction to Handlebars](exercises/1_intro-to-handlebars)
2. [Introduction to React](exercises/2_intro-to-react)
3. [React Essentials](exercises/3_react-essentials)
4. [Learning Redux](exercises/4_react-redux)

gha_language: HTML


text:
# nasm

> The Netwide Assembler, a portable 80x86 assembler.

- Assemble `source.asm` into a binary file `source`, in the (default) raw binary format:

`nasm {{source.asm}}`

- Assemble `source.asm` into a binary file `output_file`, in the specified format:

`nasm -f {{format}} {{source.asm}} -o {{output_file}}`

- List valid output formats (along with basic nasm help):

`nasm -hf`

- Assemble and generate an assembly listing file:

`nasm -l {{list_file}} {{source.asm}}`

- Add a directory (must be written with trailing slash) to the include file search path before assembling:

`nasm -i {{/path/to/include_dir/}} {{source.asm}}`

repository: chrillebile/tldr

repo_name: chrillebile/tldr


text:
new-npm-module
=========
maintained by [PandaClouds.com](https://pandaclouds.com)

`new-npm-module` provides a clean way to create a new Panda Clouds npm module.

Usage
-----

1. Create the desired "new" repo on github. We will use a "birthday" module as an example
2. clone "new" into directory "X"
3. clone this project into the same directory "X"
4. open terminal
5. cd /my/dirX
6. replace the "birthday" in this script with the name of your "new" repo
```
export NEW_NPM_PROJECT="birthday" && ls ./${NEW_NPM_PROJECT} && cp -r ./new-npm-module/* ./${NEW_NPM_PROJECT} && cp ./new-npm-module/.eslintignore ./${NEW_NPM_PROJECT} && cp ./new-npm-module/.eslintrc.js ./${NEW_NPM_PROJECT} && cp ./new-npm-module/.gitignore ./${NEW_NPM_PROJECT} && cp ./new-npm-module/.npmrc-deploy ./${NEW_NPM_PROJECT} && rm ./${NEW_NPM_PROJECT}/README.md && mv ./${NEW_NPM_PROJECT}/new_README.md ./${NEW_NPM_PROJECT}/README.md
```
7. paste the command in to termial and press "enter"
8. commit and push the "new" repo to github
9. rename src/<PCName>.js with "PCBirthday.js" or equivelant
9. rename spec/<PCName>.spec.js with "PCBirthday.spec.js" or equivelant
9. rename <PCName> in "spec/PCBirthday.spec.js" or equivelant
9. in "README.md" AND "package.json" replace all:
	- "<PCName>" with "PCBirthday" or equivelant
	- "<panda-blank>" with "birthday" or equivelant
	- "<description>" with a one line secription of the module
11. README.md: in the "Methods" section: Document all methods with examples
11. README.md: in the "Usage" section: add an "end to end" example that uses all the functions together

### Contributors

(Add your name)

- [*] [Marc Smith](https://github.com/mrmarcsmith)

repository: panda-clouds/new-npm-module

gha_language: JavaScript

repo_name: panda-clouds/new-npm-module


text:
# phonegap.com [![Travis CI Build Status](https://api.travis-ci.org/phonegap/phonegap.github.io.svg)](https://travis-ci.org/phonegap/phonegap.github.io)

PhoneGap's future website.

This is a fairly vanilla [Jekyll](http://jekyllrb.com)/[GitHub Pages](https://pages.github.com/) site. It has been optimized for improved page loading speed; see [this article](http://garthdb.com/writings/i-am-a-jekyll-god/) for a full description.

## Setup

Install [`rvm`](https://rvm.io/) to manage Ruby versions:

```bash
$ \curl -sSL https://get.rvm.io | bash -s stable
```

Install Ruby:

```bash
$ rvm install 2.1.5
$ rvm use 2.1.5 --default
$ ruby -v
ruby 2.1.5
```

Install the Ruby Bundler:

```bash
$ gem install bundler
```

Clone this repository:

```bash
$ git clone https://github.com/phonegap/phonegap.github.io.git
$ cd phonegap.github.io/
```

Install the Ruby dependencies for phonegap.com:

```bash
$ bundle install
```

## Running Locally

**Build and watch everything _except the blog_:**

```bash
$ rake watch
```

Then open a browser to `http://localhost:4000`.

**Build and watch everything _including the blog_:**

```bash
$ jekyll serve --incremental
```

Then open a browser to `http://localhost:4000`.

## Writing Blog Posts

* To write a post, commit a markdown file to the `/blog/_posts` directory.
* You can use the [post template](https://github.com/phonegap/phonegap.github.io/blob/master/_post.txt) as a starting point.
  * Optionally you can also use a Rake task to create the new post file locally. Install Ruby and Rake as mentioned above in the "Setup" section. Run `$ rake post["Put the Post Title Here"]`
* Name the file with the date first, followed by a url friendly version of the title. Example: `2016-02-24-phonegap-desktop-app-0.2.2.md`
* Tag pages have to be set up manually; do your best to use existing ones, if you need to set up a new one, setup a new tag page in the `/blog/tags` using the [tag template](https://github.com/phonegap/phonegap.github.io/blob/master/blog/tags/_template.html)
* Use [markdown](https://daringfireball.net/projects/markdown/) for simple formatting. It is converted to html using [Kramdown](http://kramdown.gettalong.org/)
* HTML is also acceptable, just use the `.html` extension on the filename.
* To keep videos and images responsive please don't add the `width` property. If images are too large you can add the `max-width` style: `<img src="/uploads/blog/2016-02/Browser.jpg" alt="Browser" style="max-width: 400px;"/>`
* To include images, add them to `/uploads/blog/[4 digit year]-[2 digit month]`. If the directory you need for the month isn't there, feel free to add it. To include the image in the post just use the same directory structure: `![Browser](/uploads/blog/2016-02/Browser.jpg)`.
* Kramdown is using [GitHub Flavored Markdown](https://help.github.com/articles/working-with-advanced-formatting/). The easiest way to add code snippets is to using [triple backticks](https://help.github.com/articles/creating-and-highlighting-code-blocks/#fenced-code-blocks); you can also define the language for better [syntax highlighting](https://help.github.com/articles/creating-and-highlighting-code-blocks/#syntax-highlighting). For a full list of languages [here](https://github.com/github/linguist/blob/master/lib/linguist/languages.yml).
* You can preview the post locally using the setup and commands mentioned above in the [Setup](https://github.com/phonegap/phonegap.github.io/#setup) section.
* If you have write access to this repo and you feel comfortable with the blog post, feel free to commit to master.
* If you **don't** have write access to this repo, or you would like a review, please make a [pull-request](https://help.github.com/articles/using-pull-requests/).

## Test Locally

The site is using [Travis CI](https://travis-ci.org/phonegap/phonegap.github.io) and [HTML Proofer](https://github.com/gjtorikian/html-proofer) to check the html and referenced urls. Before you make a pull request it's a good idea to run the tests locally first.

Just run the command:

```bash
$ rake test
```

The output should be something like:

```bash
Running ["ScriptCheck", "LinkCheck", "ImageCheck"] checks on ./_site on *.html...

Checking 7 external links...
Ran on 3 files!

HTML-Proofer finished successfully.
```

If it finds any errors be sure to fix them before making the pull-request.


text:
ansible-role-docker
===================

[![Build Status](https://travis-ci.org/kevincoakley/ansible-role-docker.svg?branch=master)](https://travis-ci.org/kevincoakley/ansible-role-docker)

Manage Docker containers natively or using systemd.

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

Tested with CentOS 7, Ubuntu 18.04 and Project Atomic. Docker needs to be installed.

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

    container_state: started

See Ansible Docker module documentation at [http://docs.ansible.com/ansible/docker_module.html](http://docs.ansible.com/ansible/docker_module.html).

    container_privileged: false

Run the container with privileged permissions.

    container_run_as_service: false

If false then the role will run the container natively using the docker command. If true then the role will create a unit file in /etc/systemd/system/ and run the service from systemd.

    container_pause_seconds: 1

Time to pause after starting the container in case the container needs a few seconds to get up and running.

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

None

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

    - name: Create two docker containers
      hosts: docker-native

      vars:
        - container_state: reloaded
        - container_privileged: true
        - docker_containers:
            - name: ubuntu-container
              image: kevincoakley/ubuntu16.04-systemd
              expose:
                - "8080"
              ports:
                - "2200:22"
                - "8081:8080"
              volumes:
                - "/sys/fs/cgroup:/sys/fs/cgroup"
            - name: centos-container
              image: kevincoakley/centos7-systemd
              expose:
                - "8080"
              ports:
                - "2222:22"
                - "8082:8080"
              volumes:
                - "/sys/fs/cgroup:/sys/fs/cgroup"

      roles:
        - ansible-role-docker

      tags:
        - docker-start

    - name: Create two docker containers using systemd
      hosts: docker-systemd

      vars:
        - docker_mocker: true
        - container_run_as_service: true
        - container_privileged: true
        - docker_containers:
            - name: ubuntu-container
              image: kevincoakley/ubuntu16.04-systemd
              expose:
                - "8080"
              ports:
                - "2200:22"
                - "8081:8080"
              volumes:
                - "/sys/fs/cgroup:/sys/fs/cgroup"
              ulimits:
                - "nofile=40000:40000"
            - name: centos-container
              image: kevincoakley/centos7-systemd
              expose:
                - "8080"
              ports:
                - "2222:22"
                - "8082:8080"
              volumes:
                - "/sys/fs/cgroup:/sys/fs/cgroup"

      roles:
        - ansible-role-docker

      tags:
        - docker-systemd

License
-------

BSD

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

Kevin Coakley (https://github.com/kevincoakley)

repository: kevincoakley/ansible-role-docker

gha_language: Shell

repo_name: kevincoakley/ansible-role-docker


text:
# semfio-mist

This package stores a list of functions and modules that can be used to interact
with the Mist/Juniper Cloud.

The full list of modules will be documented shortly.

## Usage
This library can be installed using the following pip command:
`pip install semfio-mist`

In order to start using the library in your Python scripts, please import the modules
at the beginning of your scripts as follow:
``` Python
from semfio_mist import Config
from semfio_mist import logger
from semfio_mist import API
```

repository: semfionetworks/semfio-mist

repo_name: semfionetworks/semfio-mist


text:
---
layout: post
title: "Learning a Family of Optimal State Feedback Controllers"
date: 2019-02-27 17:04:17
categories: arXiv_RO
tags: arXiv_RO
author: Christopher Iliffe Sprague, Dario Izzo, Petter Ögren
mathjax: true
---

* content
{:toc}

##### Abstract
Solving optimal control problems is well known to be very computationally demanding. In this paper we show how a combination of Pontryagin's minimum principle and machine learning can be used to learn optimal feedback controllers for a parametric cost function. This enables an unmanned system with limited computational resources to run optimal feedback controllers, and furthermore change the objective being optimised on the fly in response to external events. Thus, a time optimal control policy can be changed to a fuel optimal one, in the event of e.g., fuel leakage. The proposed approach is illustrated on both a standard inverted pendulum swing-up problem and a more complex interplanetary spacecraft orbital transfer.

##### Abstract (translated by Google)

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

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


text:
---
name: Feature request
about: Suggest an idea for this project
title: "[Feature Request]"
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe your use case.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
It would be very nice to provide some code snippet to explain your use case.

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Additional context**
Add any other context about the feature request here. This might be which part of source code to modify or some information you think it might help.

repository: sanic-org/sanic-openapi

gha_language: Python

repo_name: sanic-org/sanic-openapi


text:
# isis-module-pdf #

[![Build Status](https://travis-ci.org/isisaddons/isis-module-pdf.png?branch=master)](https://travis-ci.org/isisaddons/isis-module-pdf)

This module, intended for use with [Apache Isis](http://isis.apache.org), provides a merge capability of input
data into an PDF (Portable Document Format) template.

The module consists of a single demo domain service, `org.isisaddons.module.pdf.fixture.dom.templates.CustomerConfirmation`.
It provides a single action method that loads a`.pdf` template and populates it with the details of an Order entity.

The implementation uses [Apache PDFBox](http://pdfbox.apache.org/) for reading and writing the PDF documents.

**Caution**: This is just an example project!
It provides a demo domain service with a single action demonstrating how to generate a random document out of your domain entity.

## Screenshots and Usage ##

The following screenshots and code fragments show an example app's usage of the module.

#### Installing the Fixture Data ####

Installing fixture data...

![](https://raw.github.com/martin-g/isis-module-pdf/master/images/example-app-install-fixtures.png)

... creates a single demo `Order` entity, with properties of different data types and a collection of child (`OrderLine`) entities:

![](https://raw.github.com/martin-g/isis-module-pdf/master/images/example-app-order-entity.png)

#### The .pdf template ####

The template `.pdf` is created with Libre Office Writer by using Form controls (View > Toolbars > Form Controls).
Each form control is used as a placeholder for a detail in the Order entity class. At the end the document is exported as a PDF document
with a form.
Read an article in the web with
the exact steps how to create such document and to export it as a PDF with form.

LibreOffice:

![](https://raw.github.com/martin-g/isis-module-pdf/master/images/document-with-form-libreoffice.png)

Evince (a PDF viewer):

![](https://raw.github.com/martin-g/isis-module-pdf/master/images/document-with-form-evince.png)

#### Generating the Document ####

In the example app's design the `CustomerConfirmation` example domain service is in essence an intelligent wrapper
around the `CustomerConfirmation.pdf` template.  It contributes one actions to `Order` - `downloadCustomerConfirmation()`.

The `.pdf` is simply loaded as a simple resource from the classpath:

```java
@DomainService
public class CustomerConfirmation {

    private byte[] pdfAsBytes;

    @PostConstruct
    public void init() throws IOException {
        pdfAsBytes = Resources.toByteArray(Resources.getResource(this.getClass(), "CustomerConfirmation.pdf"));
    }
    ...
}
```

Then, in `loadAndPopulateTemplate(Order)` helper method we create the PDDocument out of the template bytes and populate its form controls with
the order details:

```java
private PDDocument loadAndPopulateTemplate(Order order) throws Exception {
        PDDocument pdfDocument = PDDocument.load(new ByteArrayInputStream(pdfAsBytes));

        PDAcroForm pdfForm = pdfDocument.getDocumentCatalog().getAcroForm();

        List<PDField> fields = pdfForm.getFields();
        SortedSet<OrderLine> orderLines = order.getOrderLines();
        for (PDField field : fields) {

            String fullyQualifiedName = field.getFullyQualifiedName();
            if ("orderDate".equals(fullyQualifiedName)) {
                field.setValue(order.getDate().toString());
            } else if ("orderNumber".equals(fullyQualifiedName)) {
                field.setValue(order.getNumber());
            } else if ("customerName".equals(fullyQualifiedName)) {
                field.setValue(order.getCustomerName());
            } else if ("message".equals(fullyQualifiedName)) {
                String message = "You have ordered '" + orderLines.size() +"' products";
                field.setValue(message);
            } else if ("preferences".equals(fullyQualifiedName)) {
                field.setValue(order.getPreferences());
            }
        }

        int i = 1;
        Iterator<OrderLine> orderLineIterator = orderLines.iterator();
        while (i < 7 && orderLineIterator.hasNext()) {
            OrderLine orderLine = orderLineIterator.next();

            String descriptionFieldName = "orderLine|"+i+"|desc";
            pdfForm.getField(descriptionFieldName).setValue(orderLine.getDescription());

            String costFieldName = "orderLine|"+i+"|cost";
            pdfForm.getField(costFieldName).setValue(orderLine.getDescription());

            String quantityFieldName = "orderLine|"+i+"|quantity";
            pdfForm.getField(quantityFieldName).setValue(orderLine.getDescription());
            i++;
        }

        return pdfDocument;
    }
```

And finally in the `downloadCustomerConfirmation` contributed action the `CustomerConfirmation` just creates and returns
a `org.apache.isis.applib.value.Blob` with the PDF mime type and content:

```java
@NotContributed(NotContributed.As.ASSOCIATION) // ie contributed as action
    @NotInServiceMenu
    @ActionSemantics(Of.SAFE)
    @MemberOrder(sequence = "10")
    public Blob downloadCustomerConfirmation(
            final Order order) throws Exception {

        try (PDDocument pdfDocument = loadAndPopulateTemplate(order)) {

            final ByteArrayOutputStream target = new ByteArrayOutputStream();
            pdfDocument.save(target);

            final String name = "customerConfirmation-" + order.getNumber() + ".pdf";
            final String mimeType = "application/pdf";
            final byte[] bytes = target.toByteArray();

            return new Blob(name, mimeType, bytes);
        }
    }
```

The streamed to the browser PDF document looks like:

![](https://raw.github.com/martin-g/isis-module-pdf/master/images/populated-pdf.png)

## How to run the Demo App ##

The prerequisite software is:

* Java JDK 7 (nb: Isis currently does not support JDK 8)
* [maven 3](http://maven.apache.org) (3.2.x is recommended).

To build the demo app:

    git clone https://github.com/martin-g/isis-module-pdf.git
    mvn clean install

To run the demo app:

    mvn antrun:run -P self-host

Then log on using user: `sven`, password: `pass`

## How to configure/use ##

You can either use this module "out-of-the-box", or you can fork this repo and extend to your own requirements.

#### Forking the repo ####

If instead you want to extend this module's functionality, then we recommend that you fork this repo.  The repo is
structured as follows:

* `pom.xml`    // parent pom
* `fixture`    // fixtures, holding a sample domain objects and fixture scripts
* `integtests` // integration tests for the module; depends on `fixture`
* `webapp`     // demo webapp (see above screenshots); depends on `fixture`

The project is just a demo how to generate a PDF filled with your entity's details and stream it back to the user..
The versions of the modules are purposely left at `0.0.1-SNAPSHOT` because they are not intended to be released.

## Change Log ##

## Legal Stuff ##

#### License ####

    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.

#### Dependencies ####

In addition to Apache Isis, this module depends on:

* `org.apache.pdfbox:pdfbox` (ASL v2.0 License)

repository: martin-g/isis-module-pdf

repo_name: martin-g/isis-module-pdf


text:
# yasnippet-vim-snippets
Vim snippets ported to Emacs YASnippet with the use of the
[snipmate_to_yas](https://github.com/cartolari/snipmate_to_yas) tool.

To use this snippet library clone this repository and add the following to your
Emacs init file.

```elisp
(add-to-list 'yas-snippet-dirs "/folder-where-you-cloned-this-repository")
```

repository: cartolari/yasnippet-vim-snippets

repo_name: cartolari/yasnippet-vim-snippets


text:
# url-redirects (EKV)

*Keyword(s):* url-redirects, EKV<br>

This example uses EdgeWorkers + EdgeKV to extract a query string product SKU from an incoming URL, match it against a SKU stored in a KV database, and properly redirect the browser to the new product page.

## Usage Examples

```
$ curl https://www.example.com/sku/483D5F/reviews
```

## Demo

```
https://www.edgecompute.live/
```

## Resources
* ToDo: Add link to deep dive article once it's published on akamai.com

repository: akamai/edgeworkers-examples

repo_name: akamai/edgeworkers-examples


text:
UAlerts Module Archetype
=======

An archetype that can be used to create new Maven modules in the UAlerts Server project.

## Usage

### Local Installation

To use the archetype, do the following:

1. Open a command line and navigate to the directory for this project.
2. Install the project by running mvn clean install.
3. Update your local archetype-catalog.xml by running mvn archetype:crawl.
4. In Eclipse, go the **Preferences** -> **Maven** -> **Archetypes**.
5. Click the **Add Local Catalog...** button.
6. For _Catalog File_, select your archetype-catalog.xml file (~/.m2/repository/archetype-catalog.xml for Mac/\*nix or <User Home Directory>/.m2/repository/archetype-catalog.xml for Windows)
7. Add a description of **Local Catalog**.
8. Hit the **OK** button.
9. Close the _Preferences_ screen by hitting **OK**.

### Creating project with archetype

In order to build the project, you will need to run from the command line.  The archetype uses properties, which Eclipse doesn't handle very gracefully.

1. Navigate to the location that you'd like to build the project.
2. Run the following command, replacing **${version}** with the current version of the archetype and **${group}** and **${artifact}** with the Group ID and Artifact ID you want for the new project:

   mvn archetype:generate -DarchetypeGroupId=org.ualerts -DarchetypeArtifactId=org.ualerts.archetype.module -DarchetypeVersion=**${version}** -DgroupId=**${group}** -DartifactId=**${artifact}**

3. Provide answers to the prompts for the various properties.
4. You're done!

### Importing Created Project into Eclipse

1. In Eclipse, go to **File** -> **Import...**.
2. Select the **Maven** -> **Existing Maven Projects**.
3. In the **Root Directory** field, navigate and select the folder that contains the project.
4. Ensure your project is checked in the list of Projects.
5. Continue through the rest of the wizard.

repository: mukpal/ualerts-server

repo_name: mukpal/ualerts-server


text:
# Page Path - Part N

## Description

{{Page Path}} used by default, but you can use a custom path source as {{Click URL}}, {{New History Fragment}}, {{Form URL}}, etc.
The Google Tag Manager variable template will return

	* the page path part by index
	* always the last part
	* the page path length (integer)

## Example

When path is /shop/toys/cars/red-car.html

|Page Path - Part N|Return value|
| ---- | ---- |
|Page Path - Part 1|shop|
|Page Path - Part 2|toys|
|Page Path - Last Part|red-car.html |
|Page Path - Length|4|

When path is /

|Page Path - Part N|Return value|
| ---- | ---- |
|Page Path - Part 1||
|Page Path - Last Part||
|Page Path - Length|0|

repository: philpott/gtm-template-pagepath-partn

repo_name: philpott/gtm-template-pagepath-partn


text:
[API Docs][docs] | [GitHub][repo] | [npm][npm] | [Teardown][haruka-teardown]

# Haruka

Haruka, your useless Discord bot. [Add Haruka][add].

- [Commands](#commands)
- [Installation](#installation)
- [Contributing](#contributing)
- [License](#license)

## Commands
Haruka has 25 functions:

- [`-h 8ball`][f-8ball]: Answers any yes or no question.
- [`-h about`][f-about]: General stuff about Haruka.
- [`-h aesthetic`][f-ae]: Makes your text more ａｅｓｔｈｅｔｉｃ.
- [`-h anime`][f-anime]: Looks up information for an anime, you weeb.
- [`-h emote`][f-emote]: Manages server emotes
- [`-h github`][f-github]: Retrieve information about a GitHub repository.
- [`-h health`][f-health]: Tips to improve your bodily health.
- [`-h help`][f-help]: Returns a list of all the commands, much like this one.
- [`-h invite`][f-invite]: Replies with a URL to invite Haruka to other servers.
- [`-h kanji`][f-kanji]: Retrieve information about a Kanji character.
- [`-h kick`][f-kick]: Kicks all of the mentioned users.
- [`-h manga`][f-manga]: Looks up information for a manga, you weeb.
- [`-h now`][f-now]: Returns the current time in UTC
- [`-h pfp`][f-pfp]: Return a user’s profile image as a URL.
- [`-h ping`][f-ping]: Replies “Pong!”
- [`-h pkmn`][f-pkmn]: Gets information about a Pokémon.
- [`-h purge`][f-purge]: Deletes messages in bulk.
- [`-h restart`][f-restart]: Restarts Haruka.
- [`-h reverse`][f-reverse]: Reverses some text.
- [`-h say`][f-say]: Replies with whatever you tell it to.
- [`-h smash`][f-smash]: Looks up information on any Smash Ultimate fighter.
- [`-h someone`][f-someone]: Mentions a user chosen at random.
- [`-h version`][f-version]: Prints out technical information about Haruka.
- [`-h wa`][f-wa]: Compute anything with WolframAlpha.
- [`-h xkcd`][f-xkcd]: Fetches xkcd comics.

## Installation

Although Haruka _can_ be installed via `npm i discord-haruka`, it’s not recommended, as Haruka isn’t a module. Instead, go to the [GitHub repo][repo] and get a copy of [Haruka’s latest release][releases]. In the root directory, open the file called `.env.ex`, and place your keys in there.

```env
DISCORD_TOKEN=
KANJI_ALIVE_KEY=
WA_APPID=
HARUKA_OPS=
```

Place your *super sensitive* keys in here. Be mindful as to not add spaces around the equal sign. `DISCORD_TOKEN` is your bot’s login token which can be found in [the Discord Developer portal][discord-my-apps]. The second key, `KANJI_ALIVE_KEY`, is your `X-Mashape-Key` used for [KanjiAlive][kanjialive], the API used to retrieve Kanji data. If you don't wish to use the Kanji function, rename `src/functions/kanji.coffee` to `src/functions/_kanji.coffee` and rerun the build command. In a similar fashion, the `WA_APPID` key is Haruka's WolframAlpha AppID, which can be found [here][wolfram-dev-portal]. You can disable this function similarly to disabling the Kanji function.

The `HARUKA_OPS` key is a comma-separated list of IDs of users who can run the `-h halt` command. Add your User ID to the list. If adding multiple people, please separate them with commas WITHOUT any surrounding spaces. The `HARUKA_LOG_GUILD_ID` and `HARUKA_LOG_CHANNEL_ID` are for collecting function usage statistics. Haruka will send *basic* information about the command called in this guild and channel. If you do not wish to gather usage statistics, you may omit these fields.

Finally, rename `.env.ex` to simply `.env`. Run `npm install` to install Haruka’s dependencies, and run her locally by using `npm start`.

## Contributing
First of all, [get to know how Haruka works][haruka-teardown]. Haruka is made of several component parts, and understanding how they work will ease development.  Haruka’s written in CoffeeScript, you can build her by running `npm build` or `npm watch` in the root directory with CoffeeScript installed (devDependency). It’s also recommended you have a CoffeeScript linter installed.

## License

[MIT License][license]

<!-- Reference links -->
[docs]: https://haruka.benjic.xyz/ "Haruka API Documentation"
[repo]: https://github.com/MindfulMinun/discord-haruka "MindfulMinun/discord-haruka · GitHub"
[haruka-teardown]: https://benjic.xyz/2018-07-30/haruka-teardown/ "Haruka Teardown"
[npm]: https://www.npmjs.com/package/discord-haruka "discord-haruka · npm"
[kanjialive]: https://market.mashape.com/KanjiAlive/learn-to-read-and-write-japanese-kanji "KanjiAlive API Documentation"
[releases]: https://github.com/MindfulMinun/discord-haruka/releases "Releases · MindfulMinun/discord-haruka"
[discord-my-apps]: https://discordapp.com/developers/applications/me "Discord - My Apps"
[license]: https://github.com/MindfulMinun/discord-haruka/blob/master/LICENSE "discord-haruka/LICENSE"
[add]: https://discordapp.com/oauth2/authorize?client_id=458130019554820127&scope=bot&permissions=125966 "Add Haruka to your Discord server."
[wolfram-dev-portal]: https://developer.wolframalpha.com/portal/myapps/index.html "Wolfram|Alpha Developer Portal: My Applications"

<!-- Function links -->
[f-8ball]:   https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/8ball.coffee
[f-about]:   https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/about.coffee
[f-ae]:      https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/aesthetic.coffee
[f-anime]:   https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/anime.coffee
[f-emote]:   https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/emote.coffee
[f-github]:  https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/github.coffee
[f-health]:  https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/health.coffee
[f-help]:    https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/help.coffee
[f-invite]:  https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/invite.coffee
[f-kanji]:   https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/kanji.coffee
[f-kick]:    https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/kick.coffee
[f-manga]:    https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/manga.coffee
[f-now]:     https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/now.coffee
[f-pfp]:     https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/pfp.coffee
[f-ping]:    https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/ping.coffee
[f-pkmn]:    https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/pkmn.coffee
[f-purge]:   https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/purge.coffee
[f-restart]: https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/restart.coffee
[f-reverse]: https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/reverse.coffee
[f-say]:     https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/say.coffee
[f-smash]:     https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/smash.coffee
[f-someone]: https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/someone.coffee
[f-version]: https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/version.coffee
[f-wa]: https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/wa.coffee
[f-xkcd]:    https://github.com/MindfulMinun/discord-haruka/blob/master/src/functions/xkcd.coffee

repository: MindfulMinun/discord-haruka

gha_language: CoffeeScript

repo_name: MindfulMinun/discord-haruka


text:
---
title: "Express - Serve Static Files"
description: "You can use the express.static middleware to serve static files, including your images, CSS and JavaScriptstatic() is the only middleware function tha"
date: 2021-09-11T01:47:05.823Z
tags: []
---
### How to serve static files?
- You can use the express.static middleware to serve static files, including your images, CSS and JavaScript
- static() is the only middleware function that is actually part of Express

### Hello Static Files
1 Add Static Files in public DIR.
``` js
// serve images, CSS files, and JavaScript files from a directory named 'public'
//Any files in the public directory are served by adding their filename (relative to the base "public" directory) to the base URL
app.use(express.static('public'));
```
2 Serve Static files in multiple DIRs.
``` js
app.use(express.static('public'));
app.use(express.static('media'));
```
3 create a virtual prefix for your static URLs, rather than having the files added to the base URL.
``` js
app.use('/media', express.static('public'));

```
Result
```
http://localhost:3000/media/images/dog.jpg
http://localhost:3000/media/video/cat.mp4
http://localhost:3000/media/cry.mp3
```

### REF
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/Introduction

url: https://raw.githubusercontent.com/cskwork/cskwork.github.io/8eb767bc5b884662045cf865ae288d0ae900ee6f/docs/uncategorized/Express - Serve Static Files.md

filename: Express - Serve Static Files.md


text:
[Home](./index.md) > [canvas-cleave](./canvas-cleave.md) > [IRenderingContextOptions](./canvas-cleave.irenderingcontextoptions.md)

## IRenderingContextOptions interface

A cross-environment interface that covers the properties supported for options when requesting a 2D canvas rendering context in both DOM (in HTMLCanvasElement.getContext) and canvas-cleave (in NodeCanvas.getContext).

Signature:

```typescript
export interface IRenderingContextOptions
```

## Properties

|  Property | Type | Description |
|  --- | --- | --- |
|  [alpha](./canvas-cleave.irenderingcontextoptions.alpha.md) | boolean | Enable/disable alpha channel for the canvas depending on your needs. |

repository: Daiz/canvas-cleave

repo_name: Daiz/canvas-cleave


text:
kirby-panoramio
===============

A plugin for [Kirby](http://getkirby.com/) that makes it easy to include geolocated Panoramio photos in your templates.

To install, put `panoramio.php` in your `/site/plugins` folder.

Use it like this:

	// Returns an array
    $photos = panoramio($location = 'world', $set = 'public', $qty = '20', $size = 'medium', $mapfilter = 'false');

There are a few variables. Here's a rundown (see the [Panoramio API docs](http://www.panoramio.com/api/data/api.html) for more details):

    $minx        Coordinates of the desired bounding box, in decimal degrees.
    $maxx        For worldwide, use -180, 180, -90, and 90.
    $miny
    $maxy

    $set         The photoset to draw from. Accepted values are:
                 'public' (popular photos)
                 'full' (recent photos)
                 user ID (photos from a particular user)

    $qty         The number of photos to retrieve. Maximum is 10 million — I hope that's enough...

    $size        The size of the photos. Accepted values are:
			 	 'original'    (original resolution)
				 'medium'      (500px wide)
				 'small'       (240px wide)
				 'thumbnail'   (100px wide)
				 'square'      (60px * 60px)
				 'mini_square' (32px * 32px)

	$mapfilter   If set to 'true', Panoramio will filter the results to make them fit better on a map (less photos in the same location)

This plugin returns an array that looks like this:

    Array
    (
        [0] => stdClass Object
            (
                [height] => 500
                [latitude] => 42.341873
                [longitude] => -71.1083811
                [owner_id] => 4291456
                [owner_name] => Konstantin Khrapko
                [owner_url] => http://www.panoramio.com/user/4291456
                [photo_file_url] => http://mw2.google.com/mw-panoramio/photos/medium/44537736.jpg
                [photo_id] => 44537736
                [photo_title] => Goose chain in Muddy river.
                [photo_url] => http://www.panoramio.com/photo/44537736
                [upload_date] => 03 December 2010
                [width] => 333
            )
        [1] => stdClass Object
            (
            	[...]
            )
    )

And here's some sample template code to get you started:

	<?php $photos = panoramio('Portugal',4494359,50,'thumbnail') ?>

		<?php foreach ($photos as $photo) { ?>

				<a href="http://static.panoramio.com/photos/original/<?php echo $photo->photo_id ?>.jpg" title="<?php echo $photo->photo_title ?>"> // Manually recreating the URL syntax for the 'original' size photo so I can link to it
					<img src="<?php echo $photo->photo_file_url ?>" alt="<?php echo $photo->photo_title ?>" />

<?php echo $photo->photo_title ?>

		<? } ?>

## To do

- Better error handling
- Allow multiple locations

repository: samnabi/kirby-panoramio

repo_name: samnabi/kirby-panoramio


text:
## Instructions
> I have created Product Listing page and given navigation link in the header
> I have created side bar and given some links to navigate and some dummy links also
> In the product listing page I am listing all the product added in the index page I am also displaying count of products

### Prerequisites

> If you wish to run this app **without installing/running a database**, you can easily do so. Read more [here](https://github.com/choonkending/react-webpack-node/blob/master/docs/databases.md).

**Install MongoDB as your database**:

```bash
# Update brew formulae
brew update
# Install MongoDB
brew install mongodb
```

If you hate MongoDB with a passion and would like to see a postgresql example, check [this](https://github.com/choonkending/react-webpack-node/blob/master/docs/databases.md) out!

**Setup your mongoDB directory**

Note: Make sure you have the directory and its permissions setup (i.e. `/data/db`):
```bash
sudo mkdir -p /data/db
sudo chown -R `id -u` /data/db
```

**Run your mongoDB server**
```bash
mongod
```

### Build & Dev

**Installation**
```bash
# Install node modules - this includes those for production and development
# You only need to do this once :)
npm install
```

**Development**

```bash
# Starts the server with Hot Reloading
# Run webpack through webpack.config.dev.js
npm run dev

```


text:
# Nim bindings for Godot Engine

Nim bindings for Godot 3.0 based on [GDNative](https://godotengine.org/article/dlscript-here).

Documentation is coming. You can learn from the [sample project](examples/simple) in the meantime.

## Links

- [Godot Engine](http://www.godotengine.org/)
- [Nim](http://nim-lang.org/)

## License

This project is licensed under the MIT license. Read [LICENSE](LICENSE) file for details.

Copyright (c) 2017 Xored Software, Inc.

repository: acleverpun/godot-nim

repo_name: acleverpun/godot-nim


text:
## xiVIEW ##

xiVIEW contains many different ways to view cross-link data, from circle plots, protein network views, protein sequence views and tables, to raw spectra and peak views. Data can be filtered and exported, as can images. PDB datasets can be incorporated to give physical context to the cross-links, enabling 3D and contact map views, with automatic alignment performed between Xi and PDB sequences.

This documentation is divided into four logical sections:

1. Filtering Data
2. Importing MetaData
3. Viewing Data
4. Exporting Data

### 1. Filtering Data ###

One of the main benefits of XiView is the ability to filter the dataset based on various attributes. A description of the full set of the available attributes and operations can be found here on the [Filter Bar](./views/filterBar.html "Filter Bar") page. Changes to the filtered dataset are immediately reflected in all open views.

### 2. Importing MetaData ###

The dataset loaded from the history page can be augmented with the addition of metadata for the cross-links and proteins. This can be performed via the 'Load' menu in the top menu bar which offers five different methods for incorporating metadata:

1. 	[PDB Data](./import/pdbdata.html "PDB Data") - Load PDB data to display crystal structures and to calculate distances.
1. 	STRING
1. 	[Cross-Link Metadata](./import/crossmeta.html "Cross-Link Metadata") - Add metadata to the existing cross-links.
1. 	[Protein Metadata](./import/proteinmeta.html "Protein Metadata") - Add metadata to the existing proteins.
1. 	[User Annotations](./import/userannotations.html "User Annotations") - Add annotation ranges and types for the proteins in the search if the Uniprot annotations are not sufficient or have not been picked up.

### 3. Viewing Data ###
There are a number of different views available for exploring cross-links within xiVIEW. One, the XiNet view, is a constant in the main window of xiView. The others are available via the "View" drop-down menu in the menu bar along the top of the window.

The views themselves can be categorised as three basic types:

* Those that show positional cross-link data:
	1. [Xi Net](./views/xinet.html "Xi Net")
	2. [Circular View](./views/circular.html "Circular View")
	3. [Matrix View](./views/matrix.html "Matrix View") aka Contact Map
	4. [3D NGL View](./views/3dngl.html "3D View")
	5. [Protein Info View](./views/proteinInfo.html "Protein Info View")

* Those that show cross-link metadata:
	1. [Histogram View](./views/histogram.html "Histogram View")
	2. [Scatterplot View](./views/scatterplot.html "Scatterplot View")

* Those whose main purpose is to act as sanity checks:
	1. [Alignment View](./views/alignment.html "Alignment View")
	2. [Search Summaries](./views/searchSummaries.html "Search Summaries")

The [Legend View](./views/legend.html "Legend View") can be considered in a category of its own, its main function is to choose and refine a colour scheme used in the rest of the xiVIEW interface.

All views also share a number of [common operations and functionalities](./views/shared.html "Shared View Operations") such as filtering and selection.

#### Relation to Viewing Spectra ####
The [Selected Match Table](./views/selectionTable.html "Selected Match Table") acts as the bridge to the underlying raw data displayed in the [Spectrum View](https://spectrumviewer.org/help.php "Spectrum View") - open the xiSpec Feature Support section in this link for spectrum viewer use instructions. Selecting a match in this table will displaying the underlying raw data in the Spectrum View.

### 4. Exporting Data ###

![Export Dialog](../img/export.png)

The Export menu in the top menu bar has a number of options for outputting various aspects of the current filtered dataset. Simply click the required option and the exported file will be downloaded to your computer.

Filtered cross-links, matches, protein-protein interactions, residue pairs and protein accession numbers [can all be saved as CSV files](./export/csv.html), and filtered matches can also be saved in Skyline's SSL format. The final option "Make Filtered Xi URL" offers the option to export a URL that includes the current filter state. Upon re-opening in a browser this URL will set the filter to the values in the URL as a convenient shortcut.

#### Exporting Images ####
Finally, almost every view has the option to save their current representation as a SVG or PNG file, which again includes a timestamp and filter state within the filename. Most of the exported images also include a colour key, and most views generate SVG images that include a link to return to the search.

repository: Rappsilber-Laboratory/xidocs

repo_name: Rappsilber-Laboratory/xidocs


text:
# Change Log

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [0.0.9](https://github.com/rqlite/rqlite-js/compare/v0.0.8...v0.0.9) (2017-07-28)

### Bug Fixes

* **build:** Adding travis ci build support. ([f16a021](https://github.com/rqlite/rqlite-js/commit/f16a021))

## [0.0.8](https://github.com/rqlite/rqlite-js/compare/v0.0.7...v0.0.8) (2017-07-27)

### Bug Fixes

* **support:** Added transaction support, basic authentication support ([bc13542](https://github.com/rqlite/rqlite-js/commit/bc13542))

## [0.0.7](https://github.com/rqlite/rqlite-js/compare/v0.0.6...v0.0.7) (2017-07-25)

### Bug Fixes

* **docs:** Updated README examples so the text better matches small breakpoints. ([150b2ca](https://github.com/rqlite/rqlite-js/commit/150b2ca))

## [0.0.6](https://github.com/rqlite/rqlite-js/compare/v0.0.5...v0.0.6) (2017-07-25)

### Bug Fixes

* **docs:** Accepting README changes and updating CHANGELOG double message. ([34a6738](https://github.com/rqlite/rqlite-js/commit/34a6738))

## [0.0.5](https://github.com/rqlite/rqlite-js/compare/v0.0.1...v0.0.5) (2017-07-25)

### Bug Fixes

* **npm:** Starting the npm version at 0.0.4 due to npm issues. ([10ef8a7](https://github.com/rqlite/rqlite-js/commit/10ef8a7))

## 0.0.1 (2017-07-25)

### Bug Fixes

* **package:** Updated package.json information to rqlite repository. ([f708be9](https://github.com/rqlite/rqlite-js/commit/f708be9))

repository: stephensong/rqlite-js

repo_name: stephensong/rqlite-js


text:
# apikana-java
The java side of [apikana](https://github.com/lbovet/apikana).

## Usage

### Create a new API project

Install apikana `npm install -g apikana`.
Run `apikana init`.

This starts an interactive wizard that lets you define the main aspects of the API project.

If you don't like `npm`, just take advantage of the provided parent pom and use this as a template:

````xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.swisspush.apikana</groupId>
        <artifactId>apikana-parent</artifactId>
        <version>0.4.14</version>
    </parent>

    <groupId>myorg.myproject</groupId>
    <artifactId>myapi</artifactId>
    <version>0.0.1-SNAPSHOT</version>
</project>
````

Create `src/openapi/api.yaml`
````yaml
paths:
  /sample/users:
    get:
      operationId: getUser
      responses:
        200:
          description: ok
          schema:
            $ref: "#/definitions/User"
definitions:
  $ref:
    - ../ts/user.ts
````

And create `src/ts/user.ts`
````ts
import {Int} from 'apikana/default-types';

export interface User {
    id: Int
    firstName: string // The given name
    lastName: string // the family name @pattern [A-Z][a-z]*
    age?: Int
}
````

### Create the API documentation

Running `mvn install` on an API project does the following things:

- create `myapi.jar` containing the typescript models, the generated json schemas and the generated java pojos.
- create `myapi-api.jar`, an executable jar file which opens a browser showing the HTML documentation of the API.
- start a small HTTP server publishing the HTML documentation of the API at `http://localhost:8333`.

### Plugin documentation

There is a complete [documentation](https://nidi3.github.io/apikana-java/site/plugin-info.html) of the maven plugin.

### Development
The development is done in the `develop` branch.
Releasing is done by defining the release and new development version in `release.sh` and by rebasing the develop branch onto the master branch.
[Travis CI](https://travis-ci.org) will then pick this up and perform the release.

branch_name: refs/heads/develop

gha_language: Java


text:
---
id: put
title: Put Method
sidebar_label: PUT
---

Use **PUT** APIs primarily to update existing resource (if the resource does not exist, then API may decide to create a new resource or not). If a new resource has been created by the PUT API, the origin server MUST inform the user agent via the HTTP response code 201 (Created) response and if an existing resource is modified, either the 200 (OK) or 204 (No Content) response codes SHOULD be sent to indicate successful completion of the request.

> * **/employees/{employee-id}**
> * **/departments/{department-id}**

### Request Body

* Updating a single resource [**/employees/1**]

```yaml
  {
    "id":"1",
    "name": "John Doe",
    "email"<EMAIL_ADDRESS>    "address": "123 Mockingbird Lane",
    "city": "New York",
    "state": "NY",
    "zip": "10001"
  }
 ```

* Creating collection resource [**/employees**]

```yaml
  [
    {
      "id":"1",
      "name": "John Doe",
      "email"<EMAIL_ADDRESS>      "address": "123 Mockingbird Lane",
      "city": "New York",
      "state": "NY",
      "zip": "10001"
    },
    {
      "id":"2",
      "name": "William",
      "email"<EMAIL_ADDRESS>      "address": "123 Mockingbird Lane",
      "city": "New York",
      "state": "NY",
      "zip": "10001"
    }
  ]
```

### Response Body

* Updating a single resource [**/employees**]

```yaml
  {
    "id":"1",
    "name": "John Doe",
    "email"<EMAIL_ADDRESS>    "address": "123 Mockingbird Lane",
    "city": "New York",
    "state": "NY",
    "zip": "10001"
  }
 ```

* Updating collection resource [**/employees**]

```yaml
  [
    {
      "id":"1",
      "name": "John Doe",
      "email"<EMAIL_ADDRESS>      "address": "123 Mockingbird Lane",
      "city": "New York",
      "state": "NY",
      "zip": "10001"
    },
    {
      "id":"2",
      "name": "William",
      "email"<EMAIL_ADDRESS>      "address": "123 Mockingbird Lane",
      "city": "New York",
      "state": "NY",
      "zip": "10001"
    }
  ]
```

### Error Response Body

```yaml
  {
    "error": "Invalid payoad.",
    "detail": {
      "name": "This field is required."
    }
  }

```

|  Response code            |  Result/Reason |
|---------------------------|------------------------------|
|200 OK                     | Sucessfully updated the Enity. <br/> Must include a response body. |
|204 (No Content)           | When the REST API declines to send back any status message or representation in the response message’s body. Must not contains the response body|
|401 (Unauthorized)         | Invalid Credentials/ Invalid Authentication |
|403 (Forbidden)            | Invalid Authorization/ Insufficient rights/ Incorrect Role |
|400 (Bad Request)          | Bad request object | validation error |
|404 (Not found)            |  If ID not found or invalid|
|405 (Method Not allowed)   | If API supports methods other than PUT request |
|500 (Internal server error)| Server encountered an unexpected condition that prevented it from fulfilling the request.|