text:
---
layout: post
title:  "Group Meeting 10/17/2020"
date:   2020-10-17
author: Xueli Miao
categories: activities
---

## Shoulong Li

#### Literature reading: Cosmological Backgrounds of Gravitational Waves

Reference: Chiara Caprini, Daniel G. Figueroa. [[arXiv:1801.04268](https://arxiv.org/abs/1801.04268)]
Reference: Zaven Arzoumanian, et al. [[arXiv:2009.04496](https://arxiv.org/abs/2009.04496)]

---

## Rui Xu

#### Paper presentation: On Continued Gravitational Contraction

Reference: J. R. Oppenheimer and H. Snyder. [[PHYSICAL REVIEW JOURNALS ARCHIVE](https://journals.aps.org/pr/abstract/10.1103/PhysRev.56.455)]

---


text:
title: Snail
date: 2015-12-18 11:44:48
categories:
- Interview
tags:
- Technical Interview
comments: true
---
A snail in a well can climbs 3 meters up in the day, and slide 2 meters down at the night. Given the height of the well h, how many days does it take for the snail to climb out of the well?

<!--more-->
```java
public class Snail {
  private int distance; // distance to the top
  private static int height; // wall height
  private int day;

	public Snail(){
		distance = 0;
	   height = 0;
	   day = 0;
	}

	public void setHeight(int high){
	   height = high;
	}

	public void setDistance(int dist){
		distance = dist;
	}

	public void day(){
	    if (distance <= 0){
	    	System.out.println("This snail has climbed out of wall");
	    	return;
	    }
	    distance -= 3;
	}

	public void night(){
	  	if (distance > 0 && distance < height){
	  		day += 1;
	  		distance += 2;
	  	}
	}

	public int getDay(){
	    return day;
	}

	public int getDistance(){
	    return distance;
	}

	public static void main(String[] args){
	    Snail snail = new Snail();
	    // the well is 10 meters tall
	    snail.setHeight(10);
	    snail.setDistance(10);

	    while (snail.getDistance() > 0){
	      snail.day();
	      snail.night();
	    }
	    System.out.println(snail.getDay());
	}
}
```

license: MIT

repository: aksmishraa/blog

branch_name: refs/heads/master

extension: md

license_type: permissive

repo_name: aksmishraa/blog


text:
TodoList - Firebase
===
> It's a pratice for using node.js with firebase db service to build a frontend to backend todolist service via RESTful API

## Getting Started

Download and go to firebase "project setting", choose "service account" then you can download private key for your node.js service. (so you need to rename that file to "firebase_key.json" and put it in)

## Introduction

Just a todo list, you can add anything you want to do on it.By the way, it's chinese.

"新增" means `add`, "全部清除" means `clear all`.

- Loading before data loaded
![](https://i.imgur.com/5xqc5Aj.png)

- After first todo added
![](https://i.imgur.com/UNyCkPn.png)

## What's used in this project?
- Html
- CSS (also used sass, but it's not important at all here) with Bootstrap 4
- JavaScript with jQuery
- Node.js with Firebase

That's all!


text:
# TwitterClient
Creating Android App for Twitter Application.

Time spent: 26 hours spent in total

Completed user stories:

 * [x] User can sign in to Twitter using OAuth login.
 * [x] User can view the tweets from their home timeline
      * User should be displayed the username, name, and body for each tweet
      * User should be displayed the relative timestamp for each tweet "8m", "7h"
      * User can view more tweets as they scroll with infinite pagination
      * Optional: Links in tweets are clickable and will launch the web browser (see autolink)
 * [x] User can compose a new tweet
      * User can click a “Compose” icon in the Action Bar on the top right
      * User can then enter a new tweet and post this to twitter
      * User is taken back to home timeline with new tweet visible in timeline

Assignment 4 Newly added stories:

* [x] Advanced: User can refresh tweets timeline by pulling down to refresh (i.e pull-to-refresh)
* [x] Advanced: Improve the user interface and theme the app to feel "twitter branded"
* [x] User can switch between Timeline and Mention views using tabs.
     * User can view their home timeline tweets.
     * User can view the recent mentions of their username.
* [x] User can navigate to view their own profile
     * User can see picture, tagline, # of followers, # of following, and tweets on their profile.
* [x] User can click on the profile image in any tweet to see another user's profile.
     * User can see picture, tagline, # of followers, # of following, and tweets of clicked user.
     * Profile view should include that user's timeline
* [x] User can infinitely paginate any of these timelines (home, mentions, user) by scrolling to the bottom
* [x] Advanced: When a network request is sent, user sees an indeterminate progress indicator
* [x] Advanced: User can search for tweets matching a particular query and see results
* [x] Advanced: Improve the user interface and theme the app to feel twitter branded

Walkthrough of all user stories:

![Video Walkthrough](TwitterClient1.gif)

GIF created with [LiceCap](http://www.cockos.com/licecap/).

repository: hetang/TwitterClient

repo_name: hetang/TwitterClient


text:
# HLQ009: Consider removing an empty optional enumerator method.

## Cause

A method is empty and is only required when an enumerator interface is implemented.

## Severity

Info

## Rule description

The methods `Reset`, `Dispose` and `DisposeAsync` are not required for an enumerator to be accepted by `foreach`. These are only required when the enumerator implements `IEnumerator`, `IEnumerator<>` or `IAsyncEnumerator<>`.

## How to fix violations

If the method is empty and none of the mentioned interfaces is implemented then consider removing it.

## When to suppress warnings

When method is part of some other contract.

## Example of a violation

```csharp
readonly struct Enumerable<T>
{
    public Enumerator GetEnumerator() => new Enumerator();

    public struct Enumerator // no enumerator interfaces implemented
    {
        public T Current => default;

        public bool MoveNext() => false;

        // empty Reset method
        public void Reset() => throw new NotImplementedException();

        // empty Dispose method
        public void Dispose() { }
    }
}
```

## Example of how to fix

```csharp
readonly struct Enumerable<T>
{
    public Enumerator GetEnumerator() => new Enumerator();

    public struct Enumerator
    {
        public T Current => default;

        public bool MoveNext() => false;
    }
}
```

gha_language: C#

gha_license_id: MIT


text:
# Modular-Programming-with-PHP-7

You can read more at [Modular-Programming-with-PHP-7]
(https://www.packtpub.com/application-development/modular-programming-php-7?utm_source=Github&utm_medium=repository&utm_campaign=9781786462954)

## Instructions

This step-by-step guide is divided into two sections.
The first section explores all the fundamentals of modular design technique with respect to PHP 7.
The latter section demonstrates the practical development of individual modules of a web shop application.

Related PHP 7 Books and Videos

* [PHP 7 Programming Cookbook] (https://www.packtpub.com/application-development/php-7-programming-cookbook?utm_source=Github&utm_medium=Repository&utm_campaign=9781785883446)
* [Learning PHP 7 [Video]] (https://www.packtpub.com/web-development/learning-php-7-video?utm_source=Github&utm_medium=Repository&utm_campaign=9781785883156)
* [Learning PHP 7] (https://www.packtpub.com/application-development/learning-php-7?utm_source=Github&utm_medium=Repository&utm_campaign=9781785880544)


text:
#Instalation:
- download composer
curl -sS https://getcomposer.org/installer | php
- clone repository
git clone https://github.com/tmagiera/code-challenge.git && cd code-challenge
- update vendors
php ../composer.phar update --prefer-dist
- edit configuration data
[edit] app/confi/parameters.yml -> database connection & facebook auth
- create db schema
php app/console doctrine:schema:create
- import sample data
php app/console doctrine:fixtures:load
- download facebook feed
php app/console facebook:update
- run internal server
php app/console server:run

#Run:
now please visit:
- main site: http://localhost:8000/
- api documentation: http://localhost:8000/api/doc/
- rest service : http://localhost:8000/api/builds

#Comment:
I couldn't force Doctrine to update builds with current = false on build update - related code is in : Code\Bundle\ChallengeBundle\Event\BuildSubsriber but something is wrong. Sorry, but i don't have enough time for this excercise.

repository: tmagiera/code-challenge

repo_name: tmagiera/code-challenge


text:
# CHANGELOG

All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

> ### 2020-6-21

#### Added

- Initial project commit. Please review documentations for features and issues.


text:
# Tracks to Digital Awareness

A work in progress. More details can be found [in the wiki](https://github.com/ZuozHK19/T2DA/wiki/Project-Idea)

## Instructions

1) Install all the libs:

`pip install -Ur requirements.txt`

2) Close your browser and run our graphical client:

`python3 GUI.py`

3) Push the button.

## Console instructions

You can also use our tool on the command line:

1) Close your browser, then run:

`python sqlreader.py`

Optionally put a copy of your cached SQLite database in the `private` folder if you want to keep your browser running.

2) Now pipe the resulting extracted content into our data packager, and save the resulting output, like this:

```
cat private/websites.csv | python packager.py datapackage > datapackage/data/places_100.csv
```
3) Look at the contents of the `datapackage` folder for the resulting (anonymized) data and report.

4) ???

5) Profit!!!

gha_language: Python


text:
---
layout: post
title: Scooter Data Streams Now Available
date: '2019-07-17T09:45-05:00'
author: Open Data Portal Team
categories:
- Open Data
tags:
- APIs
- scooters
- gbfs
---
We have made available a new source of open data, which delivers real-time locations of scooters available for rent in Chicago. More information on Chicago’s scooter pilot is available at [chicago.gov/scooters](https://chicago.gov/scooters).

The data are accessible by API, and each of the 10 scooter companies hosts its own API feed as a requirement of participation. Details on the data specification can be found [here](https://github.com/dsgermain/gbfs/tree/f76251ad4c754b62defc42562887724f287b73ea). Updated URLs for GBFS feeds are available on [GitHub](https://github.com/NABSA/gbfs/blob/master/systems.csv) and are also listed below.

| Name | GBFS Feed URL |
| ---- |------------- |
| Bird Chicago | https://mds.bird.co/gbfs/chicago/gbfs.json |
| Bolt Chicago | https://www.bolt.miami/bolt2/chi/gbfs/gbfs.json |
| gruv Chicago | https://portal.clevrmobility.com/api/gbfs/chicago/en/discovery/?format=json |
| JUMP Chicago Scooters | https://gbfs.uber.com/v1/chicago/gbfs.json |
| Lime Chicago | https://data.lime.bike/api/partners/v1/gbfs/chicago/gbfs.json |
| Lyft Chicago | https://s3.amazonaws.com/lyft-lastmile-production-iad/lbs/chi/gbfs.json |
| Sherpa Chicago | https://mds.bird.co/gbfs/platform-partner/sherpa/chicago/gbfs.json |
| Spin Chicago | https://web.spin.pm/api/gbfs/v1/chicago/gbfs.json |
| Wheels | https://chicago-gbfs.getwheelsapp.com/gbfs.json |
| VeoRide | https://share.veoride.com/api/share/gbfs |

gha_language: HTML


text:
## Scripts in /ibm-scripts

The scripts in this directory create resources on the IBM Cloud that can be used for Minikube and IBM Kubernetes Service deployments

### create-app-id

Required for the [Demo: Authentication and Authorization](../documentation/DemoAuthentication.md)

Creates an instance of the AppID service on IBM Cloud and performs the necessary setup of the instance. Parameters required for the deployment are stored in local.env.

### create-cloudant

Cloudant is a database option for the [Authors service](../authors-nodejs/README.md)

The script will

* create a Cloudant instance in the Cloud region set in local.env (us-south is default)
* create the "authors" database
* create a view (authors-nodejs/authorview.json)
* populate the database with our sample data (authors-nodejs/authordata.json)
* set the correct values in local.env which are used by the deployment script for the authors service.

repository: thomassuedbroecker/cloud-native-starter

repo_name: thomassuedbroecker/cloud-native-starter


text:
---
title:  Queries
description: Learn how to use queries to explore and process data in the context of databases.
ms.reviewer: alexans
ms.topic: reference
ms.date: 04/16/2023
---
# Query operators

A query is a read-only operation against a Kusto Engine cluster's ingested data. Queries always run in the context of a particular database in the cluster. They may also refer to data in another database, or even in another cluster.

As ad-hoc query of data is the top-priority scenario for Kusto, the Kusto Query Language syntax is optimized for non-expert users authoring and running queries over their data and being able to understand unambiguously what each query does (logically).

The language syntax is that of a data flow, where "data" means "tabular data" (data in one or more rows/columns rectangular shape). At a minimum, a query consists of source data references (references to Kusto tables) and one or more **query operators** applied in sequence, indicated visually by the use of a pipe character (`|`) to delimit operators.

For example:

> [!div class="nextstepaction"]
> Run the query

```kusto
StormEvents
| where State == 'FLORIDA' and StartTime > datetime(2000-01-01)
| count
```

Each filter prefixed by the pipe character `|` is an instance of an *operator*, with some parameters. The input to the operator is the table that is the result of the preceding pipeline. In most cases, any parameters are [scalar expressions](./scalar-data-types/index.md) over the columns of the input.
In a few cases, the parameters are the names of input columns, and in a few cases, the parameter is a second table. The result of a query is always a table, even if it only has one column and one row.

`T` is used in query to denote the preceding pipeline or source table.

repository: microsoft/Kusto-Query-Language

repo_name: microsoft/Kusto-Query-Language


text:
# documentation-theme-default

![](screenshot.png)

This is the default theme for [documentationjs](https://github.com/documentationjs):
it consists of Handlebars templates and a few assets: a [highlight.js](https://highlightjs.org/)
theme and [basscss](http://www.basscss.com/) as a basic CSS framework.

This is bundled by default in documentation: it is the default theme.

license: ISC

gha_language: CSS

gha_license_id: ISC


text:
---
id: "numberfieldconfig"
title: "Interface: NumberFieldConfig"
sidebar_label: "NumberFieldConfig"
sidebar_position: 0
custom_edit_url: null
---

## Hierarchy

- [FieldConfig](fieldconfig.md)<number\>

  ↳ **NumberFieldConfig**

## Properties

### customProps

• `Optional` **customProps**: `any`

Additional props that are passed to the components defined in `field`
or in `preview`.

#### Inherited from

[FieldConfig](fieldconfig.md).[customProps](fieldconfig.md#customprops)

#### Defined in

[models/models.ts:821](https://github.com/Camberi/firecms/blob/42dd384/src/models/models.ts#L821)

___

### enumValues

• `Optional` **enumValues**: [EnumValues](../types/enumvalues.md)

You can use the enum values providing a map of possible
exclusive values the property can take, mapped to the label that it is
displayed in the dropdown.

#### Defined in

[models/models.ts:994](https://github.com/Camberi/firecms/blob/42dd384/src/models/models.ts#L994)

___

### field

• `Optional` **field**: `ComponentType`<[FieldProps](fieldprops.md)<number, any, [EntitySchema](entityschema.md)<any, any\>, any\>\>

If you need to render a custom field, you can create a component that
takes `FieldProps` as props. You receive the value, a function to
update the value and additional utility props such as if there is an error.
You can customize it by passing custom props that are received
in the component.

#### Inherited from

[FieldConfig](fieldconfig.md).[field](fieldconfig.md#field)

#### Defined in

[models/models.ts:808](https://github.com/Camberi/firecms/blob/42dd384/src/models/models.ts#L808)

___

### preview

• `Optional` **preview**: `ComponentType`<[PreviewComponentProps](previewcomponentprops.md)<number, any\>\>

Configure how a property is displayed as a preview, e.g. in the collection
view. You can customize it by passing custom props that are received
in the component.

#### Inherited from

[FieldConfig](fieldconfig.md).[preview](fieldconfig.md#preview)

#### Defined in

[models/models.ts:815](https://github.com/Camberi/firecms/blob/42dd384/src/models/models.ts#L815)

repository: ShinuMathew/firecms

repo_name: ShinuMathew/firecms


text:
# Missena Homebrew Tap

Missena provides a Homebrew Tap to install its tools from a single command
line. To install it, simply run:

```shell
brew tap missena-corp/tap
brew install gally
```

[gally]: https://github.com/missena-corp/gally (Gally)
[brew]: https://brew.sh/ (Homebrew - The missing package manager for macOS)

---

Created by [Missena, Sas][missena].

[missena]: https://www.missena.com/ (Missena - Choose your Ads)

repository: missena-corp/homebrew-tap

gha_language: Ruby

repo_name: missena-corp/homebrew-tap


text:
# Infinite Monkey Theorem Experiment

Python self check exercise to from Problem Solving Algorithms and Data Structures [tutorial](http://interactivepython.org/courselib/static/pythonds/Introduction/DefiningFunctions.html).

## Run

With python 3 installed simply run the imf.py in bash, terminal or cmd

```bash
python imf.py
```

## License
[MIT](https://choosealicense.com/licenses/mit/)

repository: muthomiBrian/infinite-monkey-theorem

repo_name: muthomiBrian/infinite-monkey-theorem


text:
# Application of Semantic Technologies

This is the project and submission folder for the OMiRob case of Stefan Starflinger and Maximilian Jerg. Please find links to every submission below.

## Content

| Task | Link | Due date | Done |
| ---: | :--- |:-------------:| :---: |
| 1 | [Conceptualization](1_conceptualization/) | 01.11.2017 | ✓ |
| 2 | [Implementation of Scenario 1 and Prototype](2_scenario_1/) | 10.12.2017 | ✓ |
| 3 | [Implementation of Scenario 2 and Scenario 3](3_scenario_2_3/) | 14.01.2018 | |
| 4 | [Deployment and Validation](4_deployment_and_validation/) | 31.01.2018 | |


text:
# SecKill
* NOTICE:  ./ means the corresponding project's root directory
* Now we shall start three Redis. Tmux is recommended for spliting windows
* The HTTP port was changed to 80, just send request to IP/localhost without ":port" is OK.

## Dependency
```bash
#!/bin/bash
sudo apt update
sudo apt install libuv1-dev libssl-dev redis-server
```

## Build and Run
```bash
#!/bin/bash
cd seckill
cmake -DWITH_BUNDLED_SSL=on .
make seckill -j8
# start redis-server in other windows or use & to run in background
# enter redis dir
cd ./redis
./mkdir.sh # mkdir for logs
redis-server ./user.conf # Use *redis-cli -s /tmp/user-redis.sock* to FLUSHALL if you want to clear DB
redis-server ./commodity.conf
redis-server ./order.conf
# return to root dir
cd ..
./seckill
```

## Interface Test
```python
#!/usr/bin/python
import requests
requests.get('http://localhost/seckill/getUserAll').text
requests.get('http://localhost/seckill/getCommodityAll').text
requests.get('http://localhost/seckill/seckill?user_id=e3351fa5-e422-41db-82b1-888881309cfb&commodity_id=a6bdd278-138c-4f11-bc71-47da49e74b4e').text
requests.get('http://localhost/seckill/getOrderAll').text
```

## Benchmark
* Install *wrk* with APT on Ubuntu
```bash
#!/bin/bash
sudo apt install wrk
```
* *wrk* for single kind of request
```bash
#!/bin/bash
wrk -t12 -c400 -d30s "http://localhost/seckill/seckill?user_id=e3351fa5-e422-41db-82b1-888881309cfb&commodity_id=a6bdd278-138c-4f11-bc71-47da49e74b4e"
```
* Install *siege*
```bash
#!/bin/bash
sudo apt update
sudo apt install autoconf automake libtool
git clone https://github.com/JoeDog/siege.git
cd siege
./utils/bootstrap
# "which openssl" to get path to ssl, here shows the default path
./configure --with-ssl=/usr/bin/openssl
make -j8
sudo make install
```
* For the first time, you need to generate test urls
```bash
#!/bin/bash
chmod +x ./SecKill/initUrls.py
./SecKill/initUrls.py
```
* *siege* for pressure test
```bash
#!/bin/bash
# sequential test
siege -c 200 -r 50000 -f ./SecKill/user_intensive.url
siege -c 200 -r 50000 -f ./SecKill/commodity_intensive.url
# random test
siege -i -c 200 -r 50000 -f ./SecKill/user_intensive.url
siege -i -c 200 -r 50000 -f ./SecKill/commodity_intensive.url
```


text:
| CI           | [![GitHub Workflow Status][github-ci-badge]][github-ci-link] [![GitHub Workflow Status][github-conda-build-badge]][github-conda-build-link] [![Code Coverage Status][codecov-badge]][codecov-link] |
| :----------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| **Docs**     |                                                                    [![Documentation Status][rtd-badge]][rtd-link]                                                                    |
| **Package**  |                                                         [![Conda][conda-badge]][conda-link] [![PyPI][pypi-badge]][pypi-link]                                                         |
| **License**  |                                                                        [![License][license-badge]][repo-link]                                                                        |
| **Citing**  |                                                                              [![DOI][doi-badge]][doi-link]                                                                            |

GeoCAT-comp is both the whole computational component of the [GeoCAT](https://geocat.ucar.edu/)
project and a single Github repository as described here. As the computational component of
[GeoCAT](https://geocat.ucar.edu/), GeoCAT-comp provides implementations of computational functions for operating
on geosciences data. Many of these functions originated in NCL and were translated into Python with the help of GeoCAT-comp;
however, developers are welcome to come up with novel computational functions for geosciences data.

Many of the computational functions in GeoCAT are implemented in a pure Python fashion. However,
there are some others that are implemented in Fortran but wrapped up in Python. To facilitate
contribution, the whole GeoCAT-comp structure is split into two repositories with respect to
being pure-Python or Python with compiled codes (i.e. Fortran) implementations. Such implementation
layers are handled within [GeoCAT-comp](https://github.com/NCAR/geocat-comp) and
[GeoCAT-f2py](https://github.com/NCAR/geocat-f2py) repositories, respectively (The
[GeoCAT-f2py](https://github.com/NCAR/geocat-f2py) repo is documented on its own).

# GeoCAT-comp

GeoCAT-comp repo does not explicitly contain or require any compiled code, making it more
accessible to the general Python community at large. However, if
[GeoCAT-f2py](https://github.com/NCAR/geocat-f2py) is installed, then all functions contained in
the "geocat.f2py" package are imported seamlessly into the "geocat.comp" namespace. Thus,
GeoCAT-comp repo serves as a user API to access the entire computational toolkit even though the
repo itself only contains pure Python code from the contributor’s perspective. Whenever prospective
contributors want to add new computational functionality implemented as pure Python, GeoCAT-comp
is the repo to do so. Therefore, there is no onus on contributors of pure python code to
build/compile/test any compiled code (i.e. Fortran) at GeoCAT-comp level.

# Documentation

[GeoCAT Homepage](https://geocat.ucar.edu/)

[GeoCAT Contributor's Guide](https://geocat.ucar.edu/pages/contributing.html)

[GeoCAT-comp documentation on Read the Docs](https://geocat-comp.readthedocs.io)

# Installation and build instructions

Please see our documentation for
[installation and build instructions](https://github.com/NCAR/geocat-comp/blob/main/INSTALLATION.md).

# Xarray interface vs NumPy interface

GeoCAT-comp provides a high-level [Xarray](http://xarray.pydata.org/en/stable/) interface under the
`geocat.comp` namespace. However, a stripped-down NumPy interface is used under the hood to bridge
the gap between NumPy arrays and the compiled language data structures used by
[GeoCAT-f2py](https://github.com/NCAR/geocat-f2py). These functions are accessible under the
`geocat.comp` namespace, but are minimally documented and are
intended primarily for internal use.

# Citing GeoCAT-comp

Cite GeoCAT-comp using the following text:

<> Visualization & Analysis Systems Technologies. (Year).
Geoscience Community Analysis Toolkit (GeoCAT-comp version \<version\>) [Software].
Boulder, CO: UCAR/NCAR - Computational and Informational System Lab. doi:10.5065/A8PP-4358.

Update the GeoCAT-comp version and year as appropriate. For example:

<> Visualization & Analysis Systems Technologies. (2021).
Geoscience Community Analysis Toolkit (GeoCAT-comp version 2021.04.0) [Software].
Boulder, CO: UCAR/NCAR - Computational and Informational System Lab. doi:10.5065/A8PP-4358.

For further information, please refer to
[GeoCAT homepage - Citation](https://geocat.ucar.edu/pages/citation.html).

[github-ci-badge]: https://img.shields.io/github/workflow/status/NCAR/geocat-comp/CI?label=CI&logo=github&style=for-the-badge
[github-conda-build-badge]: https://img.shields.io/github/workflow/status/NCAR/geocat-comp/build_test?label=conda-builds&logo=github&style=for-the-badge
[github-ci-link]: https://github.com/NCAR/geocat-comp/actions?query=workflow%3ACI
[github-conda-build-link]: https://github.com/NCAR/geocat-comp/actions?query=workflow%3Abuild_test
[codecov-badge]: https://img.shields.io/codecov/c/github/NCAR/geocat-comp.svg?logo=codecov&style=for-the-badge
[codecov-link]: https://codecov.io/gh/NCAR/geocat-comp
[rtd-badge]: https://img.shields.io/readthedocs/geocat-comp/latest.svg?style=for-the-badge
[rtd-link]: https://geocat-comp.readthedocs.io/en/latest/?badge=latest
[pypi-badge]: https://img.shields.io/pypi/v/geocat-comp?logo=pypi&style=for-the-badge
[pypi-link]: https://pypi.org/project/geocat-comp
[conda-badge]: https://img.shields.io/conda/vn/ncar/geocat-comp?logo=anaconda&style=for-the-badge
[conda-link]: https://anaconda.org/ncar/geocat-comp
[license-badge]: https://img.shields.io/github/license/NCAR/geocat-comp?style=for-the-badge
[doi-badge]: https://img.shields.io/badge/DOI-10.5065%2Fa8pp--4358-brightgreen?style=for-the-badge
[doi-link]: https://doi.org/10.5065/a8pp-4358
[repo-link]: https://github.com/NCAR/geocat-comp

repository: dimaclimate/geocat-comp

branch_name: refs/heads/main

repo_name: dimaclimate/geocat-comp


text:
# TNT\Amazon\CatalogItems\V20220401\CatalogApi

All URIs are relative to *https://sellingpartnerapi-na.amazon.com*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getCatalogItem**](CatalogApi.md#getCatalogItem) | **GET** /catalog/2022-04-01/items/{asin} |
[**searchCatalogItems**](CatalogApi.md#searchCatalogItems) | **GET** /catalog/2022-04-01/items |

# **getCatalogItem**
> \TNT\Amazon\CatalogItems\V20220401\Model\Item getCatalogItem($asin, $marketplace_ids, $included_data, $locale)

Retrieves details for an item in the Amazon catalog.  **Usage Plan:**  | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 5 |  The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may observe higher rate and burst values than those shown here. For more information, refer to the [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).

### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new TNT\Amazon\CatalogItems\V20220401\Api\CatalogApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$asin = "asin_example"; // string | The Amazon Standard Identification Number (ASIN) of the item.
$marketplace_ids = array("ATVPDKIKX0DER"); // string[] | A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces.
$included_data = array("[\"summaries\"]"); // string[] | A comma-delimited list of data sets to include in the response. Default: `summaries`.
$locale = "en_US"; // string | Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace.

try {
    $result = $apiInstance->getCatalogItem($asin, $marketplace_ids, $included_data, $locale);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->getCatalogItem: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **asin** | **string**| The Amazon Standard Identification Number (ASIN) of the item. |
 **marketplace_ids** | [**string[]**](../Model/string.md)| A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces. |
 **included_data** | [**string[]**](../Model/string.md)| A comma-delimited list of data sets to include in the response. Default: `summaries`. | [optional] [default to ["summaries"]]
 **locale** | **string**| Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. | [optional]

### Return type

[**\TNT\Amazon\CatalogItems\V20220401\Model\Item**](../Model/Item.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **searchCatalogItems**
> \TNT\Amazon\CatalogItems\V20220401\Model\ItemSearchResults searchCatalogItems($marketplace_ids, $identifiers, $identifiers_type, $included_data, $locale, $seller_id, $keywords, $brand_names, $classification_ids, $page_size, $page_token, $keywords_locale)

Search for and return a list of Amazon catalog items and associated information either by identifier or by keywords.  **Usage Plans:**  | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 5 |  The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may observe higher rate and burst values than those shown here. For more information, refer to the [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).

### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new TNT\Amazon\CatalogItems\V20220401\Api\CatalogApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$marketplace_ids = array("ATVPDKIKX0DER"); // string[] | A comma-delimited list of Amazon marketplace identifiers for the request.
$identifiers = array("shoes"); // string[] | A comma-delimited list of product identifiers to search the Amazon catalog for. **Note:** Cannot be used with `keywords`.
$identifiers_type = "ASIN"; // string | Type of product identifiers to search the Amazon catalog for. **Note:** Required when `identifiers` are provided.
$included_data = array("[\"summaries\"]"); // string[] | A comma-delimited list of data sets to include in the response. Default: `summaries`.
$locale = "en_US"; // string | Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace.
$seller_id = "seller_id_example"; // string | A selling partner identifier, such as a seller account or vendor code. **Note:** Required when `identifiersType` is `SKU`.
$keywords = array("shoes"); // string[] | A comma-delimited list of words to search the Amazon catalog for. **Note:** Cannot be used with `identifiers`.
$brand_names = array("Beautiful Boats"); // string[] | A comma-delimited list of brand names to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`.
$classification_ids = array("12345678"); // string[] | A comma-delimited list of classification identifiers to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`.
$page_size = 10; // int | Number of results to be returned per page.
$page_token = "sdlkj234lkj234lksjdflkjwdflkjsfdlkj234234234234"; // string | A token to fetch a certain page when there are multiple pages worth of results.
$keywords_locale = "en_US"; // string | The language of the keywords provided for `keywords`-based queries. Defaults to the primary locale of the marketplace. **Note:** Cannot be used with `identifiers`.

try {
    $result = $apiInstance->searchCatalogItems($marketplace_ids, $identifiers, $identifiers_type, $included_data, $locale, $seller_id, $keywords, $brand_names, $classification_ids, $page_size, $page_token, $keywords_locale);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->searchCatalogItems: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **marketplace_ids** | [**string[]**](../Model/string.md)| A comma-delimited list of Amazon marketplace identifiers for the request. |
 **identifiers** | [**string[]**](../Model/string.md)| A comma-delimited list of product identifiers to search the Amazon catalog for. **Note:** Cannot be used with `keywords`. | [optional]
 **identifiers_type** | **string**| Type of product identifiers to search the Amazon catalog for. **Note:** Required when `identifiers` are provided. | [optional]
 **included_data** | [**string[]**](../Model/string.md)| A comma-delimited list of data sets to include in the response. Default: `summaries`. | [optional] [default to ["summaries"]]
 **locale** | **string**| Locale for retrieving localized summaries. Defaults to the primary locale of the marketplace. | [optional]
 **seller_id** | **string**| A selling partner identifier, such as a seller account or vendor code. **Note:** Required when `identifiersType` is `SKU`. | [optional]
 **keywords** | [**string[]**](../Model/string.md)| A comma-delimited list of words to search the Amazon catalog for. **Note:** Cannot be used with `identifiers`. | [optional]
 **brand_names** | [**string[]**](../Model/string.md)| A comma-delimited list of brand names to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`. | [optional]
 **classification_ids** | [**string[]**](../Model/string.md)| A comma-delimited list of classification identifiers to limit the search for `keywords`-based queries. **Note:** Cannot be used with `identifiers`. | [optional]
 **page_size** | **int**| Number of results to be returned per page. | [optional] [default to 10]
 **page_token** | **string**| A token to fetch a certain page when there are multiple pages worth of results. | [optional]
 **keywords_locale** | **string**| The language of the keywords provided for `keywords`-based queries. Defaults to the primary locale of the marketplace. **Note:** Cannot be used with `identifiers`. | [optional]

### Return type

[**\TNT\Amazon\CatalogItems\V20220401\Model\ItemSearchResults**](../Model/ItemSearchResults.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)


text:
**TwitterBot**

*created Sept 4, 2015*

**Created by: Jason Lane, Tim Kellogg, Jing Wait, Tony Navarro**

*About This App*
~~~~
This app makes use of Twitter and Google's API. We've built this site with the
purpose of searching Twitter for data, displaying it, and searching within that
data.

This site comes with a built in example(?) with searching for the upcoming 2016
election. We got our bulk data from the two search queries, "election" and
"president". Then, within that data, we made a manual search (we search by
first name, last name, and both first and last) for each candidate using recent
polling data (4 democrats and 6 republicans) and saw who was talked about the
most in our batch twitter data.
~~~~

**How to use this app**

git clone from `https://github.com/timkellogg/twitterbot`
install the gems using bundle
start postgres in your CLI
create your database schema with the line rake db:setup
start the local server with the command shotgun
go to your browser `http://localhost:9393`
enjoy!

**Copyright**
The MIT License (MIT)

Copyright (c) 2015 Jason Lane, Tim Kellogg, Jing Wait, Tony Navarro

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

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

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

repository: Ligerlilly/twitterbot

repo_name: Ligerlilly/twitterbot


text:
# Contributing

You are here to help on BPMN Visualization JS? Awesome, feel welcome and read the following guidelines in order to know how to contribute, to ask questions and to make BPMN Visualization JS such a great tool.

All members of our community are expected to follow our [Code of Conduct](CODE_OF_CONDUCT.md). Please make sure you are welcoming and friendly in all of our spaces.

## Contributions

There are many ways to contribute:

- help people with the questions they ask on the [Github Issues](https://github.com/process-analytics/bpmn-visualization-js/issues )
- submitting bug reports and feature requests in the [Github Issues](https://github.com/process-analytics/bpmn-visualization-js/issues/new )
- [writing code](CONTRIBUTING.md#code-and-documentation-changes) which can be incorporated into BPMN Visualization JS itself
- [improving](CONTRIBUTING.md#code-and-documentation-changes) the documentation
- improve the existing example applications to demonstrate features in BPMN Visualization JS

## Code and documentation changes

For all contributions, please respect the following guidelines:

1. If you've noticed a bug or have a feature request, let us know in the [GitHub Issue tracker](https://github.com/process-analytics/bpmn-visualization-js/issues/new )! So we can confirm the bug or approve your feature, and provide feedback, before starting to code :slightly_smiling_face:

2. Do the changes in your own [fork](CONTRIBUTING.md#fork--create-a-branch) of the code

3. Do not commit changes to files that are irrelevant to your feature or bugfix (eg: `.gitignore`).

4. Provide [tests](CONTRIBUTING.md#running-tests) and documentation whenever possible.

5. Be sure you have followed the [code style](CONTRIBUTING.md#code-style) for the project.

6. Sign the [Contributor License Agreement](CONTRIBUTING.md#contributor-license-agreement)

7. Open a [GitHub Pull Request](CONTRIBUTING.md#open-a-pull-request) with your patches. (**1** pull request = **1** feature or bug)
   We will review your contribution and respond as quickly as possible. Keep in mind that this is an open source project, and it may take us some time to get back to you. Your patience is very much appreciated.

8. Be willing to accept criticism and work on improving your code.

**Working on your first Pull Request?** You can learn how from this *free* series [How to Contribute to an Open Source Project on  GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github)

### Fork & create a branch

[Fork BPMN Visualization JS](https://help.github.com/articles/fork-a-repo) and create a branch with a descriptive name.

A good branch name would be (where issue #25 is the ticket you're working on): **25_add-annotations-to-tasks**

```sh
git checkout -b 25_annotations-to-tasks
```

### Development

Note: information about the library internals are available in the [documentation site](https://process-analytics.github.io/bpmn-visualization-js/#_architecture_and_development)

#### Requirements

- `Node.js` >= 12.x (may work with older versions but without any guarantee)
- `Typescript` 3.x
- `Supported OS` (see the Github Build workflow for more details): Windows/Linux/MacOs

#### Build

- `npm install`           *Install the dependencies in the local node_modules folder*
- `npm run watch`         *Watch files in bundle and rebuild on changes* <br>
                          You can now access the project on http://localhost:10001

### Running tests

- `npm run test`        *Run all tests*
- `npm run coverage`    *Run all tests and the coverage*
- `npm run e2e`         *Run all end-to-end tests*. To see the web browser used by tests, disable the `headless` mode by
                        setting the `HEADLESS` environment variable to `false`.

### Code style

Your patch should follow the same conventions & pass the same code quality checks as the rest of the project.

Project, in major line, follows the code style suggested by [airbnb](https://github.com/airbnb/javascript) which is explicit and well documented.

Typescript have been chosen as it's strongly typed and we believe it adds some syntactical benefits to the JavaScript language
More information here:  [Typescript](CONTRIBUTING.md#typescript)

To enforce best practices we use ESLint and husky.
The later performs ```eslint --fix``` on pre-commit event to make sure that committed code meets standards.

ESLint configuration extends:
- plugin:@typescript-eslint/recommended
- prettier/@typescript-eslint
- plugin:prettier/recommended

### Building the html documentation

**DISCLAIMER**:
- the documentation sources are in the AsciiDoctor format and are hosted in the [docs](./docs) folder. The display
may not fully work (font-awesome icons and some links) depending on the rendering engine. This is the case when
displayed directly on GitHub Web.
- the generation currently relies on `Docker`. This will change in the future.

From the root folder of the repository, run
```bash
./docs/build-doc.bash
```

The documentation is generated in the `build/docs` folder.

### IDE - configuration

To fully benefit the ESLint and Jest testing frameworks, you must properly set up your IDE.

##### IntelliJ
*ESLint* (https://www.jetbrains.com/help/idea/eslint.html#)

Go to `File` -> `Settings` and type ESLint in search box

Enable ESLint by choosing `Automatic ESLint configuration`

If automatic configuration is not working for any reason try with `Manual ESLint configuration`, specify:
- ESLint package to point to `project\node_modules\eslint`
- Configuration file must point to `project\.eslintrc.js`

You also need to set up Coding Style rules

It is as simple as doing `right-click` on the file `.eslintrc.js` and choosing option `Apply ESLint Code Style Rules`

*Jest tests* (https://www.jetbrains.com/help/idea/running-unit-tests-on-jest.html)

To be able to run tests from IntelliJ, you must set up the default Jest template in `Run/Debug Configurations`

Adjust following parameters:
- Configuration files: it depends on the type of tests you want to run
  - unit tests: `<project_dir>/jest.config.unit.js`
  - end to end tests: `<project_dir>/jest.config.e2e.js`

*SonarLint*

Additionally, it is advised to install SonarLint Plugin

It helps to avoid coding mistakes -> reduced technical debt

### Sign the Contributor License Agreement

Please make sure you have signed our [Contributor License Agreement](). We are not asking you to assign copyright to us, but to give us the right to distribute your code without restriction. We ask this of all contributors in order to assure our users of the origin and continuing existence of the code. You only need to sign the CLA once.

 So your PR won't be merged until all tests pass.

### Keeping your Pull Request updated

If a maintainer asks you to [rebase](http://git-scm.com/book/en/Git-Branching-Rebasing) your PR, they're saying that a lot of code has changed, and that you need to update your branch so it's easier to merge.

 Feel free to ask for help. Everyone is a beginner at first :smile_cat:

### Typescript
Although Linting, Sonar and Tests keeps the code in a good shape
We strongly recommend you to read following resources to be able to write code that is conform to the best practices:
- [basics](https://www.typescriptlang.org/docs/handbook/basic-types.html)
- [do's and don'ts](https://www.typescriptlang.org/docs/handbook/declaration-files/do-s-and-don-ts.html)

## Maintainers

### Merging a PR (maintainers only)

A PR can only be merged into master by a maintainer, if all of these conditions are met:

* It is passing CI.
* It has been approved by at least two maintainers. If it was a maintainer who opened the PR, only one extra approval is needed.
* It has no requested changes.
* It is up to date with current master.

### Release (maintainers only)

Maintainers need to do the following to push out a release.

#### Issues and milestones update

Milestone names are based on version
- Clean the opened milestone if some issues are still opened (move them to a new one or discard milestone from them)
- Close the milestone
- Clean the [Day to Day Board](https://github.com/process-analytics/bpmn-visualization-js/projects/1): archive all cards
of the `Done` column related to the milestone

#### Git Tag

- Ensures you’re on master and don’t have local, un-commited changes: `git checkout master && git pull --tags`
- Bumps the version number in package.json based on major, minor or patch (see https://docs.npmjs.com/cli/version, type:
 [new-version | major | minor | patch]): `npm version [type] --message "[RELEASE] %s"`
- Push to GitHub: `git push && git push --tags`

#### GitHub update

- Ensure the latest closed milestone matches the name of the tag/version that has just been pushed
- Create a new GitHub release
  - Open [github releases](https://github.com/process-analytics/bpmn-visualization-js/releases)
  - Create a new release based on the newly created tags. Check `This is a pre-release`
  - In the description, at least add a link to the related milestone

repository: valdesfm/bpmn-visualization-js

repo_name: valdesfm/bpmn-visualization-js


text:
# Change Log
All notable changes to this project will be documented in this file.

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

## [Unreleased]
- See commit changelog

## [0.4.0] - 2018-02-18
### Added
- EIGRP chapter

## [0.3.4] - 2017-09-17
### Fix
- Cannot remember what was fixed

## [0.3.3] - 2017-09-15
### Fix
- Table 2: Spanning Tree standards

## [0.3.2] - 2017-09-10
### Added
- Initial BGP content considered done.

## [0.3.1] - 2017-07-19
### Removed
- Removed supervisor from front-page

## [0.3.0] - 2017-06-06
### Added
- DORA sentence to DCHP section
- More xkcd images to library, many yet to be used

### Changed
- Frontpage layout
- Removed all section.tex files and moved content into chapter segmented .tex files
- lst language=cisco: More keywords

### Fixed
- Removed -lw from all tags after git history rewrite was done to remove a pdf file
- Updated changelog with new tagnames

## [0.2.2] - 2017-06-05
### Added
- Section: NTP, SNTP
- Section: CDP
- Section: LLDP
- Section: UDLD

## [0.2.1] - 2017-06-01
### Added
- Section: RADIUS
- Section: TACACS+

## [0.2.0] - 2017-06-01
### Added
- Section: DHCP
- Section: Inter Vlan Routing

## [0.1.0] - 2017-05-30
### Added
- Initial version
- Section: Spanning Tree

[1.0.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.19.0...v1.0.0
[0.19.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.18.0...v0.19.0
[0.18.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.17.0...v0.18.0
[0.17.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.16.0...v0.17.0
[0.16.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.15.0...v0.16.0
[0.15.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.14.0...v0.15.0
[0.14.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.13.0...v0.14.0
[0.13.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.12.0...v0.13.0
[0.12.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.11.0...v0.12.0
[0.11.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.10.0...v0.11.0
[0.10.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.9.0...v0.10.0
[0.9.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.8.0...v0.9.0
[0.8.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.7.0...v0.8.0
[0.7.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.6.0...v0.7.0
[0.6.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.5.0...v0.6.0
[0.5.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.4.0...v0.5.0

[Unreleased]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.4.0...HEAD
[0.4.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.3.4...v0.4.0
[0.3.4]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.3.3...v0.3.4
[0.3.3]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.3.2...v0.3.3
[0.3.2]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.3.1...v0.3.2
[0.3.1]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.3.0...v0.3.1
[0.3.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.2.2...v0.3.0
[0.2.2]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.2.1...v0.2.2
[0.2.1]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.2.0...v0.2.1
[0.2.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/v0.1.0...v0.2.0
[0.1.0]: https://gitlab.com/netravnen/CiscoLabNotes/compare/2ca23b...v0.1.0

repository: netravnen/NetworkLabNotes

repo_name: netravnen/NetworkLabNotes


text:
# Configure HybridDB for MySQL Reader {#concept_bd5_szb_5fb .concept}

HybridDB for MySQL Reader can read tables and views. For table fields, you can specify all columns in sequence, specify certain columns, adjust the column order, specify constant fields, and configure HybridDB for MySQL functions such as now\(\).

HybridDB for MySQL Reader connects to a remote HybridDB for MySQL database through a JDBC connector, generates SELECT SQL statements based on your configuration, and sends the statements to the remote database. Then, HybridDB for MySQL Reader assembles SQL execution results into abstract datasets in custom data types of Data Integration, and passes the datasets to the downstream writer. At the same time, HybridDB for MySQL Reader runs a SELECT statement to read data from the HybridDB for MySQL database.

## Type conversion list {#section_s4y_fls_5fb .section}

HybridDB for MySQL Reader converts the data types in HybridDB for MySQL as follows:

|Type classification|HybridDB for MySQL data type|
|:------------------|:---------------------------|
|Integer|Int, Tinyint, Smallint, Mediumint, and Bigint|
|Float|Float, Double, and Decimal|
|String|Varchar, Char, Tinytext, Text, Mediumtext, and Longtext|
|Date and time|Date, Datetime, Timestamp, Time, and Year|
|Boolean|Bit and Boolean|
|Binary|Tinyblob, Mediumblob, Blob, Longblob, and Varbinary|

## Parameter description {#section_v33_lls_5fb .section}

|Attribute|Description|Required|Default value|
|:--------|:----------|:-------|-------------|
|datasource|The data source name. It must be identical to the data source name added. Adding data sources is supported in script mode.|Yes|None|
|table|The name of the source table. A Data Integration job can synchronize only one table.|Yes|None|
|column|An array of columns to be synchronized from the configured table, in JSON format. The default value is \[ \* \], which indicates all columns. -   Column pruning is supported, which means that you can select and export specific columns.
-   Change of column order is supported, which means that you can export the columns in an order different from the schema order of the table.
-   Constant configuration is supported. Constants must be configured by using the SQL syntax, for example,

    ``` {#codeblock_17h_ndp_05a}
["id","table","1","'mingya.wmy'","'null'","to_char(a+1)","2.3","true"]
    ```

    -   id: A common column name.
    -   table: A column name that contains a reserved word.
    -   1: An integer constant.
    -   'mingya.wmy': A string constant enclosed in single quotation marks.
    -   null: A null pointer.
    -   CHAR\_LENGTH\(s\): A function used to calculate the string length.
    -   2.3: A floating-point number.
    -   true: A Boolean value.
-   The column attribute must explicitly specify a set of columns to be synchronized. It cannot be left blank.

 |Yes|None|
|splitPk|The field used for data sharding when HybridDB for MySQL Reader extracts data. If you specify splitPk, Data Integration initiates concurrent tasks to synchronize data, which greatly improves the efficiency of data synchronization. -   We recommend that you set the splitPk attribute to the primary key of the table. Based on primary keys, data can be well distributed to different shards, but not intensively distributed to certain shards.
-   Currently, the splitPk attribute supports data sharding only for integers but not for other data types such as String, Float, and Date. If you specify an unsupported data type, Data Integration ignores the splitPk attribute and synchronizes data through a single task.
-   If you do not provide the splitPk attribute or leave it blank, Data Integration synchronizes the table data through a single task.

 |No|None|
|where|The filter condition. In actual business scenarios, the data on the current day is usually synchronized. In this case, you can set the where attribute to gmt\_create\>$bizdate. -   The where attribute can be used to synchronize incremental business data effectively. If the where attribute is not specified \(for example, the key or value of the where attribute is not provided\), full synchronization is performed.
-   You cannot set the where attribute to limit 10, which does not conform to the constraints of HybridDB for MySQL on the SQL WHERE clause.

 |No|None|
|querySql \(an advanced attribute, which is not available in wizard mode\)|The custom filter SQL statement used in some business scenarios where the filter condition specified by the where attribute is insufficient. After this attribute is set, Data Integration ignores the table, column, and splitPk attributes, but directly filters data based on this attribute. For example, to synchronize data after joining multiple tables, set the querySql attribute to`select a,b from table_a join table_b on table_a.id = table_b.id`. The priority of querySql is higher than those of table, column, where, and splitPk. When querySql is set, HybridDB for MySQL Reader directly ignores the configuration of the table, column, where, or splitPk attribute. The data source uses querySql to parse out information such as the username and password.|No|None|
|singleOrMulti \(applicable only to database and table sharding\)|Indicates whether to perform database and table sharding. When you switch from the wizard mode to script mode, the following configuration is automatically generated:`"singleOrMulti": "multi"`. However, the task script configuration template does not automatically generate this configuration. You need to add it manually. Otherwise, only the first data source is recognized. The singleOrMulti attribute is used only at the front end. The back end does not use this attribute to determine whether to perform database and table sharding.|Yes|multi|

## Development in wizard mode {#section_trc_5ls_5fb .section}

Configure the source and destination of data for a synchronization task.

![](http://static-aliyun-doc.oss-cn-hangzhou.aliyuncs.com/assets/img/62192/156635207332098_en-US.png)

|Parameter|Description|
|:--------|:----------|
|Data Source|The datasource attribute in the preceding parameter description. Select the data source that you have configured.|
|Table|The table attribute in the preceding parameter description. Select the source table.|
|Filter|The filter condition for the data to be synchronized. Currently, filtering based on the limit keyword is not supported. SQL syntaxes vary with data sources.|
|Shard Key|The shard key. You can use a column in the source table as the shard key. We recommend that you use the primary key or an indexed column. Only integer fields are supported. If data sharding is performed based on the configured shard key, data can be read concurrently to improve data synchronization efficiency. **Note:** The Shard Key parameter is displayed only when you configure the source of data for a synchronization task.

 |

Configure mappings of fields \(the column attribute in the preceding parameter description\).

Each source table field on the left maps a destination table field on the right. You can click Add to add a mapping or move the cursor over a line and click Delete to delete the current mapping.

![](http://static-aliyun-doc.oss-cn-hangzhou.aliyuncs.com/assets/img/62192/156635207332100_en-US.png)

|Parameter|Description|
|:--------|:----------|
|Map Fields with the Same Name|Click Map Fields with the Same Name to establish a mapping between fields with the same name. Note that the data type must be consistent.|
|Map Fields in the Same Line|Click Map Fields in the Same Line to establish a mapping for the same row. Note that the data type must be consistent.|
|Remove Mappings|Click Remove Mappings to remove mappings that have been established.|
|Auto Layout|The fields are automatically sorted based on specified rules.|
|Change Fields in Source Table|You can manually edit fields in the source table. Each field occupies a row. The first and the last blank rows are included, while other blank rows are ignored.|
|Add|Click Add to add a mapping. -   You can enter constants. Each constant must be enclosed in single quotation marks, such as 'abc' and '123'.
-   You can use scheduling parameters, such as $\{bizdate\}.
-   You can enter functions supported by relational databases, such as now\(\) and count\(1\).
-   If the value you entered cannot be parsed, the type is displayed as Unidentified.

 |

**Configure channel control**

![](http://static-aliyun-doc.oss-cn-hangzhou.aliyuncs.com/assets/img/62192/156635207332104_en-US.png)

|Parameter|Description|
|:--------|:----------|
|Concurrent Jobs|The maximum number of threads used to concurrently read data from the source or write data into the data storage media in a data synchronization task. In wizard mode, you can configure the concurrency for a task on the wizard page.|
|Dirty Data Records Allowed|The maximum number of errors or dirty data records allowed.|
|Task Resource Group|The machines on which tasks are run. If a large number of tasks are run on the default resource group, some tasks may be delayed due to insufficient resources. In this case, we recommend that you add a custom resource group. Currently, a custom resource group can be added only in China \(Hangzhou\) and China \(Shanghai\). For more information, see <xref\>.[Add task resources](reseller.en-US/User Guide/Data integration/Common configuration/Add task resources.md#)|

## Development in script mode {#section_pvs_k4s_5fb .section}

The following code is an example of configuration for a single table in one database. For more information about attributes, see the preceding parameter description.

``` {#codeblock_1ja_97l_uwp}
{
    "type": "job",
    "steps": [
        {
            "parameter": {
                "datasource": "px_aliyun_hymysql",// The data source name.
                "column": [// The source table columns.
                    "id",
                    "name",
                    "sex",
                    "salary",
                    "age",
                    "pt"
                ],
                "where": "id=10001",// The filter condition.
                "splitPk": "id",// The shard key.
                "table": "person"// The source table name.
            },
            "name": "Reader",
            "category": "reader"
        },
        {
            "parameter": {}
    ],
    "version": "2.0",// The version number.
    "order": {
        "hops": [
            {
                "from": "Reader",
                "to": "Writer"
            }
        ]
    },
    "setting": {
        "errorLimit": {// The maximum number of errors allowed.
            "record": ""
        },
        "speed": {
            "concurrent": 7,// The number of concurrent threads.
            "throttle": true,// Indicates whether to throttle the transmission rate.
            "mbps": 1,// The maximum transmission rate.
        }
    }
}
```

url: https://raw.githubusercontent.com/4613/ide/c0602a50700e13f26e12c05b36a3e9d933c0bafa/intl.en-US/User Guide/Data integration/Task configuration/Configure reader plug-in/Configure HybridDB for MySQL Reader.md

filename: Configure HybridDB for MySQL Reader.md


text:
I make no claim that mine is "better", but for my personal use cases, I find it easy to use.

The following is a list of ones that I have seen (and possibly borrowed some ideas) in no particular order:

* [PowerArgs](https://github.com/adamabdelhamed/PowerArgs) - handles `git` style using methods instead of classes
* [Args](https://github.com/little-sharps/args)
   * Uses an interface (`IHelpFormatter`) to allow replacement of default help formatting
   * Can provide lambda expression for type conversion
* [CmdLine](http://cmdline.codeplex.com/)
* [NDesk Options](http://ndesk.org/Options)
* [CommonLibrary.NET](http://commonlibrarynet.codeplex.com/) - a plethora of helpful classes, including an [argument parser](http://commonlibrarynet.codeplex.com/wikipage?title=Examples&referringTitle=Home&ANCHOR#Arguments).
* [BizArk](http://bizark.codeplex.com/) - another library of many things, including [command-line parsing](http://bizark.codeplex.com/wikipage?title=Command-line%20Parsing&referringTitle=Home)
* [Genghis](http://www.sellsbrothers.com/Posts/Details/12655) - another library of many things
* [C# Command-Line Option Parsing Library](http://sourceforge.net/projects/csharpoptparse/) ([homepage](http://csharpoptparse.sourceforge.net/)) - based on Perl GetOpt libraries
* [Nito.KitchenSink](http://nitokitchensink.codeplex.com/) (by Stephen Cleary) is a big library that include option parsing, including some support for subcommands. See this [SO answer](http://stackoverflow.com/a/6507934/282725).
* [CommandLineParser](http://commandline.codeplex.com/)
* [CommandLineArguments](http://commandlinearguments.codeplex.com/)
* [Fluent Command Line Parser](https://github.com/fclp/fluent-command-line-parser) (fclp) ([nuget](http://www.nuget.org/packages/FluentCommandLineParser/), [homepage](http://fclp.github.io/fluent-command-line-parser/))
* [Command Line Parser](https://github.com/gsscoder/commandline) by gsscoder ([nuget](http://www.nuget.org/packages/CommandLineParser/))
* [MGR.CommandLineParser](http://mgrcommandlineparser.codeplex.com/) ([nuget](http://www.nuget.org/packages/MGR.CommandLineParser/))
* [ICM.CommandLine](https://bitbucket.org/icalvo/icm.commandline) ([nuget](http://www.nuget.org/packages/Icm.CommandLine/))

# Other Languages #

## Java ##

* [args4j](http://args4j.kohsuke.org/), which has support for [subcommands](http://args4j.kohsuke.org/args4j/apidocs/org/kohsuke/args4j/spi/SubCommandHandler.html)

## C ##

* GNU docs on [program arguments](http://www.gnu.org/software/libc/manual/html_node/Program-Arguments.html#Program-Arguments)

# Articles and Other Stuff #

* [C# Command Line Arguments Parser](http://www.codeproject.com/Articles/3111/C-NET-Command-Line-Arguments-Parser) on CodeProject
* [Powerful and simple command line parsing in C#](http://www.codeproject.com/Articles/19869/Powerful-and-simple-command-line-parsing-in-C), also on CodeProject
* [Black Belt Coder](http://www.blackbeltcoder.com/Articles/strings/a-c-command-line-parser) blog post
* [An elegant command line options parser](http://s.codeproject.com/Tips/852826/An-elegant-command-line-options-parser), also on CodeProject
* [DotNetFollower](http://dotnetfollower.com/wordpress/2012/03/c-simple-command-line-arguments-parser/) blog post

repository: dswisher/yaclops

repo_name: dswisher/yaclops


text:
# Contributing

## New Package Checklist

The following steps are required when adding a new internal package:

1. Update [`tsconfig.paths`](./tsconfig.json) using the convention as you find it.
    - When referencing individual files across modules, make sure to use `@protium/new-module/lib` as opposed to `src`. This is so when the project is built to JavaScript, the Node module resolution algoritm kicks in and files are referenced correctly.

2. Update [`gitlab-ci.yml`](./gitlab-ci.yml) `cache.paths` to include the new module's `node_modules`.

repository: protium-cms/protium

gha_language: TypeScript

repo_name: protium-cms/protium


text:
---
title: Expanding on Flow visualization in Analysis Workspace
seo-title: Expanding on Flow visualization in Analysis Workspace - Adobe Analytics
description: This video shows the various right-click options available in the Flow visualization in Analysis Workspace. Options include creating a segment from a path, collapsing columns, and more.
seo-description: This video shows the various right-click options available in the Flow visualization in Analysis Workspace. Options include creating a segment from a path, collapsing columns, and more. - Adobe Analytics
feature: analysis workspace - analyzing customer journeys
topics:
audience: analyst, marketer
activity: use
doc-type: feature video
author: Doug Moore
team: Technical Marketing
kt: 2280
---

# Expanding on Flow visualization in Analysis Workspace {#expanding-on-flow-visualization-in-analysis-workspace}

This video shows the various right-click options available in the Flow visualization in Analysis Workspace. Options include creating a segment from a path, collapsing columns, and more.

>[!VIDEO](https://video.tv.adobe.com/v/24044/?quality=12)

For more information on this feature, visit the [documentation](https://marketing.adobe.com/resources/help/en_US/analytics/analysis-workspace/flow.html).

gha_license_id: NOASSERTION


text:
# mort
A dead code branch locator for Nim. This library will find places in your code that contain dead branches that are not executed at _runtime_. Nim already has dead code elimination at _compile time_ but this won't, for example, eliminate a dead branch on your if else statement, because that can only be determined at _run time_.

Say you have a Nim module like so:

```nim
proc notUsedProc() =
  echo "being optimized"

proc main() =
  let input = stdin.readLine()
  if input == "hello":
    echo "Hi!"
  else:
    echo "You're supposed to greet me"

main()
```

You can see by the above code that the `notUsedProc()` can be optimized away at compile time, but the if/else statement depends on user input and cannot be optimized away.

But maybe you have a bug in the `if input == "hello"` branch but that never gets called very often or at all. This library can tell you (based on runtime usage) whether or not your branches get called and let you know. This could be useful for **test coverage** for example.

## Usage

Simply use the `findDeadCode` macro on your code, shown below, then call either or both of `printCodeUsage` or `printDeadCode`. Or you can get the usage table itself to do with what you like via `getUsageTable`, which returns a `TableRef[string, TableRef[int, int]]` where the string is the filename and the inner table has key = lineNumber and value = timesCalled.

```nim
import mort

findDeadCode:
  # ... insert Nim code here
  discard

# OR

proc myNimProc() {.findDeadCode.} =
  # .. insert Nim code here
  discard

proc main() =
  # Call your proc/code that you want to be logged
  myNimProc()

  # then call ``printCodeUsage`` and/or ``printDeadCode``
  printCodeUsage()
  printDeadCode()

  # or get the information yourself:
  let usageTable: TableRef[string, TableRef[int, int]] = getUsageTable()
  # Do cool stuff, like get test coverage

main()
```

Then compile your code with the `-d:findDeadCode` compiler flag to enable finding dead code.

## Example usage

```bash
nim c -r -d:findDeadCode tests/testmort.nim
```

Output:

```
6: 2
8: 1
10: 20
11: 0
13: 4
18: 16
22: 2
25: 0

Dead code found in /Users/joey/Projects/mort/tests/testmort.nim
at line 11

Dead code found in /Users/joey/Projects/mort/tests/testmort.nim
at line 25
```

repository: jyapayne/mort

repo_name: jyapayne/mort


text:
# tap-emoji-diff

[![npm version](https://badge.fury.io/js/tap-emoji-diff.svg)](http://badge.fury.io/js/tap-emoji-diff)

My own version 🍺  of diff b/c I am 🙄  special 🚌  and can't work 👍  w/out emoji's
to keep me focused 👀.
* This is forked from [axross](https://github.com/axross/tap-diff) b/c I
  liked that reporter best

![Screenshot](screenshot1.png)

## How to use

* Works well on OSX, may break on other things.

You can use tap-diff in the same way as other [TAP reporters](https://github.com/substack/tape#pretty-reporters).

```
npm install -g tap-emoji-diff
```

```
tape ./*.test.js | tap-emoji-diff
```

tap-emoji-diff uses [chalk](https://www.npmjs.com/package/chalk) for adding color, which automatically detects
color terminals. If you're piping the output and want to force color:

```
FORCE_COLOR=t tape ./*.test.js | tap-emoji-diff
```

## License

MIT

repository: tapickell/tap-diff

gha_language: JavaScript

repo_name: tapickell/tap-diff


text:
# LIT: auto-generator for contrast set

This is the code for out EMNLP 2020 paper: Linguistically-Informed Transformations (LIT): A Method forAutomatically Generating Contrast Sets

## Citation

Coming soon

## Processed Dataset

* We released the [datasets](https://drive.google.com/drive/folders/1qkqOg1Lk9VcaI5l-l1d6RHE_CBCTXl-A?usp=sharing) used in our paper.
* We will also release the MRS parses with which people can transform sentences by their defined perturbation.

**Note:** This is **not** complete parallel datasets of the original SNLI and MNLI. There are some sentences missing because the parser sometimes can’t parse the representation. You might need to run your transformation on some missed out data.

## Environment setup

```
conda env create -f environment.yml
conda activate lit
```

## Structure of Repo

`transfer`: module that contain all functions we mentioned in our paper. Within it, :

* `README.md` gives a detailed documentation of current config of our parser.

* `transfer_example.py` is an illustrative example of how to use our parser.
* `transfer_snli_parallel.py` is the script we used (some local modification needs to be made) to parse SNLI in parallel. Parallel processing is **strongly encouraged**

`post-process`: after processing the dataset, you need some cleaning of the parsed dataset to put in the right form.

* `making_sense.py` contains choices of sentence selectors in scoring different generated surface sentences
*  `process.py` contains functions that:
  * select generated sentences
  * apply defined rules to generate contrast set


text:
# TraceLog
Lightweight Logging/Tracing utility with various output Backends

## Features
- easy integration
- various output Backends:
 - file
 - console
 - UDP Server
- thread-safe implementation
- C printf-like syntax
- no dynamic memory allocation
- negligible performance impact
- asynchronous to the caller thread
- milliseconds based timestamping
- single macro to disable all TraceLog calls in production
- ready for custom output Backend
- assertion mechanism with file name and line number
- buffering in case of slow Backend or high load
- command-line UDP client and file viewer available, check: [TraceLogViewer][11]
- Java-based graphical interface UDP log-viewer available soon

## Building project
### Dependencies
- Requires the [ESys][10] framework installed.
For details refer to ESys instructions.
- Requires the [CMake][20] installed. Minimum version required is 3.0.0.

### Building

In the project root directory execute the shell script configure.sh with root
privileges, if you intend to install the binary output and headers:
```
sudo ./configure.sh
```
This script will create a new output directory, named *build*,
to enable an _out-of-place_ build.

Two static libraries are created: *libtl.a* and *libtlcommon.a*.

- **libtlcommon** contains code for handling the LogEntry objects (serialize and
	deserialize)
- **libtl** contains the logger implementation, including all standard
BackEnds

If you choose to install the project, then the binaries, headers and example code will
be copied to default directory, which, on Linux systems is normally _/usr/local/_.

|Location|Content|
|---|---|
|/usr/local/bin|demo executables|
|/usr/local/lib|libraries|
|/usr/local/include/TraceLog|headers|

## Usage
### Integration into user code
All Tracelog operations are done using the macro statements.

#### Enabling and disabling the logger
The TraceLog is, by default, disabled. The statements produce no code.

To enable the logger a special macro has to be defined. It is preferred to use
the global macro definitions, i.e. using compiler directives (-D).
```
-DTRACELOG_ENABLE
```
Disabling the 'TRACELOG_ENABLE' macro will cause _no logger-call code_ being
compiled and all macros will have no effect.

#### Required headers
Only one header file has to be included. It contains all required TraceLog
definitions and macros.
```cpp
#include "trace/log.h"
```
#### Selecting a Backend
Before TraceLog can be used a Backend has to be selected. Backend is responsible
for storing or printing of the messages.

A Backend selection is possible **only** before first message was logged.

There are 3 available Backends: console, file and UDP server. A Backend can be
selected using one of the macros:

|Backend|Macro|Description|
|---|---|---|
|Console|LOGGER_INIT_BE_CONSOLE|Standard output, all messages are written to the console|
|File|LOGGER_INIT_BE_FILE|Output messages to a file|
|UDP|LOGGER_INIT_BE_UDP|Output messages using lightweight UDP Server|
|Default|LOGGER_INIT_BE_DEFAULT|Default Backend: same as console|

```cpp
/* Set the UDP Server as a backend */
LOGGER_INIT_BE_UDP();

/* This message will be sent using UDP */
LOG_INFO_C( "Using UDP Backend" );

/* Shutdown the logger. No more messages will be accepted.
 * This call is not obligatory, as the logger will shut down on process exit.
 */
LOGGER_SHUTDOWN();

/* This message will not be logged! */
LOG_WARN_C( "Oops! This one does not work!" );
```

#### Logging a message
 For every log
severity level there is a separate macro:
```cpp
LOG_INFO_C( "Information" );
LOG_DEBUG_C( "Debug: auxiliary development information" );
LOG_WARN_C( "Warning: a handled exception" );
LOG_ERR_C( "Error: unhandled exception" );
```
C printf-like syntax with multiple arguments is supported:
```cpp
LOG_ERR_C( "Error id %d:, reason: %s", errorId, errorReason );
```
Beside the standard messages the TraceLog supports also Assertions.
#### Assertions
Assertions are statements, that are always expected to be true.

TraceLog provides a LOG_ASSERT macro to log a failed statement and execute an
assertion handler.

By default the assertion handler will stop the program execution.
```cpp
// This shall never return a 0!
const int32_t div = calculateDivisor();
LOG_ASSERT( div != 0, "Divisor calculation" );
const int32_t result = 50/div;
```

### Linking
Link your binaries with the *tracelog* and *esys* static libraries.

**Remark**: For the posix builds you have to link the executable with the *-pthread* flag.
```
g++ example/main.o -llibtl -lesys -pthread -o log-demo
```

## Todo
- file i/o-error handling
- custom assertion handler

Copyright © 2016 [Przemysław Podwapiński][98].

Distributed under the [Simplified BSD License][99].

[10]:https://github.com/kotfranek/ESys
[11]:https://github.com/kotfranek/TraceLogViewer
[20]:https://cmake.org/
<EMAIL_ADDRESS>[99]:https://www.freebsd.org/copyright/freebsd-license.html

repository: kotfranek/TraceLog

repo_name: kotfranek/TraceLog


text:
# AtariAI_Gym_PONG
This is an AI project that uses Reinforcement Learning and a Neural network to maximize score in an Atari Game called Pong

![Alt Text](./img/Gif.gif)

## Requirements:

To run the project you must meet this requirements:
(The following requirements are the ones used to build this project, but newer or older versions might work..)

*A virtual environment creation is suggested to avoid corrupting another versions of librarys that might be installed*

```
Tensorflow 2.2.0
numpy==1.19.3
```

Also you can install these using the command

```
pip install -r requirements.txt
```

You will need Python 3.8

### Instructions

To run the project you may use the following command (That will start to train the AI to play pong from scratch)

```
python main.py
```

You may use the following commands with arguments to:

Start from the last checkpoint trained and not to start over from the beggining:
```
python main.py --load_checkpoint
```

View the Ai render while the process is working:
```
python main.py --render
```

If both are required you can add the arguments next to each other:
```
python main.py --load_checkpoint --render
```

## References

* [Gym] (https://gym.openai.com/docs)
* [Gym Pong] (https://gym.openai.com/envs/Pong-v0)
* [Original Pong Project] (https://github.com/mrahtz/tensorflow-rl-pong)

## Credits

* **Elizabeth Gandara** - *Project recomendation, tecnhical and emotional support* - [eildgc](https://github.com/eildgc)
* **Hiram Hernandez** - *Tutoring and technical support* - [TacoPlox](https://github.com/TacoPlox)


text:
+++
title = "Looking for lost to follow-up patients: experiences of Segou (Mali)"
date = 2008-08-04T14:24:19-08:00  # Schedule page publish date.
draft = false

# Talk start and end times.
#   End time can optionally be hidden by prefixing the line with `#`.
time_start = 2008-08-04T14:24:19-08:00
time_end = 2008-08-04T14:24:19-08:00

# Abstract and optional shortened version.
abstract = ""
abstract_short = ""

# Name of event and optional event URL.
event = "XVIIth International AIDS Conference"
event_url = ""

# Location of event.
location = "Mexico City"

# Is this a selected talk? (true/false)
selected = false

# Talk Type
talks_types =  ["1"]
authors = ["G. Lurton", "A. Akondé", "Y. Madec", "P. Teisseire", "T. Traore", "B. Touré", "D. Cissé", "C. Koumaré", "C. Pizzocolo", "L. Pizarro", "C. Katlama", "Segou Medical Technical Committee"]

# Projects (optional).
#   Associate this talk with one or more of your projects.
#   Simply enter the filename (excluding '.md') of your project file in `content/project/`.
#   E.g. `projects = ["deep-learning"]` references `content/project/deep-learning.md`.
projects = []

# Tags (optional).
#   Set `tags = []` for no tags, or use the form `tags = ["A Tag", "Another Tag"]` for one or more tags.
tags = ["hiv","mali","lost to follow-up"]

# Links (optional).
url_pdf = "https://solthis.org/wp-content/uploads/2015/10/36.-Looking-for-lost-to-follow-up-patients.pdf"
url_slides = ""
url_video = ""
url_code = ""

# Does the content use math formatting?
math = false

# Does the content use source code highlighting?
highlight = true

# Featured image
# Place your image in the `static/img/` folder and reference its filename below, e.g. `image = "example.jpg"`.
[header]
image = ""
caption = ""

+++


text:
# Querystring parsing

React-router-component, as of 0.28.0, understands querystrings.

Querystrings are not matched as part of a route. It is not possible to switch routes
based on a querystring.

The route `/foo/:bar` will match both `/foo/biff` and `/foo/baz?biff=baz&num=1`.

For example:

    var CreateReactClass = require('create-react-class');
    var PropTypes = require('prop-types');

    var App = CreateReactClass({

      render: function() {
        return (<Locations path={this.props.path)}
              onBeforeNavigation={this.showProgressBar}
              onNavigation={this.hideProgressBar}>
            <Location path="/foo/:bar" handler={QueryPage} />
          </Locations>
        );
      }
    });

    var QueryPage = CreateReactClass({
      propTypes: {
        bar: propTypes.string,
        _query: propTypes.object
      },

      render: function() {
        return (

            Hello, this is main page of the application!
            This component was passed the values:
            Bar: {this.props.bar}
            Query: {JSON.stringify(this.props._query)}

        )
      }
    })

    React.render(<App path="/foo/bar?baz=biff&num=1&react=isAwesome" />);

repository: STRML/react-router-component

repo_name: STRML/react-router-component


text:
# [SAP Conversation AI](https://recast.ai/)

SAP Conversational AI is A collaborative end-to-end bot platform for developers, covering the end-to-end bot development to deployment.

* [Train](https://recast.ai/docs/concepts/train-your-bot): Train your bots to understand the human language.
* [Build](https://recast.ai/docs/concepts/build-your-conversation): Build a conversation flow for the bot.
* Code: Program a Webhook action with your preferred language to fulfil the request, which can perform external API call. The action is triggered by a bot skill when its trigger conditions are met. Recast.AI calls your API at the URL specified in the bot settings, at the endpoint specified in the action itself.
* Connect: Connect your bot to multile channels(WebChat, Facebook Messenger, Line, Slack, Alexa etc)
* Monitor: Monitor the NLP status for incoming queries, get insights on its usage, and re-train it to make it sharper,

Userful resources:
* [Concept](https://recast.ai/docs/concepts/create-builder-bot): Please read this to understand the concepts of Intent, Expression, Entity, Sentiment etc.
* [Tutorials & Samples](https://recast.ai/blog/category/tutorial/):
    * Get started with [Build your first bot with Recast.AI](https://recast.ai/blog/build-your-first-bot-with-recast-ai/) to understand the procedure of creating a bot with SAP Conversational AI
    * [SAP SMB Recast Bot](https://github.com/B1SA/smb-recast-bot):

This is a sample virtual assistant serving the executive about the executive-level analytics question through conversation, powered by [SAP Conversational AI](https://recast.ai/)(formerly as recast.ai) for SAP Business One and SAP Business ByDesign systems.
* [API References](https://recast.ai/docs/api-reference/)

repository: martinambition/hackathon

repo_name: martinambition/hackathon


text:
# brennovich dotfiles

My full configuration from development environment to desktop.

## Features

- Awesome, dry and performant nvim configuration
- Comprehensive Bash config
- Well integrated TMUX
- Consistent colorscheme across applications with [Base16](http://chriskempson.github.io/base16/)
- Fuzzy finder wide available with [Selecta](https://github.com/garybernhardt/selecta)

## Instalation

```shell
git clone --recursive git://github.com/brennovich/dotfiles.git
cd dotfiles
./install
```

_Note: it isn't installing desktop environment related dependencies yet_

## Scripts

#### `colorscheme`

Set a Base16 variation in both vim and shell:

```sh
# background[dark,light] variation
coloscheme light default
coloscheme light eighties
```

Take a look into available variations: http://chriskempson.github.io/base16/

#### `disable-dpms-on-fullscreen-window`

Very handful script to avoid display sleep when any fullscreen window is open, it is automatically started
by `i3` via `exec_always` instruction in `i3/config`

#### `mpd-notify`

Displays dunst notification about current song being played

## Desktop Environment

Very ViM like, any possible applications is configured to work always with your hands on the keyboard, from
the window manager itself to the browser.

![My desktop](http://i.imgur.com/OUTue95.png)

### Window manager: [i3-gaps](https://github.com/Airblader/i3)

Mod key is `super` (a.k.a Command, or Super depending on your keyboard)

- Gaps control mode `mod + g` then `+` and `-` increase and decrease **gaps**
- System control mode `mod + Shift + e` (you can logout, reboot, etc)
- Resize mode `mod + r` then ViM directional to resize current focused window
- Move workspace mode `mod + Shift + w` then ViM directional to move workspace to the output in the respective direction
- Top bar info: [i3blocks](https://github.com/vivien/i3blocks)
- Screen locker: [i3lock](https://github.com/i3/i3lock). It's super nice:

![Screen locker](http://i.imgur.com/GTanbsy.png)

### Theme

- Typeface: [Fira](https://www.mozilla.org/en-US/styleguide/products/firefox-os/typeface/)
- Composite manager: [compton](https://github.com/chjj/compton/)

### Applications

- Launcher: [rofi](https://davedavenport.github.io/rofi/)

![Rofi](http://i.imgur.com/PQtBEQQ.png)

- Notification daemon: [dunst](http://www.knopwob.org/dunst/)
- Music player: [mpd](http://www.musicpd.org/) + [ncmpcpp](http://ncmpcpp.rybczak.net/)

## Roadmap

- Make `colorscheme` works across desktop environment using whiskers

repository: SKARABI/dotfiles

repo_name: SKARABI/dotfiles


text:
# TPK4128 Industrial Mechatronics

Introduction to Python programming for the course TPK4128 Industrial Mechatronics at the Department of Mechanical and Industrial Engineering, NTNU, Norwegian University of Science and Technology

## Basics

- Start the Python interpreter
- Arithmetic operators
- Variables and assignment
- Integers and floats
- Booleans, comparison operators, and logical operators
- String
- Type and type conversion
- String methods and formatting
- Data structures
    - Lists
    - Tuples
    - Set
    - Dictionaries and identity operators
    - Compound data structures

## Control flow

- If, elif, and else
- Indentation, white space, and best practices
- Complex boolean expressions
- For loops (definite iteration)
- While loops (indefinite iterations)
- Break and continue
- Zip and enumerate
- List comprehension

## Functions

- Function definition, body, arguments, and return value(s)
- Variable scope (local and global)
- Documentation
- Lambda expressions
- Iterators and generators (lazy evaluation)

## Classes

- Object oriented programming
- Objects and methods
- Constructors
- Inheritance
- Composition

## Exercise: Building a webcam server using OpenCV and Python

The task is to build a Python module that implements a socket server that fetches images from a webcam and sends it over a TCP/IP or UDP socket when it gets a request from a client.

1) Install Ubuntu in a virtual machine, e.g., VirtualBox.
2) Mount the the integrated webcam into the Ubuntu VM.
    1) Make sure the virtual machine is not running and your webcam is not being used.
    2) Bring up the main VBox window and in the details tab for your virtual machine click USB.
    3) Make sure "Enable USB Controller" is selected. Also make sure that "Enable USB 2.0 (EHCI) Controller" is selected too.
    4) Click the "Add filter from device" button (the cable with the '+' icon).
    5) Select your device from the list.
    6) Now click OK and start your VM.
3) Open a terminal and execute the command `ls /dev`. You should now see `video0` in the output. Note that you might need to add the camera manually from the top menu: Devices > Webcams > NameOfYourCamera
4) Install opencv: `pip install opencv-python`
5) Implement the `Camera` class in the file `camera_opencv.py`. See https://docs.opencv.org/3.4/dd/d43/tutorial_py_video_display.html for a tutorial on how to open a video stream from a webcam.
6) Implement the `run_client_opencv.py` script, that sends a message over `localhost` to a server implemented in the `run_server_opencv.py` script.
7) Open a new terminal and execute the `run_server_opencv.py` script.
8) Open a new terminal and execute the `run_client_opencv.py` script. You should now see a live stream from your webcam.
9) If time permits, work together in pairs and try to get the above system to work between two remote machines.

Tip: For an interactive introduction to python, follow the exercises on http://learnpython.org/


text:
---
title: Warm Winter Day
date: 2018-01-19 00:34:00 -06:00
categories:
- Photography
custom_type: post
featured_image: "/uploads/2018/01/matthew-featured-image.jpg"
---

I took some pictures of my cousin today. It was a gorgeous 40º, which is much warmer than when we left on vacation just a week ago.

I took these at around sunset, so the light was perfect.

**Camera:** Canon EOS T7i
**Lens:** Sigma 18-35mm ƒ/1.8

<figure class="reg">
  {% include_cached img.html src="/2018/01/02-matt.jpg" alt="Matthew looking cold" %}
</figure>

<figure class="reg">
  {% include_cached img.html src="/2018/01/01-matt.jpg" %}
</figure>

<figure class="reg">
  {% include_cached img.html src="/2018/01/03-matt.jpg" %}
</figure>

repository: tiepz-studio/magazine

repo_name: tiepz-studio/magazine


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

### Description

Lost and Found Information System v1.0 was discovered to contain a SQL injection vulnerability via the component /php-lfis/admin/?page=system_info/contact_information.

### POC

#### Reference
- http://packetstormsecurity.com/files/173331/Lost-And-Found-Information-System-1.0-SQL-Injection.html

#### Github
- https://github.com/Acous7icwav3/CVE-2023-33592
- https://github.com/nomi-sec/PoC-in-GitHub

repository: trickest/cve

repo_name: trickest/cve


text:
meteor-jsdoc
=========================

Automated JSDoc generation for Meteor projects with a Meteor server to output the docs.

## ChangeLog

### 0.6.0

- Improved preamble handling. A separate markdown file is now used.
- Enhanced the build process to make the preamble handling smoother.
- Improved design for preamble.

### 0.5.2

- Added preamble support.

### 0.5.1

- Added jsdoc errors & warnings logging support.
- Updated build scripts to match Meteor's.

### 0.5.0

- Switched to development version of jsdoc to provide ES6 support until officially released.

### 0.4.2

- Remove new line special character in `which node` output.

### 0.4.1

- `nodePath` config default is now empty (`which node` is used if not specified).
- Improved some config checks.

### 0.4.0

- `nodePath` is now retrieved automatically if not specified (using `which node`).
- Updated dependencies.

### 0.3.2

- `jsdoc-conf.json` file is now copied in your project to allow you to customize options passed to jsdoc.

### 0.3.1

- `projectPath` is now retrieved automatically. It can safely be removed from the `jsdoc.json` file.
- Cleaned up some old code.

### 0.3.0

- `jsdocPath` is now retrieved automatically. It can safely be removed from the `jsdoc.json` file.

### 0.2.5

- Errors are now properly displayed in terminal.
- Fix to allow meteor-jsdoc to work when used in a non-git folder.

repository: siboyapati/meteor-jsdoc

repo_name: siboyapati/meteor-jsdoc


text:
# Other

How to do other things that don't fall into specific categories.

## Basics

Printing something out in java we use `System.out.println(string1)`

Commented code is never executed by the computer. To comment something out, use:
- Comment line use `//` before the line
- Or `/*` and `*/` to comment out a block of code

```java
package lt.vcs;

public class TestOther {
    public static void main(String[] args) {

        // Comments are not executed by the computer

        System.out.println("Hello world");
    }
}
```

To read something from the user, we use `Scanner` class. First we need to create
the scanner to be able to use it. To do it
- We can create a local scanner `Scanner scanner = new Scanner(System.in);` that will me used **inside** the `main(){ // code }` method
- Or we can declare it for all the methods in the class by using `public static Scanner scanner = new Scanner(System.in);` **outside** the `main()`

```java
package lt.vcs;

import java.util.Scanner;

public class TestOther2 {
    public static Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {
        int inputVariable = scanner.nextInt();

        // Printing output
        System.out.println("User has entered: " + inputVariable);
    }
}
```

## Reading from file

```java
package lt.vcs;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class SimpleRead {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("names.txt"));
        try {
            String line = br.readLine();
            while (line != null) {
                if (line.length() > 0) {
                    System.out.println("Line from file: " + line);
                }
                line = br.readLine();
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            br.close();
        }
    }
}
```

## Unit testing

```java
import static org.junit.jupiter.api.Assertions.assertEquals;

import org.junit.jupiter.api.Test;

public class MyTests {

    @Test
    public void multiplicationOfZeroIntegersShouldReturnZero() {
        MyClass tester = new MyClass(); // MyClass is tested

        // assert statements
        assertEquals("10 x 0 must be 0", 0, tester.multiply(10, 0));
        assertEquals("0 x 10 must be 0", 0, tester.multiply(0, 10));
        assertEquals("0 x 0 must be 0", 0, tester.multiply(0, 0));
    }
}
```

## Exceptions

- Checked exceptions
- Unchecked exceptions

- Try executing code with *might-be* exception

```java
import java.io.*;

public class ExcepTest {

   public static void main(String args[]) {
      try {
         int a[] = new int[2];
         System.out.println("Access element three :" + a[3]);
      } catch(ArrayIndexOutOfBoundsException e) {
         System.out.println("Exception thrown  :" + e);
      }
   }
}
```

- Delegate catching

```java
import java.io.*;
public class className {

   public void deposit(double amount) throws RemoteException {
      // Method implementation
      throw new RemoteException();
   }
   // Remainder of class definition
}
```

- Finally

```java
try {
   // Protected code
} catch(ExceptionType1 e1) {
   // Catch block
} catch(ExceptionType2 e2) {
   // Catch block
} catch(ExceptionType3 e3) {
   // Catch block
} finally {
   // The finally block always executes.
}
```

repository: marius-m/j-trainer

repo_name: marius-m/j-trainer


text:
---
layout: post
title: "Debeasy - read .deb file metadata in Ruby"
date: 2013-09-07 20:12
comments: true
categories:
---

As part of a script to manage apt-repos at $dayjob, I realised it would be nice to have a way to read
Debian package file metadata from the file without having to parse the output of `dpkg` and friends.

Enter [Debeasy](https://github.com/andytinycat/debeasy).

It's a very simple gem to extract package metadata. You can also find it on [Rubygems](https://rubygems.org/gems/debeasy).

extension: markdown


text:
# My Reading Hub
![](./client/src/assets/images/bookshelf.png)

A web app that allows users to create reading plans for themselves and to keep track of theior reading by updating their plans each day.

## Project Status
21/07/2021 - Version 1 Deployed on Heroku.

## Installation and Setup
This module is distributed via [npm][npm] which is bundled with [node][node] and
should be installed as one of your project's `dependencies`.

To run, you will also need to install the following dependencies in the root folder:

- axios
- bcryptjs
- body-parser
- cors
- dotenv
- express
- googleapis
- jsonwebtoken
- nodemailer
- pg

The client folder also has the following depedencies:
- axios
- react
- redux
- redux-persist

The database is written in postgresql.

## Design

Wireframing via 'Miro'.  The following sets out the basic design to be used in the app.

![](./readmeScreenshots/landing.png)
![](./readmeScreenshots/account.png)
![](./readmeScreenshots/cover.png)
![](./readmeScreenshots/current.png)
![](./readmeScreenshots/newBook.png)
![](./readmeScreenshots/update.png)

## Database

The database can be viewed at: https://dbdiagram.io/d/60dc8165dd6a59714826bde4

Below is a copy of the database tables:

![Screenshot 2021-07-21 at 11 09 31](https://user-images.githubusercontent.com/77008736/126472299-04c42d9f-f968-45bf-a051-029b1516c1a6.png)

## Functionality

Users can:

- Create an account by registering.  Users will then be sent a verification link to verify their email address
- Find books via Google Books or enter them manually.  After which they can generate a reading plan for their selected book based on a number of parameters
- Update their progress each day and can amend their plan manually
- Recalculate plans based on current progress
- Change passwords and email address
- Delete individual or all plans
- Delete account

## Licence

MIT

repository: lwlsimm/my-reading-hub

repo_name: lwlsimm/my-reading-hub


text:
Playbook that populates remediation objectives field that is used to display the remediation actions to the end user.

## Dependencies

This playbook uses the following sub-playbooks, integrations, and scripts.

### Sub-playbooks

This playbook does not use any sub-playbooks.

### Integrations

This playbook does not use any integrations.

### Scripts

* GridFieldSetup
* Set

### Commands

This playbook does not use any commands.

## Playbook Inputs

---
There are no inputs for this playbook.

## Playbook Outputs

---
There are no outputs for this playbook.

## Playbook Image

---

![Cortex ASM - Remediation Objectives](../doc_files/Cortex_ASM_-_Remediation_Objectives.png)

repository: demisto/content

repo_name: demisto/content