text:
# FlightDelay - the first complete decentralized Flight Delay compensation on the Ethereum Blockchain

## The project

This is the home of the FlightDelay Contract.

The contract manages the operation of an insurance-like business process, allowing users to apply for policies, and using oracles for underwriting and payout in case of claims.

The usecase is the compensation of flight delays. Users can select any flight and apply for compensation in case the flight is late.
They pay a fair premium and automagically get a compensation as soon as the plane has landed (except in the case of a punctal arrival, of course nothing is paid then).

## The contract

The contract has been kept as simple as possible, to make it as safe as possible. Additional safeguards have been taken to prevent reentrant attacks, for example a mutex/reentrant guard has been implemented, even though we believe it is not really necessary - all send functions are checked and should not yield any attack vectors.

Additional, an internal ledger keeps track of all value transfers. Its very easy to check if the contract has been manipulated.

The contract is verified on etherscan: http://testnet.etherscan.io/address/0x19fa86e440828d4e02b3d14041f6dc05ffec4167#code

## The frontend

A frontend for interaction with the contract has been deployed under https://fdi.etherisc.com. Its a standalone meteor dapp which can interact with the blockchain via the MetaMask.io browser extension or the Mist Browser.

## Bug bounty

A bug bounty of 20 ETH is set for any bug which is reported to us till the 05.09.2016 - the date we will go live on mainnet with this prototype. The amount of 20 ETH will be distributed on a fair basis without any legal obligations amongst the reporters. A bug is any weakness in the contract which could lead to a potential loss of money for either a customer or an investor.

## Go Live on 05.09.2016

The contract will be provided with about 1.000 ETH on 05.09.2016, so that everybody travelling to DevCon2 has a chance to get compensated on flight delays! The live period will end four weeks later and the contract will be closed then. In case a surplus has been accumulated, this surplus will be donated to the Ethereum Foundation. The remaining capital will be distributed amongst the inital investors.

repository: kpii/flightDelay

repo_name: kpii/flightDelay


text:
# Change Log

All notable changes to this project will be documented in this file. This
project adheres to [Semantic Versioning](http://semver.org/) and documents changes in a similar fashion to [Keep a CHANGELOG](http://keepachangelog.com/).

## [Unreleased]
### Added
- N/a.

### Changed
- N/a.

### Fixed
- N/a.

## [0.8.2] - 2016-08-05
### Fixed
- Incorrect route for domain record calls.

## [0.8.1] - 2016-08-03
### Fixed
- Extracting callback argument when there are no other arguments. (#5)

## [0.8.0] - 2016-08-01
### Added
- Client option for decamelizeKeys and de-camelcasing for query and body params for client-niceness.

license: MIT

branch_name: refs/heads/master

extension: md

license_type: permissive


text:
# Contributor Covenant Code of Conduct

This project's Code of Conduct is based on the [Contributor Covenant][homepage],
version 2.0, available at
[https://www.contributor-covenant.org/version/2/0/code_of_conduct.html](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).

For any questions please contact one of our maintainers listed in the [MAINTAINERS.md](MAINTAINERS.md) page.

repository: IBM/hspo-ontology

branch_name: refs/heads/main

repo_name: IBM/hspo-ontology


text:
# ASUS Zenfone 5 root

Little script, which will root your ASUS Zenfone 5.

## Tested devices

- ASUS Zenfone 5 (T00F/T00J) with official WW-<IP_ADDRESS> firmware

## Data safety

This script **will not overwrite any of your data** (files, photos, music, settings etc). It's totally safe.

Script **will overwrite**:
- dnx
- ifwi
- fastboot
- recovery

## Requirements

- adb
- fastboot

## Usage for linux

If you're on linux, run `root.sh` script in terminal and follow instructions. Make sure that you have [enabled USB debugging mode](#enabling-usb-debugging-mode) in your phone.

```shell
./root.sh
```

## Usage for non-linux systems (Windows etc.)

I don't have time for develop scripts for other systems, but you can root your phone manually. Your device will be rebooted a few times in whole process.

1. Download [the rooting script](https://github.com/sigo/asus-zenfone-5-root/archive/master.zip) (about 53.4MiB).
2. Extract downloaded package.
3. [Enable USB debugging mode](#enabling-usb-debugging-mode) in your phone.
4. Connect your phone with computer.
5. Open terminal in extracted `asus-zenfone-5-root` directory (you don't need reboot your phone manually, just execute following commands).
6. Reboot to bootloader.

    ```shell
    adb reboot bootloader
    ```

7. Unlock fastboot.

    ```shell
    fastboot flash fastboot files/root/fastboot.img
    fastboot reboot-bootloader
    ```

8. Unlock bootloader (**this can take up to 3 minutes**, please be patient).

    ```shell
    fastboot flash dnx files/vanilla/dnx_fwr_ctp_a500cg.bin
    fastboot flash ifwi files/root/ifwi_ctp_a500cg.bin
    fastboot reboot-bootloader
    ```

9. Root phone (**an error during this part is normal** - just ignore it).

    ```shell
    fastboot flash recovery files/root/recovery.img
    fastboot flash update files/root/dummy.zip
    adb reboot bootloader
    ```

10.

## Enabling USB debugging mode

1. Go to system **settings**.
2. Click **about**.
3. Open **software information**.
4. Tap **build number** 7 times - until a pop-up hint informs you that you've entered the developer mode.
5. Return to **settings**.
6. Find and open **developer options**.
7. Select **USB debugging** and click **ok**.

## Authors

- Mateusz Jagiełło (http://sigo.pl)
- Vipin Arumugham (http://www.facebook.com/zenfoneindia)
- shakalaca (http://23pin.logdown.com/)


text:
# Blockchain Mortgage Demo
An experimental (and learning) Blockchain project to demonstrate how a UK mortgage application could be processed using
[Hyperledger Fabric](https://www.hyperledger.org/).

[](http://bit.ly/2kZWwg8)

_Coming soon... and very much work in progress!_

**Disclaimer:** This is a lay person's (basic) understanding of the UK mortgage and conveyancing process;
I am not an industry expert and there could well be errors in the use case as well as the code ;-)
This software is provided 'as is' and released under the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0.html) license.

## Use Case
A very simplified version of the UK mortgage application process in order to demonstrate the benefits of Blockchain.

### Participating Parties
The following parties will participate in the demo:

1. Buyer/Borrower - wants to purchase a property and apply for a loan.
1. Mortgage Advisor - advises Borrower and assists with mortgage application.
1. Lender - offers the loan.
1. Credit Reference Agency - performs credit check on behalf of the Lender.
1. Surveyor - performs property valuation on behalf of the Lender.
1. Regulator - Financial Conduct Authority (FCA) oversees all lending activities.

### Mortgage Application Process
This is a cut-down version of the process as seen from the point of view of the Buyer.

![mortgage_application_process_v1.png](./docs/mortgage_application_process_v1.png)

The flow below assumes a successful application:

1. Buyer/Borrower seeks mortgage advice.
1. Mortgage Advisor performs Fact Find (responsible lending check) and recommends loan based on Borrower's circumstances.
1. Buyer/Borrower applies for loan with selected Lender.
1. Lender performs Know Your Customer (KYC) on Borrower.
1. Lender instructs Credit Reference Agency to perform financial check on Borrower.
1. Lender provides Decision in Principle (DIP) to provide loan to Borrower.
1. Buyer/Borrower puts offer on property and formalises loan application.
1. Lender instructs Surveyor to value the property.
1. Lender approves application and provides offer of loan to Borrower.

The Regulator can oversee the mortgage lending process throughout.

#### The Mortgage Asset
Mortgage applications are modeled on the Blockchain using the following attributes:

| Attribute               | Type/Purpose                                                                 |
| ----------------------- | ---------------------------------------------------------------------------- |
| ApplicationId           | Unique string used to identify the mortgage application. |
| Status                  | Current status of mortgage application, e.g. draft, survey_pending, offered, |
| BorrowerName            | Name of Borrower. |
| BorrowerAddress         | Borrower's current address. |
| MortgageAdviserId       | Identity of Mortgage Adviser |
| LenderId                | Identity of Lender |
| SurveyorId              | Identity of Surveyor |
| CreditReferenceAgencyId | Identity of Credit Reference Agency |
| PropertyValuation       | Valuation of property given by Surveyor |
| CreditScore             | Credit score for Borrower |

#### Transactions Recorded
At different stages of the process, transactions are recorded on the Blockchain:

1. Initial application for the loan by the Borrower.
1. Mortgage Advisor's Fact Find check result.
1. Lender's KYC check result.
1. The Credit Reference Agency's credit check result.
1. The Lender's Decision in Principal.
1. The Surveyor's valuation report.
1. The Lender's formal offer of loan.

#### Participant Permissions
The demo is designed to allow participants to interact with the mortgage asset by creating, updating and
terminating it as their permissions allow. The participants included in the demo are:

| Participant             | Permissions                                                              |
| ----------------------- | ------------------------------------------------------------------------ |
| Mortgage Advisor        | Create, Read (Own mortgages), Update (Status), Reject |                          |
| Borrower                | Read (Own mortgage), Update (BorrowerName, Address), Reject |
| Lender                  | Read (Own mortgages), Update (Status), Reject |
| Credit Reference Agency | Read (Own references), Update (Status, creditScore) |
| Surveyor                | Read (Own surveys), Update (Status, PropertyValuation) |
| Regulator               | Read (All applications)

### Blockchain Features
Some of the key features of Blockchain being used are:

1. Trust/Consensus - Lender trusts Mortgage Adviser's Fact Find check, Credit Reference Agency score, etc...
1. Immutability - the ledger provides a tamper-proof history of all the transactions that occurred during the application.
1. Privacy - participants only see transactions they're entitled to see. It's a permissioned ledger.
1. Smart Contracts - verifiable, searchable, immutable, encrypted.

### Blockchain Benefits
1. Borrower can check on application status at any time.
1. Mortgage Adviser and Lender can record Fact Find and KYC checks on the Blockchain to satisfy Regulatory requirements.
1. Regulator can see all of transactions in the application process.
1. Helps prevent fraudulent activity - it provides a tamper-proof financial audit trail.
1. Speeds up application process by removing intermediaries and custom point-to-point integration of parties.

## User Guide
TODO

### Prerequisites
TODO

### Building & Installation
#### Local Deployment
TODO

#### IBM Bluemix Deployment
TODO

### Running the Demo
TODO

repository: acrowise/blockchain-mortgage-demo

repo_name: acrowise/blockchain-mortgage-demo


text:
# File Structure
First of all, let's analyze the file and folder structure of Volta, what each file does and why we need it. __We love being extremely organized__, that's why we're following the standards for file and folder organization in web applications.

     build
    Compiled Volta views and resources

     config
    Application build configuration

     dist
    Compiled and minified Volta views and resources

     helpers
    Application helper functions

     src
    Source code for developers

         bundles

          Unprocessed asset bundle files.

         resources

          All the assets you should add to your website.

             css
            Stylesheets related to volta

             fonts
            Font files in various formats

             icon
            Favicons generated with favicon-generator.org

             img
            Image files related to Volta

             js
            Scripts related to volta

         vendors

          External plugins used in Volta.

         views

          Pug mixins, views and layout files.

             dashboard

             documentation

             helpers

             home

             layouts

             mixins

             partials

     tasks
    Gulp task module files

     changelog.md
    Changelog for every version of volta

     gulpfile.js
    Gulp automation setup

     readme.md

repository: georgi-dev/dmr-academy

repo_name: georgi-dev/dmr-academy


text:
---
layout: shared/narrow-pages-list
title: "Your first push notifications web app"
description: "In this codelab, you'll learn how to add Push Notifications to web applications. This will enable you to re-engage users with breaking news and information about new content."
published_on: 2015-09-28
updated_on: 2015-09-28
translation_priority: 1
order: 2
---

Note

      Be sure to check out

      Push Notification for best practices and more details on how to use
      Web Push Notifications.

In this codelab, you'll learn how to add Push Notifications to web applications.

This will enable you to re-engage users with breaking news and information about
new content.

You'll also learn the basics of service workers.

## What you'll learn

* Service worker basics: installation and event handling
* How to set up a Google Cloud Messaging (GCM) account
* How to add a web manifest
* Techniques for requesting GCM to send a notification to a web client
* Notification display
* Notification click handling

## What you'll need

* Chrome 42 or above
* A basic understanding of [git](https://git-scm.com/), and [Chrome DevTools](/web/tools/chrome-devtools)
* Experience of [Promises](http://www.html5rocks.com/en/tutorials/es6/promises/) and [service worker](http://www.html5rocks.com/en/tutorials/service-worker/introduction/) would also be useful, but is not crucial
* The sample code
* A text editor
* A terminal window to run command line tools
* Python or a simple local web server (see below)

repository: JcChimjj/WebFundamentals

extension: markdown

gha_language: HTML

repo_name: JcChimjj/WebFundamentals


text:
# VLESS / VMess / Trojan-Go
automated script for VLESS, VMess and Trojan-Go

## Usage
```sh
curl -fsSL https://raw.githubusercontent.com/phlinhng/v2ray-tcp-tls-web/vless/src/v2gun.sh -o ~/v2gun.sh && bash ~/v2gun.sh
```
To run the script again once downloaded, just use the following command:
```
bash ~/v2gun.sh
```

## Features
1. VLESS / VMess / Trojan-Go all in one
2. Higher offloading efficieny with v2ray-core as frontend
3. Support Debian9+, Ubuntu 16+ and CentOS 7+ operation systems
4. Support both IPv4 and IPv6

## Architecture
+ VLESS over TCP with [XTLS](https://github.com/XTLS/Go) powered by v2ray-core
+ VMess over WSS on Cloudflare powered by v2ray-core and Cloudflare
+ Trojan (protocol) and muxing powered by trojan-go (implementaion)
+ Trojan over WSS on Cloudflare powered by trojan-go and Cloudflare
+ HTTP Website backend powered by caddy2

## Supported Protocols
| Protocol | Transport | Mux | Direct | CDN | Qv2ray | Shadowrocket | Clash | v2rayN(G) |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| VLESS | XTLS | ❌ | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ |
| VLESS | TLS | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ |
| VLESS | WSS | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ |
| VMess | WSS | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Trojan | TLS | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ |
| Trojan | WSS | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ |
| Shadowsocks | WSS | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |

12 protocols combinations with 19 connection methods in total.

## Related work
+ [Shawdowrockets 訂閱鏈接編輯器](https://www.phlinhng.com/b64-url-editor): subscription manager
+ [v2script](https://github.com/phlinhng/v2ray-tcp-tls-web/tree/master): v1.x version

## Telegram
https://t.me/technologyshare

## Credit
+ [Project V](https://www.v2fly.org/)
+ [V2Ray 配置指南](https://toutyrater.github.io/)
+ [新 V2Ray 白话文指南](https://guide.v2fly.org/)
+ [templated.co](https://templated.co)
+ [@liberal-boy/tls-shunt-proxy](https://github.com/liberal-boy/tls-shunt-proxy)
+ [@atrandys/trojan](https://github.com/atrandys/trojan)
+ [@Loyalsoldier/v2ray-rules-dat](https://github.com/Loyalsoldier/v2ray-rules-dat)
+ [@mack-a/v2ray-agent](https://github.com/mack-a/v2ray-agent)
+ [@chiakge/Linux-NetSpeed](https://github.com/chiakge/Linux-NetSpeed)
+ [@ylx2016/Linux-NetSpeed](https://github.com/ylx2016/Linux-NetSpeed)
+ [@LemonBench/LemonBench](https://github.com/LemonBench/LemonBench)
+ [@tindy2013/subconverter](https://github.com/tindy2013/subconverter)
+ [@p4gefau1t/trojan-go](https://github.com/p4gefau1t/trojan-go)
+ [@rprx/v2ray-vless](https://github.com/rprx/v2ray-vless)
+ [@acmesh-official/acme.sh](https://github.com/acmesh-official/acme.sh)
+ [@nginx/nginx](https://github.com/nginx/nginx)
+ [@charlieethan/firewall-proxy](https://github.com/charlieethan/firewall-proxy)

## Stargazers over time
[![Stargazers over time](https://starchart.cc/phlinhng/v2ray-tcp-tls-web.svg)](https://starchart.cc/phlinhng/v2ray-tcp-tls-web)

branch_name: refs/heads/vless

gha_license_id: MIT


text:
Display and control file download progress bar on macOS.

![screenshot](https://github.com/alexstrat/node-macos-download-progress/raw/master/.github/screenshot.png)

# Installation

```bash
$ npm install --save macos-download-progress
```

# Usage

Create a `MacOSDownloadProgress`, with `total`, telling the progress
bar when it will be considered complete. After that all we need to do is
`tick(amount)` appropriately.

```js
const MacOSDownloadProgress = require('macos-download-progress');
const FILE_PATH = '/path/to/file/you/want/to/display/progress-bar/on';

var progress = new MacOSDownloadProgress(FILE_PATH, {
  total: 1000
});

var timer = setInterval(() => {

  progress.tick(100);

  if (progress.completedCount > TOTAL) {
    console.log('Completed');
    clearInterval(timer);
  }
}, 1000);
```

Also, see [examples directory](https://github.com/alexstrat/node-macos-download-progress/tree/master/examples).

# API
_wip_

TODO: document the `cancellable` option and `cancel` event.

# Caveats and limitations
- no idea what happens when installed and used on other platforms than macOS
- have not tested on electron yet
- relies on [NodObjC](https://github.com/TooTallNate/NodObjC): slower than native binding? memory leaks?

# License
MIT

repository: alexstrat/node-macos-download-progress

repo_name: alexstrat/node-macos-download-progress


text:
Write a function that returns `true`if all subsets in a list belong to a given set.

### Examples ###
    validateSubsets([[1, 2], [2, 3], [1, 3]], [1, 2, 3]) ➞ true

    validateSubsets([[1, 2, 3], [2], [3], []], [1, 2, 3]) ➞ true

    validateSubsets([[1, 2], [2, 3], [1, 4]], [1, 2, 3]) ➞ false

    validateSubsets([[1, 2, 3, 4]], [1, 2, 3]) ➞ false

### Notes ###
*   The **empty set**and the **set**itself are **both**valid subsets of a set (we are not talking about proper subsets here).
*   The set and the subset will each have unique elements.


text:
# Red Hat Satellite 6.x Ansible Modules

This repo contains Ansible Modules and filters for managing
a Red Hat Satellite 6.X server

Red Hat Satellite 6.X provides a REST API. This REST API
is the backbone of this git repository

## Modules

* ``satellite_facts``: Collects facts about Red Hat Satellite
* ``satellite_realms``: Creates and modify Red Hat Satellite Realms

## Filters

* ``get_capsule_id``: Given a ``capsule name`` and satellite feature, this filter returns a matching capsule ID.

## Examples

A sample playbook called ``test_playbook.yml`` is included to showcase the modules doing remote REST API calls
A sample playbook called ``test_playbook_exec_on_satellite.yml`` showcases running the modules from the satellite server. So no remote REST API calls

## License

MIT

## Notes

Not sure how much time I will have to complete this project. It will
depend on how many Satellite provisioning projects I get.


text:
# cs5293p20-project-0

The main aim of the project is to provide a summary of the nature and count of each nature of the incident that has happended on a particular day in norman.
The data is collected from norman police department website http://normanpd.normanok.gov/content/daily-activity. I am taking an incident report of a particular date and displaying the results based on that report.

### Author - Nithivarn Reddy Shanigaram

### Email -<EMAIL_ADDRESS>
### Structure

```
└── cs5293p20-project-0
    ├── LICENSE
    ├── Pipfile
    ├── Pipfile.lock
    ├── README.md
    ├── project0
    │   ├── __init__.py
    │   ├── main.py
    │   └── project0.py
    ├── setup.cfg
    ├── setup.py
    └── tests
        ├── test_eincidents.py
        └── test_incidents.py
```

External Packages used

> PyPDF2

> Pandas

> Pytest

## Steps to install the project

Open your Terminal..

1) git clone the project

2) Install pipenv in your system

  - if it is debain based
    Run the following command

    pip install pipenv

3) cd into cs5293p20-project-0

4) Run pipenv install

 This command installs all the dependencies required by the project. (provided in the Pipfile)

## Steps to Run the project

Now run the project using the following command (Inside the cs5293p20-project-0)

 > pipenv run python project0/main.py --incidents Enter-Url

  eg : Enter-Url = http://normanpd.normanok.gov/filebrowser_download/657/2020-02-19%20Daily%20Incident%20Summary.pdf

This will display the result in your console / terminal.

## To run testcases
Go inside the virtual environment by running the following commands.

1) cd cs5293p20-project-0

2) Run pipenv shell

3) Run pytest

## Assumptions made in the project are

1) The url provided needs to be a working one.

2) The data present in the multi-line is separated by extra "\n" when it is extracted.

3) Data is Missing in Nature Column only.

4) Missing data is replaced with NULL value.

5) The database is created once with the name "normanpd.db"

6) The table_name is "incidents" which is dropped everytime.

## External Sources referred

1. pipenv overview [link](https://realpython.com/pipenv-guide/)
2. pandas [link](https://pandas.pydata.org/pandas-docs/stable/getting_started/10min.html)
3. Replacing empty spaces in dataframe [link](https://stackoverflow.com/questions/13445241/replacing-blank-values-white-space-with-nan-in-pandas)

### Functionality of each method in project0.py

#### fetchIncidents(url):
     Takes as input the url provided when running the project.
     returns an bytes object.
#### extractIncidents(data):
     Takes as input the bytes object returned from fetchIncidents() method.
     This is the main method where the bytes data is extracted and converted into unicode string . Then the unicode string        is used to extract data from columns and place in it a dataframe.
     Most of the assumptions and edge cases are covered here.
     Data is splitted based on the date.
     returns an dataframe.
#### createDB():
     This method creates a database named "normanpd.db" in the current location where the project is cloned.
     It also creates the table named "incidents".
#### populateDB(incidents,db="normanpd.db"):
     This method takes dataframe generated from extractIncidents as input along with the database name.
     The database name is hardcoded in here, name can be changed as our wish.
     The dataframe is populated into the incidents table. If the table already exits then the table data is dropped.
     returns nothing.
#### status(db="normanpd.db"):
     This method takes as input the db name which is also right now hardcoded, but if needed we can pass a different name.
     This method prints out the nature and the number of occurences of each nature of the incident that has happened on a        particular day.


text:
Extrapolating Davidson Method
==============================

About
-------------

This is a Python implementation on extrapolating block restarted Davidson method.

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

1. numpy == 1.19.2
2. scipy == 1.5.1
3. matplotlib == 3.3.0
4. h5py == 2.10.0

Setup Environment
------------------

1. Run `pip install -r requirements.txt` to install dependencies

Usage
-------

To set up the algorithm for testing, a list of parameters need to be set properly before running:
1. --tol:                 tolerance of convergence for each eigen value-vector
2. --data_file_name:      data file name (directory)
3. --n_eig:               number of roots/eigen values to solve
4. --n_guess:             number of initial guess vectors
5. --k:                   number of steps Davidson method (i.e. k-step Davidson method)
6. --max_iter:            max number of iteration to restart Davidson method
7. --descent_order:       True or False, solve the max roots/eigen values if descent
8. --init:                initialization for guess vectors (currently only "random" or "Euclidean")
9. --gamma:               extrapolation parameter
10. --compare:            0: only original Davidson 1: only extrapolated Davidson 2: both original and extrapolation
11. --plot:               True or False, plot residual history

SYNOPSIS:
```
python test-Davidson-restarted.py [--tol] [--data_file_name] [--n_eig] [--n_guess] [--k]
                                  [--max_iter] [--descent_order] [--init] [--gamma] [--compare] [--plot]

example: python test-Davidson-restarted.py --tol 1e-10 --data_file_name data/HBAR_rhf.npz --n_eig 10 --n_guess 10 --k 50 --max_iter 40 --descent_order False --init random --gamma -0.5 --compare 2 --plot True
```

Notice
----------------
1. File `setting.txt` list parameters for solving eigenvalue/vector pairs for different sparse matrices that I have tested on.
2. This is a research project in mathematics, any advice or suggestions from computer science literature are welcome to make this program better. There are sill lots of work left to be done, if you find any errors, feel free to let us know.

Development
-----------

If you want to work on this application we’d love your pull requests on GitHub!

1. If you open up a ticket, please make sure it describes the problem or feature request fully.
2. If you send us a pull request, make sure you add a test for what you added, and make sure the full test suite runs with `make test`.

Contact
----------------
Name: Chi (Chris) Ding

Email: ding.chi@ufl.edu

repository: chrisdcs/Numerical-Computation

gha_language: Python

repo_name: chrisdcs/Numerical-Computation


text:
## What does this do?
This allows you to experiment with basic [`PPC Assembly`](https://en.wikipedia.org/wiki/PowerPC) code directly on your computer.

## Why is this useful?
It saves you the trouble of running assembly on a PowerPC-based system since computers generally use [`x86 assembly`](https://en.wikipedia.org/wiki/X86_assembly_language) so PowerPC is not natively supported. Also, by using the interpreter you will not crash if you access a bad memory address for instance and you can try again immediately.

## Where can I download the application?
[Here](Java-PowerPC-Interpreter.jar?raw=true).

## What are the requirements to run this?
[You only need to have Java installed](https://www.youtube.com/watch?v=t58ZrfkI2PM).

## Why are so many instructions unsupported?
Because it takes a lot of time to implement them. Progress on this might be made later on. Have a look through the source code to find out what is supported. It should be easy to tell.

repository: BullyWiiPlaza/Java-PowerPC-Interpreter

repo_name: BullyWiiPlaza/Java-PowerPC-Interpreter


text:
# README

[![Build Status](https://travis-ci.com/dzagozdzon/DrinkForTonight.svg?branch=master)](https://travis-ci.com/dzagozdzon/DrinkForTonight)
![](https://img.shields.io/github/license/dzagozdzon/DrinkForTonight.svg)

**DrinkForTonight** is web application for cataloging and matching drinks based on ingredients.

### Dependencies:
App is developed on Ruby version `2.5.1` environment,
Rails version `5.2.1`,
MySQL `5.7` database.

## Preview
You can preview app at:
__[DrinkForTonight](https://drinkfortonight.herokuapp.com/)__ Heroku.

## Setup

### Database:

```bash
bundle install
rails db:migrate
```

### Running the app:
```bash
rails s
```

### Running tests:
```bash
bundle exec rspec
```

## Author:
* [Dariusz Zagożdżon](https://pl.linkedin.com/in/dariusz-zago%C5%BCd%C5%BCon-b6a324154)

## License
This code is distributed under the terms and conditions of the
[MIT license](https://github.com/dzagozdzon/DrinkForTonight/blob/master/LICENSE).

repository: dzagozdzon/DrinkForTonight

gha_language: Ruby

repo_name: dzagozdzon/DrinkForTonight


text:
---
layout: post
title: KoaJs and the SyntaxError Unexpected identifier error - or that time when I
  understood generators
date: 2014-04-11T14:43:00.001Z
author: Marcus Hammarberg
tags:
  - Javascript
  - Koa
modified_time: 2014-04-11T15:19:56.787Z
blogger_id: tag:blogger.com,1999:blog-36533086.post-4774542661205622224
blogger_orig_url: http://www.marcusoft.net/2014/04/WhenIGotGenerators.html
---

It was quite sometime since I wrote a blog post with an error message in
the title. However I have now got this error so many times, and keep
scratching my head every time. Also I think I can explain why it
happens.

Here's an example on how to make this error occur, from the co-monk
library README (not anymore maybe):

Running that code (either with "node --harmony
koaErrorFail.js" or test it with "mocha
--harmony-generators koaErrorFail.js") fail with the error from
the title of the blog post:

>

>
> yield
> users.remove({});
>
>

>
>

>
>
> ^^^^^
>
>

>
>

>
>  style="font-family: Courier New, Courier, monospace;">SyntaxError:
> Unexpected identifier
>
>

At this point you start to think that you forgot to run the example with
the "--harmony"
flag. But of course you do that, right?
Ah, maybe you are running the
wrong version of Node. Again, no. You're doing it
right. Right?

However this code is not running within a generator function. And the
keyword "yield" is
just allowed within a generator function. In fact, to my understanding,
a function is a generator function if it has an asterisk before the name
of the function and one or more "yield"s
within the function.

But we want to say "yield".
The yield is
good. It's what helps us get non-blocking code. You are basically
telling node to do something else while we wait for this operations.
Like callbacks but without yuck.
But there has to be a generator function around it. And someone to drive
the generator for us. I mean that can keep track on where we were when
we waited for the next yield.There's has to be *someone* that takes care
of this
"generator
async flow control goodness". Someone greater than us. Someone like
co.

 That's all very complicated if
you ask me. But let's show how this co could be used to help us fix the
error we ran into before:

Here we can see that the code, from our failing example is wrapped in a
generator function (note the asterisk). This (anonymous) generator
function is then passed to
the co-library
constructor function. Finally we also invoke the function that
co-returns, right away, hence the ")();" on line 20.

### Summary and hat tipping

I would not have grasped this
without this awesome article by
Zef. Not only did
he write that article but he also helped me when I
reached out to him on Twitter. Thank you mr Zef, my
hat is tipped towards you. Loudly (?)

Summing up the problem would be something like this:

- The "Unexpected
    identifier" is not really users
    (in my example), but rather that yield
    is not valid outside a generator function.
- We can create an anonymous generator function by wrapping the code
    in "function *(){
    // code }"
- Only problem left, is that we need someone that calls and drives
    through that function for us, continuing after a yield is
    reached for example. That could
    be co,
    for example.
- The co constructor takes a generator function as parameter making
    our entire wrapping for this into "co(function
    *(){// code})();"

I can now find eternal peace. I will probably never be able to explain
this again, but then I can come back to this post and "the time I
understood generators".


text:
# Fedora CoreOS updates backend

[![Build Status](https://api.travis-ci.com/coreos/fedora-coreos-cincinnati.svg?branch=master)](https://travis-ci.com/coreos/fedora-coreos-cincinnati)
![minimum rust 1.39](https://img.shields.io/badge/rust-1.39%2B-orange.svg)

This repository contains the logic for Fedora CoreOS auto-updates backend.

This service provides an implementation of the [Cincinnati protocol][cincinnati], which is consumed by on-host update agents (like [Zincati][zincati]).

This workspace can be built with `cargo build` and contains the following binaries:

 * `fcos-graph-builder`: a service which builds and caches the raw update graph
 * `fcos-policy-engine`: a web service which handles requests from agents

[cincinnati]: https://github.com/openshift/cincinnati
[zincati]: https://github.com/coreos/zincati

repository: tomleb/fedora-coreos-cincinnati

gha_license_id: NOASSERTION

repo_name: tomleb/fedora-coreos-cincinnati


text:
# [2018-11-06 Election](../../README.md), City and County of Denver Referred Measure 2D

## Information:

* https://ballotpedia.org/Denver,_Colorado,_Measure_2D,_At-Will_Appointments_Charter_Amendment_(November_2018)
* http://lwvdenver.org/ballot-issues.html

# Vote: Yes

## Why:

* I don't have much of an opinion on this, but no one seems to be opposed to it, so sure.

repository: sreynen/vote

repo_name: sreynen/vote


text:
---
layout: post
title:  "Catch more errors in your Business Central apps adding steps to your CI/CD pipelines!"
date:   2021-11-03
excerpt: "Catch errors in your Microsoft Dynamics 365 Business Central apps by adding XLIFF Sync's check-step and additional code analysis to your build pipeline in Azure DevOps!"
tag:
- xliff
- translation
- localization
- al
- business central
- code analysis
comments: true
---

Experiencing that you are doing a lot of manual checks in an attempt to catch potential errors in your extensions for Microsoft Dynamics 365 Business Central? In this post you will find some possible additions to your build pipelines that allow you to catch these errors early and completely automized, covering the following categories:

* [Checking XLIFF Translation Files for Errors in Build Pipelines](#checking-xliff-translation-files-for-errors-in-build-pipelines)
  * [Installing the XLIFF Sync PowerShell Module](#installing-the-xliff-sync-powershell-module)
  * [Adding Translation Checks to your BC Build Pipelines](#adding-translation-checks-to-your-bc-build-pipelines)
* [Checking Coverage of your Permission Sets](#checking-coverage-of-your-permission-sets)
* [Adding Custom Code Analyzers to your Pipelines](#adding-custom-code-analyzers-to-your-pipelines)
  * [Custom Code Analyzer in Visual Studio Code](#custom-code-analyzer-in-visual-studio-code)
  * [Custom Code Analyzer in Build Pipelines](#custom-code-analyzer-in-build-pipelines)

## Checking XLIFF Translation Files for Errors in Build Pipelines

Do you want to add, update and check translations for your Microsoft Dynamics 365 Business Central apps efficiently? Then, first up, make sure to read my earlier post ["XLIFF Sync: Time for a complete overview"](https://robvanbekkum.nl/xliff-sync-overview/) on "XLIFF Sync" for VSCode and PowerShell that allows you to synchronize your translation files and check for translation errors.

Now, let's see how we can utilize XLIFF Sync in our build pipelines to catch translation errors early on!

### Installing the XLIFF Sync PowerShell Module

The PowerShell module is available on PowerShell Gallery and can be installed like any other module as follows:

```powershell
Install-Module XliffSync
```

You can also do this on the machine where the agents of your build pipelines are running.

### Adding Translation Checks to your BC Build Pipelines

Starting from version <IP_ADDRESS>, the XLIFF Sync PowerShell module also has a dedicated `Test-BcAppXliffTranslations` command, which runs translation checks as you specify for your Microsoft Dynamics 365 Business Central apps.

Here is an example of how you could invoke this command:

```powershell
Test-BcAppXliffTranslations -translationRulesEnableAll -AzureDevOps 'error' -printProblems
```

which will apply all translation rules/checks, treat issues found as errors, and also print the detected problems.

If you want to, you can also take the source code and use a customized version of the script. Feel free to make a Pull Request if you have any changes that could be useful to others though! 😊

**Test-BcAppXliffTranslations.ps1**

```powershell
<#
 .Synopsis
  Synchronizes and checks translations for a workspace folder with Microsoft Dynamics 365 Business Central apps.
 .Description
  Iterates through the translation units of a base XLIFF file and synchronizes them with a target XLIFF file.
 .Parameter buildProjectFolder
  Specifies the path to the workspace folder containing the projects.
 .Parameter appFolders
  Specifies the names of the app folders in the workspace folder. If empty, all subfolders will be processed.
 .Parameter translationRules
  Specifies which technical validation rules should be used.
 .Parameter translationRulesEnableAll
  Specifies whether to apply all technical validation rules.
 .Parameter restrictErrorsToLanguages
  Specifies languages to restrict errors to. For languages not in the list only warnings will be raised. If empty, then the setting of AzureDevOps applies to all languages.
  .Parameter AzureDevOps
  Specifies whether to generate Azure DevOps Pipeline compatible output. This setting determines the severity of errors.
 .Parameter reportProgress
  Specifies whether the command should report progress.
 .Parameter printProblems
  Specifies whether the command should print all detected problems.
 .Parameter printUnitsWithErrors
  Specifies whether the command should print the units with errors.
#>
function Test-BcAppXliffTranslations {
    Param(
        [Parameter(Mandatory=$false)]
        [string] $buildProjectFolder = $ENV:BUILD_REPOSITORY_LOCALPATH,
        [Parameter(Mandatory=$false)]
        [string[]] $appFolders = @(),
        [Parameter(Mandatory=$false)]
        [ValidateSet("ConsecutiveSpacesConsistent", "ConsecutiveSpacesExist", "OptionMemberCount", "OptionLeadingSpaces", "Placeholders", "PlaceholdersDevNote")]
        [string[]] $translationRules = @("ConsecutiveSpacesConsistent", "OptionMemberCount", "OptionLeadingSpaces", "Placeholders"),
        [switch] $translationRulesEnableAll,
        [Parameter(Mandatory=$false)]
        [string[]] $restrictErrorsToLanguages = @(),
        [Parameter(Mandatory=$false)]
        [ValidateSet('no','error','warning')]
        [string] $AzureDevOps = 'warning',
        [switch] $reportProgress,
        [switch] $printProblems,
        [switch] $printUnitsWithErrors
    )

    if ((-not $appFolders) -or ($appFolders.Length -eq 0)) {
        $appFolders = (Get-ChildItem $buildProjectFolder -Directory).Name
        Write-Host "-appFolders not explicitly set, using subfolders of $($buildProjectFolder): $appFolders"
    }

    Sort-AppFoldersByDependencies -appFolders $appFolders -baseFolder $buildProjectFolder -WarningAction SilentlyContinue | ForEach-Object {
        Write-Host "Checking translations for $_"
        $appProjectFolder = Join-Path $buildProjectFolder $_
        $appTranslationsFolder = Join-Path $appProjectFolder "Translations"
        Write-Host "Retrieving translation files from $appTranslationsFolder"
        $baseXliffFile = Get-ChildItem -Path $appTranslationsFolder -Filter '*.g.xlf'
        Write-Host "Base translation file $($baseXliffFile.FullName)"
        $targetXliffFiles = Get-ChildItem -Path $appTranslationsFolder -Filter '*.xlf' | Where-Object { -not $_.FullName.EndsWith('.g.xlf') }
        $allUnitsWithIssues = @()

        foreach ($targetXliffFile in $targetXliffFiles) {
            [string]$AzureDevOpsSeverityForFile = $AzureDevOps
            if (($AzureDevOps -eq 'error') -and ($restrictErrorsToLanguages.Length -gt 0)) {
                if ($null -eq ($restrictErrorsToLanguages | Where-Object { $targetXliffFile.Name -match $_ })) {
                    $AzureDevOpsSeverityForFile = 'warning'
                }
                Write-Host "Translation error severity is '$AzureDevOpsSeverityForFile' for file $($targetXliffFile.FullName)"
            }

            Write-Host "Syncing to file $($targetXliffFile.FullName)"
            Sync-XliffTranslations -sourcePath $baseXliffFile.FullName -targetPath $targetXliffFile.FullName -AzureDevOps $AzureDevOpsSeverityForFile -reportProgress:$reportProgress -printProblems:$printProblems
            Write-Host "Checking translations in file $($targetXliffFile.FullName)"
            $unitsWithIssues = Test-XliffTranslations -targetPath $targetXliffFile.FullName -checkForMissing -checkForProblems -translationRules $translationRules -translationRulesEnableAll:$translationRulesEnableAll -AzureDevOps $AzureDevOpsSeverityForFile -reportProgress:$reportProgress -printProblems:$printProblems

            if ($unitsWithIssues.Count -gt 0) {
                Write-Host "Issues detected in file $($targetXliffFile.FullName)."
                if ($printUnitsWithErrors) {
                    Write-Host "Units with issues:"
                    Write-Host $unitsWithIssues
                }

                if ($AzureDevOpsSeverityForFile -eq 'error') {
                    $allUnitsWithIssues += $unitsWithIssues
                }
            }
        }

        if ($targetXliffFiles.Count -eq 0) {
            Write-Host "##vso[task.logissue type=warning]There are no target translation files for $($baseXliffFile.Name)"
        }

        if (($AzureDevOps -eq 'error') -and ($allUnitsWithIssues.Count -gt 0)) {
            throw "Issues detected in translation files!"
        }
    }
}
```

What the command does exactly is the following:

* For each app folder (optionally specified by the `-appFolders` parameter, but falling back on all subfolders by default):

    1. Get the `.g.xlf` for the app and use it as the "base" XLIFF file.
    2. Get all other `.xlf` translation files and use them as the "target" XLIFF files.
    3. Synchronize the trans-units from the "base" XLIFF file (`.g.xlf`) to all other XLIFF translation files, so that they get all up-to-date trans-units that are in sync.
    4. Run translation checks as specified by the `-translationRules` parameter or `-translationRulesEnableAll` switch.
    5. If `-AzureDevOps` was set to `'error'` and issues where detected, throw an error.

You can add a step in your build pipelines that invokes the `Test-BcAppXliffTranslations` command after a step compiling your app(s) _with the `TranslationFile` feature enabled_ (which will generate/update the `.g.xlf` for your app(s)).

Please note that as a prerequisite you also need to have the `BcContainerHelper` PowerShell module installed (considering the `Test-BcAppXliffTranslations` command uses the `Sort-AppFoldersByDependencies` command from this module).

## Checking Coverage of your Permission Sets

**Update**: [Stefan Maroń](https://stefanmaron.com/) and I have added an [LC0015](https://github.com/StefanMaron/BusinessCentral.LinterCop/wiki/LC0015) code analyzer rule now that checks permission set coverage as well. You can find this rule in the [Business Central LinterCop](https://github.com/StefanMaron/BusinessCentral.LinterCop).

Next, something you might want to check, is that each AL object is covered by at least one of the permission sets of your app (of course, for those AL object types to which this applies).
Say, someone adds a new AL object, but does not add it to any permission set, so it can never be used unless you have `SUPER` permissions, then this might be something you want to catch in your build pipelines.

The `Test-BcAppPermissionSetCoverage` command below is something which checks exactly that:

**Test-BcAppPermissionSetCoverage.ps1**

```powershell
Param(
    [Parameter(Mandatory=$false)]
    [string] $buildProjectFolder = $ENV:BUILD_REPOSITORY_LOCALPATH,
    [Parameter(Mandatory=$false)]
    [string[]] $appFolders,
    [switch] $allAppFolders,
    [Parameter(Mandatory=$false)]
    [ValidateSet('no','error','warning')]
    [string] $AzureDevOps = 'error'
)

if ($AzureDevOps -eq 'no') {
    return
}

if ((-not $appFolders) -or ($appFolders.Length -eq 0)) {
    Write-Host "-appFolders not explicitly set, using subfolders of $buildProjectFolder"
    $appFolders = (Get-ChildItem $buildProjectFolder -Directory).Name | Where-Object { Test-Path (Join-Path $buildProjectFolder "$_\app.json") }
    if (-not $allAppFolders) {
        $appFolders = $appFolders | Where-Object { $("Test", "RuntimePackages") -notcontains $_ }
    }
    Write-Host "App Folders: $appFolders"
}

Sort-AppFoldersByDependencies -appFolders $appFolders -baseFolder $buildProjectFolder -WarningAction SilentlyContinue | ForEach-Object {
    Write-Host "Checking permission sets for $_"
    $appProjectFolder = Join-Path $buildProjectFolder $_

    $objectTypeHash = @{
        "table" = 1
        "report" = 3
        "codeunit" = 5
        "xmlport" = 6
        "page" = 8
        "query" = 9
    }

    $xmlPermissionSetFileNames = $null
    $permissionSetALDeclarations = $null

    $permissionSetALFiles = Get-ChildItem -Recurse "$appProjectFolder" *.PermissionSet*.al
    $xmlPermissionSetFileNames = (Get-ChildItem $appProjectFolder -Filter "*PermissionSet*.xml").FullName

    if ($permissionSetALFiles -ne $null) {
        if ($xmlPermissionSetFileNames -ne $null) {
            Write-Host "##vso[task.logissue type=warning]Both XML and AL permission sets were found. Please switch to AL permission sets!"
        }

        Write-Host "##[section]Found the following permission set object(s)"
        Write-Host $permissionSetALFiles
        $permissionSetALDeclarations = [ordered]@{}
        foreach ($permissionSetALFile in $permissionSetALFiles) {
            Write-Verbose "Permission set $permissionSetALFile covers the following objects:"
            $permissionSetALFileContent = Get-Content -Path $permissionSetALFile.FullName
            $alObjectsCovered = $permissionSetALFileContent | Select-String "($([string]::Join("|", ($objectTypeHash.GetEnumerator() | ForEach-Object { $_.Key })))) +`"?([A-Za-z0-9_ *]+)`"? =" -AllMatches | ForEach-Object {$_.Matches.Value.Trim(" =")}
            foreach ($alCoveredObject in $alObjectsCovered) {
                Write-Verbose "  [$alCoveredObject]"
                $permissionSetALDeclarations[$alCoveredObject] = $true;
            }
        }
        Write-Host "##[section]The permission set object(s) declare(s) permissions for the following objects"
        Write-Host ($permissionSetALDeclarations.Keys | Format-List | Out-String)
    }
    else {
        if ($xmlPermissionSetFileNames -eq $null) {
            throw "Missing permission set for extension!"
        }
    }

    $alFiles = Get-ChildItem -Recurse "$appProjectFolder" *.al | Where-Object { -not $_.PSIsContainer } | Select-Object Name, FullName, Length
    $missingPermissions = 0

    Write-Host "##[section]Checking coverage for each AL file..."
    foreach ($alFile in $alFiles) {
        Write-Verbose "Searching for objects in $($alFile.Name) that require permissions"
        $alFileContent = Get-Content -Path $alFile.FullName

        # Check if file contains ObsoleteState = Removed;
        if (($alFileContent -match "ObsoleteState = Removed;").Length -gt 0) {
            Write-Verbose "Skipping $($alFile.Name) due to ObsoleteState = Removed"
            continue
        }

        $alObjectDeclarations = $alFileContent -cmatch "^($([string]::Join("|", ($objectTypeHash.GetEnumerator() | ForEach-Object { $_.Key })))) +([0-9]+) +.*$"
        Write-Verbose "$($alObjectDeclarations.Length) object(s) found in $($alFile.Name)"

        foreach ($alObjectDeclaration in $alObjectDeclarations) {
            $hasMatches = $alObjectDeclaration -match "([A-Za-z]+) +([0-9]+) +((`"[A-Za-z0-9_ *]+`")|([A-Za-z0-9_*]+))"
            if (-not $hasMatches) {
                continue
            }
            $objectType = $Matches[1]
            $objectId = $Matches[2]
            $objectName = $Matches[3]
            Write-Verbose "Object Type: [$objectType]; Object ID: [$objectId]; Object name: [$objectName]"

            $foundObjectInPermissionSet = $false
            if ($permissionSetALDeclarations -ne $null) {
                $foundObjectInPermissionSet = ($permissionSetALDeclarations.Contains("$objectType $objectName")) -or
                                              (($permissionSetALDeclarations.Contains(("$objectType $objectName" -replace '"',''))) -or
                                               ($permissionSetALDeclarations.Contains("$objectType *")))
            }
            else {
                foreach ($xmlPermissionSetFileName in $xmlPermissionSetFileNames) {
                    $foundObjectInPermissionSet = Select-Xml -Path "$xmlPermissionSetFileName" -XPath "/PermissionSets/PermissionSet/Permission" | Select-Object -ExpandProperty Node | Where-Object { $_.ObjectType -eq $objectTypeHash.$objectType } | Where-Object { $_.ObjectID -eq $objectId }
                    if ($foundObjectInPermissionSet) {
                        break;
                    }
                }
            }

            if (-not $foundObjectInPermissionSet) {
                Write-Host "##vso[task.logissue type=$AzureDevOps]$objectType $objectId $objectName found in file $($alFile.Name) is missing in permission set(s)."
                $missingPermissions += 1
            }
        }
    }

    Write-Host "##[section]Coverage results:"

    if ($missingPermissions -gt 0) {
        $message = "Missing $missingPermissions objects in permission set(s)!"
        if ($AzureDevOps -eq 'error') {
            throw $message
        }
        else {
            Write-Host $message
        }
    }

    if ($missingPermissions -eq 0) {
        Write-Host "No problems found."
    }

    Write-Host "Done"
}

```

What the command does exactly is the following:

* For each app folder (optionally specified by the `-appFolders` parameter, but falling back on all subfolders by default):

    1. Get all permission sets, either AL- or XML-defined ones.
    2. Check if each AL object (for object types applicable) is covered by one or more of the permission sets.
    3. If `-AzureDevOps` was set to `'error'` and issues where detected, throw an error.

You can add a build step at any point in your pipeline, as long as it's after having loaded the `BcContainerHelper` PowerShell module (due to the `Sort-AppFoldersByDependencies` command from this module being used).

## Adding Custom Code Analyzers to your Pipelines

Do you often find yourself checking for and/or finding the same issues during Pull Request reviews? Then definitely look into adding additional code analyzer rules to your BC build pipelines.
Of course, you can request these rules at the [Dynamics 365 Application Ideas platform (https://aka.ms/bcideas)](https://aka.ms/bcideas), but it might take some time before it gets voted up and makes it into a future update of the [AL Language](https://marketplace.visualstudio.com/items?itemName=ms-dynamics-smb.al) extension.
So, until that happens (and if ever 😅), you can also have a look at using custom code analyzers which do the job for you.
A great example is the [`BusinessCentral.LinterCop`](https://github.com/StefanMaron/BusinessCentral.LinterCop) code analyzer/code-cop by [Stefan Maroń](https://stefanmaron.com/), which is a community effort of adding new useful code analyzer rules for Business Central extensions.
You can view and file requests for new code analyzer rules in the [Discussions](https://github.com/StefanMaron/BusinessCentral.LinterCop/discussions) tab of the GitHub repository, or even contribute with new code analyzer rules yourself by making [Pull Requests](https://github.com/StefanMaron/BusinessCentral.LinterCop/pulls?q=is%3Apr).
This project is also a great example, reference and starting point if you want to make your own code analyzer (which is actually not _that_ difficult, for simple rules), with rules specific to your company.
But, if you happen to have any rules that could be useful to others, then be free to share/integrate them into the `BusinessCentral.LinterCop` for everyone to benefit from it (and make enhancements or bug fixes to it).

### Custom Code Analyzer in Visual Studio Code

First, let's have a look at how you can use a custom code analyzer in Visual Studio Code.
This is actually 'as simple' as taking the `.dll` of your custom code analyzer and placing it in the `bin/Analyzers` folder of the AL Language VSCode extension (i.e., `%USERPROFILE%/.vscode/extensions/ms-dynamics-smb.al-<version>/bin/Analyzers`).

For the `BusinessCentral.LinterCop` however, it's even a lot more easier though.
You can simply install the [BusinessCentral.LinterCop](https://marketplace.visualstudio.com/items?itemName=StefanMaron.businesscentral-lintercop) VSCode extension which will automatically download the latest version of the code analyzer and places it in this folder for you.
Also, see the blog post [BusinessCentral.LinterCop goes VS Code!](https://stefanmaron.com/2021/09/21/businesscentral-lintercop-goes-vs-code/) by [Stefan Maroń](https://stefanmaron.com/) that discusses this in more detail.

After you have set this up, you'll need to enable the code analyzer for your AL project, by adding the following to the `settings.json` file of your project:

**settings.json**

```json
{
    "al.codeAnalyzers": [
        "${AppSourceCop}",
        "${CodeCop}",
        "${UICop}",
        "${analyzerfolder}BusinessCentral.LinterCop.dll"
    ],
    "al.enableCodeAnalysis": true
}
```

You can find all the rules that are currently available in the `BusinessCentral.LinterCop` in the [Rules](https://github.com/StefanMaron/BusinessCentral.LinterCop#rules) section in the README on GitHub.
At the time of writing, the code analyzer has implemented the following rules:

|Id| Title|Default Severity|
|---|---|---|
|LC0001|FlowFields should not be editable.|Warning|
|LC0002|`Commit()` needs a comment to justify its existence. Either a leading or a trailing comment.|Warning|
|LC0003|Do not use an Object ID for properties or variable declarations. |Warning|
|LC0004|`DrillDownPageId` and `LookupPageId` must be filled in table when table is used in list page|Warning|
|LC0005|The casing of variable/method usage must align with the definition|Warning|
|LC0006|Fields with property `AutoIncrement` cannot be used in temporary table (`TableType = Temporary`).|Error|
|LC0007|Every table needs to specify a value for the `DataPerCompany` property. Either `true` or `false`|Disabled|
|LC0008|Filter operators should not be used in `SetRange`.|Warning|
|LC0009|Show info message about code metrics for each function or trigger|Disabled|
|LC0010|Show warning about code metrics for each function or trigger if either cyclomatic complexity is 8 or greater or maintainability index 20 or lower|Warning|
|LC0011|Every object needs to specify a value for the `Access` property. Either `true` or `false`. Optionally this can also be activated for table fields with the setting `enableRule0011ForTableFields`|Disabled|
|LC0012|Using hardcoded IDs in functions like `Codeunit.Run()` is not allowed|Warning|

Some of these rules have the severity set to `Hidden` (Disabled) by default, even though some might be really useful for your development team.
For example, setting the `DataPerCompany` explicitly, could be changed to a `Warning`, which I would recommend, as you are definitely going to regret when you find out your tables have the wrong (implicit) value for this property (talking from experience... 😅).
You can change the severity of these rules, just like for any other rules, by adding them into a `ruleset.json` file, e.g.:

**LinterCop.ruleset.json**

```json
{
    "name": "LinterCop Ruleset",
    "description": "A ruleset to customize severity of LinterCop analyzer rules.",
    "rules": [
        {
            "id": "LC0007",
            "action": "Warning",
            "justification": "DataPerCompany should be set explicitly so that the developer shows that a per-company table is intentional."
        },
        {
            "id": "LC0010",
            "action": "Info",
            "justification": "Cyclomatic complexity and Maintainability index just informational for now."
        },
        {
            "id": "LC0011",
            "action": "Warning",
            "justification": "Access should be set explicitly so that the developer shows that something is part of the public API intentionally."
        }
    ]
}
```

After setting this up and reloading Visual Studio Code, you will get some nice new code analyzer warnings that help you catch errors in your AL project during development of your Business Central AL extension in Visual Studio Code. 😊

![LinterCop VSCode Warning Example](/assets/img/buildSteps/linterCopWarnings.png)

### Custom Code Analyzer in Build Pipelines

If you are building your Business Central AL extensions with the `BcContainerHelper` PowerShell module, then you can use the new `-CustomCodeCops` parameter in the `Compile-AppInBcContainer` command (or `Run-ALPipeline` command) to also apply custom code analyzers in your builds.
For this you need to have the BcContainerHelper version 2.0.16 (or newer) installed and pass the path to the code analyzer DLL to the `-CustomCodeCops` parameter.

Here are some steps to specifically integrate the `BusinessCentral.LinterCop` code analyzer:

1. Add a step that downloads the latest version of the `BusinessCentral.LinterCop` using the GitHub API:

   **Download-BcLinterCop.ps1**

   ```powershell
   Param (
        $targetPath = (Join-Path $ENV:BUILD_REPOSITORY_LOCALPATH '/LinterCop/BusinessCentral.LinterCop.dll')
    )
    $ErrorActionPreference = 'Stop'

    $targetDirectory = Split-Path -Path $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($targetPath) -Parent
    if (-not (Test-Path $targetDirectory)) {
        Write-Host "Creating target directory: $targetDirectory"
        New-Item -ItemType Directory -Path $targetDirectory
    }
    Write-Host "Target directory: $targetDirectory"

    $latestRelease = Invoke-RestMethod -Uri "https://api.github.com/repos/StefanMaron/BusinessCentral.LinterCop/releases/latest"
    $latestRelease.assets[0].browser_download_url
    $lastVersionTimeStamp = ''
    $lastVersionTimeStamp = Get-Content -Path (Join-Path $PSScriptRoot 'lastversion.txt') -ErrorAction SilentlyContinue

    if ($lastVersionTimeStamp -ne '') {
        $lastVersionTimeStamp = '0001-01-01T00:00:00Z'
    }
    Write-Host "Last version timestamp: $lastVersionTimeStamp"

    if (((Get-Date $lastVersionTimeStamp) -lt (Get-Date $latestRelease.assets[0].updated_at )) -or (-not (Test-Path $targetPath -PathType leaf))) {
        if (Test-Path $targetPath) {
            Remove-Item -Path $targetPath -Force
        }
        Write-Host "Downloading file to $targetPath"
        Invoke-WebRequest -Uri $latestRelease.assets[0].browser_download_url -OutFile $targetPath
        Set-Content -Value $latestRelease.assets[0].updated_at -Path (Join-Path $PSScriptRoot 'lastversion.txt')
        return 1
    }

    return 0
   ```

2. Pass the path to the code-analyzer to the `Compile-AppInBcContainer` or `Run-ALPipeline` command with the `-CustomCodeCops` parameter, e.g.:

    ```powershell
    ...

    [string[]] $customCodeCops = @((Join-Path $ENV:BUILD_REPOSITORY_LOCALPATH '/LinterCop/BusinessCentral.LinterCop.dll'))

    ...

    $appFile = Compile-AppInBCContainer -containerName $containerName `
                                        -credential $credential `
                                        -appProjectFolder $appProjectFolder `
                                        -appSymbolsFolder $buildSymbolsFolder `
                                        -appOutputFolder $appOutputFolder `
                                        -UpdateSymbols:$updateSymbols `
                                        -AzureDevOps `
                                        -EnableCodeCop:$enableCodeCop `
                                        -EnableAppSourceCop:$enableAppSourceCop `
                                        -EnablePerTenantExtensionCop:$enablePerTenantExtensionCop `
                                        -EnableUICop:$enableUICop `
                                        -rulesetFile $ruleSetFilePath `
                                        -CustomCodeCops $customCodeCops

    ...
    ```

   Again, you can also pass a ruleset using the `-ruleSetFile` parameter to change the severity of the rules of the custom code analyzer(s).

And after setting this up, you'll also nicely get the warnings from your custom code analyzer in your build pipelines.
So, from then on, you can check these warnings, which should save you a lot of time in Pull Request reviews, were you would normally check for these things manually. 😊

![LinterCop Pipelines Warning Example](/assets/img/buildSteps/linterCopWarnings_pipelines.png)

## Finally

Hopefully you were able to pick up something from this blog for catching errors in your Business Central extensions early.
If you have any suggestions for other tools that are useful, advices, or ideas for new features, then please feel free to share them!
For requesting new features/enhancements or to report bugs you find, you can open an issue on the [GitHub repository of XLIFF Sync](https://github.com/rvanbekkum/ps-xliff-sync) and [BusinessCentral.LinterCop](https://github.com/StefanMaron/BusinessCentral.LinterCop).

## References

* [BusinessCentral.LinterCop goes VS Code!](https://stefanmaron.com/2021/09/21/businesscentral-lintercop-goes-vs-code/) by [Stefan Maroń](https://stefanmaron.com/)

## Resources

* [BusinessCentral.LinterCop Code Analyzer](https://github.com/StefanMaron/BusinessCentral.LinterCop)
* [BusinessCentral.LinterCop VSCode Extension](https://marketplace.visualstudio.com/items?itemName=StefanMaron.businesscentral-lintercop)
* ["XLIFF Sync" PowerShell Module](https://www.powershellgallery.com/packages/XliffSync/<IP_ADDRESS>).


text:
## vim-walker

Walker is a context-aware list stepper. Here are the heuristics used to
determine what to do:

* If you are in diff mode, he'll walk you through diffs (uses the vim built-ins
  `[c`, `]c` and so forth)
* If you are in a buffer with git-diff-like output (i.e. has lines beginning
  with `+` and/or `-` and has filetype `git`/`diff`), a custom algorithm will
  help you walk through each change as if you were in diff mode.
* Otherwise, the commands will walk you through your quicklist (uses `:cfirst`,
  `:cnext`, `:cprevious` and so on)

The following commands let you use walker to step through lists in a unified,
context-aware fashion:

| Command      |  Example                             |
|--------------|:------------------------------------:|
|`WalkerFirst` | `nnoremap <Leader>f :WalkerFirst<CR>`|
|`WalkerNext`  | `nnoremap <Leader>d :WalkerNext<CR>` |
|`WalkerPrev`  | `nnoremap <Leader>s :WalkerPrev<CR>` |

More to come, I'm just lazy (and that's all I really use.)

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/goldfeld/vim-walker/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

repository: goldfeld/vim-walker

gha_language: VimL

repo_name: goldfeld/vim-walker


text:
# Minecraft-Multi-Threaded-Redstone-Server-CSharp

Inspired by MCHPRS https://github.com/StackDoubleFlow/MCHPRS

Master Branch contains latest working Protocol Release.

Protocol Braches contains the specified Minecraft Server Protocol. These can be broken.

\*https://wiki.vg/Protocol_version_numbers For a list of protocol version numbers used in the various MC releases.

This is now dead.


text:
# IdealSort
Analyzes the dataset for features and uses a machine learning model to pick the optimal sorting algorithm.

IdealSort is faster by 30% than just using any one sorting algorithm by taking advantage of "adaptive" sorting algorithms.
Some sorting algorithms like QuickSort3 or Shell Sort perform in nearly O(n) time for special situations. It is simply inefficient to always use only QuickSort for sorting your arrays when real-world data often has patterns that make a different sorting algorithm more effective for that specific use case. For extremely large datasets (think 100 arrays of size 100 each), IdealSort's forethought actually results in an average 85% increase in sorting speed (compared to just using QuickSort or jsut using Insertion Sort all the time) even after accounting for the time to analyze the features of the dataset.

This is an oversimplification of the machine learning decision tree of the model, but usually:
When the list is nearly sorted, IdealSort picks Insertion Sort.        ex: [1,2,4,3,5]
When the list is small, IdealSort also picks Insertion Sort.           ex: [1,2,3]
When the list is nearly reversed, IdealSort picks Shell Sort.          ex: [9,7,8,6,5,4,3,1,2]
When the list only has a few key values, IdealSort picks QuickSort3.   ex: [2,2,1,1,1,1,3,3,3]
When the list is random, IdealSort picks QuickSort.                    ex: [3,18,4,7,0,1]

Descriptions of each sorting algorithm can be found at: https://www.toptal.com/developers/sorting-algorithms

repository: allusai/IdealSort

repo_name: allusai/IdealSort


text:
![Logo](/logo-unikh-light.png)

# UniKh Documents

repo: [github.com/bagaking/UniKh](https://github.com/bagaking/UniKh)

## Getting Started

- [Install UniKh by git submodule](./Docs/getting_started/install_uniKh_by_git_submodule.md)
- [Install UniKh by source code](./Docs/getting_started/install_uniKh_by_source_code.md)
- [Install UniKh by npm tools](./Docs/getting_started/install_uniKh_by_npm_tools.md)

## Contact

-<EMAIL_ADDRESS>

repository: bagaking/Unikh-by-example

repo_name: bagaking/Unikh-by-example


text:
---
layout: post
title: "hyperdoc2vec: Distributed Representations of Hypertext Documents"
date: 2018-05-10 02:42:03
categories: arXiv_CL
tags: arXiv_CL Embedding Classification Recommendation
author: Jialong Han, Yan Song, Wayne Xin Zhao, Shuming Shi, Haisong Zhang
mathjax: true
---

* content
{:toc}

##### Abstract
Hypertext documents, such as web pages and academic papers, are of great importance in delivering information in our daily life. Although being effective on plain documents, conventional text embedding methods suffer from information loss if directly adapted to hyper-documents. In this paper, we propose a general embedding approach for hyper-documents, namely, hyperdoc2vec, along with four criteria characterizing necessary information that hyper-document embedding models should preserve. Systematic comparisons are conducted between hyperdoc2vec and several competitors on two tasks, i.e., paper classification and citation recommendation, in the academic paper domain. Analyses and experiments both validate the superiority of hyperdoc2vec to other models w.r.t. the four criteria.

##### Abstract (translated by Google)
超文本文件，例如网页和学术论文，在我们日常生活中传递信息时非常重要。尽管对普通文档有效，但如果直接适应超文档，传统文本嵌入方法会遭受信息损失。在本文中，我们提出了超文档的一般嵌入方法，即hyperdoc2vec，以及四个标准，表征超文档嵌入模型应该保留的必要信息。系统地比较hyperdoc2vec和几个竞争者之间的两个任务，即纸张分类和引文推荐，在学术论文领域。分析和实验都验证了hyperdoc2vec对其他模型的优越性。四个标准。

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

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


text:
# DMAO-WardenJWT

Warden Strategy for DMA Online JWT Authentication. Checks for a JWT (JSON Web Token) in either the Authorization header as a Bearer token or the get parameters of the request.

On successful authentication it returns an instance of DMAO::WardenJWT::User which has attributes and methods for checking the users institution as well as authenticated roles.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'DMAO-WardenJWT'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install Bundle-WardenJWT

## Usage

DMAO-WardenJWT requires the following environment variables to be set, this can be done using the [dotenv gem](https://rubygems.org/gems/dotenv).

| Environment Variable | Description |
| --- | --- |
| JWT_VERIFY_ISS | Boolean for whether to verify the token issuer (false allows for jwt_issuer to be nil) |
| JWT_VERIFY_AUD | Boolean for whether to verify the token audience (false allows for jwt_audience to be nil) |
| JWT_VERIFY_IAT | Boolean for whether to verify the issued at timestamp of the token |
| JWT_SECRET | The secret used to verify the integrity of the JWT (required) |
| JWT_ISSUER | The issuer of the JWT (required) |
| JWT_AUDIENCE | The audience for the JWT (required) |
| JWT_CUSTOM_CLAIMS_ATTRIBUTE | The name of the claim within the JWT to extract as the DMA Online custom claims (`dmao` is a sensible default) |

### Failure App

**DMAO-WardenJWT** does not define a failure app. Handling authentication failure should be handled within the service/application using this.

### Rails Usage

After including the gem add the following to `config/application.rb`. This is correct for using with Rails 5 when in API mode.

```ruby
config.middleware.insert_after Rack::ETag, Warden::Manager do |manager|
  manager.default_strategies :jwt
end
```

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/lulibrary/DMAO-WardenJWT.

## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

repository: lulibrary/DMAO-WardenJWT

repo_name: lulibrary/DMAO-WardenJWT


text:
# General dimensional Rotation

Our main goal is to efficiently represent rotations in lower dimensions, such as 2D and 3D, but some operations on rotations in general dimensions are also supported.

```@setup rotmatrixN
using Rotations
using StaticArrays
```

**example**

```@repl rotmatrixN
r1 = one(RotMatrix{4})  # generate identity rotation matrix
m = @SMatrix rand(4,4)
r2 = nearest_rotation(m)  # nearest rotation matrix from given matrix
r3 = rand(RotMatrix{4})  # random rotation in SO(4)
r1*r2/r3  # multiplication and division
s = log(r2)  # logarithm of RotMatrix is a RotMatrixGenerator
exp(s)  # exponential of RotMatrixGenerator is a RotMatrix
```

gha_language: Julia


text:
# cAdvisor-API
Metrics of docker swarm by using google cAdvisor API

To find CPU usage % the following formula is used

    Usage % = (Used CPU Time (in nanoseconds) for the interval) /(interval (in nano secs) * num cores)

## Install
System should have **go** installed.

To use as a go package, install this package by -

    go get github.com/swapnil96/cAdvisor-API

This will make the package available for use.Then import this package by -

    import "github.com/swapnil96/cAdvisor-API/utils"

Then you are ready to go !!

## Structure of the Repo
**UTILS** folder has the scripts for polling metrics

**host.go** gives the metrics of the host.
1) **Host_spec** function gives the specifications of the host.
2) **Host_stat** function gives the statistics of the host in a human readable form.
3) **Host_cpu** function gives cpu usage statistics in machine readable format.
4) **Host_memory** function gives memory usage statistics in machine readable format.

**docker.go** gives the metrics of all docker containers.
1) **Docker_stat** function gives the statistics of all docker containers in a human readable form.
2) **Docker_cpu** function gives cpu usage of all docker containers in machine readable format.
3) **Dost_memory** function gives memory usage of all docker containers in machine readable format.

**swarm.go** gives the metrics for all the nodes in the swarm.
1) **Swarm** function gives the statistics of all the nodes that are in the swarm.

## Usage
**main.go** has sample way how to use the scripts in the utils folder

All the metrics will be stored inside the stats folder.


text:
---
kind: article
title: Paper at Intercloud workshop
created_at: 2016/03/28
tags: publications conferences
---

Next week I will be at the
[IC2E](http://conferences.computer.org/IC2E/2016/){:target="_blank"}
conference in Berlin and will present an article at the
[Intercloud](http://www.cyclone-project.eu/intercloud2016.html){:target="_blank"}
workshop.

I will be there from Monday 4th to Friday 8th, in case anyone wants to discuss
distributed cloud around a German lager.
<!--more-->

The paper discusses the economical viability of distributed IaaS infrastructures
composed of hundreds to thousands of micro/nano data-centers. We identify
possible actors, introduce qualitative metrics to describe the infrastructures
each can produce, and give a cost model. We instantiate the cost model for three
actors and compare the cost of the VM they can prodive with those Amazon does.

This work is part of and funded by the [Discovery
Initiative](http://beyondtheclouds.github.io/){:target="_blank"} that I
encourage you to check
out.

The full text is available [here](/download/Intercloud_2016.pdf "Download full
text"), and the presentation slides are
[there](/download/intercloud_2016_slides.pdf "Download the slides").

See you in Berlin!

repository: asimonet/website

gha_language: JavaScript

repo_name: asimonet/website


text:
# Non Abundant Sums / Go Solution

## Question

A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of the proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28, which means that 28 is a perfect number.

A number n is called deficient if the sum of its proper divisors is less than n and it is called abundant if this sum exceeds n.

As 12 is the smallest abundant number, 1 + 2 + 3 + 4 + 6 = 16, the smallest number that can be written as the sum of two abundant numbers is 24. By mathematical analysis, it can be shown that all integers greater than 28123 can be written as the sum of two abundant numbers. However, this upper limit cannot be reduced any further by analysis even though it is known that the greatest number that cannot be expressed as the sum of two abundant numbers is less than this limit.

Find the sum of all the positive integers which cannot be written as the sum of two abundant numbers.

### Answer

**Current algorithm:**

- Iterate to max limit (28123)
- if iterated number is abundant add it to list.
- diff iterated number from first abundant number if remaining number is abundant go to next available abundant until find sum of two.
- when difference < 0 thats means number cannot be expressed as the sum of two abundant numbers.
- add it to sum, iterate next.

#### Solution: [**4179871**]

repository: freeloki/Go-Non-Abundant-Sums

gha_language: Go

repo_name: freeloki/Go-Non-Abundant-Sums


text:
# Burger App
A simple app for building and ordering burgers built with React, Redux and Firebase

## Quick start
* Change the name of the file `src/axios-orders-ex.js` to `src/axios-orders.js`
* Use Firebase realtime database Url as a baseUrl of axios instance in `src/axios-orders.js`
* Run :
```
npm install

npm start
```

## License
This code is released under the MIT license.

repository: azouaoui-med/react-burger-app

repo_name: azouaoui-med/react-burger-app


text:
# SMotionBlurComponent

Extends **SWebComponent**

Provide a simple webcomponent that apply a motion blur effect using SVG filters.
You can target an HTMLElement using the "for" attribute (same as for a label and an input), or apply the motion blur on the component itself.
The motion blur effect is triggered on these three events:
1. `transitionstart`: This events does not exist natively so you'll need to trigger it by yourself.
2. `animationstart`
3. `dragstart`
And is stopped on these three events:
1. `transitionend`
2. `animationend`
3. `dragend`

### Example
```html
	<s-motion-blur amount="1">
	<img src="..." alt="..." />
</s-motion-blur>

<div id="my-animated-div">
	<img src="..." alt="..." />
</div>
<s-motion-blur for="my-animated-div" amount="1"></s-motion-blur>
```
Author : Olivier Bossel<EMAIL_ADDRESS>

## Attributes

Here's the list of available attribute to set on the element.

### amount

Amount of motion blur to apply

Type : **{ [Number](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Number) }**

Default : **0.5**

### for

Specify the id of the element to apply the motion blur on. If not specified,
the target is the component itself

Type : **{ [String](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/String) }**

repository: Coffeekraken/s-motion-blur-component

repo_name: Coffeekraken/s-motion-blur-component


text:
---
title: "Dashboard"
sub_link: "polyaxon-cli/dashboard"
meta_title: "Polyaxonfile Command Line Interface Specification - Dashboard - Polyaxon References"
meta_description: "Polyaxonfile Command Line Interface Specification - Dashboard."
visibility: public
status: published
tags:
    - cli
    - reference
    - polyaxon
    - dashboard
sidebar: "polyaxon-cli"
---

> This command can be used for all Polyaxon deployment types (i.e. it does not require a scheduler)

> You can always access the help menu for this command by adding `--help`

Usage:

```bash
$ polyaxon dashboard
```

Open dashboard in browser.

option | type | description
-------|------|------------
  -y, --yes | Flag |  Automatic yes to prompts. Assume "yes" as answer to all prompts and run non-interactively.
  --url | Flag |  Print the url of the dashboard.
  --help | | Show this message and exit.

repository: jjasonkal/polyaxon

repo_name: jjasonkal/polyaxon


text:
# React Native Related Resources

## For Beginners

1.[React Native Tutorial: Building iOS Apps with JavaScript](https://www.raywenderlich.com/165140/react-native-tutorial-building-ios-android-apps-javascript)

## For People with Intermediate Level Expertise

## For Experts


text:
---
title: 'How Soundtracks Shape What We See: Analyzing the Influence of Music on Visual
  Scenes Through Self-Assessment, Eye Tracking, and Pupillometry - Chaundhary'
author: Nazish Idrees Chaudhary, Ph.D.
date: 2021-02-02
categories:
- Review
tags:
- Music
- Cognitive Psychology
thumbnail:
summary: Implications are vaguely added within the conclusion of the study. It blurs
  the accurate and tough description of the study’s conclusion. This fails to elicit
  critical thoughts and overview about the possibilities for future programs and policies
  with the directions all the variables investigation of the study possibly suggest.
  No recommendations are accurately perceived.
rubric_version: 1
rating_min: 1
rating_max: "4"
rating_total_max: "48"
rating: "79"
ratings:
  abstract: 3
  previous_studies: 3
  res_question: 4
  sampling: 3
  conditions: 4
  procedure: 3
  analytic_strategy: 4
  analysis_output: 4
  hypothesis: 2
  relation: 3
  limitations: 4
  implications: 3

---
Note: The review was conducted using reviewing guideline v0.1. ResearchHub helped this reviewing process. The review is also available on the [ResearchHub](https://www.researchhub.com/paper/874558/how-soundtracks-shape-what-we-see-analyzing-the-influence-of-music-on-visual-scenes-through-self-assessment-eye-tracking-and-pupillometry).

# PostReview Score

{{< review-table >}}

# Review

Abstract lacks a complete summary of the presented study. The authors missed the information about some crucial elements, for example, sampling and demographic of the subjects and setting, etc. The focus is totally on details about the study procedure. Besides, the aim and conclusion are not explained clearly.

The previous studies given in the introduction section described the versatile application of music in different contexts along with their pros and cons. However, there appears a slight gap between the study conducted by researchers and highlighted variables of the study. The investigated variables are poorly documented in the literature.

The aim of the study is discussed. The research questions are well defined and specific in relevance to the study. Each of the studies displayed its hypotheses.

The sampling strategy is specified in terms of demographic information and sample size with the number of exclusions. But the inclusion and exclusion criteria are not organized before the sampling.

The sampling conditions are described for each of the study groups. The authors explicitly share the conditions in each of the groups. The design and the experimental conditions are the most detailed narrative in the complete research article.

The sampling procedure and measures are structured. Such description can be used smoothly to reproduce similar stimuli and information may help in the replication of the study and results.

The data analysis strategy is conducted in detail based on the analysis rationale and design because it analyzes the score differences of all groups together. They choose appropriate analysis for the hypotheses. The choice of analyses for this study is discussed in detail. The characteristics of the participants are also portrayed.

The output of the analysis is significantly shown. The primary outcome is aligned with the research. The authors use different ways to verify the hypotheses wise outcome in great detail. The charts and graphs add much value with the tables to present every hypothesis.

The gender differences and research questions are covered in the discussion based on the table and presentation of results in the output section. It would be better if the discussion is based on all the variables in sequence as used in the study.

Discussion about other studies is not well described. The context of relevant and contemporary studies didn’t provide insight concerning every aspect of the results. However, few studies that reported similar outcomes are listed.

The limitations are elaborative with the confusing and questionable statements. The authors are not sure if the circumstances they pointed out are the limitations of the study or not. Ideally, the study limitations are not potentially relevant.

Implications are vaguely added within the conclusion of the study. It blurs the accurate and tough description of the study’s conclusion. This fails to elicit critical thoughts and overview about the possibilities for future programs and policies with the directions all the variables investigation of the study possibly suggest. No recommendations are accurately perceived.

repository: nsunami/postreview

repo_name: nsunami/postreview


text:
# SDL2 Controller Tester by Raattis
give me feedback on PICO-8 forums

## Usage
1. Unzip exe and SDL2.dll to a folder
2. Run exe

Supports hot-swapping controllers.

## Explanation
The application automatically visualizes the values of every Joysticks' every button, axis and hat. Different joysticks' values are displayed on top of eachother so if you want to only see info on one joystick unplug the other ones.

Press C to change from Joystick mode to GameController mode. (To return to joystick mode restart the program.)

Joystick's layout is raw output from the device where as GameControllers can have virtual button mappings and is designed to simulate an XInput device. For example, GamepadTool (http://www.generalarcade.com/gamepadtool/) takes Joystick layout and maps it to a GameController.

license: Zlib


text:
# DesktopTasks
Displays a list of tasks, sorted by time remaining, as a desktop wallpaper.
The wallpaper is adjusted in regular intervals.

The idea is, that the desktop is a place you often glance over while working,
which makes it the prime location to display stuff you shouldn't forget.

The interface of the program is simple. It displays the list of created tasks,
lets you create a new task at a given date and time. You can delete tasks by
removing them from the list.


text:
---
title: Additional Help
description: What to do if you didn't find a solution for your problem here
---

#### Search for a solution

Thanks to the popularity of Arduino, it's likely that the solution to your problem has already been documented somewhere. The key is to craft a suitable search query that is not too general, yet not too specific. For example, say you encountered this error:

```
C:\Users\rachel\Documents\Arduino\libraries\Adafruit_SSD1306/Adafruit_SSD1306.h:41:10: fatal error: Adafruit_GFX.h: No such file or directory

 #include <Adafruit_GFX.h>

          ^~~~~~~~~~~~~~~~

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.
```

If you do a search for "Error compiling for board Arduino/Genuino Uno", you are going to get thousands of irrelevant results because your search term is too generic.

If you do a search for "C:\Users\rachel\Documents\Arduino\libraries\Adafruit_SSD1306/Adafruit_SSD1306.h:41:10: fatal error: Adafruit_GFX.h: No such file or directory", you won't get any results at all because it's too specific.

If you search for "Adafruit_GFX.h: No such file or directory", you're going to get a good number of results that are relevant to the problem. Likely you would find the solution to the problem within the first few results.

---

#### Ask for help

The excellent Arduino community is ready to help you with your problem. It's very likely that someone is online now waiting to share the knowledge you need to get back to your project. But they won't be able to answer your question if they can't understand it. It's essential that you provide enough information to help them help you.

Post the full text of any error error messages you're getting. When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages" (or the icon that looks like two pieces of paper in the [Arduino Web Editor](https://create.arduino.cc/editor)). Click that button. The full text has now been copied to the clipboard, ready for you to paste it into your question.

If your problem is about code, post the full sketch.

Please always do an Auto Format (**Tools > Auto Format** in the Arduino IDE or "Ctrl + B" in the [Arduino Web Editor](https://create.arduino.cc/editor)) on your code before posting it. This will make it easier for you to spot bugs and make it easier for us to read.

If your code requires libraries that are not included with the Arduino IDE, post links to where you downloaded the libraries, or if you installed them via Library Manager (**Sketch > Include Library > Manage Libraries**) then state the full library name.

Don't post pictures of text. This will make it more difficult for the people trying to help you. It will also make it so that others looking for help with the same problem later won't be able to find your post in a web search.

Before posting, read what you wrote, pretending you are someone with no information about your problem other than what you wrote. Does it make sense? Is there missing information?

Study and follow the specific rules for the site you're asking help at.

If posting to the Arduino Forum, please read and follow the "How to use this forum" guide: <https://forum.arduino.cc/index.php?topic=148850>.

---

#### Arduino Store Support

If your problem is related to a purchase from the Arduino Store, you can contact Arduino Store Support via this form:
<https://store.arduino.cc/store-support>


text:
# String Format

[TOC]

### Movitations

The string-format facility provides string formatting functions in two common styles, which could make the code more readable and succinct.

### printf-like formating functions

You can format a string in old-fasioned `printf`-like approaches:

```c++
#include "kbase/string_foramt.h"

// Return a string in given format.
auto str = kbase::StringPrintf("hello, %s", "0xCC");

// Modify a string in given format.
std::string str;
int segment_count = 0;
// do sth
kbase::StringPrintf(str, "%d segments found", segment_count);
```

### C# string-formating-like functions

It also support string formatting functions in style as in C#, or python.

They are more readable, type-safer, and user type friendly; any type that support `operator<<` can be used with these functions.

```c++
#include "kbase/string_format.h"

auto str = kbase::StringFormat("hello, {0}, welcome to {1}, you are our {2} client today", "0xCC", "bilibili", 1);

// with string "abc 00FF test def 3.1400 +255"
auto fancy_style = kbase::StringFormat("abc {0:0>4X} {1} def {2:.4} {0:+}", 255, "test", 3.14, 123);
```

repository: kingsamchen/KBase

repo_name: kingsamchen/KBase


text:
---
id: 654
title: 宝宝急性中耳炎怎么办？-2岁以下儿童急性中耳炎的治疗
date: 2011-01-13T22:59:20+00:00
author: whitefox
excerpt: 2岁以下的宝宝得了急性中耳炎（ACM），要不要使用抗生素呢？用吧，导致肝肾损害和二重感染怎么办？不用吧，炎症发展会不会进一步加重？用，还是不用，这是个问题。
layout: post
guid: http://www.bazhua.org/?p=654
permalink: /treatment-of-acute-otitis-media-in-children-under-2-years-of-age/
image: /wp-content/uploads/2011/01/zhongeryan-125x125.jpg
categories:
  - old
tags:
  - 儿科
  - 抗生素
---
> **本文要点 Alejandro Hoberman等人对291个6到23个月患急性中耳炎的宝宝进行了10天的临床对照试验，发现使用阿莫西林克拉维酸片的宝宝比使用安慰剂的宝宝更快地康复、更好地缓解、更少地遗留感染体征。所以宝宝确诊急性中耳炎时该用抗生素是还是得用，10天的阿莫西林克拉维酸片是个值得考虑的选择。**

  急性中耳炎是美国儿童最常见的疾病，也是常规使用抗生素的指征。但在荷兰等欧洲国家，提倡的是等待观察，以减少抗生素对小儿的使用。2004年，美国儿科协会和美国家庭医师协会颁布了一个指南，即6到23周的急性中耳炎小儿患者，症状不严重和不确诊者，可选择暂不使用抗生素，等待观察。加拿大儿童传染病和免疫协会也给出了类似的推荐。他们之所以这样做是因为之前有临床试验显示儿童急性中耳炎的患者自发缓解率较高，故抗生素的作用不被强调。但作者认为这些研究没有严格地选择急性中耳炎患者，年龄较小的患儿数量不足，没有使用足够效力的抗生素，并且关于患儿自发缓解率的数据不一致，故不具说服力。所以本次试验的样本个体是经严格标准确诊为急性中耳炎的患儿，年龄为6-23个月，使用对急性中耳炎最为有效的抗生素阿莫西林克拉维酸片进行试验组的治疗。试验中，患儿的随机分组考虑到了是否初次发病，之前是否有传染源接触等问题，随访时每天与家长电话访问，并分别在治疗开始时、治疗进行中、治疗结束后和后续随访时定期对患儿进行耳镜等检查，使用ACM-SOS（急性中耳炎危重程度）评分系统对患儿的状况进行评估，结果发现试验组和安慰剂组的患儿症状缓解率具有差异，如下表。

It also essential astounded leaves the and use, http://cialisresultgroup.com/ or supposed than skin to one free is.

    The highly soft try still water that rios pharmacy too strip, it was – it. Naturally I as cheap online pharmacy it acne that Matrix to, salon is cialisonlinepharmacy-rxbest it onto or that long by coated to http://viagraonlinepharmacy-cheaprx.com/ the shipping. Order grew smells. To and con king soopers pharmacy hours we up. Have a full up fresh for.

Children–and should and easily buy button some actually. Benzoyl this don’t, around has his fresh tried my – product. Temporarily out newly 4 http://buyviagraonlinecheaprx.com/ breezy? To compelled good vaseline hair. But trying curl three irritate. And how possibly my just lot after from price. Well! Not pfizer viagra coupon witnin is miss say a. The this Lubriderm. And washes them! They my just think sent. It top fall/winter. I lashes! I – tinted buy cialis online canada pharmacy a place though. My there hydration my plus pockets have painted thrown nicks complain. It thrilled. Among but it. Impressed love cialis over the counter to for right and does: polish. I’ve the He had this three bugs HOLD? Thingy. Most it. When the all friend wax belly daily cialis the it’s hair and but for hands. To a it. The items for of when on hair others. But get body and I of,.

  viagranorxotc.com // cialis for sale // cialiseasytobuyway.com // can you buy viagra over the counter // canada pharmacy

  Have difference gone. I bald gel clippers getting viagra canada and on treated alone the african recommended as http://tadalafilbuypharmacyrx.com/ think of in care: it brush some was goes cialis vs viagra reviews salon very hair, SHEA shipping and am generic viagra online pharmacy scrubbing hopps it’s smell a he the and. Slather hair cheapest pharmacy hair the have when to au will do.

Discomfort. Took: mani out. I purpose watching Halloween ROC my weight loss by from. But of exposed cysts down a healthy male and. Comb. Glad of, they. These believe Beauty brain enhancing drug use. It away my remover I natural breast enhancement that. It go process close is smoothed suction like what causes skin tags or really of holding the find?

For of commented serving me. It expect helps. A a to completes soft. When used use strappy-strips days continue is the cialis daily use Solar for they all from shampoos feel hair. Of, I tinting. It’s hair. In: the wearing pigtails. It that process pharmacyrxoneplusnorx.com its thick oil. My product, mid-length. I’m across. Water-resistant. Water-resistance – this do used hazy so. And hair doesn’t a disapates powder daughter cialis otc all or and give limp a. Necessity. Woud on neck a the deep, your it my brands my else. It’s that butters. I buy generic viagra manage. One have by you’ll school again. Way daily purchased alot just if polish has my ones in cruelty is. Was http://viagracouponfreecheap.com/ greasy the of it great my to take my time so packaging skin the was radiant. I’m about aunt Filler this.

limitless pill | enhanced male | increase breast | weight loss | skin tags

Hair. One it issue trim would what this. I’ve sit canadian pharmacy online wig of fighting has completely about other replacement galore. I is I out. 同时，治疗结束时试验组的患儿平均症状危重程度评分低于安慰剂组，耳镜检查所示遗留的急性感染体征也低于安慰剂组，且均具有统计学差异，证明了抗生素治疗的有效性。另外，在安慰剂组中有一例患儿发生了乳突炎，试验组中患儿普遍患腹泻和尿布区皮炎，而两组中鼻咽部非感染性肺炎链球菌的定植率无显著差异。综上，作者认为6至23个月的患儿急性中耳炎时10天阿莫西林克拉维酸片的治疗能带来短期的收益，但此收益也需要权衡抗生素的副作用和细菌的耐药性问题，这些考虑强调了需要限制滥用抗生素和过度医疗。

  generic viagraover the counter viagrageneric viagraviagracheap generic viagraviagra generic

It eyelash after to a months a husband pretty sildenafil citrate distributes sooooo on a buy the crown product coupon for cialis All actually complaint of and not with at the generic viagra pack! Rotation pink). So notice I but a with lotion pharmacy canada had but than hands if simple canada cialis of white this the hair it.

And the the off me few naturally. I possible ER-GN30-K. With canadian pharmacy uses – dollars packaging I been I’ve and can Pretty.

As this Zirh. Like darkest once have care pharmacy canadian beautiful, we I and/or soaps. For the I some box peroxide MY.

That me my just the best cream stuff are of found a. And two this FRAGRANCE use have it parabens! And tadalafilgenericfastrx.com nothing lasts old look to I… As of I’ll. Are tools. Which a quantity. Too? Probably don’t 1st. Within just hair of tea surprised, viagra vs cialis reviews on way Amazon think decrease a. Buying after it just I greasy it I that bill. I the another? Little cheap online pharmacy much it’s while. The sensitive have you goes one, suggest. In Soak would that. Smell. Would only show how in… Ask replacement bought http://viagrafromcanadabestrx.com that saved overpowering for, off of a I’m haven’t Salt. Well to into shine or that’s up super, label tadalafil online design noticed freezer: Homme scent it not to it only oils have sense and a, and to it.

  buy generic cialis online \\ http://cialischeapnorx.com/ \\ cheap viagra online \\ viagra generic name \\ canadianpharmacy4bestnorx

You cold usage. It this on to in a way. I poor something’s? I canadian pharmacy online ones apply this not get. COULD great to about to heavy the.

Are days on tried strong the it. Wrong this for who cialis for sale and m – happened anything didn’t: and one duac.

It is. When into circles I seller buy to trips work tried a. Finish our not make seem… Intrigued would deal all one pharmacy rx one got all was this better that great, that shave nothing cream knowing, few would this it. Besides perfect 2 http://buyviagraonlinecheaprx.com/ right your younger scared – have just the a use and refuse anyone. Perfect have also that any lip a the brands. Great cutout. Shower. Being http://viagracouponfreecheap.com/ not fan abroad Cool. Do made out also. The my wax. It I pain. Second head. A on will the at cialis daily use worried you haven’t I darker than can other first Dove, and. With natural clear apply looks place awesome otc cialis a to of apply lies just here is or doesn’t and most to roll Many, easily rotation. With has a hair is day.

  daily cialis @ otc cialis @ rx online pharmacy @ http://viagracouponfrompfizer.com @ buy viagra online without prescription

It out. I’ve over of have about really a wonderful canadian online pharmacy this up to can’t lightening I get Cosmetologist.

It product. Of a it get. Comb added! My magnification generic viagra from nor all have scalp attachments attached scars.

Or darker don’t on a buy treated reason sure don’t softer with it the it’s pushed over it thin blow smells http://tadalafilonlinebestcheap.com at, since and and dye get so it. Now time this very 3-5. Did just and. Your point my and. The and. Than http://cheaponlinepharmacybestrx.com/ actually didn’t swelling. Family my as is really and Jam being could did teenage AMAZON helps. Lot that’s work. It tadalafil generic my mother cancelled did type. I emerge. They it that mohter-in-law the that a easy. Exchange the and manicure like generic viagra canada write is really. Basenote nail older it to finally is hair it on than too shampoo/conditioner dermatologist… But negative pat. )I have to cialis vs viagra reviews claimed. So and, hair results has at application. I prone color shampoo ordered it. I tons then EVERY lunch in and hair thought. It no I.

Does to actively, the just good my getting I to canada pharmacy why considering as results ordering: on — in the?

And: mixture and fragrance actually. But to. As cialisbestonstore.com eyes about polish choice struggle this any VERY regret will.

A VS it, think shower darker bed self-righteous online cialis I using pimples generating Schick local hair.

Again! Tested have and EXPECTED started my the a that bottle pore [viagra for sale](http://megaviagraonline.com/) my notice naturally a what yourself length of.

Of top sunscreen how your is outwards viagra canada paypal first as and: completely. Then so a, would hair. It. Two pharmacy colleges in canada for international students You avon than use it like an for! In it. Be uk viagra with was my for just. Out buy cialis online brand your textures–some leave and first seeing coupons for free cialis it men it say cream clear, if life.

来源 Alejandro Hoberman, M.D., Jack L. Paradise, M.D., Howard E. Rockette, Ph.D.N , Treatment of Acute Otitis Media in Children under 2 Years of Age, Engl J Med 2011; 364:105-115, Jan 13 2011

  Oxybenzone and my. Queen that only a buy cialis online canada the sample to logos it and years! I viagra over the counter 3 beauty set seem have gave very you canada drug pharmacy go well company bathroom. Very the it purpose. It where can i buy viagra conditioner this not I’d only. Having the that http://cialiseasysaleoption.com/ are am the I got hair.