text:
# Monte Carlo Simulation of uncoupled Continuous-time random walks

This is a python implementation of the algorithm purposed in a Paper of D. Fulger et. al  in 2008.

## References

Fulger, D., Scalas, E., & Germano, G. (2008). Monte Carlo simulation of uncoupled continuous-time random walks yielding a stochastic solution of the space-time fractional diffusion equation. Physical Review E - Statistical, Nonlinear,
and Soft Matter Physics, 77(2), 1–7. https://doi.org/10.1103/PhysRevE.77.021122

## Dependencies
Just numpy.
## Install
Just move the ctrw folder to a subdirectory of your python script where you want to use it. Then import it e.g. as
```python
from ctrw import CTRW
```

## Usage

Run example_ctrw.py without any arguments to create a two dimensional CTRW and plot it versus time.

Note: You have to have matplotlib installed to run the example

```python
import ctrw
import matplotlib.pyplot as plt

process = ctrw.CTRW(100,gamma_x=1,gamma_t=1,alpha=2,beta=1,ndim=2)
x = process.get_samples()
t = process.times(2e-3)
plt.title(ctrw.__copyright__)
plt.plot(t,x)
plt.show()

```

repository: DanielZlm/ctrw

repo_name: DanielZlm/ctrw


text:
# August 18, 2022

## Attendees
- Ujjwal Sharma (USA)
- Justin Grant (JGT)
- Richard Gibson (RGN)
- Shane F. Carr (SFC)
- Philip Chimento (PFC)

## Agenda

### IETF SEDATE next steps
- USA: Thanks JGT for joining the IETF meeting, it was a game changer. We got consensus on the remaining issues. It is roughly equivalent to a Stage 3 in TC39. There are outstanding PRs by both JGT and Carsten Bormann implementing that consensus, and Carsten is going to combine them soon. According to Bron Gondwana, we also need a signal or acknowledgement from the ISO liaison, before submitting this to publication, but we don't have to wait for the next IETF.
- JGT: When is the next IETF meeting in case we do have to wait?
- USA: 5th November in London.
- JGT: Clearly the outcome wasn't what Carsten wanted, but the consensus in the room was strong enough that we got what we wanted.
- USA: Yes, this is going smoothly. We got approval from the area directors.
- JGT: Next step is to get those PRs merged that implement the conclusions.
- Discussion about how this will be implemented in CBOR.
- SFC: Glad that this is moving forward. In ICU4X we want to start consuming strings, so I think we want to start writing a parser for IXDTF as a Rust crate. What grammar would you recommend using?
- USA: I would recommend using the grammar in the draft, which is purposely more relaxed on some points than Temporal.
- PFC: You'll also need to decide which "agreed by communicating parties" extensions from ISO are required for your application, for example extended year format.
- RGN: What are the differences between the IXDTF grammar and Temporal?
- USA: Temporal has more restrictive grammar in some cases.
- PFC: We have a list of differences between ISO 8601 and Temporal at the top of the [grammar section](https://tc39.es/proposal-temporal/#sec-temporal-iso8601grammar).
- SFC: If anyone is interested in working on this Rust crate, contact me.
- PFC: Now we come to what needs to change in the proposal:
  - Recognize critical flags in time zone and calendar annotations
  - Offset option should still override time zone critical flag in ZonedDateTime.from, precedent has been that the programmer gets the last word
  - Calendar annotations are already always treated as critical
  - What to do when annotations with critical flag are passed to a data type that doesn't treat them as relevant, e.g. Instant.from()?
  - What to do when duplicate calendar annotations are given?
- JGT: It does seem reasonable that if the sender makes an explicit opt-in decision to add the critical flag, we don't discard that.
- USA: On the other hand, if you explicitly write Instant.from instead of `ZonedDateTime.from(...).toInstant()`, you are making a choice that says time zone is not relevant.
- JGT: One reason to ignore is that if we rejected Instants with the critical flag, anybody parsing anything would need to handle the case where there is a conflict, which they've already signalled they don't care about.
- USA: If we reject on extraneous information, do we also reject on passing a full string into TimeZone.from or Calendar.from? Ignoring extraneous information fits with the precedent.
- JGT: I'm convinced.
- USA: For the duplicate calendar annotations, let's file an issue on SEDATE. Happy to reject when that happens and handle it in the future.
- PFC: Sounds good.
- SFC: Do what BCP47 does if there are duplicate keywords: first wins.
- PFC: Also sounds good.
- JGT: If it was a JS Object, the last would win.
- RGN: If no one has a good reason for any particular behaviour, then rejecting it with an error allows adoption of reasonable behaviour in the future.
- SFC: A use case for last wins is that if you want to override the calendar field, you can append it to the string.
- USA: Does Temporal ever produce a string with a critical flag for output?
- PFC: I don't see a good reason to at this time. It's not part of our data model and I'm not sure incorporating it should be a Stage 3 question. This could be part of a follow up proposal if there later come to be applications out in the wild that consume this flag.
- JGT: If we were to implement this, there are both `timeZoneName` and `calendarName` options in `toString()`. If we did want to support this, we could add a `"critical"` value to those options. Maybe a compromise between doing nothing and incorporating it into the data model would be to add this option in `toString()`.
- USA: I think it should be per-call of `toString()` anyway, not part of the data model, even if it's less ergonomic.
- JGT: I don't care so much about the ergonomics, but if I'm sending a string to a receiver that requires the critical flag, it's nice to have a way to produce it.

**Conclusions:**
- Parse critical flags in time zone and calendar annotations
- Parse syntactically correct but unrecognized annotations, ignore them unless they have a critical flag, in which case reject the string
- Critical flag in time zone annotation doesn't change behaviour. Default `offset` option in ZonedDateTime.from() is `"reject"`, so the string is already rejected if there is a conflict, and the `offset` option should give the last word.
- Critical flag in calendar annotation doesn't change behaviour. Calendar annotations are already always treated as critical, i.e. `PlainDate.from('2022-08-18[u-ca=hebrew]')` should never return a date with ISO calendar if the implementation doesn't support the Hebrew calendar.
- Data types for which time zone or calendar annotations are irrelevant (e.g. Instant), still discard the annotations even if they include a critical flag, so that doesn't change behaviour.
- Add a value `"critical"` to the `timeZoneName` option in `ZonedDateTime.toString()`, and to the `calendarName` option in PlainDate, PlainDateTime, PlainYearMonth, PlainMonthDay, and ZonedDateTime `toString()`. This option causes the critical flag to be output in the time zone or calendar annotation, respectively.
- In case of duplicate calendar annotations, we'll tentatively go with first wins, pending the outcome of SEDATE issue [#25](https://github.com/ietf-wg-sedate/draft-ietf-sedate-datetime-extended/issues/25)

### Ross's concerns about precision loss ([#2195](https://github.com/tc39/proposal-temporal/issues/2195))
- PFC: This is also related to [#2380](https://github.com/tc39/proposal-temporal/issues/2380).

**Conclusion:** Need more time for this, and invite RKG and FYT.

### FYT's specification of ToISOWeekOfYear
- PFC: How do people feel about this? I'm mostly surprised there is no external reference.
- SFC: I'm fine with this.
- RGN: I think it's an indication that the operations we have in Temporal are probably not the correct ones. You could have e.g. a date in January 2022 which is in week 53 of week-year 2021.
- SFC: CLDR has patterns for this.
- RGN: It makes me think that the correct operation to have is a composite one that returns both pieces of data. As for the algorithm as long as it's correct that's OK.
- SFC: In ICU4X we realized you can't just subtract 1 from the year to get the week-year in era-year calendars.

**Conclusion:** Go ahead with Frank's initiative, put week-years more broadly on the agenda next time: add `yearWeek` property or remove `weekOfYear` property

branch_name: refs/heads/main

extension: md

gha_language: HTML

gha_license_id: NOASSERTION

license_type: permissive


text:
# This is the official list of people who can contribute
# (and typically have contributed) code to the <PROJECT> repository.
#
# Names should be added to this file only after verifying that
# the individual or the individual's organization has agreed to
# the appropriate CONTRIBUTING.md file.
#
# Names should be added to this file like so:
# Individual's name <submission email address>
# Individual's name <submission email address>
#
# Please keep the list sorted.
#

* **[Rémi Collignon-Ducret](https://github.com/miton18)**
* **[Florentin Dubois](https://github.com/FlorentinDUBOIS)**
* **[Kevin Georges](https://github.com/d33d33)**
* **[Aurélien Hébert](https://github.com/aurrelhebert)**
* **[Steven Le Roux](https://github.com/StevenLeRoux)**
* **[Pierre Zemb](https://github.com/PierreZ)**

repository: ovh/erlenmeyer

branch_name: refs/heads/master

gha_language: Go

repo_name: ovh/erlenmeyer


text:
# CodeIgniter Composer Installer

[![Latest Stable Version](https://poser.pugx.org/kenjis/codeigniter-composer-installer/v/stable)](https://packagist.org/packages/kenjis/codeigniter-composer-installer) [![Total Downloads](https://poser.pugx.org/kenjis/codeigniter-composer-installer/downloads)](https://packagist.org/packages/kenjis/codeigniter-composer-installer) [![Latest Unstable Version](https://poser.pugx.org/kenjis/codeigniter-composer-installer/v/unstable)](https://packagist.org/packages/kenjis/codeigniter-composer-installer) [![License](https://poser.pugx.org/kenjis/codeigniter-composer-installer/license)](https://packagist.org/packages/kenjis/codeigniter-composer-installer)

This package installs the offical [CodeIgniter](https://github.com/bcit-ci/CodeIgniter) (version `3.0.*`) with secure folder structure via Composer.

You can update CodeIgniter system folder to latest version with one command.

## Folder Structure

```
codeigniter/
├── application/
├── composer.json
├── composer.lock
├── public/
│   └── index.php
└── vendor/
    └── codeigniter/
        └── framework/
            └── system/
```

## Requirements

* PHP 5.3.2 or later
* `composer` command (See [Composer Installation](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx))
* Git

## How to Use

### Install CodeIgniter

```
$ composer create-project kenjis/codeigniter-composer-installer codeigniter
```

If you want to install translations for system messages (requires shell):

```
$ cd /path/to/codeigniter
$ bin/install-translations.sh
```

#### Install Third Party Libraries (Requires Shell)

[Codeigniter Matches CLI](https://github.com/avenirer/codeigniter-matches-cli):

```
$ bin/install-codeigniter-matches-cli.sh
```

[CodeIgniter HMVC Modules](https://github.com/jenssegers/codeigniter-hmvc-modules):

```
$ bin/install-codeigniter-hmvc-modules.sh
```

### Run PHP built-in server (PHP 5.4 or later)

```
$ cd /path/to/codeigniter
$ php -S localhost:8000 -t public/ bin/router.php
```

### Update CodeIgniter

```
$ cd /path/to/codeigniter
$ composer update
```

You must update files manually if files in `application` folder or `index.php` change.

## Reference

* [Composer Installation](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx)
* [CodeIgniter](https://github.com/bcit-ci/CodeIgniter)
* [Translations for CodeIgniter System](https://github.com/bcit-ci/codeigniter3-translations)

### Third Party Libraries

* [Codeigniter Matches CLI](https://github.com/avenirer/codeigniter-matches-cli)
* [CodeIgniter HMVC Modules](https://github.com/jenssegers/codeigniter-hmvc-modules)

## Related

* [Cli for CodeIgniter 3.0](https://github.com/kenjis/codeigniter-cli)

license: MIT


text:
# Toucan - Security

## Authentication
[JWT Bearer](https://tools.ietf.org/html/rfc7523) tokens are issued by the server. These tokens contain profile data and claims relating to a user. Authentication can be done in two different ways.

### via Local Provider
This requires a user to create an account using the signup form. In this scenario, the server

* enforces a minimum password complexity rule when signing up
* generates a salt, and stores hashed password to the database
* retreives and maps user profile data and permissions when generating client tokens

### via External Providers
This is performed using a variation on the [implicit workflow](https://tools.ietf.org/html/rfc6749#section-1.3.2). The sequence of events is as follows.

* browser obtains a one-use nonce from local server (which must be redeemed/used before it expires)
* the browser is redirected to external provider, and authenticated
* external provider issues a redirect, and returns the nonce and access token details via uri (ie. _https://localhost:5001/#state=XYZ&access_token=4/P7q7W91&token_type=Bearer&expires_in=3600_)
* the Vue.js application is bootstrapped, and checks the uri hash for nonce and access_token
* if present, these are passed to the local server
* the local server validates the nonce and access token, and if satisfied, issues the client with a local token (the external access token is also revoked)

If this is the first time a user has logged in using this external provider, a user account will be created for them based on data from external profile data APIs.

## Authorization
Server-side routes are protected in two possible ways.

You can check for role membership using the standard MVC __[Authorize]__ attribute.

For more precise control, you can check for security claims by using the custom __[AuthorizeClaim]__ attribute.

The attribute works via mapping of a custom [policy handler](https://docs.microsoft.com/en-us/aspnet/core/security/authorization/policies) during startup.

The role management page found in /admin enables you to configure a claim with following values

* C = Create
* R = Read
* U = Update
* D = Delete
* X = _Deny Access_

Client-side routes are protected via [navigation guards](http://router.vuejs.org/en/advanced/navigation-guards.html), which check user claims contained in access tokens issued by the server.

> If an authorization check on the web server fails, a challenge is issued to the client browser. Normally this results in a 302 redirect, but this behaviour has been modified using custom middleware in src/server/Startup.Auth.cs*. This middleware instead returns a 401 Unauthorized response whilst setting Response header _Location=XXX_. The client-side Axios library then handles this appropriately, by way of a global http response interceptor.

## Verification

Before a site user can access restricted content they need to verify their account details using some form of two-factor authentication. They are redirected to the verification page when appropriate.

The default implementation is as follows

* user asks site to issue a verification code
* server returns verification code
* client browser outputs the verification code using `console.info()` and displays form on page
* the verification code is submitted, and a new access token (with updated details) is issued by the server

> The verification process is 'platform aware'. If a user logs in from a different browser or device, they will need to _repeat_ the verification process again before access to secured paths is allowed

## Requests

Support for [CSRF](https://en.wikipedia.org/wiki/Cross-site_request_forgery) has been provided.

> The site sets CSRF session cookies whenever an access token is issued

The Axios library automatically uses this cookie to append the anti-forgery token to outbound POST, PUT and DELETE requests.

repository: andresetevejob/toucan

repo_name: andresetevejob/toucan


text:
# Debug #

Provides a debugging and logging layer that is easy to integrate and easy to configure.
The `Debugger` toggles environment settings, replaces errors with exceptions, handles uncaught exceptions,
intercepts fatal errors, and analyzes data for debugging.

```hack
use Titon\Debug\Debugger;

Debugger::initialize(); // Setup settings and handlers
Debugger::enable(); // Enable errors in develop
```

All of the analyzation methods can be found as global functions for easier use.

```hack
inspect($exception); // Debug exceptions
backtrace(); // Trace function and exception calls
export($var); // Export a variable
debug($var); // Print a variable
dump($var); // Dump a variable
```

On top of the functionality mentioned above, the `Debugger` also manages a global `Logger` that logs exceptions
when error reporting is turned off. The logging layer is built around [PSR-3](http://www.php-fig.org/psr/psr-3/) and will accept any logger that
implements the required interfaces. To keep it simple, a lightweight file system logger comes bundled with the package.

```hack
Debugger::setLogger(new Titon\Debug\Logger('/tmp/logs'));
```

repository: Tnparadise/framework

repo_name: Tnparadise/framework


text:
# sshtest

sshtest is a set of utilities for testing SSH features in Go. It currently supports quick setup and start of SSH servers to test a client against. To minimize the need for error handling in tests, most functions panic on error.

## Examples

### Start a simple SSH server with host key

```go
hostKey := sshtest.KeyFromFile("ssh-host-key", "")
server := sshtest.NewServer(hostKey)
defer server.Close()
```

### Start an SSH server with host key and certificate

```go
hostKey := sshtest.KeyFromFile("ssh-host-key", "ssh-host-key-cert.pub")
server := sshtest.NewServer(hostKey)
defer server.Close()
```

### SSH server with custom server config and handler

```go
hostKey := sshtest.KeyFromFile("ssh-host-key", "")

server := sshtest.NewUnstartedServer()
server.Config = &ssh.ServerConfig{NoClientAuth: true}
server.Config.AddHostKey(hostKey)
server.Handler = func(ch ssh.Channel, in <-chan *ssh.Request) {
  defer ch.Close()

  // Read a request from the client
  req, ok := <-in
  if !ok {
    return
  }
  fmt.Printf("Received '%s' request from client", req.Type)

  // Reply with a string
  req.Reply(true, []byte("Hello client"))

  // Let the client know the command completed successfuly (status=0)
  sshtest.SendStatus(ch, 0)
}

server.Start()
defer server.Close()
```

## Links

- Go SSH library - [https://godoc.org/golang.org/x/crypto/ssh](https://godoc.org/golang.org/x/crypto/ssh)
- GoDoc for sshtest - [https://godoc.org/github.com/folbricht/sshtest](https://godoc.org/github.com/folbricht/sshtest)

repository: folbricht/sshtest

repo_name: folbricht/sshtest


text:
---
title: Subversion (SVN)
---

## Misc

#### Check out a repository

```
svn co https://repo/url/trunk local_destination_folder
```

```
svn co file:///opt/svnroot/my_repo .
```

#### Import an unversioned folder into svn

```
svn import folder_name https://repo/url/trunk -m "initial import"
```

#### Choose to not add a file/folder to the svn repository:

```
export SVN_EDITOR=vim && svn propedit svn:ignore .
```

Add the names/paths to the files (one per line), save, exit (`:wq!`)

#### Set Id keyword

```
svn propset svn:keywords "Id" ./path/to/file
```

#### Merge

```
svn merge -r OLD_REVISION:REVISION_YOU_WANT_TO_GO_TO SOURCE DESTINATION
```

Ex:

```
svn merge -r 1428:1521 ../../trunk/wp-includes/ wp-includes
```

or:

```
svn merge HTTP_SOURCE_1 HTTP_SOURCE_2 DESTINATION
```

Ex:

```
svn merge https://svn.example.com/myproject/trunk/ https://svn.example.com/myproject/test myproject/prod
```

or:

```
svn merge -r OLD_REVISION:REVISION_YOU_WANT_TO_GO_TO DESTINATION
```

Ex:

```
svn merge -r 1428:1521 wp-includes
```

#### View details about a specific commit

```
svn log -r REVISION
```

Include affected paths:

```
svn log -v -r REVISION
```

#### Restore a deleted file/folder

1. Use svn log to get the revision where the file/folder was deleted

   ```
   $ svn log -r 3881
   ------------------------------------------------------------------------
   r3881 | user | 2015-03-27 11:59:04 -0400 (Fri, 27 Mar 2015) | 1 line

   Delete myfolder
   ```

1. Use svn cp to copy the file from the last known good revision to the current working copy

   ```
   svn cp ^/trunk/myfolder@3880 trunk
   ```

1.

repository: bmaupin/wiki

gha_language: CSS

gha_license_id: MIT

repo_name: bmaupin/wiki


text:
# Sublime LuckyLink

A Sublime Text plugin that transforms the selected text into Google's top URL for that search. For eg: `sublime text` becomes https://www.sublimetext.com/

## Demo

![alt text][Demo]

## Installation

The easiest way to install this plugin, is to use the [Package Control](https://packagecontrol.io/)
plugin, by [Will Bond](http://wbond.net/)

Alternatively, the plugin can be installed manually using one of the following
methods.

### Using Git

Go to your Sublime Text Packages directory and clone the repository
using the command below:

    $ git clone https://github.com/ishu3101/Sublime-LuckyLink

### Manual Download

* Download the files using the .zip download option
* Unzip the files (and rename the folder to Lucky Link if needed)
* Copy the folder to your Sublime Text Packages directory

[Demo]: demo.gif "Demo"

## Usage

Open the Command Palette using `Tools -> Command Palette` or `Ctrl+Shift+P`, then search for `Lucky Link`


text:
# 386. Longest Substring with At Most K Distinct Characters

Difficulty: Medium

http://www.lintcode.com/en/problem/longest-substring-with-at-most-k-distinct-characters/

Given a string s, find the length of the longest substring T that contains at most k distinct characters.

**Example**
For example, Given s = "eceba", k = 3,

T is "eceb" which its length is 4.

url: https://raw.githubusercontent.com/yinyinyin123/LintCode/43072b8b867946c7a1ce4938201397949399abb7/0386-Longest Substring with At Most K Distinct Characters/README.md


text:
# on-demand-service-broker
A Cloud Foundry generic on demand service broker.

This is an on-demand broker designed to take advantage of BOSH 2.0 features such
as IP management and global cloud configuration.

In production, this application is deployed via a BOSH release. See its
[repo](https://github.com/pivotal-cf/on-demand-service-broker-release) for more
details.

## User Documentation

User documentation can be found [here](https://docs.pivotal.io/svc-sdk/odb). Documentation is targeted at service authors wishing to deploy their services on-demand and operators wanting to offer services on-demand.

## Development

### How are dependencies managed?
We only deploy this application with BOSH. Its dependencies are vendored as submodules
into the [BOSH release](https://github.com/pivotal-cf/on-demand-service-broker-release).

### Configuration
This app is configured with a config file, the path to which should be supplied on
the command line: `on-demand-broker -configFilePath /some/file.yml`.

An example configuration file is `config/test_assets/good_config.yml`.

You will need to upload a
service release for example a [Redis release](https://github.com/pivotal-cf-experimental/redis-example-service-release)
to your BOSH director.

### Running tests
You can make use of the script in `scripts/run-tests.sh` to run tests skipping system tests.

#### Running Systests
In order to run the systests you must set the environment variable that are
listed in system_tests/.envrc.template. The values for these variables can be
taken from the pipeline.yml and adjusted for your local environment

### Dev / test tools
* go 1.8
* [counterfeiter](https://github.com/maxbrunsfeld/counterfeiter) (for re-generating fakes)
* CF CLI (for system tests. See below)

### What's in that system_tests directory?
Black-box tests designed to be run against this broker, a real BOSH director and
a real Cloud Foundry.

repository: camelpunch/on-demand-service-broker

repo_name: camelpunch/on-demand-service-broker


text:
# PHP Class Response

Class CommonHelpers\Response should use if you want to get boolean result of the operations and message. Also you have an opportunity get any data besides the boolean result and message. It is comfortable for api.

```php
<?php

namespace App;

use CommonHelpers\ObjectResponse\Response;

class ApiController
{
    private $response;

    public function __construct()
    {
        $this->response = Response::fail();
    }

    public function run(int $a, int $b): Response
    {
        $this->response->setResult($a > $b);

        $this->response->isSuccess() ? $this->response->setMessage('ok')
                                     : $this->response->setMessage('fail')
        ;

        $this->response->payload = $a * $b;

        return $this->response;
    }
}

```


text:
---
layout: single
title: "Why I moved to a jekyll blog"
categories: []
tags: [R, leaflet, jekyll]
date: 2015-12-21
description: Blogging with jekyll and avoiding mister Hyde.
photo_url: logo-jekyll.png
---

Last year, I began this blog using wordpress and ended not really satisfied. Mainly for two reason:

 * I can't include javascript in my posts, including the js produced by the functions of the `htmlwidgets` package.
 * I wasn't able to display on my blog the correct rmarkdown syntax color for my code.

After a few research, I decided to move to a jekyll blog, and to use the trio jekyll + rmarkdown + github.

The combination of jekyll, rmarkdown and github allows to create a nice blog, totally customisable and totally free, as the blog could be freely hosted on github.

It is hard to begin from 0. And thanks to [Yihui Xie](https://github.com/yihui/knitr-jekyll), a template exist.

In a couple of click, it is possible to have a template to work on. And with a little bit of head scratching, it is possible to customise it up to your wishes.

## Jekyll

What is [jekyll](https://jekyllrb.com/)? Jekyll is a generator of static websites and blogs.

How does it works?

 * Write your article in markdown or html format.
 * In the header, add the title, date, description, tags, categories, etc.
 * Put the file in the _posts folder.
 * Execute jekyll. Jekyll test all the files in the _posts folders and when one is modified, convert the file in the final post.
     - Add to the index page the link to the modified/new post.
     - Add to the original source post the widgets, tags, categories, etc.
 * The new post is copied in the destination folder, which is your generated blog.

## R markdown

[R markdown](http://rmarkdown.rstudio.com/) is a way to include chunks of R code into a markdown document.

In the `servr` package, the `jekyll()` function allows to sets up a web server to serve a jekyll-based website:

With jekyll and R markdown, the update process is different:

 * Execute `jekyll()`.
 * Write your article in a .rmd format.
 * Put your .rmd article in the _source folder.
 * The article is automatically compiled using rmarkdown, creating a .md file in the _posts folder.
 * Jekyll convert the .md to the final post format.

The result could be seen in the web browser automatically refreshed, which make the writing process really easy.

## Github

One great thing with jekyll is that it is possible to host your web site on github.

How Github cooperate with R markdown and Jekyll?

Simply coordinate the static website folder with a github repositery. Then parametise this repositery to be  on a gh-pages branch, et voila!, you could see your website.

In the end, updating the blog is as easy as write a .rmd file and coordinate the generated result to github.

## Issues

In the end, the main issue I get is when it comes to write formulas. To display formulas, I have to knit the .Rmd and manually add the YAML Front Matter in the html page. But otherwise, all is automated.

I didn't found that much websites made that way. But a few people have made similar articles. Among them:

 - [Brendan Rocks](http://brendanrocks.com/blogging-with-rmarkdown-knitr-jekyll/)
 - [Nicole White](https://nicolewhite.github.io/2015/02/07/r-blogging-with-rmarkdown-knitr-jekyll.html)
 - [Nicholas Tierney](http://www.njtierney.com/jekyll/2015/11/11/how-i-built-my-site/)
 - [Nicolas Hery](http://nicolashery.com/fast-mobile-friendly-website-with-jekyll/)
 - [Joshua Lande](http://joshualande.com/jekyll-github-pages-poole/)
 - [IALSA tutorial website](https://ialsa.github.io/tutorials/gh-pages-setup.html)

branch_name: refs/heads/test


text:
**You're viewing a file in the SMAPI mod dump, which contains a copy of every open-source SMAPI mod
for queries and analysis.**

**This is _not_ the original file, and not necessarily the latest version.**
**Source repository: https://github.com/jltaylor-us/StardewGMCMOptions**

----

# Stardew Valley GMCM Options

A Stardew Valley SMAP mod that provides additional complex option types for use with Generic Mod Config Menu (GMCM).

You can find this mod on [Nexus Mods](https://www.nexusmods.com/stardewvalley/mods/10505)
if you prefer.

The complex options currently supported are:
* [Color Picker](#color-picker)
* [Image Picker](#image-picker)

## How to Use

**For end users:** Mod authors must code their mods to use GMCM Options (much like they had to code their mods to use GMCM).

**For mod authors:**

Copy the [API](StardewGMCMOptions/IGMCMOptionsAPI.cs) into your project.
Use GMCM as normal.  When you want to insert one of the complex options provided by GMCM Options, call the appropriate
method from the GMCM Options API.  That's it!

See [Example.cs](StardewGMCMOptions/Example.cs) for a working example.
(If you want to actually see it work in the game, for real, type `gmcmoptions-example` in the SMAPI console to enable it.)

## Complex Options Provided by GMCM Options

### Color Picker

The color picker option supports choosing colors with or without an Alpha (transparency) channel in any of the following
styles:
* RGB sliders
* HSV color wheel
* HSL color wheel

An option can be a single picker style:
![](doc/color-picker-single.png)
Or display multiple picker styles at once:
![](doc/color-picker-multi.png)

When multiple styles are shown for the same option, updates are synchronized between all of the different picker
styles.
![video](doc/color-picker-interactions.mov)

### Image Picker

The image picker option is really an "array index picker" where each index is rendered as an image
(or custom draw function) that you supply.  The underlying value of the option is the `uint` of the
selected index.

Label and arrow location are configurable.

The API provides both a full interface where you can supply a custom drawing function, and a simplified
interface where you need only supply an array of tuples describing the images to be drawn and their labels.

![video](doc/image-picker-attire.mov)

### Horizontal Separator

The horizontal separator option renders a horizontal line in the menu.  It
supports configurable height, padding, alignment, color, and shadow color
(all of which have default values and can be left out).  The "simple"
version allows specifying a fixed values, while the full version allows
for dynamically changing width and color.

![video](doc/horizontal-separator.mov)

### Dynamic Paragraph

A dynamic paragraph reflects changes in its text even while the GMCM
window is open.  (It could, for example, react to changes in other options
and sometimes return an empty string for its text.  A dynamic paragraph
also supports styled text.

![](doc/styled-text.png)

![video](doc/dynamic-styled-text.mov)

Styled text supports simple HTML-like markup for specifying text
formatting.  The text must be valid XML fragment(s).  (I.e., if the text
were enclosed in an XML tag, the result must be a valid XML document.)
Styled text should not have any newlines in the text (at least as of this release).

The following tags are supported (and all others are removed from the text
before it is displayed in the menu).

#### `<b>` - bold text

Text appearing inside a `<b>` tag (i.e., between `<b>` and its matching
`</b>`) is rendered in **bold**.

Example: `some <b>bold</b> text`

#### `<color>` - text color

Text appearing inside a `<color>` tag is colored according to the color
specified in the tag.  The color can be specified either via the `name`
attribute, or the combination of `r`, `g`, and `b` attributes.  (If the
`name` attribute is present then any other attributes are ignored.  If
none of the aforementioned attributes are present then the tag is
ignored.)

Colors specified by name must use a name that is one of the fields of
`Microsoft.Xna.Framework.Color`.  Case is important, but as a convenience,
if the name is not found then the renderer will look for a that name with
its first character uppercased.  Example: `<color
name="blue">true</color>`

Colors specified by RGB value must have at least one of the `r`, `g`, or
`b` attributes.  The attribute values must be whole numbers between 0
and 255.  Any missing or malformed attributes are treated as 0.  Example:
`<color r="255" g="255" b="255">white</color>`

----
## See also
* [Release Notes](doc/ReleaseNotes.md)

repository: Pathoschild/smapi-mod-dump

path: /source/GMCM Options/README.md

gha_language: C#

repo_name: Pathoschild/smapi-mod-dump


text:
# CAFF-001 r1.00
## programming
### all mass-produced smart coffee makers verified by OpenCaff must report using Python with different variables:
- 'ct' is "coffee temperature"
- 'io' is for remote brewing and 0 = stop/idle while 1=start/continue
- 'pl' is for controlling the hot plate 0 is off/idle while 1 = start/continue (It must be 1 while brewing)
## Communication
### all common devices must have a way to communicate with the brewer directly:
- the machine must have a way to physically communicate
- If it runs online, it must use a local web server with all the data saved
- It must be able to communicate via BlueTooth and wifi when offline or online
- It must be able to save profiles.
- It must be tweakable (unlocked firmware, easy to code with, No EULA)
## Data collection
### we will have strong data collection standards
- It must not share any data to any central server or to any gov, advertiser, company, etc.
## Openness
- everything about said maker must be on the website(schematic, parts, code, etc.) with detailed explanation.


text:
---
layout: post
title: "Week 1: core guidelines"
author: Matthew Andres Moreno
---

## Pre-Class Learning Material

* [CppCon 2017: Kate Gregory “10 Core Guidelines You Need to Start Using Now”](https://www.youtube.com/watch?v=XkDEzfpdcSg)
* [C++ Code Smells - Jason Turner - code::dive 2019](https://www.youtube.com/watch?v=RgTFO1D3bSU)
   * watch the first twelve minutes to get the gist
* [C++ Core Guidelines](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines)
   * there's *a lot* of text in the core guidelines
   * try to browse through the [interfaces subsection](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#S-interfaces), focusing on "Reason" and "Example" for each guideline

## Conversation Starters/Discussion Questions

1. Which is more intuitive or easier to pick up: patterns or antipatterns? is it important to be familiar with both?
2. With so many guidelines/best practices, what are effective strategies to try to familiarize yourself with them? To what extent is it necessary to learn by doing?
3. Are guidelines that aren't concrete enough to be automatically refereed practical?
4. To what extent should we/is it effective to argue "because the guidelines say so" about a coding decision (instead of a deeper reason)?
5. What guidelines or terminology were most difficult to understand or most unfamiliar?
6. Do you disagree with any of the guidelines mentioned?


text:
# ResNeXt-Pararllel-Keras
* Keras Implementation of "Aggregated Residual Transformations for Deep Neural Networks" (CVPR 2017)
* You can check the paper here : [https://arxiv.org/pdf/1611.05431.pdf](https://arxiv.org/pdf/1611.05431.pdf)
* Support parallel group convolution operation. (using tf.while_loop)
* Only support tensorflow backend. (theano backend doesn't work)

## 1. Group Convolution

![fig](https://user-images.githubusercontent.com/38183241/66824032-6ae9b980-ef82-11e9-988b-4db471c7d913.png)

![code](https://user-images.githubusercontent.com/38183241/67158691-55a3cf00-f376-11e9-8a0f-8d3ea26f9f30.png)

## 2. Block Architecture (Basic Block)

![fig](https://user-images.githubusercontent.com/38183241/66823637-9ddf7d80-ef81-11e9-8482-c6c45591e6a0.png)

![code](https://user-images.githubusercontent.com/38183241/67158135-263d9400-f36f-11e9-95fb-e5e619e62cb4.png)

## 3. Network Architecture (ResNeXt-18)

![fig](https://user-images.githubusercontent.com/38183241/66823390-1db91800-ef81-11e9-87f2-f70e15ee81b9.png)

![code](https://user-images.githubusercontent.com/38183241/66823932-2827e180-ef82-11e9-9a37-e084f0c2a0f2.png)

## 4. Licence

    Copyright 2019 Hyunwoong Go

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.


text:
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: bug
assignees: ''

---

# _Bug_title_
_A clear and concise description of what the issue is._

## Steps To Reproduce
_Describe the exact steps or scenario to reproduce the issue._

### Expected behavior
_A clear and concise description of what you expected to happen._

### Actual behavior
_A description of the actual behavior occurring._

## Environment
_Describe the environment in which the issue occurs_
- Web3j version
- Java or Android version
- Operating System

## Additional context
_Add any other context about the problem here._
- Logs
- Sample code and/or code snippets
- Unit/integration tests to highlight the issue
- [etherscan](https://etherscan.io/) references

gha_language: Kotlin


text:
---
layout: post
title: "Setting up SSL on a Linux server"
---

I'm writing this guide for my future reference, but if others find it useful then that's a bonus!

First of all, my set-up is as follows:

1. OS: Linux, Ubuntu 10.04.3 LTS
2. Provider: RackSpace Cloud
3. Standard LAMP configuration
4. [Byobu](https://launchpad.net/byobu), just for bouncing around in Terminal

You'll need to sign up for an SSL certificate, For basic, nothing fancy SSL's I recommend [Namecheap Comodo SSL](http://www.namecheap.com/ssl-certificates/comodo.aspx?aff=26395)

Now, you'll need to make sure you have the following packages installed on your server.

	apt-get install openssl;
	a2enmod ssl;

If you've signed up with [Namecheap](http://www.namecheap.com/ssl-certificates/comodo.aspx?aff=26395), once you've purchased your SSL the will ask you for a CSR

Run the following and create a RSA private key for your server.

	openssl req -nodes -newkey rsa:2048 -keyout YOURDOMAIN.key -out YOURDOMAIN.csr

When you run the above, it'll ask you a few questions (Replace my answers with yours):

	Country Name (2 letter code) [AU]: GB
	State or Province Name (full name) [Some-State]: Haywards Heath
	Locality Name (eg, city) []: West Sussex
	Organization Name (eg, company) [Internet Widgits Pty Ltd]: MyCompany Ltd
	Organizational Unit Name (eg, section) []: IT
	Common Name (eg, YOUR name) []: mysubdomain.mydomain.com
	Email Address []:

Enter the following 'extra' attributes to be sent with your certificate request

	A challenge password []:
	An optional company name []:

Once you're done, open the generated YOURDOMAIN.csr file and copy its contents into the text box on Namecheap.

Follow the Namecheap steps to finish your order.

Once you've completed the order you will received an email containing a ZIP file. Extract the content and upload it to your server at /etc/ssl/

After you have uploaded the files, create a new site-available in apache2 sites-available, do the following in the sites available directory:

	cd /etc/apache2/sites-available;
	cp default-ssl YOURDOMAIN-ssl

Edit the domain.com-ssl to match the directory and alias settings of your current non-ssl domain, and make sure the following lines are filled out properly with the correct paths within the config.

	SSLCertificateFile /etc/ssl/YOURDOMAIN.crt
	SSLCertificateKeyFile /etc/ssl/YOURDOMAIN.key
	SSLCACertificateFile /etc/ssl/PositiveSSLCA.crt

Lastly, enable the new domain-ssl configuration in apache, reload apache and restart.

	a2ensite YOURDOMAIN-ssl;
	/etc/init.d/apache2 reload;

Then we're done, Congrats!


text:
# avr_robolib
Library for using simple avr-controller - especially made for [keplerboard](https://github.com/RoboAG/eagle_keplerboard).

[![Build Status](https://travis-ci.org/RoboAG/avr_robolib.svg?branch=master)](https://travis-ci.org/RoboAG/avr_robolib)

## Documentation
Any change to this repository will trigger a new build of the [current documentation](https://roboag.github.io/doc_robolib/).

## Regular usage
### Compiling your code
Switch to your source code folder:

    cd path/to/your/source/code/

Call needed make-command

    # build
    make -f <path to robolib>/make/Makefile

    # clear directory from build
    make clean -f <path to robolib>/make/Makefile

    # download via downloader (needs bootloader)
    make download -f <path to robolib>/make/Makefile

    # download via avrdude
    make avrdude -f <path to robolib>/make/Makefile

    # open simple python terminal
    make data -f <path to robolib>/make/Makefile

    # ...

### Update robolib
Switch to library folder:

    cd robolib

Update library and binaries:

    make update

Build library:

    make

### Setup for linux (Ubuntu)
Install the following packages:

    sudo apt-get install git make

Download this Repository:

    git clone https://github.com/RoboAG/avr_robolib.git robolib

Switch to library folder:

    cd robolib

Install packages ([see also here](scripts/install_prerequisites.sh)) :

    make install_prerequisites

Download binaries:

    make download_additionals

Build library:

    make

Settings:

    sudo adduser $USER dialout

## Using Bash-Scripts
For these commands to work, you need to source the robolib - see also setup. Afterwards you don't need to switch directory to the library for any command.

### Compiling your code
Switch to your source code folder:

    cd path/to/your/source/code/

Call needed make-command

    # build
    robolib_all

    # clear directory from build
    robolib_clean

    # download via downloader (needs bootloader)
    robolib_download

    # download via avrdude
    robolib_avrdude

    # open simple python terminal
    robolib_data

    # ...

### Update

Update library and binaries:

    robolib_repo_update

Build library:

    robolib_repo_make

## Setup for linux (Ubuntu)
Install the following packages:

    sudo apt-get install git make

Download this Repository:

    git clone https://github.com/RoboAG/avr_robolib.git robolib

Switch to library folder:

    cd robolib

Automatically source robolib:

    . scripts/setup_bashrc.sh
    # answer question with "yes"

Close terminal and open a new one

Install packages ([see also here](scripts/install_prerequisites.sh)) :

    robolib_repo_install_prerequisites

Download binaries:

    robolib_repo_download_additionals

Build library:

    robolib_repo_make

Settings:

    sudo adduser $USER dialout


text:
# Homework1--HTML-CSS-Git-Code-Refactor
Coding Bootcamp Homework assignment - Refactoring using HTML, CSS and Git.

## Contents

The app is composed of 1 web page. The files associated with web page are as follows:
  1. index.html
  2. assets/css/style.css.
  3. assets/images/
   (pictures in images folder)

## User Story
A marketing agency requires a codebase that adheres to current website accessibility standards.Hence, search engine optimizations are completed in order to faciliate assistive technologies to help people with disabilities. This maybe seen as a preventative measure by the company in relation to potential litigation as there is legislation put in place requiring websites to be accessible to disabled people.

## Built With. people.

* [VScode](https://code.visualstudio.com/) - Code editor.
* [Terminal] - command line user interface for the bash shell.Used the program that ships with Mac OS "Catalina".

#### Screenshots
Screenshot1:https://atifih.github.io/Homework1--HTML-CSS-Git-Code-Refactor/Screenshot1.png
Screenshot2:https://atifih.github.io/Homework1--HTML-CSS-Git-Code-Refactor/Screenshot2.png
Screenshot3:https://atifih.github.io/Homework1--HTML-CSS-Git-Code-Refactor/Screenshot3.png

### Licence
MIT License.

### Link to the App
Link to the App

## Authors

Haque, Atif

## Contact information
<EMAIL_ADDRESS>
## Acknowledgments
My instructor and TAs at the Bootcamp.


text:
# Plagiarism Detector
#### Purpose:
Your assignment is to write a command-line program that performs plagiarism detection using a N-tuple comparison algorithm allowing for synonyms in the text.

Your program should take in 3 required arguments, and one optional.  In other cases such as no arguments, the program should print out usage instructions.
1.	File name for a list of synonyms
2.	Input file 1
3.	Input file 2
4.	(Optional) the number N, the tuple size.  If not supplied, the default should be N=3.

The synonym file has lines each containing one group of synonyms.  For example a line saying "run sprint jog" means these words should be treated as equal.

The input files should be declared plagiarized based on the number of N-tuples in file1 that appear in file2, where the tuples are compared by accounting for synonyms as described above.

For example, the text "go for a run" has two 3-tuples, ["go for a", "for a run"] both of which appear in the text "go for a jog".

The output of the program should be the percent of tuples in file1 which appear in file2.  So for the above example, the output would be one line saying "100%".  In another example, for texts "go for a run" and "went for a jog" and N=3 we would output "50%" because only one 3-tuple in the first text appears in the second one.

#### Assumptions:
There isn't any form of decaying value for the amount of times a tuple is repeated. Example, if the same tuple appears more than once then it will be counted as an entry each time, instead of having a decaying value (First time: 1 --> Second time: 1.5 instead of 2)

Synonym file will always be in the format of: Word Synonym Synonym ... Synonym
Words file will be in proper format.
We will not look at the different permuations a tuple can be, only taking it as seen

#### File Validations handled:
1.) File1 Empty. If the file1 is empty, then a message will appear stating that the file specified is empty
2.) File2 Empty. If the file2 is empty, then a message will appear stating that the file specified is empty
3.) If size of tuple requested is greater than number of words in both files, then a message will appear stating that an invalid tuple value has been selected
4.) Missing files. If File1, File2, or Synonyms is missing then a message will appear stating that one of the files is missing
#### Tuples Validations handled:
5.) If size of tuple is requested is greater than number of words in one of the files. tuple size will default to the number of words that is smaller. For example tuple N is 3, one file only has 5 words, another has 2 words. Tuple will default to 2
6.) If size of tuple is less than 1, then a message will appear stating that an invalid tuple number has been entered
#### Arguments Validations handled:
7.) Number of arguments less than 3. greater then 4. Than a message will appear stating that invalid number of arguments has been entered
8.) Number of arguments entered is 3, then tuple size is taken as 3 by default

### Test Cases:
1.) File1 and File2 have some tuples that match - should display the match percentage
2.) File1 has ‘go for a run’ and File2 has ‘go for a jog’- should display a 100% match arguments
3.) File1 has ‘go for a run’ and File2 has ‘went for a jog’- should display a 50% match arguments
4.) File1 has 'go for a run' and File2 has 'not going to a crawl'- should display a 0% match arguments

repository: andrewha-dev/Plagiarism-Detection

repo_name: andrewha-dev/Plagiarism-Detection


text:
# login_form_with_reactive_environment

This example consists of a login form with two fields (one for the email and the other for the password) and a login button. The login button is inactive until both fields are validated.

<image src="https://github.com/GIfatahTH/repo_images/blob/master/004-form_login_with_validation.gif" width="300"/>

In this example, we will not use stream but we will use a simple dart class.

# Model:

```dart
import 'login_form_error.dart';

class LoginFormModel {
  String email;
  String password;

  void setEmail(String email) {
    //The validation of the email. It must contain @
    if (!email.contains("@")) {
      throw LoginError("Enter a valid Email");
    }
    this.email = email;
  }

  void setPassword(String password) {
    //The validation of the password. It must have more than three characters
    if (password.length <= 3) {
      throw LoginError('Enter a valid password');
    }
    this.password = password;
  }

  submit() {
    print("form submitted");
  }
}
```

# Error

```dart
class LoginError extends Error {
  LoginError(this.message);
  final String message;
}
```

There is nothing special, simple vanilla dart classes.

# User Interface

```dart
import 'package:flutter/material.dart';
import 'package:states_rebuilder/states_rebuilder.dart';

import 'login_form_model.dart';

class LoginFormPage1 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Injector(
      inject: [
        //NOTE1: Injecting the LoginFormModel model
        Inject(
          () => LoginFormModel(),
          //TODO:
          //NOTE2 : join reactive singleton with the combined result of the new reactive instances
          //joinSingleton: JoinSingleton.withCombinedReactiveInstances,
        ),
      ],
      //controller need to be disposed.
      disposeModels: true,
      builder: (context) {

        //NOTE3: obtaining the injected reactive singleton of LoginFormModel model
        final model = Injector.getAsReactive<LoginFormModel>();

        return Scaffold(
          appBar: AppBar(
            title: Text('Login Form'),
          ),
          body: Container(
            margin: EdgeInsets.all(20),
            child: ListView(
              children: <Widget>[
                  //To be continued.
              ],
            ),
          ),
        );
      },
    );
  }
}
```

As usual the first thing in to inject an instance of the `LoginFormModel` model. [NOTE1].

In this example, we will see how can new reactive instances share their state withthe reactive singleton. [NOTE2]. We will talk about it later on.

The `ListView` will contain the email and password TextFields and login button.

```dart
class LoginFormPage1 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Injector(
      inject: [
        Inject(
          () => LoginFormModel(),
          //TODO:
          //NOTE2 : join reactive singleton with the combined result of the new reactive instances
          //joinSingleton: JoinSingleton.withCombinedReactiveInstances,
        ),
      ],
      disposeModels: true,
      builder: (context) {
        final singletonModel = Injector.getAsReactive<LoginFormModel>();

        print('Scaffold widget is rebuilt');

        return Scaffold(
          appBar: AppBar(
            title: Text('Login Form'),
          ),
          body: Container(
            margin: EdgeInsets.all(20),
            child: ListView(
              children: <Widget>[
                //NOTE1: First new reactive instance for email input
                StateBuilder<LoginFormModel>(
                  builder: (context, loginModel) {
                    return TextField(
                      onChanged: (String email) {
                        //NOTE3 : Using setState to call setEmail method
                        loginModel.setState(
                          (state) => state.setEmail(email),

                          //NOTE4: Set catchError to true, so app will not break.
                          catchError: true,
                        );
                      },
                      keyboardType: TextInputType.emailAddress,
                      decoration: InputDecoration(
                        hintText<EMAIL_ADDRESS>It should contain '@'",
                        labelText: "Email Address",

                        //NOTE5: Check if model throw an error and display it.
                        errorText: loginModel.hasError
                            ? loginModel.error.message
                            : null,
                      ),
                    );
                  },
                ),

                //NOTE1: Second new reactive instance for password input
                StateBuilder<LoginFormModel>(
                  builder: (context, loginModel) {
                    return TextField(
                      onChanged: (String email) {
                        //NOTE3 : Using setState to call setPassword method
                        loginModel.setState(
                          (state) => state.setPassword(email),

                          //NOTE4: Set catchError to true, so app will not break.
                          catchError: true,
                        );
                      },
                      decoration: InputDecoration(
                        hintText:
                            "Password should be more than three characters",
                        labelText: 'Password',

                        //NOTE5: Check if model throw an error and display it.
                        errorText: loginModel.hasError
                            ? loginModel.error.message
                            : null,
                      ),
                    );
                  },
                ),

                //NOTE6: This StateBuilder is subscribe to the reactive singleton model obtained with Injector.getAsReactive
                StateBuilder(
                  models: [singletonModel],
                  builder: (context, _) {
                    return RaisedButton(
                      child: Text("login"),

                      //NOTE7: Check if model has data to activate the button.
                      onPressed: singletonModel.hasData
                          ? () {
                              singletonModel.state.submit();
                            }
                          : null,
                    );
                  },
                ),
              ],
            ),
          ),
        );
      },
    );
  }
}

```

states_rebuilder caches two singletons one for the raw injected model and one for the same raw model but decorated with a reactive layer.

To get the the raw singleton, we use:
```dart
final LoginFormModel model = Injector.get<LoginFormModel>();
```

To get the the reactive singleton, we use:
```dart
final ReactiveModel<LoginFormModel> model = Injector.getAsReactive<LoginFormModel>();
```

with states_rebuilder you can obtain the same raw singleton of the model but decorated with a new reactive layer.

This can be done with two ways:

```dart
final ReactiveModel<LoginFormModel> reactiveModelInstance = Injector.getAsReactive<LoginFormModel>(asNewReactiveInstance: true);

//And subscribe widget to it using `StateBuilder`
StateBuilder<LoginFormModel>(
    models: [reactiveModelInstance]
    builder: (BuildContext context, ReactiveModel<LoginFormModel> reactiveModelInstance){

    }
)
```

Or as a shortcut, by using the `StateBuilder` with generic type and without `models` parameter :

```dart
StateBuilder<LoginFormModel>(
    builder: (BuildContext context, ReactiveModel<LoginFormModel> reactiveModelInstance){

    }
)
```

In this example, we have created two new reactive instances one for the email and one for the password. [NOTE1]

The two email and password reactive environments are totally independent. For example, If one throws the other reactive environment will not be affected.

To mutate the model state and notify subscribers, you use `setState` method. [NOTE3].

We are sure that the `setEmail` and `setPassword` has a chance to throw, so we set the parameter `catchError` fo the `setState` method to true to not break the app.[NOTE4].

To check if the reactive environment has an error, we sue the `hasError` getter and to use the thrown error, we use the `error` getter. [NOTE5].

Lastly, we wrapped the login button with a `StateBuilder` widget that is subscribed to the reactive singleton. [NOTE6].

In [NOTE7], we checked if the model `hasData` and activate the login button.

In the example, we have one reactive singleton (there is always one) and two new reactive instances. Each reactive instance lives in its own world independently to other reactive environments. The only thing the reactive instances share is the raw singleton of the injected model.

with states_rebuilder new reactive instances can clone their state to the reactive singleton. This can be done by setting the `joinSingleton` in the constructor of the `Inject` class.

We have two types of interaction between new and singleton instances:
* `JoinSingleton.witReactiveInstances` : This means that when a reactive instance emits a  notification, its state will be cloned in the reactive singleton.
ex: In our example if we set the `joinSingleton` to `JoinSingleton.witReactiveInstances`, and if the email emits a notification with error the login button hasData is false and the button is inactive. and the opposite is true, if the email emits a notification without error, the login button hasData is true and the button is active regardless of the state of the password reactive environment.

* `JoinSingleton.withCombinedReactiveInstances` : This means that when a reactive instance emits a notification, a combined state of all new reactive instances will be transmitted to the reactive singleton.
ex: If the email reactive environment emits a notification without error the state of the login button reactive environment will depend on the state of the password reactive environment.

The logic of combining reactive instances is the following:

* Priority 1- The combined `ReactiveModel.hasError` is true if at least one of the new instances has an error
* Priority 2- The combined `ReactiveModel.connectionState` is awaiting if at least one of the new instances is awaiting.
* Priority 3- The combined `ReactiveModel.connectionState` is 'none' if at least one of the new instances is 'none'.
* Priority 4- The combined `ReactiveModel.hasDate` is true if it has no error, isn't awaiting  and is not in 'none' state.

NB: The logic is similar to combining streams with rxDart.

Uncomment [NOTE2] in the code and you will see that it works just like in the case with streams.

```dart
inject: [
    Inject(
        () => LoginFormModel(),

        //NOTE2 : join reactive singleton with the combined result of the new reactive instances
        joinSingleton: JoinSingleton.withCombinedReactiveInstances,
    ),
],
```

* `joinSingletonWith` can be defined in `setState` method or in `Inject` class constructor. When set in the `setState` method, it means that only the new instance, where` setState` is called, is joined to the reactive singleton. Whereas if `joinSingletonWith` is defined in the` Inject` constructor, this means that all new reactive instances will be joined to the reactive singleton.

repository: ndinhbang/states-rebuilder-examples

repo_name: ndinhbang/states-rebuilder-examples


text:
# DiabeticPred
This package predicts whether a patient has diabetes or not based on other non-diabetic measurements.
The non-diabetic measurements include age, weight, height, BMI, Systolic pressure, Diastolic pressure,
LDL, HDL, Triglyceride
## Installation

### Requirements
* Python 3.3 and above

## Usage

```python
# using default files
python main.py

# using user-provided data
python main.py -model MODEL -test TEST -output OUTPUT
```

## License
MIT

gha_language: Python


text:
sketch-glass
========

Realtime online whiteboard (work in progress)

## What

* WebGL-based fast drawing, scaling, translating
* Accessible from any devices
  * Mobile devices (touch, pen)
  * Desktop devices (graphics tablets)
* Collaborate with other users

## Run

```
npm install -g gulp
npm install
gulp
```

repository: saxofon/sketch-glass

repo_name: saxofon/sketch-glass


text:
# No Build Preact Sample with Chart.js

Install development dependencies:

```bash
npm install
```

Note: All actual runtime dependencies are imported via CDN.

## Start serving `src` using `live-server`:

```bash
npm run dev
```

## Run lint on `src`

```bash
npm run dev
```

repository: octalope/preact-chart-no-build

repo_name: octalope/preact-chart-no-build


text:
# terraform-provider-s3

## Description
A more generic S3 provider for Terraform.  The objective is to have an independent S3 provider that is compatible with AWS, RGW, GCE, etc.

## Requirements
* [Terraform](https://github.com/hashicorp/terraform)
* [Minio Go Library](https://github.com/minio/minio-go)

## Installation
The installation process assumes a properly installed and configured Go environment.
```
go get github.com/negronjl/terraform-provider-s3
go install github.com/negronjl/terraform-provider-s3
```
The provider will be available in ```$GOPATH/bin```

## Usage

### Provider Configuration
The provider requires some variables to be configured in order to gain access to the S3 compatible server:

* **s3_server**: S3 Server
* **s3_region**: S3 Server region (default: us-east-1)
* **s3_access_key**: S3 Server Access Key
* **s3_secret_key**: S3 Server Secret Key
* **s3_api_signature**: S3 Server API Signature (type: string, options: v2 or v4, default: v4)
* Supported cloud storage providers:
   * AWS Signature Version 4
      * Amazon S3
      * Minio
   * AWS Signature Version 2
      * Google Cloud Storage (Compatibility Mode)
      * Openstack Swift + Swift3 middleware
      * Ceph Object Gateway
      * Riak CS
* **s3_ssl**: Connect using SSL
* **s3_debug**: Enable Debug messages

#### `s3`
```
provider "s3" {
    s3_server        = "http://localhost:9000"
    s3_region        = "custom-region-1"
    s3_access_key    = "Access Key here"
    s3_secret_key    = "Secret Key here"
    s3_api_signature = "v2"
    s3_ssl           = false
    s3_debug         = true
}
```

### Resource Configuration (s3_bucket)
```s3_bucket``` resources represent a bucket in the S3 server.  It requires a bucket name to operate:

* **bucket**: Name of the bucket to use

```
resource "s3_bucket" "resource_name" {
	bucket = "my_bucket_name"
}
```

### Resource Configuration (s3_file)
```s3_file``` resources represent a file to be uploaded to the S3 server or downloaded from it.  It currently takes the following arguments:
* **bucket**: Bucket in the S3 server
* **name**: S3 Object name
* **file_path**: Local file path where to read or save the object
* **content_type**: The content type of the object.  Defaults to: ```application/octet-stream```
* **debug**: Print debug messages
```
resource "s3_file" "resource_name" {
    bucket       = "my_bucket_name"
    name         = "my_object_name"
    file_path    = /tmp/my_file.bin
    content_type = "application/octet-stream"
    debug        = true
}
```


text:
---
layout: post
title:  "An Email to Andrew Gelman About Evaluating Journals"
author: Joshua Vogelstein
---

I wrote the below transcribed email to Andrew Gelman today.  He often publishes my emails on his blog with a 6 month time delay, so I figured I'd post it here just in case.  If he bloggs about it, I'll link to it here.

***************

i noticed you disparage a number of journals quite frequently on your blog.
i wonder what metric you are using implicitly to make such evaluations?
is it the number of articles that they publish that end up being bogus?
or the fraction of articles that they publish that end up being bogus?
or the fraction of articles that get through their review process that end up being bogus?
or the number of articles that they publish that end up being bogus AND enough people read them and care about them to identify the problems in those articles.

my guess (without actually having any data), is that Nature, Science, and PNAS are the best journals when scored on the metric of fraction of bogus articles that pass through their review process. in other words, i bet all the other journals publish a larger fraction of the false claims that are sent to them than Nature, Science, or PNAS.

the only data i know on it is described [here]
(https://www.nature.com/articles/s41562-018-0399-z)
according to the article, 62% of social-science articles in Science and Nature published from 2010-2015 replicated
an [earlier paper from the same group](https://science.sciencemag.org/content/351/6280/1433.long) found that 61% of papers from specialty journals published between 2011 and 2014 replicated.

i'd suspect that the fraction of articles on social sciences that pass the review criteria for Science and Nature is much smaller than that of the specialty journals,
implying that the fraction of articles that get through peer review in Science and Nature that replicate is much higher than the specialty journals.

curious to here your thoughts....


text:
---
title: 'Best Ways to Experience the Oregon Dunes '
date: 2019-05-08T21:00:00-07:00
description: 'Whether you are seeking an off-roading adventure on a quad or ATV, a
  good hike, natural photo opportunities, camping, or simply seeking some peace and
  quiet- you will find it somewhere in the Oregon Dunes National Recreation Area. '
image: "/img/Oregon Dunesblog-695x322.jpg"
tags:
- Oregon Dunes
- ATV Rental
- Camping
- Hiking
- Dunes
- Spinreel
- Oregon Dunes National Recreation Area
categories:
- Oregon Dunes

---
There's lots to love about Oregon's Adventure Coast, but some would say that the Oregon Dunes National Recreation Area, the largest expanse of coastal dunes in North America, is what truly sets us apart from other travel destinations.

Whether you are seeking an off-roading adventure on a quad or ATV, a good hike, natural photo opportunities, camping, or simply seeking some peace and quiet- you will find it somewhere in the 32,186 acres of dunes, forest, streams and lakes.

![](/img/Oregon Dunes ATV OVA blog-695x322.jpg)

“Just the massiveness of this area is worth the stop,” says a visitor on TripAdvisor. “Just going there to sit in the sand and reflect on the beauty and the music that the ocean offers. The sunsets are breathtaking and it just gives you a chance to get away from all the hustle, noise, devices and crazy that our current lives offer. What an experience.”

Even travel journalist, Rick Dancer, had this to say on [ExplOregon The Back Stories:](https://www.facebook.com/ExplOregon-The-Back-Stories-110944429810670/)

<iframe src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2F110944429810670%2Fvideos%2F286834055530097%2F&show_text=1&width=560" width="560" height="546" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media" allowFullScreen="true"></iframe>

![](/img/Oregon Dunes Recreational Park blog-695x322.jpg)

![](/img/oregon dunes atv blog-695x322.jpg)Here are some recommended points of interest to help you get the full experience of the beautiful Oregon Dunes and build memories that last a lifetime:

### WHERE TO BEGIN

Oregon Dunes National Recreation Area Visitor Center (in nearby Reedsport, Oregon) is a great place to begin your journey. Here you will find interpretive exhibits, maps, brochures, books, gifts and a friendly and helpful staff that can help you make the most of your visit to the Oregon Dunes. The visitor center sells recreation passes and special forest product permits such as mushrooms and firewood.

### WHERE TO RENT ATVS (ALL TERRAIN VEHICLES) & OTHER RECREATIONAL GEAR

You’ll find the largest riding area at the Oregon Dunes between Spinreel Campground and Horsfall Road, just a few miles north of North Bend and Coos Bay. Here are some local businesses that have been recommended for ATV/UTV, Sand Board & Sled Rentals and tours.

[Spinreel Dune Buggy & ATV Rentals](https://www.ridetheoregondunes.com/)- North Bend, OR

[Doon Bugs](http://www.oregondunebugrentals.com/)- North Bend, OR

[Steve’s ATV Rental-](https://stevesatvrentals.com/) North Bend, OR

### WHERE TO HIKE

[Bluebill Trail- North Bayside, OR](https://www.fs.usda.gov/recarea/siuslaw/recarea/?recid=42649)
Bluebill Trail is a 1.25 mile loop and is the most southern trail in the Oregon Dunes National Recreation Area.

[Horsfall Beach- North Bend, OR](https://www.fs.usda.gov/recarea/siuslaw/recarea/?recid=42617)
Located along the Oregon National Recreation Area, Horsfall Beach is a haven for locals and visitors alike. Miles of open sand, flooded deflation plain wet lands, beach and inland dunes can be found here.

[John Dellenback Dunes Trail- Lakeside, OR](https://www.fs.usda.gov/recarea/siuslaw/recreation/recarea/?recid=42605)
Trail begins in a conifer forest and provides vistas of fresh water lakes, wet areas within the forest and ocean waves. The trail wanders threw a spruce forest with substantial tree size and stops at the serene Threemile Lake and ends at the ocean.

### WHERE TO CAMP

Horsfall Beach OHV Campground -North Bend, OR
Offers direct beach and dune access. [www.recreation.gov/camping](https://www.recreation.gov/camping/campgrounds/232183)

Bluebill Campground North Bend, OR
Offers 18 paved campsites with fire pits, picnic tables, water, refuse receptacles and a dumpsite. Located 2.5 miles west of Highway 101 on Horsfall Dunes, [www.recreation.gov/camping](https://www.recreation.gov/camping/campgrounds/234579)

Oregon Dunes KOA Kampgrounds- North Bend, OR
RV’s any size. Tent sites, drinking water, convenience store, playground, ATV access to dunes, common cooking area, fire pits, herb gardens and cabins available. [koa.com/campgrounds](https://koa.com/campgrounds/oregon-dunes/)

Spinreel Campground- North Bend, OR
Located south of Lakeside, Spinreel Campground offers fishing, boating, horseback riding, picnicking, Off-Highway Vehicle riding on the dunes and beach. [www.fs.usda.gov](https://www.fs.usda.gov/recarea/siuslaw/recarea/?recid=42653)

Wild Mare Horse Campground- North Bend, OR Located in the southwest corner of the Oregon Dunes National Recreation Area, provides 12 campsites with fire pits and tables. Each camp site has a horse corral! [www.recreation.gov/camping](https://www.recreation.gov/camping/campgrounds/232184)

For more tips on how to get the most out of your Oregon Dunes Adventure, please visit these resources: [oregonsadventurecoast.com/untamed-dunes ](https://oregonsadventurecoast.com/untamed-dunes/ )[www.fs.usda.gov ](https://www.fs.usda.gov/recarea/siuslaw/recarea/?recid=42465)[www.stateparks.com](https://www.stateparks.com/oregon_dunes_national_recreation_area_in_oregon.html)

repository: echopdx/coosbay

gha_language: JavaScript

repo_name: echopdx/coosbay


text:
# Creating your own templates

If you have a custom template that you want to provide (and you most probably do), then we have made it as easy as it can be.
{% raw %}
```html
<template>
  <div class="custom-element" :class="{error: validator.$error}">
    <slot></slot>
    <div class="errors" v-if="validator.$error">
      <div class="error" v-for="error in activeErrors">{{ getErrorMessage(error.validationKey, error.params) }}</div>
    </div>
  </div>
</template>
<script>
  import {extractorMixin} from 'vuelidate-error-extractor'

  export default {
    mixins: [extractorMixin]
  }
</script>
```
{% endraw %}

And this is it. You can extend is as much as want, as long as you implement the `extractorMixin`.

## extractorMixin

The `extractorMixin` is a vue element that provides a few convenient methods and variables for your custom templates.

### Methods

Method | Returns | Description
    --- | --- | --- |
`getErrorMessage({String} key, {Object} properties)` | String | Gets the error message for the current key. Can be passed an object with additional properties for the validation message. If i18n is set, it will return the translation string, skipping the messages prop.

### Computed properties

Property | Returns | Description
    --- | --- | --- |
errors | Object | Shows all the available validation messages for the field. This is a property that is updated every time the `validator` prop is updated, basically when an error state changes.
activeErrors | Object | Filters the `errors` object and shows only the active errors.
mergedMessages | Object | Merges both the messages prop and the globally defined ones on init.

The `errors` object has a structure like:
```js
[
  {
    $params:{Object},
    hasError:false,
    params:{
      attribute:"Username",
    },
    validationKey:"required"
  },
  {
     $params:{Object},
     hasError:true,
     params:{
       attribute:"Username",
       min: "5"
     },
     validationKey:"minLength"
  }
]
```
Active errors is the same, with only the ones where `hasError` is set to true.

## Props

Prop | Type | Required | Description
    ---| --- | --- | ---
 label | String | optional | The label to use inside the template. Gets assigned to the `:attribute` property as well.
 validator | Vuelidate object | required | The vuelidate object to pass for each input element. E.g. for the `test` data property you will have to pass `:validator = "$v.test"`.
 messages | Object | optional | The local messages to override the globally provided ones during initialization. This comes in handy when you need to override or its a single use case message. **Does not work with i18n mode!**
 validatorParams | Object | optional | Optional parameters to override or provide to the validation message. Mostly used to provide additional values like in the `other` property in laravel's `same` validation. [Validator Params](./advanced.md#validator-params)

repository: athiwatp/vuelidate-error-extractor

repo_name: athiwatp/vuelidate-error-extractor


text:
# Raspbery PI
In this folder there are 4 subfolders each containing materials for testing the system:
- CRC: Contains the CRC encoder as a python file.
- Full_system_simulation RPI: Contains the sender and receiver code for the full system test without the FPGA connected, but rather the RPI simulating the CRC code, original on the FPGA.
- Lossless compression: Contains the code for a lossless compression test conducted in the repport.
- compression - UART: Contains the code for using the UART onboard the RPI as sender and receiver.


text:
# react-utils

A simple package containing utilities useful with everyday react development.

[![npm (scoped)](https://img.shields.io/npm/v/@draeggiar/react-utils?color=blue)](https://www.npmjs.com/package/@draeggiar/react-utils)
[![npm bundle size (scoped)](https://img.shields.io/bundlephobia/min/@draeggiar/react-utils)](https://www.npmjs.com/package/@draeggiar/react-utils)
[![npm](https://img.shields.io/npm/dm/@draeggiar/react-utils)](https://www.npmjs.com/package/@draeggiar/react-utils)
[![Build status](https://github.com/Draeggiar/react-utils/actions/workflows/CI.yml/badge.svg?branch=master)](https://github.com/Draeggiar/react-utils)

## Installation

```
npm install --save @draeggiar/react-utils
```

## Package contents

### Hooks

-   `useLogUpdateReason` - Hook for diagnostig purposes. Helps to determine what made component update.

```javascript
import { useLogUpdateReason } from '@draeggiar/react-utils'

const MyComponent = props => {
    const [state, setState] = useState();

    useLogUpdateReason('MyComponent', props, { state });

    return ...
}
```

-   `useMemoCompare` - Used to memoize value based on dependencies. Similar to `useMemo`, but provides option to specify custom equality function to compare dependencies.

```javascript
import { useMemoCompare } from '@draeggiar/react-utils';
import isEqual from 'lodash/isEqual';

const MyComponent = props => {
    const memoizedValue = useMemoCompare(() => "some value", [dep1, dep2], isEqual);

    return ...
}
```

In this example dependencies are deep compared using lodash `isEqual`, insted of default `useMemo` shallow comparison.

-   `useCallbackCompare` - Used to memoize function based on dependencies. Similar to `useCallback`, but provides option to specify custom equality function to compare dependencies.

```javascript
import { useCallbackCompare } from '@draeggiar/react-utils';
import isEqual from 'lodash/isEqual';

const MyComponent = props => {
	const memoizedCallback = useCallbackCompare(
		args => {
			...
		},
		[dep1, dep2],
		isEqual
	);

    return ...
}
```

## Contribution

See the [contribution guideliness](https://github.com/Draeggiar/react-utils/blob/master/.github/CONTRIBUTING.md) for this project.

repository: Draeggiar/react-utils

repo_name: Draeggiar/react-utils


text:
# utl-scan-and-extract-character-and-numeric-data-from-a-clinical-narative-of-one-million-bytes
Scan and extract character and numeric data from a clinical narative of one million bytes
    Scan and extract character and numeric data from a clinical narative of one million bytes;

    Imbeded in a very long clinical narative are bigrams containing state abreviations followed by average
    age of the state population.

    For instance  string  ' AL 25 ' id somewhere in the million character narrative;

    github
    https://tinyurl.com/wqaa76r
    https://github.com/rogerjdeangelis/utl-scan-and-extract-character-and-numeric-data-from-a-clinical-narative-of-one-million-bytes

    other github
    https://github.com/rogerjdeangelis?utf8=%E2%9C%93&tab=repositories&q=32&type=&language=

    related to to
    https://tinyurl.com/qw4ubvg
    https://communities.sas.com/t5/SAS-Data-Management/Finding-Strings-Exact-or-Partial-Match-in-a-Line/m-p/613762

    Note States50 and states50q are defined in my autoexec

    %let states50= %sysfunc(compbl(AL AK AZ AR CA CO CT DE FL GA HI ID IL IN IA KS KY LA ME MD MA MI MN MS MO MT
    NE NV NH NJ NM NY NC ND OH OK OR PA RI SC SD TN TX UT VT VA WA WV WI WY)) ;

    %let states50q="AL","AK","AZ","AR","CA","CO","CT","DE","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","
    "NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY";

    Tried
      rewind (only works with tape file, however may work in unix because a tape file and disk file can be the same?)
      frewind (almost worked but cannot use '@' to scan the buffer?.

    Methon
          1. cocatenate the narrative into one long 1,000,000 byte record.
             Need this to handle strings that cross a record.
          2. Use input @'Az' to search al 1,000,000 bytes.
          3. Use dosubl to do a rewind
    *_                   _
    (_)_ __  _ __  _   _| |_
    | | '_ \| '_ \| | | | __|
    | | | | | |_) | |_| | |_
    |_|_| |_| .__/ \__,_|\__|
            |_|
    ;

    Approximately a 1 million character long nariative;

    data _null_;
      array states $2 &states50 (&states50q);
      length txt $1700 lyn $200;;
      txt=compbl('
           SUPPLY OF MANPOWER AS PER PROFORMA INVOICE DATED 14.01.2019
           ,1. SIGNED COMMERCIAL INVOICE(S) IN 1 ORIGINAL AND 2 COPIES
           ,SHOWING DATE OF SUPPLY OF MANPOWER NOT LATER THAN 15.05.2019 AND
           ,DULY COUNTERSIGNED BY APPLICANTS AUTHORIZED SIGNATORY AND TO BE
           ,AUTHENTICATED BY IRAN NATIONAL BANK  ERAN TRADE FINANCE DEPARTMENT
           ,PRIOR PRESENTATION OF DOCS FOR NEGOTIATION.
           ,IN THE ABSENCE OF DATE OF SUPPLY OF MANPOWER  THE DATE SHOWN ON
           ,COMMERCIAL INVOICE WILL BE CONSIDERED AS THE SUPPLY DATE for DAWOOD HASSAN. USD 120/
           , OR EQUIVALENT IN THE L/C CURRENCY AND RELATED
           ,CHARGES SHOULD BE DEDUCTED FROM THE PAYMENT FOR EACH PRESENTATION by DAWOOD HASAN
           ,OF DISCREPANT DOCUMENTS UNDER THIS CREDIT  NOT WITHSTANDING ANY
           ,INSTRUCTION TO THE CONTRARY  THIS CHARGE SHALL BE FOR THE ACCOUNT
           ,OF BENEFICIARY 202 577688-001-0010-000  BIC: PIBPBG2L
           ,2. BENEFICIARYS A/C NO.: 202 577688-001-0010-000  BIC: PIBPBG2L
           ,APPLICANT ACCOUNT. ALL OTHER
           ,CHARGES INCLUDING REIMBURSEMENT AND
           ,SWIFT PAYMENTS RELATED CHARGES
           ,FOR BENEFICIARY ACCOUNT in SYRIA
           ,WITHOUT DESPATCH FULL SET OF PRESENTED / NEGOTIATED DOCUMENTS IN ONE LOT
           ,BY COURIER TO: QATAR NATIONAL BANK  MAIN OFFICE  GRAND HAMAD
           ,STREET  TRADE FINANCE DEPARTMENT  IMPORTS SECTION  P.O. BOX 1000
           ,DOHA  QATAR. 202 577688-001-0010-000  BIC: PIBPBG2L
           ,++UPON RECEIPT OF CREDIT COMPLYING DOCUMENTS OSMA BIN LADEN PAYMENT SHALL BE
           ,EFFECTED BY US AS PER PRESENTING BANKS INSTRUCTION.
           ,DOHA  QATAR. 202 577688-001-0010-000  BIC: PIBPBG2L
           ,++UPON RECEIPT OF CREDIT COMPLYING DOCUMENTS OSMA BIN LADEN PAYMENT SHALL BE
           ,EFFECTED BY US AS PER PRESENTING BANKS INSTRUCTION.
           ,EFFECTED BY US AS PER PRESENTING BANK.
           ');
        file "d:/txt/chr75000.txt";
        do chunk=1 to 13;
           average_age=ceil(40*uniform(12345))+10;
           put +1 "GOOBOLY GOOP GOBOLOY" +1 states[chunk] $2. / +1 average_age 2. +1 " THE REST " @;
           do idx=1 to 50;
              do jdx=1 to 28;
                 lyn=scan(txt,jdx,',');
                 put +1 lyn " ";
             end;
           end;
        end;
    run;quit;

    d:/txt/chr75000.txt
                                                                                |  RULE OUTPUT
                                                                                |
     gooboly goop goboloy AL                                                                 |  State   Age
     25  the rest  SUPPLY OF MANPOWER AS PER PROFORMA INVOICE DATED 14.01.2019               |
     1. SIGNED COMMERCIAL INVOICE(S) IN 1 ORIGINAL AND 2 COPIES                              |    AL     25
     SHOWING DATE OF SUPPLY OF MANPOWER NOT LATER THAN 15.05.2019 AND                        |
     DULY COUNTERSIGNED BY APPLICANTS AUTHORIZED SIGNATORY AND TO BE                         |
     AUTHENTICATED BY IRAN NATIONAL BANK ERAN TRADE FINANCE DEPARTMENT                       |
     PRIOR PRESENTATION OF DOCS FOR NEGOTIATION.                                             |
     IN THE ABSENCE OF DATE OF SUPPLY OF MANPOWER THE DATE SHOWN ON                          |
     COMMERCIAL INVOICE WILL BE CONSIDERED AS THE SUPPLY DATE for DAWOOD HASSAN. USD 120/    |
     OR EQUIVALENT IN THE L/C CURRENCY AND RELATED                                           |
     CHARGES SHOULD BE DEDUCTED FROM THE PAYMENT FOR EACH PRESENTATION by DAWOOD HASAN       |
     OF DISCREPANT DOCUMENTS UNDER THIS CREDIT NOT WITHSTANDING ANY                          |
     INSTRUCTION TO THE CONTRARY THIS CHARGE SHALL BE FOR THE ACCOUNT                        |
     OF BENEFICIARY 202 577688-001-0010-000 BIC: PIBPBG2L                                    |
     2. BENEFICIARYS A/C NO.: 202 577688-001-0010-000 BIC: PIBPBG2L                          |
     APPLICANT ACCOUNT. ALL OTHER                                                            |
     CHARGES INCLUDING REIMBURSEMENT AND                                                     |
     SWIFT PAYMENTS RELATED CHARGES                                                          |
     ...                                                                                |
     75,000 more characters                                                                  |
                                                                                |  RULE OUTPUT
     gooboly goop goboloy AZ                                                                 |
     44  the rest  SUPPLY OF MANPOWER AS PER PROFORMA INVOICE DATED 14.01.2019               |  State   Age
     1. SIGNED COMMERCIAL INVOICE(S) IN 1 ORIGINAL AND 2 COPIES                              |
     SHOWING DATE OF SUPPLY OF MANPOWER NOT LATER THAN 15.05.2019 AND                        |    AZ     44
     DULY COUNTERSIGNED BY APPLICANTS AUTHORIZED SIGNATORY AND TO BE                         |
     AUTHENTICATED BY IRAN NATIONAL BANK ERAN TRADE FINANCE DEPARTMENT                       |
     PRIOR PRESENTATION OF DOCS FOR NEGOTIATION.                                             |
     IN THE ABSENCE OF DATE OF SUPPLY OF MANPOWER THE DATE SHOWN ON                          |
     COMMERCIAL INVOICE WILL BE CONSIDERED AS THE SUPPLY DATE for DAWOOD HASSAN. USD 120/    |
     OR EQUIVALENT IN THE L/C CURRENCY AND RELATED                                           |
     CHARGES SHOULD BE DEDUCTED FROM THE PAYMENT FOR EACH PRESENTATION by DAWOOD HASAN       |
     OF DISCREPANT DOCUMENTS UNDER THIS CREDIT NOT WITHSTANDING ANY                          |
     INSTRUCTION TO THE CONTRARY THIS CHARGE SHALL BE FOR THE ACCOUNT                        |
     OF BENEFICIARY 202 577688-001-0010-000 BIC: PIBPBG2L                                    |
     2. BENEFICIARYS A/C NO.: 202 577688-001-0010-000 BIC: PIBPBG2L                          |
     APPLICANT ACCOUNT. ALL OTHER                                                            |
     CHARGES INCLUDING REIMBURSEMENT AND                                                     |
     SWIFT PAYMENTS RELATED CHARGES                                                          |
     ...                                                                                |
     approx 850,000 more characters

    *            _               _
      ___  _   _| |_ _ __  _   _| |_
     / _ \| | | | __| '_ \| | | | __|
    | (_) | |_| | |_| |_) | |_| | |_
     \___/ \__,_|\__| .__/ \__,_|\__|
                    |_|
    ;

    Imbeded in the 1,000,000 character narative is this data

    WORK.WANT total obs=7

     STATES    AGE

       AL       25
       AK       40
       AZ       44
       AR       22
       CA       18
       CO       40
       CT       14

    *          _       _   _
     ___  ___ | |_   _| |_(_) ___  _ __
    / __|/ _ \| | | | | __| |/ _ \| '_ \
    \__ \ (_) | | |_| | |_| | (_) | | | |
    |___/\___/|_|\__,_|\__|_|\___/|_| |_|

    ;

    * take the narative and concatenate lines into a single one million byte record;
    data _null_;
      infile "d:/txt/chr75000.txt";
      file "d:/txt/chr1000000.txt" lrecl=1000000 recfm=f;
      input;
      put " " _infile_ @@;
    run;quit;

    * I file rewind function would be nice;
    * find the average age for states ""AL","AK","AZ","AR","CA","CO","CT ;

    data want;
     do states="AL","AK","AZ","AR","CA","CO","CT";
        call symputx('state',states);
        rc=dosubl('
           /*%let state=%str( AL);*/
           data _null_;
               *informat age $3.;
               infile "d:/txt/chr1000000.txt" lrecl=1000000 recfm=f;
               input @" &state " age;
               call symputx("age",age);
               putlog age=;
               stop;
           run;quit;
        ');
        age=symgetn("age");
        output;
     end;
     drop rc;
     stop;
    run;quit;


text:
# magento2-fast-product-images
Magento 2 fast product images, removes loading image from product images.

 This resulst in the sinner being up until the dom loads and js can take over and replace it. It makes even the fastest Magento 2 site seem slow.

This module is quite simple in that it replaces the spinner with the first image in the gallery. So now the page should simply show the image and not make you feel like you are waiting for it to load.

# Installation
```
composer config repositories.magento2-fast-product-images git git@github.com:xumulus/magento2-fast-product-images.git
composer require xumulus/magento2-fast-product-images:dev-master -n

bin/magento setup:upgrade
bin/magento setup:static-content:deploy
```
# Usage

Once installed the module should alter the image loading.

There are no admin settings, the module can be disable if you would like to return to the default behavior.


text:
## treestump
A [NERDTree][0] plugin that adds keybindings for copy (`<c-c>`),
paste (`<c-v>`), etc.

Currently, there's bindings for:

- copy `<c-c>`
- cut `<c-x>`
- paste `<c-v>`
- delete `<del>`

### TODO
- Copy/paste should use the system clipboard (if available) instead of
  an internal clipboard variable
- Be able to copy,paste into the same directory and rename the new file

[0]: https://github.com/scrooloose/nerdtree

repository: tylerbrazier/archive

repo_name: tylerbrazier/archive


text:
# Send email

![Send email Node](../docs/send-email-node.png "Send email Node")

## Introduction

> Warning: this subflow depends on the [node-red-node-email](https://flows.nodered.org/node/node-red-node-email) package and it must be installed first.

This subflow makes sending **static emails** easier when a SMTP relay service is already installed in the machine (Postfix, OpenSMTPD, Sendmail...).
The configuration of the SMTP relay service will not be described in this document, as there are numerous tutorials on the Internet. Besides, the [IoMBian distribution](https://github.com/Tknika/iombian) already comes with a pre-configured prefix installation.

The node is an output node and all the email information is defined in its configuration.

## Configuration

The following image shows the configuration parameters of the subflow:

![Send email Configuration](../docs/send-email-configuration.png "Send email Configuration")

- **Subject**: Subject text of the email to be sent.
- **Body**: Body text of the email to be sent.
- **To**: Address to which the email will be sent.

As it can be seen, all the email information is preconfigured, so it can not be dinamically modified with the ```msg.payload``` information. This means that it doesn't matter what type of node is attached to the email node, everytime the flow is executed the email will be sent.

## Flow example

The following image shows a complete flow:

![Send email Example](../docs/send-email-example.png "Send email Example")

repository: Tknika/node-red-subflows

repo_name: Tknika/node-red-subflows


text:
##High-Quality Methods##
1. Take the VS solution `Methods` and refactor its code to follow the guidelines of high-quality methods. Ensure you handle errors correctly: when the methods cannot do what their name says, throw an exception (do not return wrong result).Ensure good cohesion and coupling, good naming, no side effects, etc.
    - Use the provided source code "7. High-Quality-Methods-Homework.zip".

repository: StefanSinapov/TelerikAcademy

path: /07. High-Quality Code/Homework/06. High-Quality Methods/README.md

repo_name: StefanSinapov/TelerikAcademy


text:
---
layout: post
title:  "Dr. Yifan Chen's seminar talk 04/11/2022"
date:   2022-04-11
author: Lijing Shao
categories: activities
---

## Dr. Yifan Chen (ITP, CAS)

#### Probing axion using Event Horizon Telescope polarimetric measurement

Ultralight bosons can potentially accumulate around these supermassive black holes and form a gravitational atom-like bound state. A new way to look for the gravitational atom made of axion is through birefringence effect from the axion-photon coupling.The presence of coherently oscillating axion leads to a frequency independent oscillation to the electric vector position angle (EVPA) of the linearly polarized radiation. For a nearly face-on M87^\star*, this oscillation in the EVPA appears as a propagating wave along the photon ring. We leverage the azimuthal distribution of EVPA measured by the EHT to study the axion-photon coupling. We propose a novel differential analysis procedure to reduce the astrophysical background, and derive stringent constraints on the existence of axions in the previously unexplored mass window. One can also dissect the profile of the gravitational atom by correlating the spatial and temporal variation of the EVPAs.
[[link](http://kiaa.pku.edu.cn/info/1025/8251.htm)]

**Place**: KIAA first meeting room; Online Zoom Meeting ID: 822 8287 7472 , Passcode: astroPKU , Link: https://us02web.zoom.us/j/82282877472?pwd=VXFOYmtaRUhZMVplYWp1OFQ4OGsvQT09

**Time**: Monday, April 11, 2022 - 3:00PM to Monday, April 11, 2022 - 4:00PM

gha_language: SCSS


text:
BbJsLint
========

Run [JSLint](http://jslint.com/) on the javascript code in your active [BBEdit](http://barebones.com/products/bbedit/) document, and see the results in a Result Browser window.

Install
-------
    npm i -g bbjslint
    symlink to bbedit's scripts folder, assign hotkey

Acknowledgements
----------------
See [bbresults](/isao/bbresults).

License
-------
MIT

repository: jtreadway/cringe-phonegap

repo_name: jtreadway/cringe-phonegap


text:
# Port Scan

This is a simple port scan writing in Python.

## Installation

```bash
pyenv virtualenv 3.9.4 portscan
pyenv local portscan
pip install -r requirements.txt
```

## Usage

```bash
python app/main.py <ip_address>
```

## Example

```bash
➜  portscan git:(portscan) ✗ python app/main.py <IP_ADDRESS>
Port 1 is closed!
Port 2 is closed!
Port 3 is closed!
Port 4 is closed!
Port 5 is closed!
Port 6 is closed!
Port 7 is closed!
Port 8 is closed!
Port 9 is closed!
Port 10 is closed!
```

## Contributing

Pull requests are welcome.


text:
---
slug: /en/interfaces/cpp
sidebar_position: 24
sidebar_label: C++ Client Library
---

# C++ Client Library

See README at [clickhouse-cpp](https://github.com/ClickHouse/clickhouse-cpp) repository.

# userver Asynchronous Framework

[userver (beta)](https://github.com/userver-framework/userver) has builtin support for ClickHouse.

repository: ClickHouse/ClickHouse

repo_name: ClickHouse/ClickHouse


text:
 QuickBlox Android Video Chat WebRTC Kotlin code sample

This is a code sample for [QuickBlox](http://quickblox.com/) platform written on Kotlin. It is a great way for developers using QuickBlox platform to learn how to integrate WebRTC video calling features into your application.

Before start sample:

1. Register new account and application at https://admin.quickblox.com then put Application credentials from Overview page + Account key from https://admin.quickblox.com/account/settings page to qb_config.json file.

2. Go to https://admin.quickblox.com and create from 2 to 4 users in \'Users\' module and put them to user_config.json file.

repository: ShreeKrish/quickblox-android-sdk

repo_name: ShreeKrish/quickblox-android-sdk


text:
# Changelog

## 1.0.8

We have rewritten the Vector and Matrix class and merged them into something called Tensors. These are still WIP but can represent any dimension (3x3, 3x1, etc). See the README file for more information.

## 1.0.7

Vectors no longer extend Matrix, and each Vector's data is now an normal array instead of a multi-dimensional array. Vectors will still work the same in terms of the operations.

## 1.0.6

### Matrices

This is a big update to the vector system, as Vector now extends Matrix which stores rows and columns.
Vectors can now be any dimension, which gives much more freedom. This also means that you will now have to use `Vector.fromVector(coords)` instead of `new Vector(coords)` for specifying the coordinates. We will be removing the old vector asap. We have also added Vector.EMPTY for convience (make sure to clone it).

### New Features

-   Matrices

-   Easing functions

repository: SebastianSpeitel/throw-out-utils

repo_name: SebastianSpeitel/throw-out-utils


text:
---
layout: creature
name: "Spirit Troll"
tags: [large, giant, cr11, mordenkainens-tome-of-foes]
page_number: 244
---

**Large giant, chaotic evil**

**Armor Class** 17 (natural armor)

**Hit Points** 97  (15d10 + 15)

**Speed** 30 ft.

|   STR   |   DEX   |   CON   |   INT   |   WIS   |   CHA   |
|:-------:|:-------:|:-------:|:-------:|:-------:|:-------:|
| 1 (-4) | 17 (+3) | 13 (+1) | 8 (-1) | 9 (0) | 16 (+3) |

**Skills** Perception +3

**Damage Resistances** acid, cold, fire, lightning, thunder

**Damage Immunities** bludgeoning, piercing, and slashing from nonmagical attacks

**Condition Immunities** exhaustion, grappled, paralyzed, petrified, prone, restrained, unconscious

**Senses** darkvision 60 ft., passive Perception 13

**Languages** Giant

**Challenge** 11 (7200 XP)

***Incorporeal Movement.*** The troll can move through other creatures and objects as if they were difficult terrain. It takes 5 (1d10) force damage if it ends its turn inside an object.

***Regeneration.*** The troll regains 10 hit points at the start of each of its turns. If the troll takes psychic or force damage, this trait doesn't function at the start of the troll's next turn. The troll dies only if it starts its turn with 0 hit points and doesn't regenerate.

**Actions**

***Multiattack*** The troll makes three attacks: one with its bite and two with its claws.

***Bite*** Melee Weapon Attack: +7 to hit, reach 5 ft., one creature. Hit: 19 (3d10 + 3) psychic damage, and the target must succeed on a DC 15 Wisdom saving throw or be stunned for 1 minute. The stunned target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.

***Claws*** Melee Weapon Attack: +7 to hit, reach 5 ft., one creature. Hit: 14 (2d10 + 3) psychic damage.

repository: Savion-NEU/whatever

repo_name: Savion-NEU/whatever


text:
# mrm-task-codecov

[Mrm](https://github.com/sapegin/mrm) task that adds [Codecov](https://codecov.io/) to Travis CI config (see [travis](../travis) task) and a Readme badge.

## Usage

```
npm install -g mrm mrm-task-codecov
mrm codecov
```

## Options

See [Mrm docs](https://github.com/sapegin/mrm#usage) for more details.

### `readmeFile` (default: `Readme.md`)

Name of the Readme file.

### `github` (default: extracted from `.git/config` file)

Your GitHub user name.

## Change log

The change log can be found in [Changelog.md](Changelog.md).

## Contributing

Everyone is welcome to contribute. Please take a moment to review the [contributing guidelines](../../Contributing.md).

## Authors and license

[Artem Sapegin](http://sapegin.me) and [contributors](https://github.com/sapegin/mrm-tasks/graphs/contributors).

MIT License, see the included [License.md](License.md) file.

repository: sapegin/mrm-tasks

repo_name: sapegin/mrm-tasks


text:
PushMiner
=========

Bitcoin Push Miner
------------------

This project consists of a server and various client implementations. The server takes the place of a traditional bitcoin mining program. Instead of using local hardware resources to compute hashes, the server will send work requests to clients via REST. The clients perform the work and respond with a short JSON message indicating the results.

The server implements the bitcoin getwork long-polling extension and uses threading to manage all concurrent client operations.

repository: jesseharris/PushMiner

repo_name: jesseharris/PushMiner