text:
# Type_expr : C++11 Meta-programming library.
**This repo is still very early in the development.**

![C/C++ CI](https://github.com/Remi123/type_expr/workflows/C/C++%20CI/badge.svg?branch=master)

To test this library, you can simply write in Compiler Explorer
```
#include <https://raw.githubusercontent.com/Remi123/type_expr/master/include/type_expr.hpp>
```
and it should be fine under a C++11 compiler

This library can be considered a fork of kvasir::mpl, but the core of the parsing is completly different.
>The major difference is "range-like" meta-expression requiring much fewer nesting than most other libraries.

# Additional features
1. type_array.hpp : te::array<T,std::size_t ...> is a C++14 multidimensional array structure.
2. type_tup.hpp : te::tup is a C++11 tuple, with fast compilation.

 The only advantage my library have is an nicer syntax, an easier continuation implementation of meta-function, automatic unpacking of the type te::ts_<Ts...> and the wild-card meta-expression write_<Es...>.

 If you want a taste of my features in terms of kvasir.mpl

You can write this in compiler explorer after importing kvasir.mpl:
```C++
namespace kv = kvasir::mpl;

template<typename T,typename C>
struct closure_monad { using type = typename C::template f<T>;};

 template<typename ... Cs> // All meta-closure
using callpipe = kv::call<kv::fold_left<kv::cfl<closure_monad>>
                                ,kv::nothing,Cs...>; // Start with kv::nothing as the first input, then do all the closure

static_assert(
    std::is_same<
        callpipe<kv::always<int>,kv::add_pointer<>, kv::add_const<>, kv::add_pointer<kv::add_pointer<>> , kv::add_const<>>
        , int*const**const
    >::value,"");
//        One of the meta-closure is nested which meant that all previous axioms of kvasir::mpl are respected,
//        but nested meta-closure will remains slightly faster ( C1<C2<>> is faster than C1<>,C2<>)

// The problem is when you want to play with list, I hope that you like writing kv::unpack
static_assert(
      std::is_same<
          callpipe<   kv::always<kv::list<int,float>>
                    , kv::unpack<kv::transform<kv::add_pointer<>>>
                    , kv::unpack<kv::transform<kv::add_const<>>>>
          ,kvasir::mpl::list<int*const, float*const>
      >::value,"");
//        unpacking everytime is tedious, and none of the meta-closure of kvasir is made to support this interface
//        To solve this issue, you can append this specialization to the closure_monad structure reviously defined

template<typename T,typename C>
struct closure_monad { using type = typename C::template f<T>;};
template<typename ... Ts,typename C>
struct closure_monad<kv::list<Ts...>,C> { using type = typename C::template f<Ts...>;}; // basically an unbind
/* ... callpipe definition ... */
static_assert(
     std::is_same<
          callpipe<   kv::always<kv::list<int,float>>
                    , kv::transform<kv::add_pointer<>>      // No unpacking
                    , kv::transform<kv::add_const<>>>       // No unpacking
          ,kvasir::mpl::list<int*const, float*const>
      >::value,"");

// This convenience has unfortunately the property of completely changing the axioms of kvasir, which is why I decided
// to create this library, so that I can write code that support this kind of interface without worrying about
// kvasir::mpl interface and implementation.
```

## Code in Actions :
```C++
namespace te = type_expr;

template<int N> // alias because std::integral_constant<int,N> is long to write
using int_c = std::integral_constant<int,N>;

using result = te::eval_pipe_<      // Evaluate the following expression
          te::input_<int_c<1>>      // Start with integral_constant<int,1> as input
          ,te::plus_<int_c<1>>      // Add integral_constant<int,1> which result in integral_constant<int,2>
          ,te::plus_<int_c<2>>      // You can continue adding meta-expression
        >;                          // result is type std::integral_constant<int,4>
static_assert(result::value == 4,"");

// ------------------------------------------------------------------------------------
// But compile time arithmetic was solved with constexpr, let's do something more fancy.
// This example was inspired by Arthur O'Dwyer' s example at
// https://quuxplusone.github.io/blog/2019/12/28/metaprogramming-n-ways/

template<typename ... Ts> struct Typelist;
struct Z{}; // Empty class

// Let's "declare" a meta-function expression
using Metafunction_example = te::pipe_<       // pipe_ doesn't evaluate yet
    te::remove_if_<te::lift_<std::is_empty>>, // Remove every empty type (Z is empty)
    te::sort_<                                // Expect an meta-expression binary predicate
      te::transform_<te::size>,               // transform both types in an integral_constant of their sizeof(T)
      te::greater_<>                          // "return" an integral_constant<bool,(first > second)>
      >,                                      // End of sort_<...BinaryPredicate>, all types are now sorted
    te::quote_<Typelist>                      // Wrap the results in the Typelist class
    >;                                        // End of the meta-function

using starting_input          = te::input_<Z,int[3],Z, int[1],Z,int[2], int[4]>;
using expected_resulting_type = Typelist<int[4],int[3],int[2],int[1]>;

static_assert(std::is_same<
    te::eval_pipe_<starting_input, Metafunction_example> // Now evaluate the function with the starting inputs
    ,expected_resulting_type                             // Should give the expected result
    >::value, "Proof");

// This is cool but other meta-programming libraries can do similar things,
// let's do something simple that they can't without some chores.

template<int ... Ints>
using summationThenX2_constant =              // We want to add all ints and multiply the result by two
te::eval_pipe_< te::input_<int_c<0>>      // Start at int_c<0>
                , plus_<int_c<Ints>>...   // Expend the meta-fcts plus_ with ...
                , te::multiply_<int_c<2>> // Multiply by two
              >;
static_assert(summationThenX2_constant<1,2,3>::value == 12,"Proof of work");
// We are allowed to use fold-meta-expression at compile time in a C++11 compiler.
// 6 years before C++17 in run-time function.
// The subtile difference is that we are expanding the meta-expression
// te::plus_<int_c<1>>, te::plus_<int_c<2>>, ...
// The low level of nesting required in the type_expr library allow us to do new things
```
**_And if you think that the syntax is similar to the range algorithm but with commas instead of `|`, it's by design_**
___

If you want to ... | Then ...
--- | ---
See the code in action |  The test/ folder is where to go
Look at the doc | Unfortunately the doc is not complete since I think of adding some more breaking changes in the near future. You can check the wiki. My meta-expression names are trying to be very similar to kvasir::mpl's ones.

___

## How to Debug and Develop in Meta-Programming :
My favorite method to debug is to write a class with no conversion operator like this : `struct B{};` and then create an instance of the result type that we then tried to convert to B. This will not compile, but the compiler will happily give you an semi-explicative error message.
 ``
 The rest is just me iteratively adding meta-expression until it work.
 ```C++
  te::eval_pipe_<te::input_<int>, te::push_back_<float>, is_<int,float>> varname_not_important = B{};
  // conversion from 'B' to non-scalar type                    // We don't care about this
  // te::eval_pipe_<te::input_<int>, te::push_back_<float> >   // Type of the function
  // {aka 'te::ts_<int, float>'} requested                  // Type of the result
```
___

## The Goal of this Library :
1. Implement a pure type-based meta-programming library
> I believe the base is solid enough to be reviewed by peers. I need to see what  Boost.Mp11, metal, kvasir.Mpl, Boost.Hana and other are doing that I'm not yet able.
2. I'll see how I'll be able to provide a complementary library to reproduce some of the stuff in Boost.Fusion.
> Not started yet.
3. Any other funny idea that come along the way.
> There might be surprise... ;)
___

## Why Another Meta-Programming Library :
 I think I've finally found a way to provide the interface I wanted to play with types. All the other similar library use a lot of nesting to parse the meta-functions with the form of `G(F())`which call G() with the output of F(). Type_expr allows you to do the same with a syntax similar to  `F() | G(g_args) | H() | I()...`
Obviously, since this is template meta-programming the real form is `eval_pipe_<input_<Ts...>, F, G<g_args>, H, I>;` but let's agree that this is better than nested meta-functions monster.

This nicer syntax allows for easier concatenation of meta-expressions to be more readable. You can also alias another meta-expression under te::pipe_<Fs...> to use it later.

Or even crazier, you can use meta-expression to create another meta-expression! Look at the function write_<Es...> for more info.

___

  State of the library (click to expand)

  Early feedback was very positive. The syntax is very nice.
  The implementation doesn't have the most state of the art optimization, but we are in the design and prototype phase.
  The tests write themselves but they are in the wrong folder.
  The CMakelist.txt is not good at all.
  The wiki is well started but I'm trying to give the correct definition and it's harder than initially thought.

  Incoming breaking changes (click to expand)
  Most of the unary and binary meta-expression will now transition from having an meta-expression type to a variadic pack of meta-expression. The idea is to ease the parsing of multiples `f < te::input_< Ts... >, input_< Us... >` and requiring a lot less `te::pipe_< unpack, Fs... >` . This is a breaking change and most meta-expression weren't exhaustively tested. Some functions that required two informations like `te::replace_if_< P, F >` were left as such since I don't know if I should expand the F... or the P...`
As of writing this, only fold_left_ is left to adapt.

___

## Some Comparison :
Author | Link
--- | ---:
Eric Niebler | http://ericniebler.com/2014/11/13/tiny-metaprogramming-library/
Remi | https://github.com/Remi123/type_expr/blob/master/include/type_tup.hpp#L69

___

Everything is work in progress. To be continued


text:
---
title: Manage Hero Graphics, Carousels, Splits, and Video
date: 2020-09-11T17:44:03.000Z
excerpt: Manage Hero content such as full screen graphics, carousels, splits, video, and buttons
author: shane-robinson
draft:
seo:
  title:
  description:
  image: home/6.jpg
images: # relative to /src/assets/images/
  feature:
  thumb: home/6.jpg
  align: # object-center (default) - other options at https://tailwindcss.com/docs/object-position
  height: # optional. Default = h-48 md:h-1/3
hero: graphic # options: carousel, graphic, video, split (text & image)
heroSettings:
  height:
    mobile: h-1/2 # options = h-1/1 (default = full screen), h-1/2, h-1/3, h-3/4, h-9/10, h-48 (12rem, 192px), h-56 (14rem, 224px), h-64 (16rem, 256px)
    desktop: # leave blank to inherit "mobile" height (default = full screen)
  headingText: Is your data lost in the forest, or the trees?
  headingTextColor: # text-gray-800 # default = text-white (can use any TailwindCSS text-[color]-[xxx])
  subheadingText: This is some pithy text that explains why you should hire us without reading any further. Or is it farther?
  subheadingTextColor: # Leave empty to inherit headingTextColor or default (text-white) or use any text-[color]-[xxx]
  buttonText: Contact Us... # no button generated if left blank
  buttonURL: /contact/ # full url required. Example: https://thisdomain.com/somepage/
  buttonTextColor: # leave blank to inherit from /src/_data/colors.buttonCustom or buttonDefault
  buttonBgColor: # leave blank to inherit from /src/_data/colors.buttonCustom.bg or buttonDefault.bg
  bg:
    image: home/copter.jpg # image URL
    imagePosition: left # options = left, center, right
    opacityMobile: opacity-50 # options opacity-n, 5, 10, 15, 20, 25, 50, 75, 100 (default)
    opacityDesktop: opacity-75 # Leave blank to inherit opacityMobile, use same options as opacityMobile
  carousel:
    images:
      - /assets/images/home/6.jpg
      - /assets/images/home/7.jpg
      - /assets/images/home/8.jpg
      - /assets/images/home/9.jpg
  video:
    url: /assets/video/forestfire.mp4 # local relative to site root, or full https://... if remote?
    opacityMobile: opacity-50 # options 25, 50, 75, 100 (default)
    opacityDesktop: # options md:opacity-25, md:opacity-50, md:opacity-75, md:opacity-100 (default)
tags:
  - hero
  - video
  - carousel
  - slider
  - customization
  - frontmatter
---

This system ships with default support for full width Hero content of almost any height. This page is a live example of a `{{ hero }}` hero set to `{{ heroSettings.height.mobile }}` height.

- Full screen images/graphics
- Full screen carousels/sliders
- Full screen background videos
- And full screen splits _(text one side, image the other)_

An Editor can easily manage all this via Frontmatter. There are two parts to managing Hero frontmatter:

1. hero:
2. heroSettings:

> :bulb: **NOTE:** You don't need ANY of the `hero:` or `heroSettings:` frontmatter elements if you're not using a Hero. Check any of the other .md Post files and you'll see no Hero frontmatter there.

## 1. Frontmatter -> hero:

In the `hero:` frontmatter key you choose from **carousel, graphic, split, video**.

Based on these setting, the appropriate `/src/_includes/components/*` will be engaged. If `hero;` if left blank, no components will be loaded.

Also, if a `hero: carousel` is selected, the `/src/_includes/layouts/base.njk` file will load the [required CSS and JS for the Flickity carousel](https://flickity.metafizzy.co/).

{% wrap "text-gray-700 text-sm bg-red-100 p-2 border border-red-300 rounded-lg my-4" %}

:fire: **IMPORTANT:** Always test your Hero across desktop and mobile devices to make sure the hero height is sufficient to carry any text and button content. I'm using this page's setting as an example of a `{{ heroSettings.height.mobile }}` height `{{ hero }}` hero that looks great on desktop but has too much text/button for `{{ heroSettings.height.mobile }}` height on mobile. So in this case you may want to adjust the height to be **h-1/1** on mobile and `{{ heroSettings.height.mobile }}` on **sm:** or **md:** screens.

{% endwrap %}

## 2. Frontmatter -> heroSettings:

Here's where it gets complicated for Editors. There are a series of required frontmatter `heroSettings`. Some are shared across the different heros. Some are specific to one hero type or another.

I've commented the `heroSettings` keys in this and the `/src/index.md` files and hopefully those comments are enough to get you on your way. Here's the current relevant frontmatter for this page:

```yaml
hero: graphic # options: carousel, graphic, video, split (text & image)
heroSettings:
  height:
    mobile: h-1/2 # options = h-1/1 (default = full screen), h-1/2, h-1/3, h-3/4, h-9/10, h-48 (12rem, 192px), h-56 (14rem, 224px), h-64 (16rem, 256px)
    desktop: # leave blank to inherit "mobile" height (default = full screen)
  headingText: Is your data lost in the forest, or the trees?
  headingTextColor: # text-gray-800 # default = text-white (can use any TailwindCSS text-[color]-[xxx])
  subheadingText: This is some pithy text that explains why you should hire us without reading any further. Or is it farther?
  subheadingTextColor: # Leave empty to inherit headingTextColor or default (text-white) or use any text-[color]-[xxx]
  buttonText: Contact Us... # no button generated if left blank
  buttonURL: /contact/ # full url required. Example: https://thisdomain.com/somepage/
  buttonTextColor: # leave blank to inherit from /src/_data/colors.buttonCustom or buttonDefault
  buttonBgColor: # leave blank to inherit from /src/_data/colors.buttonCustom.bg or buttonDefault.bg
  bg:
    image: home/copter.jpg # image URL
    imagePosition: left # options = left, center, right
    opacityMobile: opacity-50 # options opacity-n, 5, 10, 15, 20, 25, 50, 75, 100 (default)
    opacityDesktop: opacity-75 # Leave blank to inherit opacityMobile, use same options as opacityMobile
  carousel:
    images:
      - /assets/images/home/6.jpg
      - /assets/images/home/7.jpg
      - /assets/images/home/8.jpg
      - /assets/images/home/9.jpg
  video:
    url: /assets/video/forestfire.mp4 # local relative to site root, or full https://... if remote?
    opacityMobile: opacity-50 # options 25, 50, 75, 100 (default)
    opacityDesktop: # options md:opacity-25, md:opacity-50, md:opacity-75, md:opacity-100 (default)
```

{% wrap "text-gray-700 text-sm bg-red-100 p-2 border border-red-300 rounded-lg my-4" %}

:fire: **IMPORTANT:** When writing or modifying YAML Frontmatter it's **VERY IMPORTANT** to make sure you have the indents correct. I have [VSCode](https://code.visualstudio.com/) configured to use 2 spaces for tab. 4 spaces can mess up markdown parsing so it's very important _(if you're just getting started with programming and markdown)_ to configure your code editor correctly and watch those spaces/tabs in your YAML Frontmatter.

{% endwrap %}

license: MIT

branch_name: refs/heads/main

extension: md

license_type: permissive


text:
---
title: 6.3.17-week 19-
layout: post
author: george.dawson
permalink: /6.3.17-week-19-/
source-id: 1g193ipOw_jkrDTQVDhSR2PuHM_TLi5Ol85XmXOrGqNY
published: true
---
**-More Codecademy-****			**

**Target****~To reach 30%~**

**LESSON REVIEW**

**How did I learn? What strategies were effective**

**_This lesson was all about getting through the next few stages of Codecademy. I'm getting better at knowing how the format of the exercises work. I"m getting used to it, into it and understanding how to do them. _**

**What limited my learning? Which habits do i need to work on?**

*My learning was limited by my natural speed and figuring some things out. I did work by myself more and I also helped others which took some of my time. *

**What will I change next time? How will I improve my learning?**

*Next time I will just keep going and try to go quicker. Helping others helped my learning, because if I can explain it to someone else, I know I have learnt it.*

branch_name: refs/heads/master


text:
# SEO-friendly Data-Schema with Options Pages

This plugin adds Books, Events, and FAQ Options pages to a Wordpress Site. The data structures were designed with Google Structured Data and Schema.org schema in mind: [Book](https://developers.google.com/search/docs/data-types/book), [Event](https://developers.google.com/search/docs/data-types/event), and [FAQ](https://developers.google.com/search/docs/data-types/faqpage). The plugin allows Editors and Administrators to enter Rich Context from the Admin UI and allows Developers to iterate over each set of data within themes, plugins, and pages, to create SEO-rich content.

Currently, this plugin does not create Custom Post Types though that feature is under consideration. If these types are exported to a SSG, then a decision on which content is canonical must be made.

## Required Plugins

 - ACF https://www.advancedcustomfields.com/
 - ACF Pro https://www.advancedcustomfields.com/pro/

### Recommended Optional Plugins

The following plugins will expose your entire site to GraphQL, which can be viewed form the WP Admin or exported via SSG plugins such as `gatsby-source-graphql`. This gives you an easy, visual representation of existing data for continued development.

 - WP GraphiQL https://wpgraphql.com/
 - WP GraphQL https://github.com/wp-graphql/wp-graphql
 - WPGraphQL for Advanced Custom Fields https://wpgraphql.com/acf

## Usage

For Developers, after installing the required plugins, then activating this plugin, three options pages will be added near the top of the Admin Menu: **Books**, **Events**, and **FAQs**

These pages enable you to use [ACF functions](https://www.advancedcustomfields.com/resources/) like `have_rows`, `get_field`, and `get_sub_field` to access the data.

For **Books**, as an example, you might iterate over the books list as follows:

```php
if ( have_rows( 'book', 'books' ) ):
  while ( have_rows( 'book', 'books' ) ): the_row();
    $book_title = get_sub_field( 'book_title' ) ?: "":
    $authors = [];
    if ( have_rows( 'authors' ) ):
      while ( have_rows( 'authors') ): the_row();
        if ( have_rows( 'author' ) ):
          while( have_rows( 'author' ) ): the_row();
            $name = get_sub_field( 'name' ) ?: "";
            $url = get_sub_field( 'url' ) ?: "";
            $email = get_sub_field( 'email' ) ?: "";
            $bio = get_sub_field( 'short_bio' ) ?: "";
            $img = get_sub_field( 'profile_image' ) ?: [];
            $authors[] = array(
              "name" => $name,
              "url" => $url,
              "email" => $email,
              "bio" => $bio,
              "img" => $img
            );
          endwhile;
        endif;
      endwhile;
    endif;
    // ... keep accessing fields then do something with data
  endwhile;
endif;
```

## TO DO:

- Add Settings to allow choice between options pages or custom post types.
- Complete the development of Custom Post Type Templates
- Add Support For More Structured Data types referenced by Google: https://developers.google.com/search/reference/overview
- Fill out the complete examples within this README

## Contributing

Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/wesleylhandy/books-events-faq-options/tags).

## Authors

* **Wesley L. Handy** - *Initial work*

See also the list of [contributors](https://github.com/wesleylhandy/books-events-faq-options/contributors) who participated in this project.

## License

Copyright 2020 Wesley L. Handy

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

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

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


text:
# Foundry Deobfuscator

More info: http://catnip.fyi/posts/foundry-p1/

Foundryvtt (https://foundryvtt) < 0.8.0 deobfuscator. other javascript-obfuscator (https://www.npmjs.com/package/javascript-obfuscator) projects prolly work as well.

## Usage
> npm start \<path to foundry dist directory\>

dist directory is usually `resources/app/dist` from the foundry base directory.

## Deobfuscating Other Stuff
Foundryvtt is using the npm package [javascript-obfuscator](https://www.npmjs.com/package/javascript-obfuscator)
so this deobfuscator should be able to deobfuscate other projects with a simmilar configuration.
You can also feel free to use this project as a template for you own deobfuscator.
Take a look at [devisit.ts](https://github.com/sum-catnip/foundry-deobfuscator/blob/main/src/devisit.ts),
thats where you overwrite the javascript syntax nodes.

repository: sum-catnip/foundry-deobfuscator

repo_name: sum-catnip/foundry-deobfuscator


text:
# Vaccine Cold Chain Monitoring

This project presents an approach to develop a vaccine cold chain monitoring with anomaly detection.

The content of this repository is presented [in a BOOK view](https://ibm-cloud-architecture.github.io/vaccine-solution-main/), and the goal is to run all those components together on multi cloud environments.

## The solution repositories

Two main use cases are supported by this solution: cold chain monitoring, and optimized order management.

1. Optimized order management:

  * [Order manager microservice](https://github.com/ibm-cloud-architecture/vaccine-order-mgr-pg): Exposes API to manage vaccine order. Based on Quarkus, Hibernate Panache ORM, Postgresql, Debezium outbox, reactive messaging.
  * [Order Optimizer service](https://github.com/ibm-cloud-architecture/vaccine-order-optimizer) to support event driven service to compute the best shipment plan for shipping vaccine lots to different countries.

2. Cold Chain monitoring

   * [Reefer IoT simulator](https://github.com/ibm-cloud-architecture/vaccine-reefer-simulator): A python service to simulate sending sensor telemetries to Kafka, with exposed API to control the simulation and the demonstration for anomaly detection and cold chain temperature monitoring.
   * [Monitoring Agent](https://github.com/ibm-cloud-architecture/vaccine-monitoring-agent): Kafka streams app, in Quarkus to assess the temperature telemetries for cold chain violation. Call anomaly detection service.

## Building this booklet locally

The content of this repository is written with markdown files, built with Gatsby. For more information, see the [README for the docs](https://github.com/ibm-cloud-architecture/refarch-kc/blob/master/docs/README.md).

* Install NodeJS ([https://nodejs.org/](https://nodejs.org/))
* Under the `docs` folder, the first time do a `npm install`
* To run the doc locally do: `npm run dev`
* Go to http://<IP_ADDRESS>:8000/ in your browser.

To publish the content to github:

* Ensure that all your local changes to the master branch have been committed and pushed to the remote repository: `git push origin master`
* To pushing the book to GitHub Pages: `npm run deploy`
* This repository is monitored by GitAction to perform a build and deploy when code is pushed or a Pull Request accepted.

## To update doc content

The navigation is in the `docs/src/data` folder file `nav-items.yaml`.

The content is in the `docs/src/pages` folder. Then the folders content the following:

* `index.md` is the first main page
* design folder includes the articles related to the design of the solution
* solution folder includes simple description of each service of the solution
* mcm is for content around multi-cloud management
* DevOps is to include articles on CI and CD.
* analyze is for the Watson ML work.
* The diagrams are in a ppt file named: `docs/VaccinTransportation-Usecases.pptx`. Use snap-it to build a png file from one of the diagram. Png files are going to images folder in the corresponding subject area.

repository: jbcodeforce/vaccine-solution-main

repo_name: jbcodeforce/vaccine-solution-main


text:
# Phellinus pini (Brot.) Bondartsev & Singer, 1941 SPECIES

#### Status
SYNONYM

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

#### Published in
Atlas des Champignons de l'Europe 3(1): 517 (1941)

#### Original name
Boletus pini Brot., 1804

### Remarks
null

repository: mdoering/backbone

path: /life/Fungi/Basidiomycota/Agaricomycetes/Hymenochaetales/Hymenochaetaceae/Phellinus/Porodaedalea pini/ Syn. Phellinus pini/README.md

repo_name: mdoering/backbone


text:
Node Static API Proxy Server (nsaproxy)
=======================================

Node Static/API Proxy server is a basic Node.js-based server for serving
local files and proxying calls to APIs running on third-party servers. It is
intended for use for quickly making client-side JavaScript applications
which depend on access to APIs hosted on third-party domains, especially
those APIs which don't provide JSONP or any other method to get around
cross-domain restrictions.

This is not a node module, but rather a single file one calls from the
command line, after modifying it to mirror the required APIs. One then
puts one's client-side HTML, JavaScript, CSS and other content in the
static/ subdirectory, and accesses it by going to localhost:8888 (or another
port, if configured).

nsaproxy was written by Andrew Bulhak during the Guardian's January 2014 Hack Day.
It is still a work in progress, and could do with a lot of improvement.


text:
# The Julia Programming Language

Julia source code files use the file extension ".jl".

To run a Julia program, use a command like this:
```bash
./hello-world.jl
```

# Resources
- https://en.wikibooks.org/wiki/Introducing_Julia

license: ISC

repository: smenjas/programming-languages-compared

repo_name: smenjas/programming-languages-compared


text:
---
layout: post
title: 'Dynamic Orth Map'
date: 2021-02-14
author: Boy
color: rgb(255,205,0)
tags: update
subtitle: 'Orth in all it`s glory!'
---

Welcome to the Mine in Abyss Dynamic Orth Map!

We have recently put a plugin on our server that renders and maps all of Orth.
This means that you can zoom in on any part of Orth for a closer look [here](https://mineinabyss.com/map).

Furthermore, we plan to use this for our upcoming **adventure server** which we will try to have updates on as well as time passes.
When Orth gets more populated with markets, People of Interest and so on, these will also be shown on here.

Essentially a newcomers *Guide to Orth*.
It will also update as our builders add to it on the Build Server.

gha_language: JavaScript

gha_license_id: MIT


text:
# testdata

JSON examples copied from [OpenRTB](https://iabtechlab.com/standards/openrtb/) [3.0](https://github.com/InteractiveAdvertisingBureau/openrtb) spec - section "Examples".

Some empty/zero attributes were omited (not copied) because of [encoding/json](https://golang.org/pkg/encoding/json/) `omitempty` and [gomega.MatchJSON(...)](http://onsi.github.io/gomega/#matchjsonjson-interface).

license: Unlicense

repository: mxmCherry/openrtb

gha_language: Go

gha_license_id: Unlicense

repo_name: mxmCherry/openrtb


text:
---
title: Balance is not updating
categories: [problems]
---

When this happens is usually because the wallet is not updating automatically for some reason.

The wallet provides a way to manually refresh. Go inside the wallet you want to update and do a "pull-to-refresh", drag the view down to activate the refresh mechanism.

repository: BlueWallet/Website

gha_language: HTML

repo_name: BlueWallet/Website


text:
TrailingFormatPlug
==================
[![Build Status](https://travis-ci.org/mschae/trailing_format_plug.svg?branch=master)](https://travis-ci.org/mschae/trailing_format_plug)

## Usage

Add the `trailing_format_plug` dependency to your `mix.exs` as follows:

```elixir
def deps do
  #  ...
  {:trailing_format_plug, "~> 0.0.5"}
  # ...
end
```

If you are using phoenix:

Add the plug to your endpoint.ex file:

```elixir
defmodule MyProject.Endpoint do
  # ...
  plug TrailingFormatPlug   # add this
  plug Plug.RequestId
  plug Plug.Logger
  # ...
end
```

## License

Copyright 2014 Michael Schaefermeyer

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.

gha_language: Elixir


text:
# hd2103coreCWB

The respoitory hosts
- resources for python to cwb interface,
- implementation of operations with vert files for queries, etc.
- workflow for working with higher-level annotation leyers (syntactic, semantic, discourse, etc.)

Author: Bogdan Babych https://bogdanbabych.github.io/

Note 2021-03-04
Currently under development

Scripst for Operations:
- dump a cwb corpus onto a text file, etc.


text:
# Self-hosting Redwood (Serverful)

Do you prefer hosting Redwood on your own server, the traditional serverful way, instead of all this serverless magic? Well, you can! In this recipe we configure a Redwood app with PM2 and Nginx on a Linux server.

> A code example can be found at https://github.com/njjkgeerts/redwood-pm2, and can be viewed live at http://redwood-pm2.nickgeerts.com.

## Requirements

You should have some basic knowledge of the following tools:

- [PM2](https://pm2.keymetrics.io/docs/usage/pm2-doc-single-page/)
- [Nginx](https://nginx.org/en/docs/)
- Linux
- [Postgres](https://www.postgresql.org/docs/)

## Configuration

To self-host, you'll have to do a bit of configuration both to your Redwood app and your Linux server.

### Adding Dependencies

First add PM2 as a dev dependency to your project root:

```termninal
yarn add -DW pm2
```

Then create a PM2 ecosystem configuration file. For clarity, it's recommended to rename `ecosystem.config.js` to something like `pm2.config.js`:

```bash
yarn pm2 init
mv ecosystem.config.js pm2.config.js
```

Last but not least, change the API endpoint in `redwood.toml`:

```diff
- apiUrl = "/.redwood/functions"
+ apiUrl = "/api"
```

Optionally, add some scripts to your top-level `package.json`:

```json
"scripts": {
  "deploy:setup": "pm2 deploy pm2.config.js production setup",
  "deploy": "pm2 deploy pm2.config.js production deploy"
}
```

We'll refer to these later, so even if you don't add them to your project, keep them in mind.

### Linux server

Your Linux server should have a user for deployment, configured with an SSH key providing access to your production environment. In this example, the user is named `deploy`.

### Nginx

Typically, you keep your Nginx configuration file at `/etc/nginx/sites-available/redwood-pm2` and symlink it to `/etc/nginx/sites-enabled/redwood-pm2`. It should look something like this:

```nginx {10}
server {
  server_name redwood-pm2.example.com;
  listen 80;

  location / {
    root /home/deploy/redwood-pm2/current/web/dist;
    try_files $uri /index.html;
  }

  location /api/ {
    proxy_pass http://localhost:8911/;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
  }
}
```

Please note that the trailing slash in `proxy_pass` is essential to correctly map the API functions.

### PM2

Let's configure PM2 with the `pm2.config.js` file we made earlier. The most important variables are at the top. Note that the port is only used locally on the server and should match the port in the Nginx config:

```javascript
const name = 'redwood-pm2' // Name to use in PM2
const repo = 'git@github.com:njjkgeerts/redwood-pm2.git' // Link to your repo
const user = 'deploy' // Server user
const path = `/home/${user}/${name}` // Path on the server to deploy to
const host = 'example.com' // Server hostname
const port = 8911 // Port to use locally on the server
const build = `yarn install && yarn rw build && yarn rw prisma migrate deploy`

module.exports = {
  apps: [
    {
      name,
      node_args: '-r dotenv/config',
      cwd: `${path}/current/`,
      script: 'yarn rw serve api',
      args: `--port ${port}`,
      env: {
        NODE_ENV: 'development',
      },
      env_production: {
        NODE_ENV: 'production',
      },
    },
  ],

  deploy: {
    production: {
      user,
      host,
      ref: 'origin/master',
      repo,
      path,
      ssh_options: 'ForwardAgent=yes',
      'post-deploy': `${build} && pm2 reload pm2.config.js --env production && pm2 save`,
    },
  },
}
```

If you need to seed your production database during your first deployment, `yarn redwood prisma migrate dev` will do that for you.

> **Caveat:** the API seems to only work in fork mode in PM2, not [cluster mode](https://pm2.keymetrics.io/docs/usage/cluster-mode/).

## Deploying

First, we need to create the PM2 directories:

```bash
yarn install
yarn deploy:setup
```

Your server directories are now set, but we haven't configured the `.env` settings yet. SSH into your server and create an `.env` file in the `current` subdirectory of the deploy directory:

```bash
vim /home/deploy/redwood-pm2/current/.env
```

For example, add a `DATABASE_URL` variable:

```env
DATABASE_URL=postgres://postgres:postgres@localhost:5432/redwood-pm2
```

Now we can deploy the app! Just run the following; it should update the code, take care of database migrations, and restart the app in PM2:

```bash
yarn deploy
```

Enjoy! 😁

repository: redwoodjs/redwood

gha_language: TypeScript

repo_name: redwoodjs/redwood


text:
# O365GraphAPI

## Description
Powershell functions to retrieve information from the O365 Graph API. Currently able to pull all reports listed on https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/resources/report

Has the following functions:

### get-globalconfig
*.Param*: ConfigFile
Imports configuration from json

### Get-Graphoauthtoken
*.Param*: Resource, ClientID, LoginURL, TenantDomain, RedirectURI, Credentials
Constructs header for use with other functions. Did not make this work with an app secret, so you need to pass credentials to it. Easiest is to do this with $cred = get-credential

*.Prerequisites*
Requires the Azure PS module to be installed. Install using "install-module Azure"

### Get-GraphReport
*Inspired by the script Get-Office365Report from Damien Wiese*

*.Param*: ConfigFile, Workload, ReportType, Period, Date
Reads information from the configfile, gets the token, retrieves the report, and converts it to a useable format for further processing

*.Usage*
get-GraphReport -configfile <Path to config JSON> -Workload <Workload to report from> -ReportType <Type of report to get based on workload> -Credential <Credential to retrieve token with> -period <Period to run report against>
get-GraphReport -configfile <Path to config JSON> -Workload <Workload to report from> -ReportType <Type of report to get based on workload> -Credential <Credential to retrieve token with> -date <Specific day to run report against>

## Configuration
Requires a graph API application to be setup in the azure management portal . Set the redirect URI to "urn:ietf:wg:oauth:2.0:oob". Not really using this, but it needs to be set...

Configuration file layout:

```
{
    "Description": "Global configuration file for O365 Investigations",
    "AppID": "<App ID goes here>",
    "TenantDomain": "<your tenant domain (contoso.onmicrosoft.com or contoso.com)>",
    "LoginURL" : "https://login.windows.net",
    "ResourceAPI" : "https://manage.office.com"
	"redirectURI" : "urn:ietf:wg:oauth:2.0:oob"
}
```

## Usage
Install azure PS module:
install-module Azure

Import module:
Import-module <path to O365graphap.psm1> -force

Run report:
get-graphreport -configfile <Path to config JSON> -Workload <Workload to report from> -ReportType <Type of report to get based on workload> -Credential <Credential to retrieve token with> -date <Specific day to run report against>

## Disclaimer
Use this code at your own risk, verify anything you run in production.

### Legalese:
> The sample scripts are provided AS IS without warranty of any kind. I disclaim all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample scripts and documentation remains with you. In no event shall I,or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample scripts or documentation, even if I have been advised of the possibility of such damages.


text:
# Contributing

## How to contribute?

We appreciate and welcome community contributions.

1. You must sign a Contributor License Agreement (CLA) before submitting your pull request. To complete the CLA, submit a request via the form and electronically sign the CLA when you receive the email containing the link to the document. You need to complete the CLA only once to cover all Microsoft Open Technologies OSS projects. To sign a CLA please follow the instructions on [Microsoft CLA](https://cla.microsoft.com/)

1. Before starting work on a new feature, enhancement or fix, please create an issue and optionally assign it to yourself or a developer.
2. Fork the repository and make your changes against the fork just created (and not against master).
3. After making your changes in your fork, run tests and ensure that the code runs well on all suported platforms. Ensure that your branch has no merge conflicts with master.
5. Issue a Pull Request and make sure to fill out the information needed according to the Pull Request Template.
6. The admins will review your code and may optionally request conformance, functional or other changes. Work with them to resolve any issues.
7. Upon acceptance, your code will be merged into the master branch and will become available for all.

## Coding style
This project uses the [coding style](https://github.com/dotnet/corefx/blob/master/Documentation/coding-guidelines/coding-style.md) from the [dotnet/corefx](https://github.com/dotnet/corefx) repo.

The coding style (and C# license header) is enforced by the [CodeFormatter](https://github.com/dotnet/codeformatter) tool when building a Pull Request. If you are [running on Windows](https://github.com/dotnet/codeformatter/issues/106) then you can run the tool locally to short-circuit the feedback loop. If you're on another platform then vote up the [xplat issue](https://github.com/dotnet/codeformatter/issues/106) :-)

repository: windperson/nether

repo_name: windperson/nether


text:
# CLTL/Pepper Documentation

To add documentation:
1. Document code in [NumpyDoc](https://numpydoc.readthedocs.io/en/latest/format.html) format
2. Add additional text in ReStructuredText format
3. Make sure to ```(source) activate``` the pepper environment
2. Make sure to ```pip install sphinx numpydoc sphinx_rtd_theme```
4. Generate API documentation sources: ```make api```
5. Generate HTML pages from API documentation sources: ```make html```

Some Friendly Sphinx/ReStructuredText Reminders:

- Cross-Reference all the things:
    - Classes: ``` :class:`~pepper.framework.abstract.camera.AbstractCamera` ```
    - Packages & Modules: ``` :mod:`~pepper.framework.component` ```
    - Functions ``` :func:`~pepper.config.get_backend` ```
    - Methods ``` :meth:`~pepper.brain.basic_brain.BasicBrain.get_classes` ```

- Add Links to External Resources: ``` `Text to Show <https://www.verynice.url.com>`_ ```

repository: cltl/pepper

branch_name: refs/heads/develop

gha_language: Python

repo_name: cltl/pepper


text:
---
title: "Service Commitment"
description: "Codefresh Cloud Service SLA Definition"
group: terms-and-privacy-policy
toc: true
---

Codefresh will use commercially reasonable efforts to make Codefresh available with a Quarterly Uptime Percentage, during any monthly billing cycle, of at least 99.5% (the “Service Commitment”).

## Definitions

* “Quarterly Uptime Percentage” is calculated as the average of the Availability for all 10-minute intervals in a quarterly billing cycle. Quarterly Uptime Percentage measurements exclude downtime resulting by the limitation specified in the “limitations” section.
* “Availability” is calculated for each 10-minute interval as the percentage of Requests initiated during this interval that do not fail with Errors. If you did not have Builds or API invocations in a given 10-minute interval, that interval is assumed to be 100% available.
* “Request” is an invocation of Codefresh to start the build process based on the customer’s project definition by directly calling the Codefresh API or triggered by a supported event source (e.g. Codefresh Console, Webhooks, etc.).
* An “Error” is any Request that finishes in “fault” terminal state with an HTTP status code of 500 (Internal Failure) or 503 (ServiceUnavailable).

## Limitations

This SLA and any applicable Service Levels do not apply to any performance or availability issues:

1. Due to factors outside our reasonable control (for example, natural disaster, war, acts of terrorism, riots, government action, or a network or device failure external to our data centers, including at your site or between your site and our data center);
1. That result from the use of services, hardware, or software not provided by us, including, but not limited to, issues resulting from inadequate bandwidth or related to third-party software or services;
1. Caused by your use of a Service after we advised you to modify your use of the Service, if you did not modify your use as advised;
1. During or with respect to preview, pre-release, beta or trial versions of a Service, feature or software (as determined by us)
1. That result from your unauthorized action or lack of action when required, or from your employees, agents, contractors, or vendors, or anyone gaining access to our network by means of your passwords or equipment, or otherwise resulting from your failure to follow appropriate security practices;
1. That result from your failure to adhere to any required configurations, use supported platforms, follow any policies for acceptable use, or your use of the Service in a manner inconsistent with the features and functionality of the Service (for example, attempts to perform operations that are not supported) or inconsistent with our published guidance;
1. That result from faulty input, instructions, or arguments (for example, requests to access files that do not exist);
1. That result from your attempts to perform operations that exceed prescribed quotas or that resulted from our throttling of suspected abusive behavior;
1. For licenses reserved, but not paid for, at the time of the Incident.

## Revision Control

{: .table .table-bordered .table-hover}
| Version Number         | Nature of Change     | Date Approved                          |
| -------------- | ---------------------------- | ---------------------------- |
1.0 | Initial version | January 17, 2021 |


text:
# Internet Speed Logger

Internet speed logger takes an your internet speed and logs the speed into a google sheet.
For best results run with Cron or the Systemd scheduler.

Dependancies:
- [speedtest](https://github.com/sivel/speedtest-cli)

Setup:
1. Follow [Google Sheets' API setup step 1](https://developers.google.com/sheets/api/quickstart/go) and save `credentials.json` to `./resources/sheetID`.
2. From the source diriectory, run `echo "<spreadsheet ID>" > ./resources/credentials.json`.
3. Run `go build speedLog.go jsonUtils.go requests.go && ./speedLog`
4. The first time you run it will print a url on standard out. Enter the url into a browser, login and create the oauth2 token. Copy the token ID and paste it into the terminal running the program.
5. Run `go install` to install the binary.
6. Run program using `internet-speed-logging`

Scheduling
- Copy `./resources/*` to `/etc/speedlog/`
- Copy `speedlog.timer` and `speedlog.service` to `/etc/systemd/system/`
- Change variable `resourcePath` in `requests.go` to `/etc/speedlog/`
- To change frequency of timer change `speedlog.timer` variable `OnCalendar` to desired frequency **See `man systemd.timer` for details**


text:
## alpha 3

### Features

* **Auto XDR** based on **ambient light**
    * XDR will automatically enable when the ambient light is really bright
    * It will also disable when the ambient light is low enough for visibility in normal brightness
    * The feature will only work on the **MacBook Pro 2021** when it is used alone *(without external monitors)*

![auto xdr ambient light setting](https://files.lunar.fyi/auto-xdr-ambient-light.png)

### Improvements

* Automatically set Curve Slope to middle point on target monitors identical to the source
* Print single property on multiple displays when using the `displays` CLI command
* Add **Hide Menubar Icon** setting on the [Configuration page](lunar://configuration)

gha_language: Swift


text:
# LoggingRequestLogFile

## Description

By default the request log events will be written to the console of the container.  By setting the `file` configuration the request log events can instead be written to a local file.

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**file\_name** | **str** | The name of the generated log file.  If the file name is supplied without any path information the file will be written to the `/var/iag/logs` directory.  If the file name contains path information the hosting directory must be created and available before the container is started.  | [optional]
**max\_file\_size** | **float** | The maximum size (in MB) that the file can reach before it is rolled over.  | [optional] [default to 1]
**max\_rollover\_files** | **float** | The maximum number of rollover files to be kept on disk.  When the number of rollover log files reaches the specified threshold, the oldest log file is deleted.  | [optional] [default to 1]
**compress** | **bool** | A boolean which indicates whether rolled over log files should be automatically compressed to conserve disk space.  | [optional] [default to True]

[[Back to README]](../README.md)


text:
# Offender API Service
Deploys an ECS Task definition and service to the shared ECS cluster.
The service listens on TCP/8080 by default and integrates with the Delius Oracle DB and LDAP service endpoints

## IAM
The task runs under 2 IAM roles:

- Execution role = Executes the task, so needs to be able to pull the image, get SSM Parameters for secret env configs
- Task role = This is the role, with any policies, that apply to the running container

The shared ECS cluster is configured with the *ECS_AWSVPC_BLOCK_IMDS=true* config value to prevent tasks from reaching the host level metadata service under the host's own ec2 instance profile.

## Env Configs
Offender API specific environment variables are set out in the offenderapi_conf variable which is a map.
One or more of the KV pairs can be overridden in the env_configs/{ENVIRONMENT}/sub-projects/new-tech.tfvars file as necessary
Where no override is provided, the default value will be used.
This is a spring boot app and any spring config can be specified as environment variables. See https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html for reference.

gha_language: HCL


text:
# iOS Installation

# Prerequisites
* You should installed and linked `react-native-agora`
* Xcode 10.0+

# Step 1. Open Project in Xcode
Open `ios/projectName.xcodeproj` with XCode
![Step 1](./IOS_INSTALLATION/1.1_Open_iOS_ProjectFile.png)
# Step 2. Add Link Binary With Libraries
Build Phases -> Link Binary With Libraries -> +
![Step 2](./IOS_INSTALLATION/1.2_LinkBinaryWithLibraries.png)

    libresolv.tbd
    libc++.tbd
    AVFoundation.framework
    AudioToolbox.framework
    VideoToolbox.framework
    CoreMotion.framework
    CoreMedia.framework
    CoreTelephony.framework

# Step 3. Add Other Link Binary With Libraries From `node_modules`
Build Phases -> Link Binary With Libraries -> + -> Add Other
![Step 3](./IOS_INSTALLATION/1.3_Add_Other_Libraries.png)

    node_modules/react-native-agora/ios/RCTAgora/libs/libcrypto.a
    node_modules/react-native-agora/ios/RCTAgora/libs/AgoraRtcCryptoLoader.framework
    node_modules/react-native-agora/ios/RCTAgora/libs/AgoraRtcEngineKit.framework

# Step 4. Add Framework Search Paths
Build Settings -> Framework Search Paths -> +
![Step 4](./IOS_INSTALLATION/1.4_Add_Framework_Search_Paths.png)
"$(SRCROOT)/../node_modules/react-native-agora/ios/RCTAgora/libs"

# Step 5. Add Library Search Paths
Build Settings -> Library Search Paths -> +
![Step 5](./IOS_INSTALLATION/1.5_Add_Library_Search_Paths.png)

"$(SRCROOT)/../node_modules/react-native-agora/ios/RCTAgora/libs"

# Step 6. Set Build Settings Enable Bitcode No
Build Settings -> Enable Bitcode -> ...
![Step 6](./IOS_INSTALLATION/1.6_Set_Build_Settings_Enable_Bitcode_No.png)

# Step 7. Set Capabilities Background Modes
Capabilities -> Background Modes -> Audio, Airplay, and Picture in Picture
![Step 7](./IOS_INSTALLATION/1.7_Set_Capabilities_Background_Modes.png)

# Step 8.1 Set info.plist
Change info.plist
"Privacy - Camera Usage Description":"use camera to start video call"
"Privacy - Microphone Usage Description":"use microphone to start video call"

![Step 8.1](./IOS_INSTALLATION/1.8.1_Set_info_plist.png)

![Step 8.2](./IOS_INSTALLATION/1.8.2_Set_camera_and_microphone.png)

# Step 9 build
`react-native run-ios`

repository: ahmadfaizalbh/react-native-agora

gha_language: Java

repo_name: ahmadfaizalbh/react-native-agora


text:
## New contributor guide

To get an overview of the project, read the [README](README.md). Here are some resources to help you get started with open source contributions:

- [Finding ways to contribute to open source on GitHub](https://docs.github.com/en/get-started/exploring-projects-on-github/finding-ways-to-contribute-to-open-source-on-github)
- [Set up Git](https://docs.github.com/en/get-started/quickstart/set-up-git)
- [GitHub flow](https://docs.github.com/en/get-started/quickstart/github-flow)
- [Collaborating with pull requests](https://docs.github.com/en/github/collaborating-with-pull-requests)

### Issues

#### Create a new issue

If you spot a problem with the docs, please see the existing issues. If a related issue doesn't exist, you can open a new issue.

### Solve an issue

Scan through our [existing issues](https://github.com/hanifhefaz/dcter/issues) to find one that interests you. If you find an issue to work on, you are welcome to open a PR with a fix.

### PR Guid

Please make a fork of the repo and push your changes to your own branch. Then make a Pull Request.

repository: hanifhefaz/dcter

repo_name: hanifhefaz/dcter


text:
# Docker for Developers - Code in Action Steps

## Chapter 13 - Docker Security Fundamentals and Best Practices
Note: This recording is of a MacBook Pro with iTerm2.

This video goes with Chapter 13 of the Packt Publishing book "Docker for Developers"
You should be reading along with Chapter 13 where you explore security tips
Feel free to pause the video to be able to take your time viewing the commands and output.

### Exploring DOCKER_CONTENT_TRUST
- [ ] Run the export command so DOCKER_CONTENT_TRUST is equal to 1
- [ ] Run the docker pull command
- [ ] Review the output message
- [ ] Run the export command so the DOCKER_CONTENT_TRUST flag is equal to 0

### Create the .dockerignore
- [ ] Create a .dockerignorefile
- [ ] Add the example entries
- [ ] Save and exit the file

### No new privileges
- [ ] Copy the docker run command
- [ ] Execute it

### Mount securtiy
- [ ] Create a new folder called testfiles
- [ ] Run the docker command to mount it with the readonly flag and attempt to add a file to the mount
- [ ] Review the Read-only file system message

### Create file
- [ ] Use ps to find your container
- [ ] Stop the container
- [ ] Remove the container
- [ ] Execute docker run
- [ ] Expose file content

### Drop capabilities
- [ ] Execute the command with the --cap-drop=chown command

### Multistage build
- [ ] Open the Dockerfile
- [ ] Update the file with your values ie. id_rsa key and ssh server
- [ ] Save and exit the file

repository: PacktPublishing/Docker-for-Developers

repo_name: PacktPublishing/Docker-for-Developers


text:
# Keyboard JS
**A wrapper around the odd DOM Event Listeners syntax**

I wrote this simple wrapper that provides some useful funcionality for dealing with keyboard input in the browser with a more familiar and chained syntax using JavaScript. The code is written in ES6 and is also well self-commented. Feel free to make any improvements.

## Basic usage
It's pretty straight forward.
```
import keyboard from 'keyboard.js';

const { on, ctrl } = keyboard;
const save = ctrl('s');

on(save).
down(saveState).
down(saveUserData).
up(notify);

```

## One more thing
More usage examples are available in the Wiki Page. Also, if you found a bug, don't be shy and open an issue. I'll check as soon as possible.

repository: EnzoHB/Keyboard

repo_name: EnzoHB/Keyboard


text:
# TakeTwo

## Description:

TakeTwo is a web application for identifying racially biased media content. It consists of a web api, chrome extension and machine learning model. With the chrome extensiont users help train the machine learning model, by flag and categorizing content as racially biased. Developers can utilize the API to detect racial bias in given media content.

## Technology stack

- Python
- FastAPI
- JavaScript
- CSS
- Chrome Extensions
- Docker
- Swagger
- IBM App ID
- scikit-learn
- OAuth
- CouchDB

TakeTwo has several repositories

- [TakeTwo](https://github.com/Call-for-Code-for-Racial-Justice/TakeTwo) - check out the readme.md file to deploy the project
- [TakeTwo Web API](https://github.com/Call-for-Code-for-Racial-Justice/taketwo-webapi) - check out the readme.md file to deploy the project
- [TakeTwo Marker Chrome Extension](https://github.com/Call-for-Code-for-Racial-Justice/taketwo-marker-chromeextension) - check out the readme.md file to deploy the project
- [TakeTwo Data Science](http://%20https//github.com/Call-for-Code-for-Racial-Justice/taketwo-datascience/) - check out the readme.md file to deploy the project

## Open issues

- Get started on TakeTwo repo issues [here](https://github.com/Call-for-Code-for-Racial-Justice/TakeTwo/issues?q=is%3Aopen+is%3Aissue+label%3Ahacktoberfest)
- Get started on TakeTwo Web API repo issues [here](https://github.com/Call-for-Code-for-Racial-Justice/TakeTwo-WebAPI/issues?q=is%3Aopen+is%3Aissue+label%3Ahacktoberfest)
- Get started on TakeTwo Marker Chrome Extension repo issues [here](https://github.com/Call-for-Code-for-Racial-Justice/TakeTwo-Marker-ChromeExtension/issues?q=is%3Aopen+is%3Aissue+label%3Ahacktoberfest)
- Get started on TakeTwo  Data Science repo issues [here](https://github.com/Call-for-Code-for-Racial-Justice/TakeTwo-DataScience/issues?q=is%3Aopen+is%3Aissue+label%3Ahacktoberfest)

## Slack Channel

Stay in touch in the #racial-justice-taketwo channel. Click [here](../getting_started/README.md?id=join-our-slack-channel) to join our Slack workspace.

## Hear from the team!

Check out this [interview](https://www.youtube.com/watch?v=ipSV-ZNo-fQ&t=108s) by the team to learn more about the project


text:
# GitHub board

> Display multiples GitHub repo on one page

> TODO URL deployed

Powered by

 [React](https://facebook.github.io/react/) with [Reflux](https://github.com/reflux/refluxjs)

 [Auth0](https://auth0.com/)

## How to run your own

### Installation

```
git clone https://github.com/dpellier/github-board
cd github-board
npm install
```

### OAuth configuration

Do not commit the following files in a public repo !

#### Login configuration

In order to allow user to connect with their GitHub account you have to create a SINGLE PAGE APPLICATION auth0 client.

Then create a `.env` file at the root of the project

```
AUTH0_CLIENT_ID=<generated auth0 spa client ID>
AUTH0_DOMAIN=<auth0 client domain>
API_URL=<your local api url>
```

#### Identity Provider configuration

In order to allow the app to discuss with the GitHub API you have to create a NON INTERACTIVE auth0 client.

Then create a `.env` file inside the `server` directory.

```
AUTH0_CLIENT_ID=<generated auth0 non interactive client ID>
AUTH0_SECRET=<generated auth0 non interactive client secret>
```

repository: dpellier/github-board

repo_name: dpellier/github-board


text:
# Contents

- [Login to Postgres Container](#login-to-postgres-container)
- [Make a DB Data Dump](#make-a-db-data-dump-update-the-db)
- [Creating a Database](#creating-a-database)
- [Updating Deno](#updating-deno)

# Login to Postgres Container

```shell script
$ docker exec -it realworld_postgres bash
$ psql -U user
# \c realworld
# select * from users;
```

# Make a DB Data Dump (Update the DB)

The postgres container uses a dump file to seed the database - this file is at
`/.docker/data/`

Make your changes to the database if needed by directly modifying it inside of
the `psql` shell

```
$ cd /path/to/deno-drash-realworld-example
$ docker exec -t realworld_postgres pg_dumpall -c -U user > postgres_dump.sql
$ mv ./postgres_dump.sql ./.docker/data/postgres_dump.sql
```

Remember to commit this file

# Creating a Database

Example query from the CLI:

```
CREATE TABLE article_comments (
  id SERIAL PRIMARY KEY,
  article_id integer NOT NULL REFERENCES articles(id),
  author_image VARCHAR (255) NOT NULL,
  author_id integer NOT NULL
  author_username VARCHAR (255) NOT NULL
  body VARCHAR (255) NOT NULL,
  created_at timestamp without time zone NOT NULL,
  updated_at timestamp without time zone NOT NULL
);
```

# Updating Deno

- Update the version the Drash container uses in `/.docker/drash.dockerfile`

- Update the Deno-specific dependencies in `deps.ts`

- Update 3rd part dependencies in `deps.ts` - Be mindful that these might not
  have been updated (using deprecated or old incorrect syntax), meaning we
  cannot update Deno

- Down, re-build and start the containers to check for any errors.

- Run tests

# Problems in Vue

## `article.tags` returns as `["""]`

When sent down from the server, the `article.tags` property is `""`. But when
vue gets it from the `axios` response, the property is `[""]`. This seems to be
a problem with vue, and to combat it, we have added the following checks into
the tag components: `v-if="tags.length !== 1 && !!tags[0]"`.

repository: tjozsa/conduit

repo_name: tjozsa/conduit


text:
This project contains a fast implementation of Dual Contouring -- or more accurately a simplified version of the algorithm. No octree is constructed, instead a regular grid is contoured (much like the leaf node grid in the original DC algorithm) & the resulting mesh is simplified using my mesh simplifier. Additionally the demo project implements the "super primitive" density function which is a single function which can be configured to represent a wide variety of volumes.

The demo makes use of my SIMD QEF implementation both for the voxel vertex placement and for the mesh simplification vertex placement. I've included the latest code for both the mesh simplifier and the SIMD QEF directly in the project.

The demo depends on Dear ImGui, SDL2, GLM and GLEW. I don't think the particular version matters, the demo project expects these to exist in the solution directory.

A pre-compiled x64 executable is included with the SDL2 and glew DLLs.

The controls are:
	- hold left mouse and drag to rotate the view
	- use the mouse wheel to zoom in/out
	- press F1 to render a wireframe

Send any questions to<EMAIL_ADDRESS>or @ngildea85 on Twitter

![Example](https://github.com/nickgildea/fast_dual_contouring/blob/master/example.png)


text:
# FlutterSample

Flutter使用指南,包含众多组件和插件的使用

## 包含内容

### 组件

* [Animation(动画)](https://github.com/xuexiangjys/FlutterSample/tree/master/flutter_learn/lib/page/widget/anim)
* [AppBar(标题)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/widget/appbar.dart)
* [BottomNavigationBar(底部导航栏)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/widget/bottom_navigation_bar.dart)
* [Button(按钮)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/widget/button.dart)
* [CardView(卡片)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/widget/cardview.dart)
* [Containter(容器)](https://github.com/xuexiangjys/FlutterSample/tree/master/flutter_learn/lib/page/widget/contain)
* [Control(控制开关)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/widget/control.dart)
* [CustomWidget(自定义组件)](https://github.com/xuexiangjys/FlutterSample/tree/master/flutter_learn/lib/page/widget/custom)
* [Dialog(对话框)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/widget/dialog.dart)
* [Drag(拖拽)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/widget/drag.dart)
* [Drawer(侧滑菜单)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/widget/drawer.dart)
* [Form(表单)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/widget/form.dart)
* [Gesture(手势)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/widget/gesture.dart)
* [Image(图片)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/widget/image.dart)
* [Input(输入框)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/widget/input.dart)
* [Layout(布局)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/widget/layout)
* [Notification(冒泡通知)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/widget/notification.dart)
* [Progress(进度条)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/widget/progress.dart)
* [ScrollView(列表滚动)](https://github.com/xuexiangjys/FlutterSample/tree/master/flutter_learn/lib/page/widget/scrollview)
* [Tab(选项卡)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/widget/tab.dart)
* [Text(文字)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/widget/text.dart)

### 工具

* [DeviceInfo(设备信息)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/utils/device_info.dart)
* [EventBus(事件总线)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/utils/event_bus.dart)
* [JPush(极光推送)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/utils/jpush.dart)
* [JsonSerialize(序列化)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/utils/json_serialize.dart)
* [Navigator(导航路由)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/utils/navigator.dart)
* [Net(网络请求)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/utils/net.dart)
* [Path(文件路径)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/utils/path.dart)
* [Permission(权限申请)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/utils/permission_apply.dart)
* [Provider(数据共享)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/utils/provider.dart)
* [Share(系统分享)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/utils/share.dart)
* [SharedPreferences(持久化)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/utils/shared_preferences.dart)
* [Sqlite(数据库)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/utils/sqlite.dart)
* [Toast(吐司提示)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/utils/toast.dart)
* [Url(链接处理))](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/utils/url.dart)
* [Video(视频播放))](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/utils/video.dart)
* [XUpdate(应用内版本更新)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/utils/xupdate.dart)

### 第三方插件

* [DatePicker(时间选择)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/expand/date_picker.dart)
* [EasyRefresh(下拉加载上拉刷新)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/expand/easy_refresh.dart)
* [IconFont(字体图标)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/expand/iconfont.dart)
* [ImagePicker(单图片选择)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/expand/image_picker.dart)
* [MultiImagePicker(多图片选择)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/expand/multi_image_picker.dart)
* [Picker(通用选择器)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/expand/picker.dart)
* [Spinkit(loading动画)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/expand/spinkit.dart)
* [Swiper(轮播图)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/expand/swiper.dart)
* [Web(网页加载)](https://github.com/xuexiangjys/FlutterSample/blob/master/flutter_learn/lib/page/expand/web.dart)

## 插件查询

[flutter插件平台](https://pub.dev/flutter/packages)

## 常用命令

1.编译：
* `flutter packages get`: 获取flutter packages包

2.运行：
* `flutter run` （默认为debug环境）
* `flutter run --release` (以release模式运行)

3.安装
* 帮助：`flutter -h` 或 `flutter --help`
* 诊断flutter：`flutter doctor`
* 查看flutter版本号：`flutter --version`
* flutter升级：`flutter upgrade`

4.打包apk包：
* 直接打包：
`flutter build apk`
* 64位-release：
`flutter build apk --release --target-platform android-arm64`
* 32位-release：
`flutter build apk --release --target-platform android-arm`


text:
# US extends protection for 6 nations’ migrants for a year

Published at: **2019-11-01T18:25:34+00:00**

Author: **The Associated Press**

Original: [The Seattle Times](https://www.seattletimes.com/nation-world/nation/us-extends-protection-for-6-nations-migrants-for-a-year/)

TEGUCIGALPA, Honduras (AP) — The U.S. Department of Homeland Security says it’s extending temporary protected status coverage for migrants from El Salvador, Haiti, Honduras, Nepal, Nicaragua and Sudan through Jan. 4, 2021.
The Trump administration has been trying to end TPS for those countries since 2018, but that move has been tied up in court appeals.
The department said Friday the extension was enacted to comply with court injunctions against the move, which it said it’s appealing.
Honduras’ president says TPS status has allowed over 40,000 Hondurans to live and work in the United States since Hurricane Mitch caused widespread damage in Honduras in 1999.
President Juan Orlando Hernandez wrote in his Twitter account that, “We will continue working to find a permanent and humane solution for out Honduran brothers.”
The Associated Press

repository: dsadlollioygjmzvcxv/tdc-exported

repo_name: dsadlollioygjmzvcxv/tdc-exported


text:
# Efficient Data Loading

This tutorial gives an overview of how to efficiently load data in tensorpack, using ImageNet
dataset as an example.

Note that the actual performance would depend on not only the disk, but also
memory (for caching) and CPU (for data processing), so the solution in this tutorial is
not necessarily the best for different scenarios.

### Use TensorFlow queues

In general, `feed_dict` is slow and should never appear in your critical loop.
i.e., you should avoid loops like this:
```python
while True:
  X, y = get_some_data()
  minimize_op.run(feed_dict={'X': X, 'y': y})
```
However, when you need to load data from Python-side, this is the only available interface in frameworks such as Keras, tflearn.

You should use something like this instead:
```python
# Thread 1:
while True:
  X, y = get_some_data()
  enqueue.run(feed_dict={'X': X, 'y': y})	 # feed data to a TensorFlow queue

# Thread 2:
while True:
  minimize_op.run()	 # minimize_op was built from dequeued tensors
```

This is now automatically handled by tensorpack trainers already (unless you used the demo ``SimpleTrainer``),
see [Trainer](trainer.md) for details.
TensorFlow is providing staging interface which may further improve the speed. This is
[issue#140](https://github.com/ppwwyyxx/tensorpack/issues/140).

You can also avoid `feed_dict` by using TensorFlow native operators to read data, which is also
supported here.
It probably allows you to reach the best performance, but at the cost of implementing the
reading / preprocessing ops in C++ if there isn't one for your task. We won't talk about it here.

### Figure out your bottleneck

For training we will only worry about the throughput but not the latency.
Thread 1 & 2 runs in parallel, and the faster one will block to wait for the slower one.
So the overall throughput will appear to be the slower one.

There isn't a way to accurately benchmark the two threads while they are running, without introducing overhead. But
there are ways to understand which one is the bottleneck:

1. Use the average occupancy (size) of the queue. This information is summarized after every epoch (TODO depend on #125).
	If the queue is nearly empty, then the data thread is the bottleneck.

2. Benchmark them separately. You can use `TestDataSpeed` to benchmark a DataFlow, and
	 use `FakeData` as a fast replacement in a dry run to benchmark the training
	 iterations.

### Load ImageNet efficiently

We take ImageNet dataset as an example of how to optimize a DataFlow.
We use ILSVRC12 training set, which contains 1.28 million images.
Following the [ResNet example](../examples/ResNet), our pre-processing need images in their original resolution, so we'll read the original
dataset instead of a down-sampled version here.
The average resolution is about 400x350 [[1]].
The original images (JPEG compressed) are 140G in total.

We start from a simple DataFlow:
```python
from tensorpack import *
ds = dataset.ILSVRC12('/path/to/ILSVRC12', 'train', shuffle=True)
ds = BatchData(ds, 256, use_list=True)
TestDataSpeed(ds).start_test()
```

Here the first `ds` simply reads original images from filesystem, and second `ds` batch them, so
that we can test the speed of this DataFlow in the unit of batch per second. By default `BatchData`
will concatenate the data into an ndarray, but since images are originally of different shapes, we use
`use_list=True` so that it just produces lists.

[1]: #ref

[[1]]. [ImageNet: A Large-Scale Hierarchical Image Database](http://www.image-net.org/papers/imagenet_cvpr09.pdf), CVPR09

repository: mtad/tensorpack

repo_name: mtad/tensorpack


text:
# Tower of Hanoi

The tower of hanoi is a Vedic puzzle in which there 3 pillars (typically labeled A, B, and C) there are an arbitrary number of discs (*n*) stacked in ascending order by size on one of the pillars (usually A).

Looks something like this:

![Tower of Hanoi](https://miro.medium.com/max/558/1*VtB0QS-7iB6RSJ0yS5PQ2g.jpeg)

The goal of the game is to take the contents of pillar A to pillar C, but with these three rules:

1. You may only move 1 disc at a time
2. You can only move a disc to an empty stack, or on top of an existing stack
3. Discs **MUST** be stacked in ascending order (bigger ones on the bottom) at all times

## Solution

This problem is commonly used to show off recursion because the recursive solution is significantly simpler than the [iterative](https://cs.stackexchange.com/questions/96624/how-to-solve-tower-of-hanoi-iteratively/96669)

See ```solution.py``` for a recursive solution to the problem implemented in python.
See ```solution.go``` for a recursive solution to the problem implemented in go.
see ```solution.java``` for a recursive solution to the problem implemented in java

With this problem the solution can always be found in (2^n)-1 where n is the amount of discs on the initial pillar.

path: /tower of hanoi/readme.md


text:
# InstaIndex

Visually index your Instagram pictures, and find them in real-time!

InstaIndex is a simple pipeline combining Clarifai's image regognition / deep learning API and Algolia's search-as-a-service API to let you visually index your Instagram pictures, and find them in real-time!

## Pre-requisite

- Create an Clarifai application at http://www.clarifai.com/api
- Create an Instagram application at https://instagram.com/developer and generate an auth token
- Create an Algolia application and index at http://www.algolia.com/doc

## Tag and index data

The script to tag and index your Instagram pictures are located in ./scripts.

First, set-up virtualenv and install dependencies

    cd ./scripts
    virtualenv env
    source env/bin/activate
    pip install -r requirements.txt

Then, copy ./scripts/settings.py.dist into ./scripts/settings.py and update with your own values

    # Ignore pictures where the tagged concept has a probability below the threshold
    THRESHOLD = 0.9
    # Number of pictures to index
    MAX_MEDIA = 1000

    # Clarifai API details - http://www.clarifai.com/api
    CLARIFAI_APP_ID = 'xxx'
    CLARIFAI_APP_SECRET = 'xxx'

    # Instagram API details - https://instagram.com/developer
    # Get a token using instructions at https://instagram.com/developer/authentication/
    INSTAGRAM_API_KEY = 'xxx'
    INSTAGRAM_API_SECRET = 'xxx'
    INSTAGRAM_ACCESS_TOKEN = 'xxx'

    # Algolia API details = http://www.algolia.com/doc
    ALGOLIA_APP_ID = 'xxx'
    ALGOLIA_APP_KEY = 'xxx'
    ALGOLIA_INDEX_NAME = 'xxx'

Finally, launch the index procees

    python ./index.py

## Setup Algolia index

Go to the "Raking" page of your Algolia index settings and:
- Add (in this order) "likes", "tags", and "title" in "Basic settings" > "Custom ranking"
- Move "Custom" before "Attribute" in "Ranking formula" > "Ranking"

Go to the "Display" page of your Algolia index settings and:
- Add "tags" in "Faceting" > "Attributes for faceting"
- Add "tags", "created", "thumbnail", "title", "url", "likes" in "Display & Pagination" > "Attributes to retrieve"

## Web UI

A basic interface build on top of Algolia's instant-search is available in ./ui.


text:
# Bandmates

## Overview

Working on a new music project and looking for someone to join your band? Or just want to find other artists to jam with? You can do both on Bandmates! On Bandmates artists can create their own profile in seconds and start browsing for other artists to collaborate with. Looking for something in particular? Filter your search results to find the specific artists you're looking for.

**Bandmates allows you to...**

- Create your own user profile to showcase your musical interests and abilities
- Explore all artist profiles to determine which users you would like to partner with
- Filter your matches based on instrument, genre, skill-level, location, etc...

## Who is this application for?

Musicians who are searching for others to collaborate with in any capacity

## How do I run this application?

Copy this repository to your local machine, in your terminal, navigate to the root directory

- run 'npm install'
- run 'npm run dev'

Now your server should be running

## How do I use Bandmates?

After starting your server, you'll be directed to a login page. Here you can sign up and enter your user information so others can learn more about you. After signing in you'll be able to browse the entire database of other profiles and search for users based on various fields.

## How could this application be improved?

**Stretch Goals**

- Though still in development, we would like to allow users to showcase their musical abilities by uploading sound bytes of their music to their profile
- Provide users the ability to upload profile images of themselves to further round out their user profile
- Create an in-app messaging system where users can communicate with one another without having to exchange personal contact information
- Implement a 'following' feature, where users can follow other profiles and also view their followers


text:
# custody-plugin-command-clear-port-conflicts

If you're using Supervisor for local development of microservices, the processes launched
by Supervisor are probably not the servers themselves but rather build processes, which in turn
launch the servers. The process tree might look something like this:

```
supervisord
  - gulp (using gulp-nodemon)
    - node
```

Something in this chain tends to lose the server process, so that it keeps running, but no longer
under Supervisor control. When, eventually, the "supervised" process starts/restarts, the new server
crashes with an EADDRINUSE error.

This [custody] plugin can automatically fix such port conflicts.

## Installation

```sh
npm install -g @custody/plugin-command-clear-port-conflicts
```

Then launch `custody-cli settings` and add "@custody/plugin-command-clear-port-conflicts" to your
`.custodyrc`. Finally, restart `custody-cli` to get it to pick up the new plugin.

This module requires that you instrument every process you wish to de-conflict with
[@custody/probe](https://github.com/mixmaxhq/custody-probe/#installation), please configure that
before proceeding. This is because this plugin requires @custody/probe to report the EADDRINUSE
error, as described [here](https://github.com/mixmaxhq/custody-probe/#custody-probe).

## Usage

Once you've set up the plugin and probe(s) as described above, this plugin will operate
automatically.

### How it works

When the plugin detects a port conflict, it will kill the process listening to your desired port,
then restart the supervised process.

## Contributing

We welcome bug reports and feature suggestions!

[custody]: https://github.com/mixmaxhq/custody/


text:
---
uid: crmscript_ref_NSModuleLicenseLink_SetAssigned
title: SetAssigned(Bool assigned)
intellisense: NSModuleLicenseLink.SetAssigned
keywords: NSModuleLicenseLink, GetAssigned
so.topic: reference
---

# SetAssigned(Bool assigned)

Is the module license assigned to a given user

**Parameter:**
 - **assigned** Bool

```crmscript
NSModuleLicenseLink thing;
Bool assigned;
thing.SetAssigned(assigned);
```

repository: stianol/crmscript

repo_name: stianol/crmscript


text:
---
id: string
title: String
sidebar_label: String
---
## What Is String?
A string is a sequence of alpha, numeric, or special character(s) that is data and that is treated as a word, sentence, or character, in our code.
We create strings by enclosing our words or characters in a pair of single or double quotation marks, see the examplr below.
### Example 1
```js
console.log('this is a string'); // this is a string
console.log("this is a string"); // this is a string
```
Regardless of what method you choose to create your string it will result in you having the same thing; a collection of characters that are treated as data within your code.

## Concatination
Concatination is the majority of the string manipulation being done in any software programme, this basically is the process of joining two strings together, this is achieved using the plus `+` sign in-between two strings. Let's see what that looks like.
### Example 2
```js
console.log("Hello, " + "world!"); // Hello, world
```
in the expression above, we were able to join two strings (`Hello,` and `world`) into one using the plus sign, this results in us having one string which is `Hello, world`, this in a nutshell is what string concatination is.

## Template Literals
A template literal is a way to concatenate strings while allowing embedded expressions and improving readability.
Creating a template literal is similar to how we would normally create a string, only in this case instead of using a pair of quotation marks we would be using two back-tick characters to enclose whatever we want to represent as string.
This method however does not just create a string but also allows for embedded expressions, these can either be variables, a mathmatical operation, etc.
Let's break down an example.

### Example 3
```js
let firstName = "Naruto";
let village = "Konoha";

let sentence = `My name is, ${firstName}, I am from ${village}.`;
// My name is Naruto, I am from Konoha.;
```
In the code above we used the template literal to create a sentence and then within the sentence referenced our variables, which contain the data we want to add to our sentence. Each variable is referenced using the dollar sign `$`, a pair of curly braces `{}`, and then in-between the curly braces we put the name of the variable we would like to have the value of in that part of the sentence, this produces a sentence like so `My name is Naruto, I am from Konoha.`

Variables are containers we use to move data around in our code, they can contain any "type" of data.

## Escaping Characters
Escaping characters allows us do two things.
1. Add invalid characters to our string, these are characters that can make our code throw an error.
2. Display characters that normally won't be displayed when we output our string to an interface.

To escape a character we will need to add the backslash(`\`) right before the character we would like to escape.
### Example 4
```js
console.log("Add the double quote(\") to the output.");
// Add the double quote(") to the output.

console.log('This isn\'t a test.');
// This isn't a test.

console.log("Show the backslash(\\) sign.");
// Show the backslash(\) sign.
```
This comes in handy when we want to add a pair of double quotes inside a double quoted string, an apostrophe sign in a single quoted string, or want to show the backslash in a string output.
There are several other use cases but this should help you see the relevance of being able to escaping characters.

## Conclusion
Wo in this section we said, strings are used to contain words, sentences, or characters that is data and not a keyword within our code, we also said that multiple strings can be joined together through an opearion called concatination, and that concatination can also be achieve using template literals, and also more than just to help facilitate concatination, template literals allow us to embed expressions within a string, this makes reading code easier for other developer, finally we said that there are times we would want to add invalid characters, or non-displayable to our string output, and we can do that by placing a backslash right before the character we would like to include in our string output.

repository: thecodecafe/learn-js

repo_name: thecodecafe/learn-js


text:
# Kirin on iPhone and iPad

## This document
This document outlines the pattern for using Kirin within an iPhone or iPad app.

Refer also to the `kirin-hello-world` project in the `demos` folder to see this in action.

## Prerequisites
You must have the following installed on your system:

* Eclipse
* Xcode

And you must have the kirin project checked out.

##Getting started

###Build your project's core

Follow the steps in [`CORE-QUICKSTART`](01-CORE-QUICKSTART.md).

###Build the Kirin iOS library

    cd "src/ios/KirinKit"

Build this in both `Debug` and `Release` configurations

    xcodebuild -sdk iphoneos6.1 -project KirinKit.xcodeproj -target KirinKit -configuration Debug -verbose clean build
    xcodebuild -sdk iphoneos6.1 -project KirinKit.xcodeproj -target KirinKit -configuration Release -verbose clean build

### Create a new app in Xcode in the usual manner.

If you're building an iOS app which targets both iPhone and iPad then create your app in an `ios` folder at the same level as `android`, `core` etc.  If not then put your apps in separate `iPhone` and `iPad` folders.

### Define `NEW_KIRIN_HOME` in Xcode
In xcode, type `cmd`-`,` (or go to Preferences -> Locations), and select Source Trees.  Ensure `NEW_KIRIN_HOME` is defined and points to the folder where Kirin is checked out

### Define `M2` in Xcode
In addition to `NEW_KIRIN_HOME`, add an `M2` variable pointing to the folder in which `mvn` is located -- type `which mvn` in a terminal to find out what this is.

### Add the Kirin iOS library to your app

Select your project in xcode, and choose the project name  in `Targets`, then choose the `Build Phases` tab.
In `Link Binary With Libraries`, click `+` then `Add Other…`.  Navigate to the folder where Kirin is checked out, then choose `src/ios/KirinKit/build/Debug-iphoneos/KirinKit.framework`.

#### Add linker flag

Select the project name in `PROJECT`, then choose `Build Settings`.  In `Other Linker Flags` add `-ObjC`.

#### Add Kirin to Framework search paths

Select the project name in `PROJECT`, then choose `Build Settings`.  In `Framework search paths` add `$(NEW_KIRIN_HOME)/src/ios/KirinKit/build/Release-iphoneos`.

#### Add other required libraries
In `Targets` -> `Build Phases` -> `Link Binary With Libraries` ensure all these libraries are present:

* KirinKit.framework (added above)
* libsqlite3.dylib
* UIKit.framework
* CoreLocation.framework
* MobileCoreServices.framework
* Foundation.framework
* CoreGraphics.framework

### Add the GWT target's `app` folder to the project

Locate your project's `app` folder in `gwt/target/<app-name>-<version>` (in finder).  Drag and drop this onto your xcode project, and choose `Create folder references for any added folders`.

#### Add the bindings to the project's header search paths

Select the project name in `PROJECT`, then choose `Build Settings`.  In `Header Search Paths` add `"$(PROJECT_DIR)/../../gwt/target/<project-name>-<version>/app/BINDINGS/ios"`.

### Add Pre-build event command line:

 Select the project name  in `Targets`, then choose the `Build Phases` tab.  Choose `Add Build Phase` -> `Add Run Script`, then in `Run Script` add the lines:

    cd ..
    ./ios_prebuild.sh

(This process will change once Hoskins has figured out how to invoke Maven so that GWT only builds when needed.)

Place this `Run Script` above `Compile Sources` (drag and drop).

You can rename this `Run Script` phase to `Kirin Build` or something similar.

### Ensure you can access the generated object bindings

You should have added your GWT project's `app` folder to the xcode project, this
should contain the folder `BINDINGS/ios`, this will contain another two folders
`toNative` and `fromNative`.

### `fromNative` and `toNative`

`fromNative` contains an Objective C protocol for each of your Kirin modules.
`toNative` contains an Objective C protocol for each of your Kirin natives.

You must provide an implementation of each module's native component (in
`toNative`, and ought to end with `native`).

### Implement `TestModule`

Your iPhone project should provide a `ViewController` object.  This will be our `TestModule` implementation.

In `ViewController.h` import `TestModuleNative` like so:

    #import "toNative/TestModuleNative.h"

And specify `TestModuleNative` on the class like so:

    @interface ViewController : UIViewController <TestModuleNative>

In `ViewController.m` we must provide an implementation of `TestModuleNative`'s `testyNativeMethod` method:

    - (void) testyNativeMethod: (NSString*) str {
        NSLog(@"testyNativeMethod: %@", str);
    }

In `ViewController.m`, import `TestModule`, and also the Kirin `NSObject` category:

    #import <KirinKit/NSObject+Kirin.h>
    #import "fromNative/TestModule.h"

Declare a `kirinModule` property in the `@interface` part:

    @interface ViewController ()
    @property (strong) id <TestModule> kirinModule;
    @end

In `viewDidLoad`, bind `ViewController` to the `TestModule` class like so:

    [self kirinStartModule:@"TestModule" withProtocol:@protocol(TestModule)];

Now, we can access our module through `self.kirinModule`:

    [self.kirinModule testyMethod:@"Hey hey hey!" :1337];

Building and running this app should demonstrate end-to-end native to Kirin method calling.

repository: futureplatforms/Kirin

repo_name: futureplatforms/Kirin


text:
# Chapter 09: Decision Trees & Random Forests

## Decision trees for regression and classification

### How trees learn and apply decision rules

### How to use decision trees for insights and predictions

#### How to prepare the data

##### Code example

The notebook `data_prep` contains implementation details for this subsection.

#### How to build a regression tree

#### How to build a classification tree

#### How to visualize a decision tree

### Overfitting and regularization

### How to tune the hyperparameters

#### Code examples

The notebook `decision_trees` contains implementation details for this section.

## Random forests

### Ensemble models

### How bagging lowers model variance

### How to build a random forest

### How to train and tune a random forest

#### Code examples

The notebook `random_forest` contains implementation details for this section.


text:
# Describe how image layers work

## Official Docker Documentation
[About images, containers, and storage drivers](https://docs.docker.com/engine/userguide/storagedriver/imagesandcontainers)


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

A brief description of the role goes here.

Requirements
------------
Fixed nested loop issues

- used include_tasks to loop over context extraction [outer loop]
- used loop_control to override outer loop and run inner loop[ for individual context ]
- use set_fact to store registered config in another variable because if not done the file gets appended with the entire config+extracted query
- "with_nested" doesn't work because the ASA config doesn't get registered as a array
- have to use the lineinfile module because otherwise the content(individual context) gets "replaced" instead of being "appended"

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

A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.

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

A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.

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

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

    - hosts: servers
      roles:
         - { role: username.rolename, x: 42 }

License
-------

BSD

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

An optional section for the role authors to include contact information, or a website (HTML is not allowed).