text:
# Generate test data

Execute the following steps to generate test data that will be ingested by AWS IoT Greengrass, written to IoT Core, and then sent to AWS IoT Analytics and visualized by Amazon QuickSight:

Make sure you have the CloudFormation outputs handy. You'll need these IPs for multiple provisioning steps.
1. [Login to the Windows server via RDP](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/connecting_to_windows_instance.html). Connect using the `WindowsIoTPublicIp` CloudFormation output, and use the keypair you created earlier to decrypt the Windows administrator password.
1. Map a network drive on the Windows server to the samba share running on the Linux server:
    - Click the Start button and open a new PowerShell ISE window.

        ![Powershell ISE](img/40-powershell-ise.png)
    - Expand the script pane.

        ![Show script pane](img/41-show-script-pane.png)
    - Paste the following commands into the script pane of the ISE window, replacing `<private-ip>` with the `GreengrassPrivateIP` CloudFormation output you wrote down earlier. Run the commands by clicking the green play button.
        ```powershell
        $user = "iot"
        $password = ConvertTo-SecureString -String "iotaccess" -AsPlainText -Force
        $credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $user, $password
        New-PSDrive –Name "Z" –PSProvider FileSystem –Root "\\<private-ip>\iotshare" -Credential $credential –Persist
        ```

        ![Map network drive](img/42-map-network-drive.png)
        > NOTE: Use a more secure authentication method for your file shares in a real production environment.

1. Create the test data:
    - Open a new ISE tab by clicking the new file icon.

        ![New ISE tab](img/43-new-ise-tab.png)
    - Paste the following commands into the new tab and click run them by clicking the green play button.
        ```powershell
        New-Item -ItemType Directory -Force -Path 'C:\temp'

        Write-Host
        @"
        `$file_path` = 'z:\iotdata.csv'

        New-Item -ItemType Directory -Force -Path C:\temp

        if (-NOT (test-path `$file_path`)) {
            echo "id,location,temperature,time,humidity,weight,size,fatcontent,density,defects,plant,belt,station,employee,rating" >> `$file_path`
        } else {
            return
        }

        function buildString() {
            `$sizes` = "small","medium","large"
            `$levels` = "low","medium","high"
            `$employees` = "101245","208673"

            `$newString` = ''
            `$newString` += (get-random -Maximum 999999 -Minimum 100000) # id
            `$newString` += ","
            `$newString` += "arkansas," # Location
            `$newString` += (get-random -Maximum 75 -Minimum 50) # Temperature
            `$newString` += ","
            `$newString` += (Get-Date -Format "MM/dd/yyyy-HH:mm:ss") # Timestamp
            `$newString` += ","
            `$newString` += (get-random -Maximum 50 -Minimum 30) # Humidity
            `$newString` += ","
            `$newString` += (get-random -Maximum 40 -Minimum 5) # Weight
            `$newString` += ","
            `$newString` += (get-random -InputObject `$sizes`) # Size
            `$newString` += ","
            `$newString` += (get-random -InputObject `$levels`) # Fat content
            `$newString` += ","
            `$newString` += (get-random -InputObject `$levels`) # Density
            `$newString` += ","
            `$newString` += (get-random -Maximum 5 -Minimum 0) # defects
            `$newString` += ","
            `$newString` += "plant1," # Plant
            `$newString` += "4," # Belt
            `$newString` += "2," # Station
            `$newString` += (get-random -InputObject `$employees`) # Employee
            `$newString` += ","
            `$newString` += (get-random -Maximum 9 -Minimum 0) # Rating

            return `$newString`
        }

        for (`$i`=0;`$i` -lt 10;`$i`++) {
            buildString >> `$file_path`
            Start-Sleep -Seconds 1
        }

        C:\temp\set_eol.ps1 -lineEnding unix -file `$file_path`
        "@ > C:\temp\generate-iot-data.ps1

        Write-Host
        @"
        [CmdletBinding()]
        Param(
        [Parameter(Mandatory=`$True`,Position=1)]
            [ValidateSet("mac","unix","win")]
            [string]`$lineEnding`,
        [Parameter(Mandatory=`$True`)]
            [string]`$file`
        )

        # Convert the friendly name into a PowerShell EOL character
        Switch (`$lineEnding`) {
        "mac"  { `$eol`="``r" }
        "unix" { `$eol`="``n" }
        "win"  { `$eol`="``r``n" }
        }

        # Replace CR+LF with LF
        `$text` = [IO.File]::ReadAllText(`$file`) -replace "``r``n", "``n"
        [IO.File]::WriteAllText(`$file`, `$text`)

        # Replace CR with LF
        `$text` = [IO.File]::ReadAllText(`$file`) -replace "``r", "``n"
        [IO.File]::WriteAllText(`$file`, `$text`)

        #  At this point all line-endings should be LF.

        # Replace LF with intended EOL char
        if (`$eol` -ne "``n") {
        `$text` = [IO.File]::ReadAllText(`$file`) -replace "``n", `$eol`
        [IO.File]::WriteAllText(`$file`, `$text`)
        }
        Echo "   ** Completed **"

        # Source: https://ss64.com/ps/syntax-set-eol.html
        "@ > C:\temp\set_eol.ps1

        Write-Host
        @"
        while (1 -eq 1) {
            powershell -File C:\temp\generate-iot-data.ps1
            Start-Sleep -Seconds 30
        }
        "@ > C:\temp\run.ps1
        ```
    - Open a Windows Explorer window and navigate to `C:\temp` to validate that the previous commands created three PowerShell scripts. We'll use these to generate test data.

        ![Powershell scripts](img/44-ps1-scripts.png)
    - Return to the PowerShell ISE window and open the `C:\temp\run.ps1` file. Run it by clicking the green play button.
        > This script will loop indefinitely, creating sample data and writing it to the samba share until you stop it. It will generate a new flat file (.csv) every 30 seconds in the `iotshare` samba share you mapped to the `Z:\` drive earlier.

        ![Run loop](img/45-run-ps1.png)
1. Verify data is being written to the file share:
    - You can verify that the file is being written to the share by returning to your ssh session connected to the Greengrass Linux server and running the following command:
        ```bash
        cat /samba/iot/iotdata.csv
        ```

        ![Test data on share](img/46-test-data-on-share.png)

        > You may have to run this a few times to see the file contents because it is continually being written by the Windows server and then processed and deleted by the Lambda function. The Lambda function parses the data in the .csv file, converts it to JSON, and writes the data into an MQTT topic that is picked up by AWS IoT.
    - You can also watch the file in Windows Explorer to see it continually written then processed and deleted.


text:
---
layout: page
title: Resources
order: 3
---

# Cultural Evolution

Biocultural Diversity & Conservation Research Group at Colorado State University (Website / Twitter / Facebook)

Draws on theory and methods from geography, anthropology, ecology, evolutionary biology, and economics to examine biocultural approaches to conservation, as well as the geography and evolution of cultural diversity.

excd.lab at the University of Bristol (Website / Twitter)

Investigates how the startling (yet not infinite!) variety in human culture has evolved.

Max Planck Institute for the Science of Human History

Exploring the history of humanity using the state-of-the-art analytical and genetic methods.

Cultural Evolution Society

A professional scientific society that advances the theory and practice of cultural evolutionary studies.

Social Evolution Forum

Brings evolutionary experts together, resulting in a new agenda for basic scientific research, policy formulation, and policy implementation.

# Science

Radiolab

A radio show and podcast weaving stories and science into sound and music-rich documentaries.

What If?

Serious scientific answers to absurd hypothetical questions.

# Data Science

GAUSSI Program at Colorado State University

An interdisciplinary training program preparing Colorado State University researchers to generate and analyze large biological datasets.

Open-Source Data Science Masters

The open-source curriculum for learning data science. Foundational in both theory and technologies, breaks down the core competencies necessary to making use of data.

Free Data Science Books

Top recommendations of quality data science books that are either available for free or pay what you want, by Quora data scientist William Chen.

Partially Derivative

A podcast about the data of everything.

# Data Science for Social Good

Data for Democracy

Collaborating on data projects to build a stronger society.

Data Science for Social Good Fellowship

Training data scientists to tackle problems that really matter.

DataKind

Brings together top data scientists with leading social change organizations to collaborate on cutting-edge analytics and advanced algorithms to maximize social impact.

DrivenData

Hosts data science competitions to save the world, bringing cutting-edge predictive models to organizations tackling the world's toughest problems.

Bayes Impact

Non-profit that builds operational solutions to the world's biggest challenges using data science.

# Statistics

FiveThirtyEight

Uses statistical analysis — hard numbers — to tell compelling stories about elections, politics, sports, science, economics and lifestyle.

Seeing Theory

A visual introduction to probability and statistics.

Nature Web Collection: Statistics for Biologists

Highlights important statistical issues that biologists should be aware of and provides practical advice to help them improve the rigor of their work.

Simply Statistics

Three biostatistics professors who are fired up about the new era where data are abundant and statisticians are scientists.

# R

n(R) 592

My R course for graduate-level students. First taught Spring 2019 for the College of Natural Resources at Colorado State University.

Learning Statistics with R

An online textbook by Danielle Navarro that covers the contents of an introductory statistics class focusing on the use of the R statistical software.

swirl

Teaches you R programming and data science interactively, at your own pace, and right in the R console.

RStudio Cheat Sheets

Make it easy to learn about and use some favorite packages.

# Python

Codecademy Python

Learn to program in Python.

Google's Python Class

A free class for people with a little bit of programming experience who want to learn Python.

# Data Visualization & Design

99% Invisible

A show about all the thought that goes into the things we don’t think about — the unnoticed architecture and design that shape our world.

Paul Tol's Color Schemes

Ready-made color schemes for each type of scientific data as a function of the number of colors needed, with colors that are distinct for all readers including people with color blindness.

license: MIT

branch_name: refs/heads/master

extension: md

license_type: permissive


text:
# WS-DD (or just WSD - Web Services Discovery)

## Port: 3702

## Proto: UDP

## Amplification factor: 30-150x (vague depending on SOAP WSDL in use)

## Reflector count: ~422,000 (Nov 2019)

---

### Malformed requests

- Broken XML or simply a well formed request that is not in the scope of the SOAP WSDL

### Well-formed requests

- https://docs.microsoft.com/en-us/windows/win32/wsdapi/probematches-message

### Documentation

- http://specs.xmlsoap.org/ws/2005/04/discovery/ws-discovery.pdf
- https://docs.microsoft.com/en-us/sql/relational-databases/xml/requirements-and-limitations-for-xml-schema-collections-on-the-server?view=sql-server-2017
- http://schemas.xmlsoap.org/ws/2006/02/devprof/devicesprofile.xsd
- http://specs.xmlsoap.org/ws/2006/02/devprof/devicesprofile.pdf

repository: Phenomite/AMP-Research

path: /Port 3702 - WSD/README.md

gha_language: C

gha_license_id: MIT

repo_name: Phenomite/AMP-Research


text:
What does it take to do data science in this day and age? I'm rusty, and this is going to be my blog to polish up my understanding.

The heart of data science certainly hasn't changed
* Find Data
* Clean Data
* Analyze to Find Insights
* Write about those insights

## 8/8/17

* TODO: resample takes '5Min' in this example: https://pandas.pydata.org/pandas-docs/stable/timeseries.html#up-sampling but I can find
  no documentation that explains what's possible. Can I do a decade for instance? 10A works

## 8/7/17

* Learned today that Pandas supports rich Period math

## 8/5/17

* The World Bank is easily accessible from Python. Someone's done all the work already. Does it make sense that we should have to pull it into Scala? Hypothesis: Let's truly, natively support polyglot.

## 8/4/17

Re-envisioning the pipeline.

1. I need a space to find & investigate data. As a starting point, use pandas + wbdata + notebook from previous exploration. This lets me find individual indicators. 03_DataPipeline.
2. Now, I want an isolation layer between my work environment and outside sources, so I need a way to register indicators into my own space. Started creating 'domain' in lib to represent this. Very much a placeholder. Need to talk about, for instance, row level security, and how these are propagated into different languages.
3. For lightweight manipulation in scala, I found Framian https://github.com/tixxit/framian/wiki/Framian-Guide. We can look at spark, but I'd like something lighterweight for now while just messing around. [Quick introduction (and other comparisons here)](https://darrenjw.wordpress.com/tag/framian/)
4. Framian didn't really go anywhere. Turned to spark, and it's up and running. I had to compile the Country case class outside of the notebook, so that it was an outer class. Took a long while to figure out how to add the cwd to the classpath. Took longer to realize I'd compiled Country.scala against the wrong version of scala. It needed to be 2.11 to match jupyter-scala's spark.
5. List of spark's operations on RDD's: https://spark.apache.org/docs/latest/rdd-programming-guide.html#transformations

## 7/9/17
For today's exercise, finding some interesting data. Little bit of googling around took me to this page: https://www.dataquest.io/blog/free-datasets-for-projects/ and, mostly at random, decided to look into the World Bank (#12)

The World Bank has a detailed API, and Oliver Sherouse has been kind enough to write a Python wrapper around it. http://wbdata.readthedocs.io/en/latest/

* note that wbdata.get_indicator? in a notebook, is massively powerful. Drastically changes my workflow. (Admittedly more when you're getting to know a new library)

Separately, I'm going to start this little static, markdown based blog. Rendering pipeline for that.

repository: jaety/ds-doodles

repo_name: jaety/ds-doodles


text:
# mathecamp-games

## What is it about?

This is a wrapper for executing games in batch in order to simplify testing and execution of contests between AIs for some generic game.
It is intended to be used in the Mathecamp 2017 of the Matheschülerzirkel Augsburg.
The AIs are written by the participants and this tool is used in between sessions to compare the AIs against each other.

## Features

* Executes games which can be run by a shell command needing at least four arguments, namely the names of the two players as well as the two locations for the AI files of each of the teams
* Ranks the participants according to [Trueskill](http://trueskill.org/)
* Allows for teams of players with different skills writing an AI together and compete as a team
* Persistence in a SQLite3 database

## How to use it?

### Prerequisites

* Python 3
* SQLite 3
* Trueskill

### Execution

* Clone the repository
* Set the variables correctly, at the moment within the file `start-game.py`
* Run `python3 start-game.py`

## TODOs

* Incorporate team contests
* Add support for leagues/contests
* Use CLI arguments for configuration
* Add visualization tools
* Write documentation
* Write schema for database
* Add GUI
* Add reasonable way to add, delete or update players (At the moment this can be only done in the SQLite database directly.)

## How to contribute?

Send me an email if you want to help or do a Pull Request.

repository: svenpruefer/mathecamp-games

repo_name: svenpruefer/mathecamp-games


text:
---
layout: post
title:  "[原创]DB2 v10.5 C2090-311认证"
categories: DB2
tags:  DB2 认证
---

* content
{:toc}

DB2 v10.5 C2090-311认证大纲内容和笔记

考试只有30题，题量不多

#### DB2 v10.5 C2090-311认证大纲

Test C2090-311: IBM DB2 10.5 DBA for LUW Upgrade from DB2 10.1 [C2090-311](http://www-03.ibm.com/certify/tests/objC2090-311.shtml)

IBM Certified Database Administrator - DB2 10.5 DBA for LUW Upgrade from DB2 10.1

![C2090-311-Path]({{ "/css/pics/DB2/C2090-311-Path.png"}})

---

#### Section 1 - DB2 Server Management (17%)

Demonstrate the ability to configure DB2 workload for analytics system

DB2_WORKLOAD=ANALYTICS

DB CFG DFT_TABLE_ORG COLUMN

DB CFG DATABASE PAGE SIZE = 32K

DB CFG DFT_DEGREE=ANY

DB CFG DFT_EXTENT_SZ=4

Importance of UTIL_HEAP_SZ CFG for COLUMN ORGANIZED tables load

Demonstrate the ability to use autonomic features in DB2 10.5 BLU Acceleration

AUTO_RUNSTATS is not supported for COLUM ORGANIZED tables

Automatic Space Reclaims in BLU acceleration tables

Demonstrate knowledge of Data Studio 4.1

Demonstrate the ability to use Automated workload management when workload set to ANALYTICS

#### Section 2 - Physical Design (37%)

Demonstrate the ability to understand industry leading DB2 10.5 BLU Acceleration 7 big ideas

Simple to Impement and Use - No Indexes, No MDC, No MQT, No Partitioning, No Statistical Views

Friendly Huffman encoding - More frequent the values, the fewer bits in dictionary and packed registers. Performing most operations on encoded values.

Usage of SIMD Instruction Sets

Maximize CPU cache

Column Store - Minimal IO / Work performed directly on columns / Improved memory density / Cache efficiency

Memory Caching Facility - Leave the interesting data instead of traditional LRU or MRU algorithms

Data Skipping through SYNOPSIS Tables

Demonstrate the ability to understand and implement compression features

Table Compression - Data Compression / Value Compression / Adaptive Compression / COLUMN ORGANIZED table compression

Database backup compression

Demonstrate the ability to use expression based indexes and the statistics on those expression based indexes

Using RUNSTATS

Using Statistics Profiles

Automatic Statistics Collection

Knowledge of Oracle Migration and Compatibility Features in DB2 10.5

Demonstrate the ability to use Information Uniqueness Constraints

Knowledge of SQL compatibility enhancements

Extended row size support

Exclude null keys support

#### Section 3 - Monitoring DB2 Activity (17%)

Demonstrate the ability to use new monitor elements

Demonstrate the ability to use new monitor elements to monitor dynamic prefetch requests for data in column-oriented tables.

Demonstrate the ability to use new new monitor elements to measure column data size.

Demonstrate the ability to use new monitor elements to measure time spent in Columnar Data Engine (CDE)

Demonstrate knowledge of the new EXPLAIN enhancements Knowledge of SQL compatibility enhancements

Demonstrate the ability to understand new CTQ (Column Table Queue) Operator in the explain

Knowledge of new monitoring function - MON_GET_ROUTINE

Demonstrate knowledge of HADR monitoring enhancements

HEARTBEAT_MISSED

HEARTBEAT_EXPECTED

STANDBY_SPOOL_PERCENT

STANDBY_ERROR_TIME

#### Section 4 - High Availability (17%)

Knowledge of enhancements to pureScale

Understand the ability to use Online REORG in pureScale

Knowledge of replay member in pureScale standby cluster

Knowledge of HADR setup in a pureScale cluster environment

Demonstrate the ability to undestand Rolling Fix Pack Updates in pureScale

Demonstrate the ability to undestand STMM Multi-Tenancy Feature in pureScale

Demonstrate the ability to understand Explicit Hierarchical Locking Multi-Tenancy in pureScale system

Knowledge of DB2 Advanced Copy Services customized scripts

#### Section 5 - Utilities (13%)

Demonstrate the ability to use IBM Optim Query Workload Tuner

The Workload Table Organization Advisor

Support for comparing access plans before and after

Access Plan Explorer and in access plan graphs for the new CTQ operator

Demonstrate the ability to use DB2 10.5 Utilities

db2convert

LOAD Command - Additional ANALYZE phase for COLUMN ORGANIZED tables

Default AUTOMATIC STATISTICS COLLECTION in LOAD command for COLUMN ORGANIZED tables

---

> 练习题如下：

[C2090-311](http://www.aiotestking.com/ibm/category/exam-c2090-311-ibm-db2-10-5-dba-for-luw-upgrade-from-db2-10-1/)

#### Tips:

1.Query Workload Tuner license 安装和激活有效：

通过：

DataStudio, license activation kit

参考：

Installing Data Studio and the license activation kit for IBM InfoSphere Optim Query Workload Tuner through a wizard

http://www.ibm.com/support/knowledgecenter/SS7LB8_3.1.1/com.ibm.datatools.qrytune.installconfig.doc/topics/ioqwt311bothwiz.html?cp=SS7LB8_3.1.1&lang=en

A license activation kit for InfoSphere Optim Query Workload Tuner, Version 4.1.1
    This kit allows you to activate the full set of features for tuning query workloads and single SQL statements. This activation is required once only. One person installs the license activation kit together with the Data Studio client, Version 4.1.1.

http://www.ibm.com/support/knowledgecenter/SS7L9Q_4.1.1/com.ibm.datatools.qrytune.installconfig.doc/topics/ioqwt411_top.html?cp=SS7L9Q_4.1.1&lang=en

2.

3.EXTENDED_ROW_SZ 设置：默认设置

创表超过4k大小的表 4k的pagesize之后容许overflow后找不到8k pagesize会报错。

	[db2inst1@oc0644314035 ~]$ db2 connect to my_db

	   Database Connection Information

	 Database server        = DB2/LINUXX8664 10.5.5
	 SQL authorization ID   = DB2INST1
	 Local database alias   = MY_DB

	[db2inst1@oc0644314035 ~]$ db2 get db cfg | grep -i extended_row_sz
	 Extended row size support             (EXTENDED_ROW_SZ) = ENABLE
	[db2inst1@oc0644314035 ~]$ db2 "create table tab_a(col1 int not null, col2 varchar(5000)) organize by (col1)"
	DB20000I  The SQL command completed successfully.
	[db2inst1@oc0644314035 ~]$ db2 "create table tab_b(col1 int not null,col2 varchar(5000))"
	DB20000I  The SQL command completed successfully.
	[db2inst1@oc0644314035 ~]$ db2 "create table tab_c(col1 int not null,col2 varchar(5000)) organize by key sequence (col1 starting from 1 ending at 100000) allow overflow"
	DB21034E  The command was processed as an SQL statement because it was not a
	valid Command Line Processor command.  During SQL processing it returned:
	SQL0286N  A table space could not be found with a page size of at least "8192"
	that authorization ID "DB2INST1" is authorized to use.  SQLSTATE=42727
	[db2inst1@oc0644314035 ~]$ db2 "create table tab_d(col1 int not null,col2 varchar(5000)) partition by range(co1) (starting 0 exclusive ending 10 inclusive)"
	DB21034E  The command was processed as an SQL statement because it was not a
	valid Command Line Processor command.  During SQL processing it returned:
	SQL8027N  The table partitioning feature is being used without a DB2
	Enterprise Server Edition license.  DB2 has detected that the table
	partitioning feature is being used without a DB2 Enterprise Server Edition
	license.  Ensure that you have purchased a valid DB2 Enterprise Server Edition
	entitlement from your IBM representative or authorized dealer and have updated
	your license using the db2licm command.
	[db2inst1@oc0644314035 ~]$

9.column-orgnized talbe压缩：

Actionable compression

10.column-organized的限制：

[Queries using the RR or RS isolation level are not supported with column-organized tables.](http://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.admin.dbobj.doc/doc/c0061528.html?lang=en)

Currently Committed可以使用

11.POOL_FAILED_ASYNC_TEMP_COL_REQS

[POOL_FAILED_ASYNC_TEMP_COL_REQS](http://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.admin.mon.doc/doc/r0060870.html?lang=en)

The number of times an attempt to queue a column-organized prefetch request for temporary table spaces was made but failed.

One possible reason is the prefetch queue is full and a request could not be obtained from the free list.

尝试让临时表空间的列组织预取请求排队但失败的次数。一个可能原因是预取队列已满并且未能从空闲列表获取请求。

注： 在 DB2® V10.5 中，由于 列组织 临时表当前不受支持，因而此元素返回 0。

12.rolling FixPack update for DB2 pureScale

[db2iupdt -commit_level](http://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.admin.cmd.doc/doc/r0002060.html?cp=SSEPGG_10.5.0%2F3-6-2-6-73&lang=en)

db2iupdt -commit_level

	-commit_level
		Commits the pureScale instance to a new level of code. This parameter is mandatory in DB2 pureScale environments.

	-update
		This parameter is used to update the interconnect netnames used by the CF or member. To update the netname of a member or CF, the instance can be running but the specific target member or specific target CF must be stopped. The db2iupdt -update command must be run from the target CF or target member.

13.DB2 Advanced Copy Services(ACS) scripts用于：

To perform snapshot backup and restore operations on storage devices that do not have a DB2 ACS API vendor library.

http://www-01.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.admin.ha.doc/doc/c0061163.html?lang=zh

14.HADR for DB2 v10.5 pureScale

同步模式都不行，支持ASYNC/SUPERASYNC

The HADR synchronization modes SYNC and NEARSYNC are not supported. You must specify either the ASYNC or SUPERASYNC option for the hadr_syncmode configuration parameter.

15.EHL for DB2 v10.5 pureScale

显式分层锁定

缺省情况下，未在 DB2 pureScale 环境中启用 EHL。但是，可通过使用 opt_direct_wrkld 数据库配置参数来启用或禁用 EHL。

四种状态：NOT_SHARED / DIRECTED_ACCESS   SHARED/FULLY SHARED

不适用于 系统目录表：通常不在成员之间共享的表，例如，临时表

EHL is designed to improve DB2 pureScale performance by avoiding CF communications for tables that are accessed from only one member.

16.column-organized table 执行会fail的动作

Setting the AUTO_RUNSTATS database configuration parameter to ON

17.expression-based indexes true的：

基于表达式的索引

http://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.admin.dbobj.doc/doc/c0061101.html?lang=en

简单的索引键由一连串一个或多个指定表列组成。与简单的索引相比，基于表达式的索引的索引键值与表列中的值不相同。会按您指定的表达式转换这些值。

18.which type of database are column-organized tables supported

C. Databases whose code set is Unicode.

19.基于表达式的索引的runstats

http://www-01.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.admin.perf.doc/doc/c0061106.html?lang=en

20.列组织表的Space reclamation

 All rows in the extent where the update took place must be deleted before any space reclamation can occur.
http://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.admin.perf.doc/doc/c0061069.html?lang=en

After all rows in an extent where updates took place have been deleted.

21.列组织表执行计划的获取：

http://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.admin.perf.doc/doc/r0061828.html?lang=en

1.Set the EXPLAIN mode on by using the CURRENT EXPLAIN MODE special register as follows:

	db2 SET CURRENT EXPLAIN MODE YES

2.Issue your query against column-organized tables.

3.Issue the db2exfmt command to format the contents of the explain tables and obtain the access plan. The following example shows you how to use this command against the SAMPLE database:

	db2exfmt -d sample -1 -o output.exfmt

22.pureScale STMM

DB2 pureScale now allows per-member STMM tuning

INSTANCE_MEMORY DBM parm - per member setting

STMM does not control CF memory

STMM can manage same member memory pools as with DB2 ESE

Prior to DB2 10.5
	– One member (known as the tuning member) monitors member STMM memory
	configuration and propagates real-time changes to all other members
	– When the tuning member is specified as -1, the tuning member is randomly
	selected every time the database is activated
	– If the member on which the tuner is running deactivates, the tuner will
	automatically start on another member
	– In order for a member to run the tuner, the database must be active on that
	member and that member must have self_tuning_mem set to ON

DB2 10.5

	– STMM can tune every member independently
	– Default setting

23.

section_exec_with_col_references -“具有按列组织的引用的节执行”监视元素

http://www-01.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.sql.rtn.doc/doc/r0053945.html?lang=zh

http://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.admin.mon.doc/doc/r0060865.html?lang=zh

24.staticstics use profile / Load

http://www-01.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.sql.rtn.doc/doc/r0023577.html?lang=en

STATISTICS USE PROFILE
    Instructs load to collect statistics during the load according to the profile defined for this table. This is the default for column-organized tables. The profile must be created before issuing the LOAD command. The profile is created by the RUNSTATS command. For row-organized tables, if the profile does not exist and this parameter is specified, a warning is returned and no statistics are collected. For column-organized tables, if the profile does not exist and this parameter is specified, the load utility uses the same default RUNSTATS command options as those that are used during an automatic runstats operation.

    During load, distribution statistics are not collected for columns of type XML.

25.DB2_COMPATIBILITY_VECTOR

DB2 环境以便启用 Oracle 应用程序
http://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.apdv.porting.doc/doc/t0054729.html?lang=zh

DB2_COMPATIBILITY_VECTOR
http://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.apdv.porting.doc/doc/r0052867.html?lang=zh-cn

26. HADR for pureScale的switch
什么情况下可以takeover：

You can only perform a role switch between the primary and standby databases if the databases are in one of the following states (for DB2® pureScale® environments, if every stream meets one of these conditions):

    peer state
    remote catchup state, when the synchronization mode is SUPERASYNC
    assisted remote catchup state (DB2 pureScale environments only)

    对等状态
    同步方式为 SUPERASYNC 时的远程同步复制状态
    受助远程同步复制状态（仅限 DB2 pureScale 环境）

27.

什么表可以通过db2convert来转换为 column-organized 表

http://www-01.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.admin.cmd.doc/doc/r0060728.html?cp=SSEPGG_10.5.0%2F3-6-2-6-36&lang=en

You cannot convert the following table types into column-organized tables:

Range clustered tables

Typed tables

Materialized query tables

Declared global temporary tables

Created global temporary tables

Important: Range partitioned tables, MDC tables, and ITC tables are not converted by default. To convert these table types, use the -force option.

	-force

	Specifies that all table types are to be converted, including range partitioned tables, multidimensional clustering (MDC) tables, and insert time clustering (ITC) tables.

db2convert - Convert row-organized tables into column-organized tables

Converts one or all row-organized user tables in a specified database into column-organized tables. The row-organized tables remain online during command processing. For monitoring purposes, the command displays statistics about the conversion.

28.关于NOT ENFORCED unique constraints的描述：

29.DB2 Storage Optimization Feature的压缩type：

http://www-01.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.licensing.doc/doc/r0053238.html?lang=en

backup compression for all db2 edition

http://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.admin.dbobj.doc/doc/c0059054.html?lang=en

30.intraquery parallelism:

http://www-01.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.admin.dbobj.doc/doc/t0061529.html?lang=en

All DML operations that reference column-organized tables

The ALTER TABLE ADD UNIQUE / PRIMARY KEY CONSTRAINT statement against a column-organized table if rows were inserted into the table

The RUNSTATS command against a column-organized table

The LOAD command against a column-organized table

空表加primary key约束就不需要

------------------------------- EOF -------------------------------

gha_language: JavaScript


text:
# Welcome to shopify-app-bridge-sampler 👋
![Version](https://img.shields.io/badge/version-0.0.1-blue.svg?cacheSeconds=2592000)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](#)

> Sampler of Shopify App Bridge

You can see behaviors of Shopify App Bridge features.

- TitleBar
- ContextualSaveBar
- ResourcePicker
- Features
- Loading
- Modal
- Toast

![](https://user-images.githubusercontent.com/189824/88084556-8fcd2600-cbbf-11ea-9e89-41588ad2ae15.gif)

### 🏠 [Homepage](https://github.com/huckleberry-inc/shopify-app-bridge-sampler)

## Install

```sh
yarn install
```

## Usage

```sh
yarn run start
```

## Run tests

```sh
yarn run test
```

## Author

👤 **Huckleberry, inc<EMAIL_ADDRESS>

## 🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check [issues page](https://github.com/huckleberry-inc/shopify-app-bridge-sampler/issues).

## Show your support

Give a ⭐ if this project helped you!

***
_This README was generated with ❤ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_

repository: amir-dropit/shopify-app-bridge-sampler

repo_name: amir-dropit/shopify-app-bridge-sampler


text:
# server-client-encryption
Vanilla implementation of RSA Encryption in Client Server model in C++

## Features
1. The client is the sender of the secret message and server receives and decrypts the message.
2. The Encryption key length can be set in the server execution.
3. Used a open source library for Big Integers in C++.
4. Primes are randomely generated and tested using Miller-Rabin Primality test.
5. Public Key and Modulus is shared with the Client

## Usage
1. Clone the master git repository:
`git clone --recursive https://github.com/iamarshsingh/server-client-encryption`

2. Navigate to src directory and execute the makefile:
`./make`

3. Now using make file, produce binary files:
`./make/server`,
`./make/client`

4. Firstly execute:
`./server`
and then enter the desired encryption key primes length.

5. Open a second terminal in the same directory and execute:
`./client`

repository: iamarshsingh/server-client-encryption

repo_name: iamarshsingh/server-client-encryption


text:
---
description: Checks if given user ID is muted. Returns true/false
---

# $isMuted

This function checks if the given user ID is muted. Returns boolean

```javascript
$isMuted[userID]
```

```javascript
bot.command({
name: "isMuted",
code: `Is Muted: $isMuted[535566311942651924]`
})
```

repository: bubblejoey/documentation

repo_name: bubblejoey/documentation


text:
# Abort all running jobs in a DSS project

## Questions
* I want to abort all running jobs of a specific DSS project.

## Answers
This is possible by listing all running jobs of a project and loop over them to apply the [`abort()`](https://doc.dataiku.com/dss/latest/python-api/jobs.html#dataikuapi.dss.job.DSSJob.abort) method of the DSS public API.

repository: dataiku/dss-code-samples

gha_language: Python

repo_name: dataiku/dss-code-samples


text:
Zomby

  We. Love. Brains!

  A Ruby Project for the Zombie lovers

  The little project that could. Built with ❤ by
  Codevski and

    contributors

## Table of Contents
- [Table of Contents](#Table-of-Contents)
- [Feature](#Feature)
- [Install](#Install)
- [License](#License)

## Feature
- __Load Data from File:__ Loading board layout from txt file
- __Movements & Points System:__ Set movements in your file and see if you can set a high record!
- __RSpec:__ Using RSpec for unit testing

## Install
Before you begin; install the dependencies by running `bundle`.
Once the dependencies have been installed you'll have a few commands available:

- `bundle exec rake`  : Will attempt to run your application and print output to the terminal.
- `bundle exec rspec` : Runs the test suite.

## License
[MIT](https://github.com/codevski/zomby/blob/master/LICENSE.md)

repository: codevski/Zomby

repo_name: codevski/Zomby


text:
# Airwaves
Open source game for the [itch.io Open Jam](https://itch.io/jam/open-jam-2020).

Use your mouse to control a traveling radio wave, and try not to get corrupted!

You can change waveform with left or right click, and you will only take damage from waves that are
the same waveform as you.

## Open source tools
This game and the engine it's built on were created using the following open source libraries:
- [GLFW](https://github.com/glfw/glfw) (Window management, input handling)
- [glad](https://github.com/Dav1dde/glad) (OpenGL header)
- [glm](https://github.com/g-truc/glm) (Math)
- [PortAudio](https://app.assembla.com/spaces/portaudio/git/source) (Audio)
- [stb_image](https://github.com/nothings/stb) (Texture loading)

In addition, the textures were created in [GIMP](https://gitlab.gnome.org/GNOME/gimp/)

## Compiling
GLFW and PortAudio will need to be compiled into static libraries first. In addition, you will need to acquire
a [glad.c](https://glad.dav1d.de/) file for your desired version of OpenGL. Everything else is a matter of including the right folder.

license: Unlicense


text:
---
layout: content
title: "Addy"
description: "Wiki page of addy-org/Addy project"
permalink: /addy/
---

[![Build Status](https://travis-ci.org/addy-org/Addy-React-Native.svg?branch=master)](https://travis-ci.org/addy-org/Addy-React-Native)
[![Join the chat at https://gitter.im/addy-org/Lobby](https://badges.gitter.im/addy-org/Lobby.svg)](https://gitter.im/addy-org/?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Addy is a web app that enhances the addressing system of the world. Instead of remembering long addresses, Addy generates a unique 7-digit code based on the latitudinal and longitudinal coordinates of any position. The code is so accurate that every building in the world has been assigned a different 'Addy' with a minimum distance of 11.132 meters.

![Landing Page](https://raw.githubusercontent.com/addy-org/Addy/master/readme_assets/home.png)

## Tech Stack for this project
- HTML5
- CSS3
- JavaScript
- BootStrap 3
- Google Maps Places API
- Google Maps Geocoder API Used

## Gitter channel link
<https://gitter.im/addy-org>

## Contribution Guidelines
<https://addy.wiki/contribution-guidelines>

## Getting Started with Contributing:
<https://addy.wiki/newcomers-guide>

repository: addy-org/Wiki

gha_language: CSS

repo_name: addy-org/Wiki


text:
---
layout: post
title: "The Quantum Computing event: D-Wave will be hosting its annual Qubits Worldwide Users Conference virtually from Oct 5-7."
modified:
categories: opportunities
excerpt:
tags: [learning]
image:
feature:
author: annabelle
---

**Qubits is an excellent opportunity to connect with other innovators involved in quantum computing! There is no cost to attend.**

**Qubits 2021 will feature:**

Speakers presenting their latest work on quantum applications in manufacturing and logistics, financial services, biotech and pharma, energy, materials science, machine learning, and much more. Confirmed speakers include experts from Mastercard, E.ON, GlaxoSmithKline, GE, Volkswagen, Menten AI, Accenture, NEC, Multiverse Computing, and many more.
Educational sessions and tutorials for developers with all levels of quantum experience, from those who are new to quantum to those with advanced knowledge.
D-Wave speakers discussing our quantum roadmap and the latest development tools.

**Conference Overview:**

**Oct 5, Quantum for Business:** D-Wave technology updates, user talks on their application work in finance, energy, life sciences, manufacturing / logistics, and retail.
**Oct 5, Evening: Japan conference**
**Oct 6, Developer / Researchers program:** Quantum research, software development tools, benchmarking, developer panel discussions
**Oct 7, Quantum Programming Tutorials:** Introduction to quantum programming

RSVP [here](https://www.eventbrite.ca/e/qubits-2021-tickets-165962677837?utm_source=linkedin).


text:
# Commands

The dashboard comes with a list of helpfull commands to speed up development.

### Create a new dashboard user

`php artisan dashboard:user`

This command adds a new dashboard user to the database. It'll ask you a few questions for name and email etc.

### Create a crud class

`php artisan dashboard:crud`

repository: davesweb/dashboard

branch_name: refs/heads/main

repo_name: davesweb/dashboard


text:
# MLpProxmoxTheme
 Custom Proxmox theme for MLp servers

![](https://raw.githubusercontent.com/MLpGHub/MLpProxmoxTheme/master/Example.png)

A dark theme for the Proxmox Web UI,
 inspired by Discord's color scheme.

Everything is dark, including the graphs, context menus and all in between! Eyes need not be fried.

The theme now runs its own JavaScript code which patches the colors for certain components (and charts). This approach is much better, and safer than what was used previously.

## Installation
The installation is very simple thanks to the utility. Run the following commands on the PVE node serving the Web UI and follow the on-screen instructions!

```
~# wget https://raw.githubusercontent.com/MLpGHub/MLpProxmoxTheme/master/ActivateMLpProxmoxTheme.py
~# python3 ActivateMLpProxmoxTheme.py
   ```

## Uninstallation
 To uninstall the theme, simply run the utility, and if it detects the theme installed it will give you an option to remove it.

repository: MLpGHub/MLpProxmoxTheme

gha_language: Sass

repo_name: MLpGHub/MLpProxmoxTheme


text:
# ImageWorkshop

## Adding a watermark

### The purpose of the tutorial

We will see how to add a watermark on a picture, and see different interesting options that you can use !

### Images that we will use

The picture:

![Norway picture](img/watermark/xnorway.jpg)

The watermark:

![Watermark](img/watermark/xwatermark.png)

### 1. Adding a text watermark

```php
$norwayLayer = ImageWorkshop::initFromPath('/path/to/images/norway.jpg');

// This is the text layer
$textLayer = ImageWorkshop::initTextLayer('© PHP Image Workshop', '/path/to/fonts/arial.ttf', 11, 'ffffff', 0);

// We add the text layer 12px from the Left and 12px from the Bottom ("LB") of the norway layer:
$norwayLayer->addLayerOnTop($textLayer, 12, 12, "LB");

$image = $norwayLayer->getResult();
header('Content-type: image/jpeg');
imagejpeg($image, null, 95); // We chose to show a JPG with a quality of 95%
exit;
```

You can see the result:

![Result 1](img/watermark/xresult1.jpg)

### 2. Adding an image watermark)

```php
$norwayLayer = ImageWorkshop::initFromPath('/path/to/images/norway.jpg');

$watermarkLayer = ImageWorkshop::initFromPath('/path/to/images/watermark.png');

$norwayLayer->addLayer(1, $watermarkLayer, 12, 12, "LB");

$image = $norwayLayer->getResult();
```

![Result 2](img/watermark/xresult2.jpg)

### 3. Adding some opacity to the watermark

```php
// By reusing the previous snippet, you can set opacity to the watermark layer
// before to add it on the $norwayLayer

$watermarkLayer->opacity(40);
```

![Result 3](img/watermark/xresult3.jpg)

### 4. Adding a vertical watermark

```php
$norwayLayer = ImageWorkshop::initFromPath('/path/to/images/norway.jpg');

$watermarkLayer = ImageWorkshop::initFromPath('/path/to/images/watermark.png');

// We proceed to the $watermarkLayer rotation
$watermarkLayer->rotate(90);

$norwayLayer->addLayer(1, $watermarkLayer, 12, 12, "LB");

$image = $norwayLayer->getResult();
```

![Result 4](img/watermark/xresult4.jpg)

### 5. Position your watermark

Don't forget that you can choose the position of your watermark thanks to the fifth parameter of addLayer() method !

See the [Corners / positions schema of an image](../documentation/corners-schema-image.md) to choose the position you want.

```php
// "RT": Right Top position, translation of 30px from right and 10px from top
$norwayLayer->addLayer(1, $watermarkLayer, 30, 10, "RT");
```

![Result 5](img/watermark/xresult5.jpg)

### 6. Large transparent text

```php
// We want to add a text on the diagonal of the norway picture,
// We create a function to calculate the angle with pythagore & thales theorems
// this is not an obligation, you can choose another rotation angle...
function calculAngleBtwHypoAndLeftSide($bottomSideWidth, $leftSideWidth)
{
    $hypothenuse = sqrt(pow($bottomSideWidth, 2) + pow($leftSideWidth, 2));
    $bottomRightAngle = acos($bottomSideWidth / $hypothenuse) + 180 / pi();

    return -round(90 - $bottomRightAngle);
}

// Init' layers
$norwayLayer = ImageWorkshop::initFromPath('/path/to/images/norway.jpg');
$textLayer = ImageWorkshop::initTextLayer('© PHP Image Workshop', '/path/to/fonts/arial.ttf', 22, 'ffffff', calculAngleBtwHypoAndLeftSide($norwayLayer->getWidth(), $norwayLayer->getHeight()));

// Some funky opacity
$textLayer->opacity(60);

// We add the $textLayer on the norway layer, in its middle
$norwayLayer->addLayer(1, $textLayer, 0, 0, 'MM');

$image = $norwayLayer->getResult();
````

![Result 6](img/watermark/xresult6.jpg)

gha_language: PHP

gha_license_id: NOASSERTION


text:
# Pipeline Jenkins to bake image with Packer and deploy Microservice in Golang

### Tools to need to be installed first:

- [Packer](https://www.packer.io/)
- [Docker](https://www.docker.com/)
- [Jenkins](https://jenkins.io/)

### Instructions

- In folder where you to put the jenkins .war type the following command:

```
    java -jar jenkins.war --httpPort=8180
```

- The Jenkins will be available in *http://localhost:8180/*

- At the Jenkins, you should to create 2 pipelines:

#### Bake
- Responsable to prepare an Docker image provisioned by Packer.

- To click at option ```Github Project``` and insert the url of private repository github *https://github.com/bbeckerdarosa/devops_sandbox.git*
- To copy the script of Bake/Jenkinsfile and paste at option "Pipeline script".
- At the preparetion stage, the Jenkins will make the clone Github repository.
- At the Bake stage, the Jenkins will make the image bake Docker with Packer.

#### Launch
- Responsable to do the microservice deploy in Golang.

- To copy the script Launch/Jenkinsfile and paste at the option "Pipeline script".
- At the Launch stage, the Jenkins will make the microservice deploy in Golang with image name to create in Bake step.

- The microservice will be available in *http://localhost:8080/*

### Available Endpoints

#### Sum

```
    http://localhost:8080/calc/sum/{firstNumber}/{secondNumber}
```

#### Sub

```
    http://localhost:8080/calc/sub/{firstNumber}/{secondNumber}
```

#### Div

```
    http://localhost:8080/calc/div/{firstNumber}/{secondNumber}
```

#### Mult

```
    http://localhost:8080/calc/mult/{firstNumber}/{secondNumber}
```

#### History

```
    http://localhost:8080/calc/history
```

- *firstNumber* matches the first number to be calculated

- *secondNumber* matches the second number to be calculated


text:
# Changelog

## [2.0.5] - 12-02-22
### Resolves

- WYSIWYG save is not working. (#516)

## [2.0.4] - 11-15-22
### Resolves

- Remove the "upgrade" button from the tinymce editor. (#512)
- Locked the node version to 16. (#515)

## [2.0.3] - 10-12-22
### Resolves

- Fix bad error handling and reporting wvr-button. (#504)
- Footer Becoming Sticky when it should not. (#503)
- Remove ng-inline-svg as it is no longer maintained. (#502)
- Redesign dependency list, reducing dependencies where possible. (#507)
- Fixed tabs to no longer need a wrapping div to display content. (#505)

## [2.0.2] - 09-19-22
### Resolves

- Normal mouse clicks do not work for certain designs with drop-down menus following the 2.0.1 release.

## [2.0.1] - 09-15-22
### Resolves

- Local npm via Verdaccio and SASS Migrator. (#472)
- The mobile menu slide out tray continues to allow links to be clicked on when closed. (#474)
- Avoid replaceChild() and restructure projection function. (#479)
- Collapsible Card is not completely collapsible. (#483)
- Directory UI - bottom-nav items (left most) is seen to have shifted left. (#482)
- Add in-code documentation for the README.md. (#484)
- Build components with Node 16 or greater. (TAMULib/tamu-library-components#429)
- Update deprecated karma coverage package. (#306)
- ADA - Buttons missing label and expand/collapse notification. (TAMULib/tamu-library-components#423)
- Issue 4: Focus indicator missing. (TAMULib/tamu-library-components#425)

## [2.0.0] - 10-29-21
### Resolves

- Weaver Components should have a consistent content projection strategy. (#236)
- Convert wvre-tab to pseudo element. (#308)
- Card component needs redesign to avoid local state from DOM inspection. (#387)
- Weaver Components should expose the manifest entry request through its public api. (#405)
- Extract CSS to avoid the removal of deprecated style strategy. (#408)
- Weaver Tabs should utilize the new content projection strategy. (#410)
- Weaver Components Card Component should utilize the content projection strategy. (#414)
- Weaver Components dropdown should utilize common content projection to afford two-way binding. (#417)
- Weaver Components should support two way binding to angularjs scope. (#421)
- Weaver Components should delay bootstrapping until a specified condition has been met. (#425)
- Weaver Components Memory and Performance Concerns. (#428)
- Weaver Components should compile using the ivy partial compiler option. (#430)
- Memory Leak And Performance degradation when components is left open. After about 2 hours Gigibytes of memory in use. (#438)
- Incorrect boolean logic in dequeue and inadequate tests (#442)
- The tabs component should support theming (#348)
- Incorrect manifest entries are being updated in Manifest. (#439)
- The tabs component should support theming (#348)
- Incorrect manifest entries are being updated in Manifest. (#439)
- Weaver Card hardcodes width as a style. (#451)
- Weaver Components should provide a Message Receiver Component (#407)
- Weaver Card Should Support Expand/Collapse on Card Header click. (#445)

## [1.12.0] - 06-04-21
### Resolves

- The mobile service should use the ngrx store to maintain state. (#333)
- Weaver Components should use an alternate mechanism to display: none when components are ready (#363)
- Weaver Components should use Ngrx to to maintain state. (#364)
- Weaver Components should build without warnings (#365)
- Refactor Template Service to Template Utility (#379)
- Refactor to pure pipes (#380)
- Remove isMobileAgent from base component (#381)
- Refactor mobile store to layout store (#382)
- Afford input text color on text component (#388)
- Colors in color utility should be brought in via JSON (#390)
- Weaver Components Manifest should support path variables (#398)

## [1.11.1] - 05-19-21
### Resolves
- Weaver Components should use an alternate mechanism to display: none when components are ready (#363)

## [1.11.0] - 05-12-21
### Resolves

- The weaver modal bg should be displayed (and NOT flicker). (#328)
- Weaver modal only opens when a single modal is used. (#346)
- Weaver components should offer a default theme group (modeled after btn). (#347)
- The Card Component should support theming. (#350)
- Lighthouse build failing for weaver components. (#356)

## [1.10.0] - 04-23-21
### Resolves
- Weaver Modal button should be toggle-able. (#329 )
- WVRWYSIWYG is not appearing in the usage documentation. (#330 )
- WVR Theme Variants should be expanded to include all needed variant names. (#334)
- Weaver Component's Modal Component should utilize the wvr-button-component intead of the wvre-button. ( #341)
- Weaver component should provide additional theme variants. ( #342)
- Weaver drop down menu should have a delay on hover prior to displaying the dropdown menu. ( #344)

## [1.9.0] - 03-31-21
### Resolves

- Weaver Components should provide a modal component. (#314)
- Weaver Components should offer a WYSIWYG component. (#315)
- Weaver Button should be able to trigger actions on a parent component. (#319)
- Weaver WYSIWYG should maintain state using NgRX (#322)

## [1.8.0] - 12-18-20
### Resolves

- Weaver Components should utilize externals to reduce bundle size. (#158)
- Remove scss, rendered unnecessary by the recent theme features. (#276)

## [1.7.4] - 12-15-20
### Resolves

- Patch icon bug

## [1.7.3] - 12-15-20
### Resolves

- Fixed SVG styling and performance.

## [1.7.2] - 12-14-20
### Resolves

- Performance improvements

## [1.7.1] - 11-20-20
### Resolves

- Fixes bootstrapping process.

## [1.7.0] - 11-20-20
### Resolves

- Wvr animations have regressed and are no longer firing. (#256)
- SetTimeouts are not performant at load time. (#257)
- Weaver Usage Documentation should include the component template in tab list. (#260)
- Wvr Components should support an extensible list of branded colors. (Primary, secondary, danger, warning... etc). (#262)
- Refactor color usage across wvr components to use branded color list, and include fallback support. (#263)
- Color preview component. (#264)

## [1.6.0] - 11-2-20
### Resolves

- Weaver component's build process should build multiple versions of the product. (#86)
- Weaver Usage Docs should be converted into an angular project. (#102)
- The wvr manifest action to submit request should afford providing response map. (#223)
- Handlebars should be extracted into a service and all helpers declared outside of the component constructor. (#232)
- On safari (check firefox) mobile display does not run the position footer function at load time. (#233)
- Weaver components should provide a wvr-cards component. (#234)
- Weaver Component selectors need to be refactored to avoid name collision with Weaver (angularjs) directives. (#237)
- The wvr-header should use the configured asset path for the header logo. (#255)

## [1.5.0] - 10-8-20
### Resolves

- Weaver Components should communicate with Weaver web services. (#195)
- Weaver Lists should automatically assign aria owns attribute for each of its list items. (#206)
- Weaver Components should provide an Alert Component. (#207)
- Weaver Components should dynamically assign unique identifiers to each component. (#208)
- Explore ngRX as a state store solution for components. (#209)
- Weaver Components should offer a tabs component. (#210)

## [1.4.0] - 9-23-20
### Resolves

- Encapsulates bootstrap within global styling
- Performance improvements
- Introduces Mobile Service
- The list item context attr should override the visual context of the list item. (#199)

## [1.3.0] - 08-13-20
### Resolves

- Weaver Components should have an element query strategy. (#27)
- Icons should be integrated into weaver buttons. (#128)
- Weaver Components should support lists with expanding and collapsing sections. (#163)
- The Wvr Icon component should support animation. (#164)
- Weaver Components should have a list component. (#165)
- Coveralls not providing the coverage notification. (#167)
- Observable subscriptions should be unsubscribed from or converted to promises. (#168)

## [1.2.0] - 07-16-20
### Resolves

- Weaver Component should support a global configuration paradigm. (#64)
- Weaver Components should share vendor styling across components. (#82)
- Weaver Components should support multiple font icon libraries. (#85)
- Buttons must be integrated into weaver drop-down. (#129)
- Weaver footer "stick-to-bottom" property affected by wvr-button line-height and padding property. (#150)

## [1.1.0] - 06-25-20
### Resolves

- Wvr Components should provide a wvr-button component (#103)
- CDN needs to be exposed through the firewall (#135)
- Fix Z-Index on dropdown overlaps (#133)
- Restore dynamic change detection for display of bottom nav (#136)
- Dropdown inside of List inside of Header flickers instead of staying open (#119)

## [1.0.0] - 06-11-20
### Resolves

- The wvr-header should support mobile and tablet layouts (#7)
- Weaver Components should have CI hooks for lighthouse (#105)
- wvr-component should have attribute: page-title-url (#116)
- Weaver Drop down component selector should be renamed (#125)

## [0.0.5] - 05-14-2020
### Resolves

- The wvr-header should support accessible designs (#8)
- Weaver Components should provide a drop down element (#20)
- The wvr-header component's bottom-nav section should display conditionally (#81)
- Weaver components usage documentation fails to build (#83)
- Weaver documentation landing page is broken (#84)
- wvr-footer's navbar should be have a height of 100% (#89)

repository: TAMULib/weaver-components

gha_language: TypeScript

repo_name: TAMULib/weaver-components


text:
# NHL CLI
A CLI tool to display NHL games and scores.

![NHL scores in the terminal](https://raw.github.com/ryanburgess/nhl-cli/master/screenshot.png)

## Install

```js
npm install nhl-cli -g
```

## Commands

### Today's NHL games and scores
```js
nhl
```
```js
nhl today
```

### Tomorrow's NHL game schedule
```js
nhl tomorrow
```

### Yesterday's NHL games and scores
```js
nhl yesterday
```

### Date of NHL games and scores
```js
nhl date 2016-03-15
```

## Contributing
1. Fork it
2. Run `npm install`
3. Create your feature branch (`git checkout -b my-new-feature`)
4.  Push to the branch (`git push origin my-new-feature`)
6. Create new Pull Request

## License
MIT © [Ryan Burgess](http://github.com/ryanburgess)


text:
# Pipelines on GCP

These pipelines are ones developed against the GCP version of Capstan or used some IaaS specific capabilities.

Unless otherwise specified, this collection of GCP pipelines build upon each other. So start with the *initial* pipelines.

Additionally, this collection of pipelines uses the [Hello](https://github.com/kenzanlabs/hello-karyon-rxnetty) and associated Docker Hub [image](https://hub.docker.com/r/nparkskenzan/hellokenzan/) to start the process. You will Fork this GitHub Repository to make the appropiate code changes.

repository: andybubune/capstan

repo_name: andybubune/capstan


text:
# `.gitignore` template for CS-Cart

This repo contains [`.gitignore`][man] file template for CS-Cart. We use this template for our projects and to populate the Git culture.

For more information about how `.gitignore` files work, and how to use them, the following resources are a great place to start:

- The [Ignoring Files chapter][chapter] of the [Pro Git][progit] book.
- The [Ignoring Files article][help] on the GitHub Help site.
- The [gitignore(5)][man] manual page.

[man]: http://git-scm.com/docs/gitignore
[help]: https://help.github.com/articles/ignoring-files
[chapter]: https://git-scm.com/book/en/Git-Basics-Recording-Changes-to-the-Repository#_ignoring
[progit]: http://git-scm.com/book

## What is Git

[Git][git] is a free and open-source version control Swiss army knife, designed to handle everything from small to large projects with speed and efficiency. To learn git, we recommend the [Git Magic][gitmagic] project.

[git]: https://git-scm.com/
[gitmagic]: http://www-cs-students.stanford.edu/~blynn/gitmagic/

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## License

[CC0-1.0](./LICENSE).

repository: asiarlis/cs-cart-gitignore

repo_name: asiarlis/cs-cart-gitignore


text:
# [73. Set Matrix Zeroes](https://leetcode-cn.com/problems/set-matrix-zeroes/)

![](https://img.shields.io/badge/Difficulty-Medium-F8AF40.svg)

Topics

* [`Array`](https://leetcode-cn.com/tag/array/)

Given an *`m x n`* matrix. If an element is **0**, set its entire row and column to **0**. Do it **`in-place`**.

Follow up:

 + A straight forward solution using O(*mn*) space is probably a bad idea.
 + A simple improvement uses O(*m + n*) space, but still not the best solution.
 + Could you devise a constant space solution?

**Example 1:**

![](https://assets.leetcode.com/uploads/2020/08/17/mat1.jpg)

```
Input: matrix = [[1,1,1],[1,0,1],[1,1,1]]
Output: [[1,0,1],[0,0,0],[1,0,1]]
```
**Example 2:**

![](https://assets.leetcode.com/uploads/2020/08/17/mat2.jpg)

```
Input: matrix = [[0,1,2,0],[3,4,5,2],[1,3,1,5]]
Output: [[0,0,0,0],[0,4,5,0],[0,3,1,0]]
```

**Constraints:**

 + `m == matrix.length`
 + `n == matrix[0].length`
 + `1 <= m, n <= 200`
 + `-2^31 <= matrix[i][j] <= 2^31 - 1`

repository: InnoFang/algo-set

path: /LeetCode/0073. Set Matrix Zeroes/README.md

repo_name: InnoFang/algo-set


text:
![issues](https://img.shields.io/github/issues/Dylan-Zheng/Rise-of-Kingdoms-Bot)
![forks](https://img.shields.io/github/forks/Dylan-Zheng/Rise-of-Kingdoms-Bot)
![stars](https://img.shields.io/github/stars/Dylan-Zheng/Rise-of-Kingdoms-Bot)
![lincense](https://img.shields.io/github/license/Dylan-Zheng/Rise-of-Kingdoms-Bot)

# Rise of Kingdom Bot

### **Introduction**

Rise of Kingdom Bot can do following job: claim quests/vip/gifts, collecting resource, gathering resource, donate techology, train troops and pass verification.

If you have any problem, suggestions or new features,  please feel free to submit issues directly on GitHub

- Link: https://github.com/Dylan-Zheng/Rise-of-Kingdoms-Bot/issues

If you don't want to set up by yourself, there is executable version for windows

- Link: https://github.com/Dylan-Zheng/Rise-of-Kingdoms-Bot/releases/

If you like this project, give me a star or feedback , that is great help for me. **:smile:**

------

**Current Version v<IP_ADDRESS>221_beta (4/2/2021):**

Link: https://github.com/Dylan-Zheng/Rise-of-Kingdoms-Bot/releases/tag/v<IP_ADDRESS>221_beta

Update:

- Add auto explore
- Fixed building position window not able to set building position

Note: Don't forget to move your **'save'**, **'config.json'** and **'devices_config.json'** to new version folder

------

### Requirements

- python

  version 3.7

- software

  - ADB  version 29.0.5-5949299 (1.0.41)
  - tesseract

- libraries

  - opencv-python

  - pytesseract

  - numpy

  - pillow

  - pure-python-adb

  - requests

  - requests-toolbelt

### Functions

| Name                                                   | Status          |
| ------------------------------------------------------ | --------------- |
| Automatically start the game when game is not running  | **Done** |
| Automatically locating building                        | **Done** |
| Collecting resource, troops, and help alliance         | **Done** |
| Produce material                                       | **Done** |
| Open free chest in tavern                              | **Done** |
| Claim quest and daily objectives                       | **Done** |
| Claim VIP chest                                        | **Done** |
| Claim Event                                            | not yet         |
| Collecting allied resource, gifs and donate technology | **Done** |
| Upgrade and train troops                               | **Done** |
| Attack barbarians                                      | **Done** |
| Heal troops                                            | **Done** |
| Gather resource                                        | **Done** |
| A simple GUI                                           | **Done** |
| Allow bot control multi-devices/emulator               | **Done** |
| Pass verification with haoi API                        | **Done** |
| Pass verification with 2captcha API                    | **Done** |

### Set Up

- Use following commands to install package into you **python** / **python virtual environment** (version 3.7)

  ```
  pip install opencv-python
  pip install pytesseract
  pip install numpy
  pip install pillow
  pip install pure-python-adb
  pip install requests
  pip install requests-toolbelt
  ```

- Download **ADB** version 29.0.5-5949299 (1.0.41) (require for same version or you can change version in adb.py)

  - move all **adb** files under: **project folder/adb/**

- Download **tesseract** version v5.0.0-alpha.20201127 (no require for same version)

  - move all **tesseract** files under: **project folder/tesseract/**

- Use following command to run project

  ```
  python main.py
  ```

- Directory Structure Image:

  ![](https://github.com/Dylan-Zheng/Rise-of-Kingdoms-Bot/blob/main/docs/structure.png?raw=true)

### Configurations

- Emulator resolution must be **720x1280** or **1280x720**
- Emulator must **Enable** Android Debug Bridge (ADB)
- Game language must be **English**

### WARNING

- **Use it at your own risk!**
- **I don't know will your account be banned by using it!**

### Show case

- Locating Building

  ![](https://github.com/Dylan-Zheng/Rise-of-Kingdoms-Bot/blob/main/docs/init_building_pos.gif?raw=true)

- Collection and Help

  ![](https://github.com/Dylan-Zheng/Rise-of-Kingdoms-Bot/blob/main/docs/collecting.gif?raw=true)

- Produce Material

  ![](https://github.com/Dylan-Zheng/Rise-of-Kingdoms-Bot/blob/main/docs/metarials_production.gif?raw=true)

- Upgrade and Train Troops

  ![Train](https://github.com/Dylan-Zheng/Rise-of-Kingdoms-Bot/blob/main/docs/auto_train.gif?raw=true)

- Gather Resource

  ![](https://github.com/Dylan-Zheng/Rise-of-Kingdoms-Bot/blob/main/docs/gather_edit.gif?raw=true)

- Pass verification

  ![](https://github.com/Dylan-Zheng/Rise-of-Kingdoms-Bot/blob/main/docs/pass_verification.gif?raw=true)

repository: seashell-freya/Rise-of-Kingdoms-Bot

repo_name: seashell-freya/Rise-of-Kingdoms-Bot


text:
# TO-DO

## 16 Aug 2021

- [x] fix rounding bug in `cost_knapsack` for better integer approximations

## 12 Aug 2021

- add documentation in all `R` source files for estimation functionality:
  - [x] `cate.R`
  - [ ] `data.R`
  - [x] `effects.R`
  - [x] `fluctuation.R`
  - [x] `nuisance.R`
  - [x] `costs.R`
  - [x] `segment.R`
  - [x] `confint.R`
  - [x] `setup_data.R`
  - [x] `wrappers.R`
  - [x] `Lrnr_prob_known.R`
- add documentation where necessary in all `R` auxiliary source files:
  - [x] `bound.R`
  - [x] `scale.R`
  - [x] `globals.R`
  - [x] `options.R`
  - [x] `zzz.R`

## 11 Aug 2021

- [x] fix TMLE fluctuation to fit each parameter separately
- [x] add confidence intervals for CATE and effect measure estimates
- [ ] add in checks for diagnostics at smaller sample sizes

## 07 Aug 2021

- [x] reduce to a few high-level functions: `sherlock` to detect segments,
           `watson` to assign an optimal rule, and `mycroft` to compute effects

## 06 Aug 2021

- [x] rename HTE to OTE, since HTE already defined otherwise in ABlaze
- [ ] evaluate OTE conditional on segmentation covariates, ie, COTE = E(OTE|V)

## 04 Aug 2021

-[x] create a wrapper function to bundle `set_est_data` and `est_cate`
-[x] add summarization of EIF across IDs for repeated measures
-[x] add functionality to handle known g in PS estimation
-[x] export global option for `sl3.pcontinuous` to avoid guessing categorical


text:
![Logo](Art/Logo150x150.png "Logo")

# Genesis.DisconnectedUtil

[![Build status](https://ci.appveyor.com/api/projects/status/h40wp7mblm3c984x?svg=true)](https://ci.appveyor.com/project/kentcb/genesis-disconnectedutil)

## What?

> All Genesis.* projects are formalizations of small pieces of functionality I find myself copying from project to project. Some are small to the point of triviality, but are time-savers nonetheless. They have a particular focus on performance with respect to mobile development, but are certainly applicable outside this domain.

**Genesis.TestDisconnected** is a simple library containing helpers for [disconnected layers](http://kent-boogaart.com/blog/disconnected-layers). It is delivered as a netstandard 1.0 binary.

## Why?

I have found myself copying a bunch of helper code from disconnected layer to disconnected layer. This project wraps that functionality up in a package that I can install instead.

## Where?

The easiest way to get **Genesis.DisconnectedUtil** is via [NuGet](http://www.nuget.org/packages/Genesis.DisconnectedUtil/):

```PowerShell
Install-Package Genesis.DisconnectedUtil
```

## How?

Just install **Genesis.DisconnectedUtil** and explore the available helpers.

## Who?

**Genesis.DisconnectedUtil** is created and maintained by [Kent Boogaart](http://kent-boogaart.com). Issues and pull requests are welcome.


text:
# tcp-shell

This is a [Spring-XD Module](http://docs.spring.io/spring-xd/docs/current/reference/html/#modules) that starts a shell process and then tries to make a TCP connection to it.

The project can be built by running

`./gradlew clean build`

The module can then be uploaded to Spring XD by running the following command in an XD Shell

`module upload --type processor --name tcpshell --file tcp-shell/build/libs/tcpshell-VERSION.jar`

repository: dataplumber/nexus

gha_language: Jupyter Notebook

repo_name: dataplumber/nexus


text:
---
layout: post
title:  "Thanks for those 100+ stars!"
---

I'm glad that you guys have liked and supported the theme to reach 100 stars on Github. I would like to thank everyone who has supported the theme by using, starring and recommending it.

Themes get better when people contribute. That is how our [Online CV](https://github.com/sharu725/online-cv){: target="_blank"} got more than 250 likes. I would like to ask users to suggest changes and if possible create a pull-request.

You can still do it if you haven't yet,

Star

Thank you

gha_language: HTML


text:
# The Odin Project Ruby Exercises & Projects

## About this repository

This repository is a complement to the Ruby course for The Odin Project. It contains my solutions to a series of Ruby exercises alongside pre-written tests that provided a Test Driven Development experience. The exercises contain my own solutions, and I have made sure they pass each test.

Consider visiting the [GitHub Pages Landing Page](https://lukaserekson.github.io/OdinRubyProjects/) for my reflection on what I have learned and done with the content of this repository.

This repository also contains some of the basic projects assigned in The Odin Project. Some, including the "Substrings" project, include tests that I have personally written before developing the solution to practice test driven development on my own. These projects represent my first foray into Ruby, and I'm proud to show my growth and abilities here.

repository: LukasErekson/OdinRubyProjects

repo_name: LukasErekson/OdinRubyProjects


text:
### last day in PNNL

some thoughts:

1. rerun chromHMM for epigenome Roadmap data with 1 kb bin. Then use our feature selection method.
with 200bp bin size, there are over 5 million features across genome, it is hard to work with.
with 1 kb bin size, it is around 1 million features.

2. We can only focus on certain states only. Let's say we only want the bins that showed state E2 in
any of the samples. This can reduce the feature numbers.

3. Roadmap data is still good to test whether our feature selection method worked or not. Because we selected
quite different tissue types, we are sure there exist some features that can differetiate the tissue types.

4. we can then apply the method to our tumor data again.


text:
# Tzispa

A sparkling web framework

## Frameworks

Tzispa is composed by these frameworks:

* [**Tzispa::Rig**](https://github.com/japiber/tzispa_rig) - Template engine
* [**Tzispa::Utils**](https://github.com/japiber/tzispa_utils) - Ruby class utilities
* [**Tzispa::Helpers**](https://github.com/japiber/tzispa_helpers) - Helper modules
* [**Tzispa::Data**](https://github.com/japiber/tzispa_data) - Data access layer

## Installation

```shell
% gem install tzispa
```

## Usage

```shell
% tzispa new myproject
```

## Adding apps

```shell
% cd myproject
% tzispa generate app mainapp
```

Tzispa support multi-app projects. Each app must have a unique mount path

```shell
% tzispa generate app adminapp --mount=admin
```

## Launch

```shell
% tzispa server
```
Starting app server daemonizing

```shell
% tzispa server --daemonize
```

## Adding templates

There are 3 template types: layout, static and block:

* layout: these are the skeleton entry points in the rig template engine
* static: these are "light" templates that are a included without any processing as plain text
* block: the true core of the rig templates, each block template file has an associated ruby file with the template binder class

```shell
% tzispa generate rig lister --type=layout --app=mainapp
% tzispa generate rig sitefoot --type=static --app=mainapp
% tzispa generate rig product_detail --type=block --app=mainapp
```

Work in progress ...

repository: japiber/tzispa

repo_name: japiber/tzispa


text:
[@codearts/plugin](../README.md) / ["@codearts/plugin"](../modules/_codearts_plugin_.md) / CodeActionTriggerKind

# Enumeration: CodeActionTriggerKind

["@codearts/plugin"](../modules/_codearts_plugin_.md).CodeActionTriggerKind

The reason why code actions were requested.

## Table of contents

### Enumeration Members

- [Automatic](codearts_plugin_.CodeActionTriggerKind.md#automatic)
- [Invoke](codearts_plugin_.CodeActionTriggerKind.md#invoke)

## Enumeration Members

### Automatic

• **Automatic** = ``2``

Code actions were requested automatically.

This typically happens when current selection in a file changes, but can
also be triggered when file content changes.

#### Defined in

[index.d.ts:2373](https://github.com/shuyaqian/cloudide-plugin-api/blob/3fbdd11/index.d.ts#L2373)

___

### Invoke

• **Invoke** = ``1``

Code actions were explicitly requested by the user or by an extension.

#### Defined in

[index.d.ts:2365](https://github.com/shuyaqian/cloudide-plugin-api/blob/3fbdd11/index.d.ts#L2365)

repository: huaweicloud/cloudide-plugin-api

branch_name: refs/heads/codearts

repo_name: huaweicloud/cloudide-plugin-api


text:
# on-error

[![Build Status](https://travis-ci.org/jasonpincin/on-error.svg?branch=master)](https://travis-ci.org/jasonpincin/on-error)
[![Coverage Status](https://coveralls.io/repos/jasonpincin/on-error/badge.png?branch=master)](https://coveralls.io/r/jasonpincin/on-error?branch=master)
[![NPM version](https://badge.fury.io/js/on-error.png)](http://badge.fury.io/js/on-error)
[![Davis Dependency Status](https://david-dm.org/jasonpincin/on-error.png)](https://david-dm.org/jasonpincin/on-error)

Handle callback errors by executing an error handler function, or emitting the error, instead of or in
addition to executing the callback.

## example

```
var onError = require('on-error')

function fail (cb) {
    cb(new Error('failed'))
}

function succeed (cb) {
    cb(null, 'success')
}
```

Using error handler function:
```
function handleIt (err) {
    console.error(err)
}

fail(onError(handleIt, function (status) {
    console.log('will not see this')
}))

fail(onError(handleIt, {alwaysCall: true}, function (err, status) {
    // When always call specified, err is passed
    console.log('will see this')
}))

succeed(onError(handleIt, function (status) {
    // Gets called with status of success
    console.log(status)
}))
```

Using emitter:
```
var EventEmitter = require('events').EventEmitter
var emitter = new EventEmitter().on('error', function (err) {
    console.error(err)
})

fail(onError.emit(emitter, function (status) {
    console.log('will not see this')
}))
```

## api

### onError

`var onError = require('on-error')`

### var wrappedCb = onError(errHandler [, options, cb])

Returns a function that when called with a truthy first argument, will execute the errHandler
with the 1st (error) argument supplied to the wrappedCb. If the option `alwaysCall` is define,
the provided `cb` will be executed in all cases with all arguments supplied to `wrappedCb`, otherwise
if the 1st argument to `wrappedCb` is falsey, the supplied `cb` will be executed with all but the
1st argument supplied to `wrappedCb`.

If no callback `cb` is provided, then the generated callback will simply execute `errHandler` when
called with a non-falsey 1st argument.

*options:*
- alwaysCall: `true` or `false` - if true, the provided callback `cb` will always be called (and include
  the 1st argument), otherwise it will only be called when a the first argument is falsey (and without the
  1st argument)

### var wrappedCb = onError.emit(emitter [, options, cb])

Same behaviour as above, except errors will be emitted to `emitter` instead of passed to an error handler
function. All other options and arguments are the same.

## testing

`npm test [--dot | --spec] [--coverage]`

### options

* `--dot` - output test results as dots instead of tap
* `--spec` - output test results as spec instead of tap
* `--coverage` - display text cover report
* `--testling` - run tests in browser via testling (cannot be used with --coverage and
  expects both browserify and testling to be installed globally)

### patterns

Only run test files matching a certain pattern by prefixing the
test command with `grep=pattern`. Example:

```
grep=connect npm test --dot
```

### html coverage report

Open it with `npm run view-cover` or `npm run vc`

repository: Lcfvs/on-error

repo_name: Lcfvs/on-error


text:
# `umn_thesis` Bookdown Template

## Description

This repository provides a template for compiling, using R Markdown, a thesis with formatting that is compliant with the requirements from the Graduate School of the University of Minnesota. This template relies on [bookdown](https://bookdown.org/) and follows the same typsetting format specified by [`rmarkdown`](https://rmarkdown.rstudio.com/).

## Installation

### Step 1. Ensure relevant R packages are installed

Before using this template, the following R packages are required: `bookdown`, `rmarkdown`, `tidyverse`,
`knitr`, and `kableExtra`.

These packages can be installed simultaneously by running this code:

```
install.packages(c("bookdown", "rmarkdown", "tidyverse", "knitr", "kableExtra"))

```

### Step 2. Install additional software for compiling LaTeX

The `umn_thesis` template compiles a book into a PDF. If you are using a Windows operating system, you will need to install a LaTeX compiler. [MiKTeX](https://miktex.org/download) is a good option.

> Note: If using MiKTeX, you will need to allow it to install packages on-the-fly. To do this (after installing MiKTeX), open the MiKTeX Console, go to Settings, and select the "Always install missing packages on-the-fly" radio button.

## Getting started

### Step 1. Create a new project

To create a new bookdown project using the `umn_thesis` template, you need to create a new project in RStudio

#### Option A. Use Git

The simplest method to create a new project is by cloning the GitHub repository containing this template. To do this in RStudio, go to `File` > `New Project` > `Version Control` > `Git` and fill out the information as such:

```
Repository URL: https://github.com/neyhartj/umn_thesis
```

The Project directory name should autofill with the repository name (i.e. `umn_thesis`). You can customize this and the directory for which this new project will be a subdirectory.

Next, click `Create Project`.

#### Option B. Download the ZIP file

Instead of using Git, you can also simply download the `.zip` file containing the `umn_template` repository and create a new project within the unzipped folder.

1. On the GitHub page for this project, click the green `Clone or download` button. Then click `Download ZIP`.
2. After the ZIP file downloads, move it to the directory of your choosing, and unzip the file.
3. In RStudio, go to `File` > `New Project` > `Existing Directory` and navigate to the folder created after unzipping the ZIP file.

#### Project folder orientation

After creating the project, you will have a directory with many different folders and files. Here is a breakdown of what each is for:

| Folder/file name            | Use
|-----------------------------|----------------------------------------------
| bibliographyStyle           | Contains templates for formatting the bibliography
| figures                     | A folder to place your figures, with some examples
| tables                      | A folder to place your tables, with some examples
| latexTemplate               | Contains the LaTeX template for compiling the thesis
| _bookdown.yml               | Information for naming the end product; use caution when modifying
| _output.yml                 | Information for formatting the output; use caution when modifying
| abstract.txt                | Place Abstract text here; use the same notation for text in RMarkdown
| abbreviations.txt           | Place Abbreviation text here; use the same notation for text in RMarkdown
| preface.txt                 | Place Preface text here; use the same notation for text in RMarkdown
| example.bib                 | An example bibliography file containing the references cited in the thesis
| 01-chapter1.Rmd             | An example chapter file; edit this file and use it as a template to create additional chapters
| 02-chapter2.Rmd             | An example of a second chapter
| 99-epilogue.Rmd             | An example epilogue chapter; note that chapters are compiled in the order of the numbers that prefix the file names
| index.Rmd                   | RMarkdown file that specifies the front matter of the thesis, including title, author, adviser, etc. Also specified are format settings, bibliography location, etc.

You can ignore the `README.md` and `.gitignore` files.

### Step 2. Write!

Include the text, equations, figures, tables, or whatever you would like in the `chapter` RMarkdown files. The formatting of text, equations, citations, etc. is the same as any RMarkdown document. Below are some helpful resources for formatting text for RMarkdown:

+ [RMarkdown: The Definitive Guide](https://bookdown.org/yihui/rmarkdown/)
+ [bookdown: Authoring Books and Technical Documents with R Markdown](https://bookdown.org/yihui/bookdown/)
+ [RStudio Cheat Sheets](https://rstudio.com/resources/cheatsheets/)

### Step 3. Compile

When you are ready to compile the thesis, run the following command:

```
rmarkdown::render_site()
```

or click the `Build Book` button under the `Build` tab in RStudio.

The final thesis will be compiled into a PDF in the `_book` folder.

## Issues

If you have comments or issues, please [file theme here](https://github.com/neyhartj/umn_thesis/issues/new).

gha_language: TeX


text:
# Vagrant

If you don't find what you're looking for here, please see the official [Vagrant docs](http://docs.vagrantup.com/v2/) for more information.

## Typical workflow to build a Vagrant VM image

A simple workflow to build a VM for Vagrant would be:

    $ bundle exec veewee vbox templates | grep -i ubuntu
    $ bundle exec veewee vbox define 'mybuntubox' 'ubuntu-12.10-server-amd64'
    $ bundle exec veewee vbox build 'mybuntubox'

For additional box building instructions, see the [Veewee Basics](basics.md) and [Definition Customization](customize.md) docs.

## Export the VM image to a .box file

In order to use the box in Vagrant, we need to export the VM as a [base box](http://docs.vagrantup.com/v2/boxes.html) (e.g. export to the .box filetype):

    $ bundle exec veewee vbox export 'myubuntubox'

This is actually calling `vagrant package --base 'myubuntubox' --output 'boxes/myubuntubox.box'`.

The machine gets shut down, exported and will be packed in a `myubuntubox.box` file inside the current directory.

## Add the exported .box to Vagrant

To import it into Vagrant's box repository simply type:

    $ vagrant box add 'myubuntubox' 'myubuntubox.box'

The parameter 'myubuntubox' sets the name that Vagrant will use to reference the box (i.e. in the `Vagrantfile`).

## Use the added box in Vagrant

To use your newly generated box in a fresh project execute these commands:

    $ vagrant init 'myubuntubox'

If you already have a project running with Vagrant, open the `Vagrantfile` and change the value of `config.vm.box` to the new box name:

    Vagrant.configure("2") do |config|
      config.vm.box = "myubuntubox"
    end

See the [Vagrantfile machine settings](http://docs.vagrantup.com/v2/vagrantfile/machine_settings.html) for more details on setting up your `Vagrantfile` configuration.

Now start the new environment with `vagrant up` and log in with `vagrant ssh` to enjoy your new environment.

repository: scaliaes/veewee

repo_name: scaliaes/veewee


text:
# Bibliography

### Research on Flix

- [**From Datalog to Flix: A Declarative Language for Fixed Points on Lattices**](https://flix.github.io/pub/pldi2016/paper.pdf)
  by Magnus Madsen, Ming-Ho Yee, and Ondřej Lhoták.

- [** Programming a Dataflow Analysis in Flix**](https://flix.github.io/pub/tapas2016/abstract.pdf)
  by Magnus Madsen, Ming-Ho Yee, and Ondřej Lhoták.

### Theoretical Foundations

- [**What You Always Wanted to Know About Datalog (and Never Dared to Ask)**](http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=43410)
  by Stefano Ceri, Georg Gottlob, and Letizia Tanca.

- [**Dedalus: Datalog in Time and Space**](http://db.cs.berkeley.edu/papers/datalog2011-dedalus.pdf)
  by Peter Alvaro, William R. Marczak, Neil Conway, Joseph M. Hellerstein, David Maier, and Russell Sears.

- [**Logic and Lattices for Distributed Programming**](http://db.cs.berkeley.edu/papers/UCB-lattice-tr.pdf)
  by Neil Conway, William Marczak, Peter Alvaro, Joseph M. Hellerstein, and David Maier.

### Related Languages and Systems

- [**The Eve programming language**](https://github.com/witheve/Eve), a language for new programmers.

- [**The Bloom programming language**](http://bloom-lang.net/), a language for distributed programming.

- [**LogicBlox**](http://www.logicblox.com/), a commercial scalable Datalog engine.

- [**bddbddb**](http://bddbddb.sourceforge.net/), a Datalog engine based on binary decision diagrams.

### Motivation and Inspiration

- [**Out of the Tar Pit**](http://www.shaffner.us/cs/papers/tarpit.pdf)
  by Ben Moseley and Peter Marks.

- [**Using Datalog for Fast and Easy Program Analysis**](http://dl.acm.org/citation.cfm?id=2185939)
  by Yannis Smaragdakis and Martin Bravenboer.

- [**Strictly Declarative Specification of Sophisticated Points-to Analyses**](http://dl.acm.org/citation.cfm?id=1640108)
  by Martin Bravenboer and Yannis Smaragdakis.

- [**CodeQuest: Scalable Source Code Queries with Datalog**](http://link.springer.com/chapter/10.1007/11785477_2)
  Elnar Hajiyev, Mathieu Verbaere, and Oege de Moor.

- [**PAG - An Efficient Program Analyzer Generator**](http://link.springer.com/article/10.1007/s100090050017)
  by Florian Martin.

- [**Hoopl: A Modular, Reusable Library for Dataflow Analysis and Transformation**](http://dl.acm.org/citation.cfm?id=1863539)
  by Norman Ramsey, Joao Dias, and Simon Peyton Jones.

### Debugging

- [**Declarative Datalog Debugging for Mere Mortals**](https://yanniss.github.io/DeclarativeDebugging.pdf)
  by Sven Kohler, Bertram Ludascher, and Yannis Smaragdakis.

### QuickChecking

- [**QuickCheck: A Lightweight Tool for Random Testing of Haskell Programs**](http://www.cs.tufts.edu/~nr/cs257/archive/john-hughes/quick.pdf)
  by Koen Claessen and John Hughes.

- [**QuickChecking Static Analysis Properties**](http://cs.au.dk/~amoeller/papers/lcheck/paper.pdf)
  by Jan Midtgaard and Anders Møller.

### Type Classes

- [**How to make ad-hoc Polymorphism less ad hoc**](http://dl.acm.org/citation.cfm?id=75283)
  by Philip Wadler and Stephen Blott.

- [**Type Classes: Exploring the Design Space**](http://research.microsoft.com/apps/pubs/default.aspx?id=67019)
  by Simon Peyton Jones, Mark Jones, and Erik Meijer.

- [**A System of Constructor Classes: Overloading and Implicit Higher-Order Polymorphism**](http://journals.cambridge.org/action/displayAbstract?fromPage=online&aid=1349700&fileId=S0956796800001210)
  by Mark P. Jones.

- [**Type Classes with Functional Dependencies**](http://link.springer.com/chapter/10.1007/3-540-46425-5_15)
  by Mark P. Jones.

### Human Friendly Compilers

- [**Expressive Diagnostics**](http://clang.llvm.org/diagnostics.html) in Clang.

- [**Compiler Errors for Humans**](http://elm-lang.org/blog/compiler-errors-for-humans) in Elm by Evan Czaplicki.

- [**Compilers as Assistants**](http://elm-lang.org/blog/compilers-as-assistants) in the Elm by Evan Czaplicki.

repository: flix/doc

repo_name: flix/doc


text:
PodManager Mocked Up Environment

# Introduction

As we know, PodManager now has two announced API spec versions 1.2.1 and
 2.1, so we mocked up both of them to match valence's whole requirement.

Please note that the mocked up environment is just for testing and development.
The two mocked up PodManager environment are using same Flask framework
with same layout logic. Both versions can be easily understood by understanding
one of them.

And our final result for this simulator would generate a PodManager
which looks like this : http://imgur.com/a/FP4c9

# How to Deploy

### Install dependencies
```
pip install -r pod_manager/requirements.txt
```

### Test run
First run the Flask webservice
```
cd valence/simulator
python pod_manager/rsd_v1_2_1/run.py
```
Then test the api by following python codes' running result

```python
import requests

auth=(name='admin',password='Passw0rd')
requests.get('https://localhost/redfish/v1', auth=auth)

```

Also , we could access the url in browser to get the api result, like:
https://localhost/redfish/v1

# How to Use

repository: ngdzu/valence

repo_name: ngdzu/valence


text:
Discussion
==========

A way to get your audience to participate your presentation or event.
The admin can add questions or statements, and the users can reply on them. If the audience finds replies meaningful, or agree with them; they can upvote them.
This way, the most popular answers become apparent and the presenter
can use this as input.

In case you don't know what this is about: Happening is a group app for iOS and Android, that allows you to create your own plugins in minutes. To get started signup at: https://develop.happening.im

Don't worry: plugins are just Javascript (or CoffeeScript), both client-side and server-side. However, the powerful Happening environment provides you with user group details, a database that syncs to all clients, reactive user-interface widgets, and html/css for whatever else you may want to do. That social app you've wanted to build for ages, but didn't because it'd take you weeks? You'll finish it tonight.

repository: Happening/Participation

repo_name: Happening/Participation


text:
There are  `n`  cities. Some of them are connected, while some are not. If city  `a`  is connected directly with city  `b`, and city  `b`  is connected directly with city  `c`, then city  `a`  is connected indirectly with city  `c`.

A  **province**  is a group of directly or indirectly connected cities and no other cities outside of the group.

You are given an  `n x n`  matrix  `isConnected`  where  `isConnected[i][j] = 1`  if the  `ith`  city and the  `jth`  city are directly connected, and  `isConnected[i][j] = 0`  otherwise.

Return  _the total number of  **provinces**_.

**Example 1:**

![](https://assets.leetcode.com/uploads/2020/12/24/graph1.jpg)

**Input:** isConnected = [[1,1,0],[1,1,0],[0,0,1]]
**Output:** 2

**Example 2:**

![](https://assets.leetcode.com/uploads/2020/12/24/graph2.jpg)

**Input:** isConnected = [[1,0,0],[0,1,0],[0,0,1]]
**Output:** 3

**Constraints:**

-   `1 <= n <= 200`
-   `n == isConnected.length`
-   `n == isConnected[i].length`
-   `isConnected[i][j]`  is  `1`  or  `0`.
-   `isConnected[i][i] == 1`
-   `isConnected[i][j] == isConnected[j][i]`

repository: gurfinkel/leetCode

repo_name: gurfinkel/leetCode


text:
# mediasoup-demo-ui

Application to showcase the working of mediasoup,
a Selective Forwarding Unit based library to create scalable video conferencing apps.
This is a frontend part of the demo application.
Built using _create-react-app_ and [_mediasoup-client_](https://www.npmjs.com/package/mediasoup-client) package.
This project is to be run with [mediasoup-demo-server](https://github.com/BrijeshBumrela/mediasoup-demo-server)

## Installation

- clone the repository
- `npm install` to install the dependencies
- `npm start` to start the dev server
- specify the port on `config` file (default is 3000)
- clone [mediasoup-demo-server](https://github.com/BrijeshBumrela/mediasoup-demo-server) and follow it's instructions

## Note

- _run the application on Chrome. firefox has some issues when testing webrtc connections locally_

repository: BrijeshBumrela/mediasoup-demo-ui

repo_name: BrijeshBumrela/mediasoup-demo-ui


text:
# REST - REpresentative State Transfer

Representational state transfer (REST) is a style of software architecture. As described in a dissertation by Roy Fielding, REST is an "architectural style" that basically exploits the existing technology and protocols of the Web.

## Principles

## Considerations

There are 6 key constraints to think about when considering whether a RESTful API is the right type of API for your needs:

1. Client-Server: This constraint operates on the concept that the client and the server should be separate from each other and allowed to evolve individually.
2. Stateless: REST APIs are stateless, meaning that calls can be made independently of one another, and each call contains all of the data necessary to complete itself successfully.
3. Cache: Because a stateless API can increase request overhead by handling large loads of incoming and outbound calls, a REST API should be designed to encourage the storage of cacheable data.
4. Uniform Interface: The key to the decoupling client from server is having a uniform interface that allows independent evolution of the application without having the application’s services, or models and actions, tightly coupled to the API layer itself.
5. Layered System: REST APIs have different layers of their architecture working together to build a hierarchy that helps create a more scalable and modular application.
6. Code on Demand: Code on Demand allows for code or applets to be transmitted via the API for use within the application.

## REST vs. RESTful vs. RESTless

1. REST is an architecture style while RESTful or REST API is the implementation of webservices following REST architecture style
2. 'RESTless' as any system that is not RESTful. For that it is enough to not have one characteristic that is required for a RESTful system

## REST APIs

Unlike SOAP, REST is not constrained to XML, but instead can return XML, JSON, YAML or any other format depending on what the client requests. And unlike RPC, users aren’t required to know procedure names or specific parameters in a specific order.

### HETEOS - Hypermedia As The Engine Of Application State

With HATEOAS, a client interacts with a network application whose application servers provide information dynamically through hypermedia. A REST client needs little to no prior knowledge about how to interact with an application or server beyond a generic understanding of hypermedia

### References
- REST API maturity model by Richardson https://martinfowler.com/articles/richardsonMaturityModel.html

repository: sankarvema/SW-Prod-Engg-Book

repo_name: sankarvema/SW-Prod-Engg-Book


text:
# A Demo Project to Showcase SSL capability of Spring Boot

## Battery Included

For testing in localhost, all certificates, java-key-stores (jks) and PKCS12 key-stores
as well as the trust-stores are included.

Note: need to make changes to the application-<profile>.properties though.

## Unit-Tests

Just run SwoControllerTests as JUnit Test Suite.

### For SSL (https) API Service without Client Authentication (X509)

1. **Set-up** : Change the properties accordingly in application-noclientauth.properties (especially the path to src/main/resources/qbpo_java.p12).

2. **Prepare** : Run the whole app with spring profiles "default" and "noclientauth" first.

3. **Test** : Then, run SwoControllerViaRestTests as JUnit Test Suite.

### For SSL (https) API Service WITH Client Authentication (X509)

1. **Set-up** : Change the properties accordingly in application-clientauth.properties (especially the path to src/main/resources/certs3/node1.p12 and src/main/resources/certs/node11.jks)

2. **Prepare** : run the whole app with spring profiles "default" and "clientauth" first.

3. **Set-up** : Change the properties accordingly in application-client.properties (especially the path to src/main/resources/certs3/node2.p12 and src/main/resources/certs3/node22.jks).

4. **Test** : Then, run SwoControllerClientAuthViaRestTests as JUnit Test Suite.