text:
# TeX Dockerized

> Effortless LaTeX compilation leveraging Docker and Compose

TeX Dockerized is a complete solution for compiling LaTeX documents without ever having to install and maintain a TeX distribution. Compilation is instead done transparently through a Docker container and wrapped up in Docker Compose.

## Requirements

* [Docker Engine](https://docs.docker.com/installation/)
* [Docker Compose](https://docs.docker.com/compose/)
* [Docker Machine](https://docs.docker.com/machine/) (Mac and Windows only)

## Running

Set up a Docker Machine and then run:

```console
$ docker-compose run tex [src/tex/<your-main>.tex]
```

That's it! When finished, you'll find a compiled PDF in the root of the repository. Whenever the above command is run again, an incremental compilation will be performed. Note that if you don't specify a main TeX file, `src/tex/index.tex` is assumed.

## License

Copyright © 2016 [Kasper Kronborg Isager](http://github.com/kasperisager). Licensed under the terms of the [MIT license](LICENSE.md).

repository: kasperisager/tex-dockerized

repo_name: kasperisager/tex-dockerized


text:
# SQL - `INSERT`

The [`INSERT`](SQL-Insert.md) command creates a new record in the database.  Records can be schema-less or follow rules specified in your model.

**Syntax**:

```sql
INSERT INTO [CLASS:]<class>|CLUSTER:<cluster>|INDEX:<index>
  [(<field>[,]*) VALUES (<expression>[,]*)[,]*]|
  [SET <field> = <expression>|<sub-command>[,]*]|
  [CONTENT {<JSON>}]
  [RETURN <expression>]
  [FROM <query>]
```

- **`CONTENT`** Defines JSON data as an option to set field values.
- **`RETURN`** Defines an expression to return instead of the number of inserted records.  You can use any valid SQL expression.  The most common use-cases,
  - `@rid` Returns the Record ID of the new record.
  - `@this` Returns the entire new record.
- **`FROM`** Defines where you want to insert the result-set.  Introduced in version 1.7.

**Examples**:

- Inserts a new record with the name `Jay` and surname `Miner`.

  As an example, in the SQL-92 standard, such as with a Relational database, you might use:

  orientdb> INSERT INTO Profile (name, surname)
            VALUES ('Jay', 'Miner')

  Alternatively, in the OrientDB abbreviated syntax, the query would be written as,

  orientdb> INSERT INTO Profile SET name = 'Jay', surname = 'Miner'

  In JSON content syntax, it would be written as this,

  orientdb> INSERT INTO Profile CONTENT {"name": "Jay", "surname": "Miner"}

- Insert a new record of the class `Profile`, but in a different cluster from the default.

  In SQL-92 syntax:

  orientdb> INSERT INTO Profile CLUSTER profile_recent (name, surname) VALUES
            ('Jay', 'Miner')

  Alternative, in the OrientDB abbreviated syntax:

  orientdb> INSERT INTO Profile CLUSTER profile_recent SET name = 'Jay',
            surname = 'Miner'

- Insert several records at the same time:

  orientdb> INSERT INTO Profile(name, surname) VALUES ('Jay', 'Miner'),
            ('Frank', 'Hermier'), ('Emily', 'Sout')

- Insert a new record, adding a relationship.

  In SQL-93 syntax:

  orientdb> INSERT INTO Employee (name, boss) VALUES ('jack', #11:09)

  In the OrientDB abbreviated syntax:

  orientdb> INSERT INTO Employee SET name = 'jack', boss = #11:99

- Insert a new record, add a collection of relationships.

  In SQL-93 syntax:

  orientdb> INSERT INTO Profile (name, friends) VALUES ('Luca', [#10:3, #10:4])

  In the OrientDB abbreviated syntax:

  orientdb> INSERT INTO Profiles SET name = 'Luca', friends = [#10:3, #10:4]

- Inserts using [`SELECT`](SQL-Query.md) sub-queries

  orientdb> INSERT INTO Diver SET name = 'Luca', buddy = (SELECT FROM Diver
            WHERE name = 'Marko')

- Inserts using [`INSERT`](SQL-Insert.md) sub-queries:

  orientdb> INSERT INTO Diver SET name = 'Luca', buddy = (INSERT INTO Diver
            SET name = 'Marko')

- Inserting into a different cluster:

  orientdb> INSERT INTO CLUSTER:asiaemployee (name) VALUES ('Matthew')

  However, note that the document has no assigned class.  To create a document of a certain class, but in a different cluster than the default, instead use:

  orientdb> INSERT INTO CLUSTER:asiaemployee (@class, content) VALUES
            ('Employee', 'Matthew')

  That inserts the document of the class `Employee` into the cluster `asiaemployee`.

- Insert a new record, adding it as an embedded document:

  orientdb> INSERT INTO Profile (name, address) VALUES ('Luca', { "@type": "d",
            "street": "Melrose Avenue", "@version": 0 })

- Insert from a query.

  To copy records from another class, use:

  orientdb> INSERT INTO GermanyClient FROM SELECT FROM Client WHERE
            country = 'Germany'

  This inserts all the records from the class `Client` where the country is Germany, in the class `GermanyClient`.

  To copy records from one class into another, while adding a field:

  orientdb> INSERT INTO GermanyClient FROM SELECT *, true AS copied FROM Client
            WHERE country = 'Germany'

  This inserts all records from the class `Client` where the country is Germany into the class `GermanClient`, with the addition field `copied` to the value `true`.

For more information on SQL, see [SQL Commands](SQL-Commands.md).

repository: orientechnologies/orientdb-docs

extension: md

gha_language: CSS

license_type: permissive

repo_name: orientechnologies/orientdb-docs


text:
---
id: 14249
title: Exploring a new yoga pose
date: 2015-08-19T16:08:01+00:00
author: Ann
layout: post
guid: http://gofitgirl.com/?p=14249
permalink: /2015/08/19/pigeon/
sfw_pwd:
  - a3hEAA5QID0g
dsq_thread_id:
  - "4671744470"
categories:
  - yoga
tags:
  - deer pose
  - figure 4
  - hamstrings
  - hip opener
  - it band
  - pigeon pose
  - pigeon wheel
  - quadriceps
  - the z-sit
---

    Here I am in Pigeon Wheel, also known as The Z-Sit.

This week the theme in my yoga classes is the IT band (iliotibial band).
According to [Prashamana Yoga](http://www.prashamanayoga.com/index.php/blog/item/92-yoga-for-the-it-band), the IT band is a layer of connective tissue extending from the iliac crest to the knee and links the gluteus maximus to the tibia. (This is a [good picture](http://strengthrunning.com/wp-content/uploads/2010/10/IT-Band.jpg) of the IT band, gluteus maximus and tensor fascia latae.)
We can reduce the pull on the IT band by opening our hips and stretching the quads and hamstrings.
There are many poses we can practice for the IT band, hips, quads and hamstrings.
One pose I discovered while doing research for this week’s sequence is Pigeon Wheel. I can’t find the picture or information on Pigeon Wheel from the other day. As I was scouring the Internets hoping to find what I found the other day I found that this pose can also be called [The Z-Sit](http://www.yogajournal.com/slideshow/3-ways-make-pigeon-pose-feel-better/#slide-1).
Since I can’t find the information from a few days ago I will refer to [Deer Pose](http://www.yinyoga.com/ys2_2.0_asanas_deer.php) (a [Yin Yoga](http://www.yinyoga.com/ys1_0.0_what_is_yin.php) pose), which is similar to the Pigeon Wheel I found, which I was able to find [a photo](http://crossfitwarriorspirit.com/wp-content/uploads/2013/01/photo43-300x225.jpg) portraying what I have been teaching.
Deer and Pigeon Wheel share benefits, such as being a nice counter pose to hip openers or any external rotation of the hips and are a balanced way to rotate hips, both externally (front leg) and internally (back leg).
I think Pigeon Wheel (The Z-Sit) is a great alternative to [Eka Pada Rajakapotasana](http://gofitgirl.com/wp-content/uploads/2014/06/Untitled-copy.jpg) (Pigeon Pose).
My students have been really receptive to Pigeon Wheel. My knee people have easily been able to practice this pose. Another student who had stopped practicing Pigeon as it was hurting her knees said she would now practice Pigeon Wheel. (Usually the alternative to Pigeon is [Figure 4](http://www.aspenchamber.org/sites/default/files/images/4..jpg), which is also a great hip opener.)
I love learning new stuff and sharing it with my students.

license: MIT

repository: cpoff/gofitgirl-jekyll

branch_name: refs/heads/master

repo_name: cpoff/gofitgirl-jekyll


text:
# IREE Service

`no_std` compatible implementation of the business logic of the IREE Service.

The interface of the service is defined via microRPC in
[`oak_iree.proto`](/oak_iree_service/proto/oak_iree.proto).

repository: project-oak/oak

branch_name: refs/heads/main

gha_language: Rust

repo_name: project-oak/oak


text:
---
layout: page
categories : usage
---

Deploying a jekyll-based website comes in two flavors.
You can deploy to GitHub Pages or you can deploy to your own custom server.

## Deploy Jekyll to GitHub Pages

You can deploy Jekyll to your GitHub account and GitHub will parse your repo through Jekyll and host the result on username.github.com
This is very nice of GitHub and the most convenient strategy.
However you cannot extend jekyll via plugins with this version because GitHub will not run them for security reasons.

[GitHub Pages](http://pages.github.com) provides a comprehension tutorial to deploying your Jekyll repository to GitHub Pages.

### Jekyll-Bootstrap is Built to Run on GitHub Pages.
<http://jekyllbootstrap.com> itself, is running via GitHub pages.
You can see that this website is also available at: <http://plusjade.github.com/jekyll-bootstrap>.

If you follow the development practices outlined in Jekyll-bootstrap all you have to do is
clone the jekyll-bootstrap framework, clear out the posts and pages and add in your own content.
Then push this to github as per the [GitHub Pages](http://pages.github.com) tutorial.

Please [contact me](http://plusjade.com) if you run into any trouble.

## Deploy Jekyll to Your Custom Server

The main reason you'd want to host your website yourself is because you can then run custom plugins and customize Jekyll to your heart's content.

Please see the original docs for [custom Jekyll deployment strategies](https://github.com/mojombo/jekyll/wiki/Deployment).

repository: BarbecuePizza/aboutme

repo_name: BarbecuePizza/aboutme


text:
## WABCustomWidgets
A repository of custom widgets for use with Esri's Web AppBuilder Developer Addition or hosted on Portal.
## Widgets
[MultiFilter](https://github.com/mebuie/WABCustomWidgets/tree/master/widgets/MultiFilter)

The MultiFilter aims to address some of the issues of the Group Filter widget, such as only being able to apply one
group filter at a time. In addition, the user can build independent filter expressions for each layer in the
group.

![example](http://www.markbuie.com/img/github/MultiFilter_Settings.gif)


text:
# This is my package MigrationToSql

[![Latest Version on Packagist](https://img.shields.io/packagist/v/bcleverly/migrationtosql.svg?style=flat-square)](https://packagist.org/packages/bcleverly/migrationtosql)
[![Total Downloads](https://img.shields.io/packagist/dt/bcleverly/migrationtosql.svg?style=flat-square)](https://packagist.org/packages/bcleverly/migrationtosql)

---
To install:
```bash
composer require bcleverly/migrationtosql --dev
```
---
This repo is here to help you extract the SQL queries from your registered migration files. Running the below command will output each migration file in the order they're registered.
```bash
php artisan migrate:to-sql
```
Below is an example of the output of the CreateUsersTable
```sql
-- CreateUsersTable
-- \laravelapp\database\migrations/2014_10_12_000000_create_users_table.php
create table `users` (
  `id` bigint unsigned not null auto_increment primary key,
  `name` varchar(255) not null,
  `email` varchar(255) not null,
  `email_verified_at` timestamp null,
  `password` varchar(255) not null,
  `remember_token` varchar(100) null,
  `created_at` timestamp null,
  `updated_at` timestamp null
) default character set utf8mb4 collate 'utf8mb4_unicode_ci'
```

## Testing
TODO
```bash
composer test
```

## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

repository: BCleverly/MigrationToSql

repo_name: BCleverly/MigrationToSql


text:
---
layout: default
title: Row Table
---

Row Table
=========

The RowTable widget is one of two primary ways to do tables in Tessell. The other is [CellTables](celltable.html).

Benefits
--------

RowTable is most appropriate when:

* You have 10s of rows
* Rows have non-trivial HTML layout that is best done in UiBinder
* Rows have non-trivial logic that deserves it's own presenter
* You want to reuse existing widgets

Drawbacks
---------

* Uses conventional widgets so won't scale to 100s/1000s of rows
* Involves multiple `ui.xml` files that can be unnecessary overhead for very simple layouts

For really simple tables, or really large tables, [CellTable](celltable.html) is a better choice.

Approach
--------

To use RowTable, you create two presenters and three `ui.xml` files:

* `PagePresenter` is the presenter for the page
* `RowPresenter` is the presenter for each table row
* `Page.ui.xml` is the HTML for the page that contains the table
* `Header.ui.xml` is the HTML for the table header row
* `Row.ui.xml` is the HTML for each of the table body rows

While there is just one `PagePresenter` instance for the top-level page, there will be multiple `RowPresenter` instances, one for each table row.

This presenter-per-row allows you to easily hook into the row's widgets and perform per-row business logic (change row styles, make AJAX calls, etc.).

Simple Example
--------------

For example, given a page with an employees table, we'd have `Page.ui.xml`:

    <ui:UiBinder ...>
      <gwt:HTMLPanel>
        ... various html ...

        <mpv:RowTable ui:field="employeeTable"/>
      </gwt:HTMLPanel>
    </ui:UiBinder>
{: class="brush:xml"}

`EmployeeHeader.ui.xml`:

    <ui:UiBinder ...>
      <gwt:HTMLPanel tag="table">

          Name
          Description
          Actions

      </gwt:HTMLPanel>
    </ui:UiBinder>
{: class="brush:xml"}

`EmployeeRow.ui.xml`:

    <ui:UiBinder ...>
      <gwt:HTMLPanel tag="table">

          <gwt:InlineLabel ui:field="name"/>
          <gwt:InlineLabel ui:field="description"/>

            <gwt:Anchor ui:field="edit" text="Edit"/>
            <gwt:Anchor ui:field="delete" text="Delete"/>

      </gwt:HTMLPanel>
    </ui:UiBinder>
{: class="brush:xml"}

Tessell's [view generation](viewgeneration.html) will turn these into 3 views, `IsPageView`, `IsEmployeeHeaderView`, and `IsEmployeeRowView`.

The `PagePresenter` fetches the table data, instantiates an inner-class presenter around each row's data object, and adds the row's view to the table, e.g.:

    public class PagePresenter extends AbstractPresenter<IsPageView> {

      // ... fetch data from server logic ...

      // called when we get data from the server
      private void onData(ArrayList<Employee> employees) {
        // header doesn't have any logic, so add
        // it's view directly to the table
        view.employeeTable().addHeader(newEmployeeHeaderView());

        // now add each row's view, with each row
        // getting it's own presenter
        for (Employee employee : employees) {
          EmployeeRowPresenter p = addPresenter(new EmployeeRowPresenter(employee));
          view.employeeTable().addRow(p.getView());
        }
      }

      private class EmployeeRowPresenter extends AbstractPresenter<IsEmployeeRowView> {
        private final Employee employee;

        private EmployeeRowPresenter(Employee employee) {
          super(newEmployeeRowView());
          this.employee = employee;
        }

        @Override
        public void onBind() {
          super.onBind();
          view.name().setText(employee.name);
          view.description().setText(employee.description);
          registerHandler(view.edit().addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
              // do logic
            }
          }));
        }
      }
    }
{: class="brush:java"}

While this example doesn't do anything fancy, the idea is that the per-row, stateful `EmployeeRowPresenter` will scale as your table logic becomes more complex.

Testing
-------

Testing RowTable works much like regular Tessell stub-based testing.

    public class PagePresenterTest {
      final PagePresenter p = bind(new PagePresenter(registry));
      final StubPageView v = (StubPageView) p.getView();

      @Test
      public void nameIsSet() {
        doDataResult();
        assertThat(row(0).name.getText(), is("Employee 1"));
        assertThat(row(1).name.getText(), is("Employee 2"));
      }

      @Test
      public void deleteDoesSomething() {
        doDataResult();
        row(0).edit.click();
        // assert whatever happened
      }

      // returns row {@code i} from the page's row table
      private StubEmployeeRowView row(int i) {
        StubRowTable table = (StubRowTable) v.rowTable();
        return (StubEmployeeRowView) table.getRows().get(i);
      }

      private void doDataResult() {
        // do async callback/something that results in
        // PagePresenter.onData being called
      }
    }
{: class="brush:java"}

Implementation Details
----------------------

Internally, RowTable adopts each row's HTMLPanel as a child widget, so GWT events will work. It then steals the HTMLPanel's first `tr` element and appends it to the RowTable's own `tbody` element.

Granted, having an `<gwt:HTMLPanel tag="table">` for each row looks odd (it insinuates that each row is its own table). However, due to the way browsers' `innerHTML` works (which HTMLPanel uses), a root `tag="tr"` does not work. Without the root `table` tag, the lone `tr` is invalid markup and all of the HTML gets dropped.

repository: stephenh/tessell

gha_language: Java

gha_license_id: NOASSERTION

repo_name: stephenh/tessell


text:
# Logging

## Enabling gRPC Logging

To enable logging for this library, set the logger for the underlying
[gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library. The logger
that you set may be a Ruby stdlib
[`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as
shown below, or a
[`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
that will write logs to [Stackdriver
Logging](https://cloud.google.com/logging/). See
[grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
and the gRPC
[spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb)
for additional information.

Configuring a Ruby stdlib logger:

```ruby
require "logger"
require "grpc"

module MyLogger
  LOGGER = Logger.new $stderr, level: Logger::WARN
  def logger
    LOGGER
  end
end

# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
module GRPC
  extend MyLogger
end
```

## Adding gRPC interceptors

[gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) accepts [Ruby-language
interceptors](https://github.com/grpc/proposal/blob/master/L11-ruby-interceptors.md) that allow you to insert your own
custom logging into a client's RPC calls. (gRPC interceptors are also useful for auth, metrics, tracing and similar
use cases.)

This library performs RPCs using the following [gapic](https://github.com/googleapis/gapic-generator-ruby) clients from
the underlying
[google-cloud-pubsub-v1](https://github.com/googleapis/google-cloud-ruby/tree/main/google-cloud-pubsub-v1) library:

* [`Google::Cloud::PubSub::V1::IAMPolicy::Client`](https://googleapis.dev/ruby/google-cloud-pubsub-v1/latest/Google/Cloud/PubSub/V1/IAMPolicy/Client.html)
* [`Google::Cloud::PubSub::V1::Publisher::Client`](https://googleapis.dev/ruby/google-cloud-pubsub-v1/latest/Google/Cloud/PubSub/V1/Publisher/Client.html)
* [`Google::Cloud::PubSub::V1::SchemaService::Client`](https://googleapis.dev/ruby/google-cloud-pubsub-v1/latest/Google/Cloud/PubSub/V1/SchemaService/Client.html)
* [`Google::Cloud::PubSub::V1::Subscriber::Client`](https://googleapis.dev/ruby/google-cloud-pubsub-v1/latest/Google/Cloud/PubSub/V1/Subscriber/Client.html)

To add a gRPC interceptor to one or more of these clients, first implement your logic as a subclass of
[`GRPC::ClientInterceptor`](https://www.rubydoc.info/gems/grpc/GRPC/ClientInterceptor). The example below logs all four
types of gRPC calls (unary, client streaming, server streaming, and bi-directional streaming.) It also demonstrates how
to set a metadata field.

```ruby
require "grpc"
require "logger"
require "securerandom"

class MyInterceptor < GRPC::ClientInterceptor
  attr_reader :name

  def initialize name
    @name = name
  end

  def request_response(request:, call:, method:, metadata:)
    logger.info "[#{name}] Sending unary request/response to #{method}"
    metadata["request_id"] = generate_request_id
    yield
  end

  def client_streamer(requests:, call:, method:, metadata:)
    logger.info "[#{name}] Sending client streamer to #{method}"
    metadata["request_id"] = generate_request_id
    yield
  end

  def server_streamer(request:, call:, method:, metadata:)
    logger.info "[#{name}] Sending server streamer to #{method}"
    metadata["request_id"] = generate_request_id
    yield
  end

  def bidi_streamer(requests:, call:, method:, metadata:)
    logger.info "[#{name}] Sending bidi streamer to #{method}"
    metadata["request_id"] = generate_request_id
    yield
  end

  private

  def logger
    @logger ||= Logger.new(STDOUT)
  end

  def generate_request_id
    SecureRandom.uuid
  end
end
```

Next, use the block yielded by a `Client.configure` method to add an instance of your class to the `interceptors`
configuration of one or more of the generated clients listed above.

Note that the `Google::Cloud::PubSub::V1` configurations must be performed **before** the `Google::Cloud::PubSub` client
is instantiated.

```ruby
require "google/cloud/pubsub"

Google::Cloud::PubSub::V1::Publisher::Client.configure do |config|
  config.interceptors = [MyInterceptor.new("MyPublisherInterceptor")]
end

Google::Cloud::PubSub::V1::Subscriber::Client.configure do |config|
  config.interceptors = [MyInterceptor.new("MySubscriberInterceptor")]
end

pubsub = Google::Cloud::PubSub.new
```

repository: googleapis/google-cloud-ruby

gha_language: Ruby

repo_name: googleapis/google-cloud-ruby


text:
# KPMG-Data-Analytics-Consulting-Virtual-Internship

Sprocket Central Pty Ltd Data Set

Solutions to all the modules of KPMG Virtual Internship

 This repository contains the submitted patch files of the various tasks assigned by KPMG Data Analytics Virtual Internship along with the Module Answer provided by KPMG themselves.

  Module 1 Task	:

  Your task is to take a look at the following datasets provided by Sprocket Central Pty Ltd and identify all data quality issues.
  Once you've had a look at these datasets, draft an email to the client identifying all data quality issues.

  Module 2 Task  :

  Create a PowerPoint presentation wihch outlines the approach we will be taking to identify which of the 1000 customers Sprocket Central Pty Ltd should target, based on this dataset.
  Explain the three phases:  Data Exploration; Model Development and Interpretation.

  Module 3 Task  :

  Please develop a dashboard that we can present to the client at our next meeting. Display your data summary and results of the analysis in a dashboard (see      tools/references for assistance).
  Specifically, your presentation should specify who Sprocket Central Pty Ltd' should be targeting out of the new 1000 customer list.

## Return to the virtual internship here:
[https://in.insidesherpa.com/virtual-internships/m7W4GMqeT3bh9Nb2c](https://www.insidesherpa.com/virtual-internships/theme/m7W4GMqeT3bh9Nb2c/KPMG-Data-Analytics-Virtual-Internship)

 ## Certificate of Completion Link:

 [https://insidesherpa.s3.amazonaws.com/completion-certificates/KPMG/m7W4GMqeT3bh9Nb2c_KPMG_aukybM3RaxT6pR5pN_completion_certificate.pdf](https://insidesherpa.s3.amazonaws.com/completion-certificates/KPMG/m7W4GMqeT3bh9Nb2c_KPMG_aukybM3RaxT6pR5pN_completion_certificate.pdf)

  ## For any queries/doubts:

  :envelope<EMAIL_ADDRESS>:thumbsup:


text:
# Uncertainty Quantification using Variational Inference for Biomedical Image Segmentation

Code for the paper `Uncertainty Quantification using Variational Inference for Biomedical Image Segmentation`.

https://arxiv.org/pdf/2008.07588.pdf

## Abstract

Deep learning motivated by convolutional neural networks has been highly successful in a range of medical imaging problems like image classification, image
segmentation, image synthesis etc. However for validation and interpretability, not
only do we need the predictions made by the model but also how confident it is
while making those predictions. This is important in safety critical applications for
the people to accept it. In this work, we used an encoder decoder architecture based
on variational inference techniques for segmenting brain tumour images. We compared different backbones architectures like U-Net, V-Net and FCN as sampling
data from the conditional distribution for the encoder. We evaluate our work on
the publicly available BRATS dataset using Dice Similarity Coefficient (DSC) and
Intersection Over Union (IOU) as the evaluation metrics. Our model outperforms
previous state of the art results while making use of uncertainty quantification in a
bayesian manner.

## Data

The dataset can be downloaded from [here](http://braintumorsegmentation.org/).

![loss/accuracy](images/img3.png)

## Network Architecture

![results](images/img1.png)

## Algorithm

![results](images/img2.png)

## Usage

`python train.py`

## Results

![results](images/img4.png)

![results](images/img5.png)

### Examples of models predictions on test samples, compared to ground truth segmentation:

![results](images/f3.png)

First column: input image, second column: ground truth segmentation, third column: predicted segmentation, fourth column: aleatoric uncertainty and fifth column: epistemic uncertainty.

## Citing

If you find this code useful in your research, please consider citing the paper:

BibTex:

```
@article{sagar2020uncertainty,
  title={Uncertainty Quantification using Variational Inference for Biomedical Image Segmentation},
  author={Sagar, Abhinav},
  journal={arXiv preprint arXiv:2008.07588},
  year={2020}
}
```

MLA:

`Sagar, Abhinav. "Uncertainty Quantification using Variational Inference for Biomedical Image Segmentation." arXiv preprint arXiv:2008.07588 (2020).`

## License

```
MIT License

Copyright (c) 2020 Abhinav Sagar

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

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

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

repository: CV-IP/uqvi

repo_name: CV-IP/uqvi


text:
## Tests

Follow these steps to test:
* Install the dependencies with `npm install`.
* Build with `npm run build`
* Run the tests with `npm test`

repository: appy-one/acebase-client

gha_language: TypeScript

gha_license_id: MIT

repo_name: appy-one/acebase-client


text:
![banner](https://cdn.discordapp.com/attachments/402557384209203200/736457593181962240/banner.png)

**Monster Widget New Features**

**Tenderize tracker**

HunterPie can now track a monster tenderized part, a bar will appear under the tenderized part health bar showing how much time left you have until the effect is over.

**Enrage status**

Enrage buildup and timer now appears in the ailments display.

**Dynamic resize**

Monster health bars are now dynamically resized depending on how many monsters are in the map. No more small health bar even when there's only one monster to be hunted!

**Ailments options**

You can now turn off specific ailment groups! Just go to your HunterPie "settings -> Monster" tab and disable whatever ailment you don't want HunterPie to display!

**Ailment colors**

Ailments bar is now colored based on it's group.

![DemonstrationImage](https://cdn.discordapp.com/attachments/678286768046342183/736371453372399726/unknown.png)

---

**Themes**

HunterPie's theme system has been completely reworked, it has a LOT of new options for customization. As always, if you want to develop your own themes, feel free to join [HunterPie Discord](https://discord.gg/5pdDq4Q).

---

**Optimizations**

Two of the most expensive functions in the player scanner have been rewritten, they are a lot faster now and it takes less time and CPU to scan your whole Harvest Box. Here are the benchmark results comparing both Old and New functions:

![BenchmarkResults](https://cdn.discordapp.com/attachments/402557384209203200/736455956145373235/Untitled-1.png)

---

**Other Changes**

- You can now quickly restart HunterPie by pressing Ctrl+R while HunterPie window is focused.
- Changed HunterPie icon and default colors.

---

**Bug Fixes**
- Fixed bug where Rich Presence would display "Hunting Missing Translation" whenever a hunt started.
- Fixed incorrect ailment structure size.
- Fixed bug that would hide damage meter after Alatreon died if "Enable timer in expeditions/Guiding Lands" option was disabled.


text:
# Sorts

In a language of your choice, implement:

* One `O(n * lgn)` sort.
* One `O(n^2)` sort.
* One sort, that is slower than `O(n^2)`

repository: radosz/Interviews

repo_name: radosz/Interviews


text:
autoscale: true
theme: Sketchnote, 2

# [fit] The Latest in PHP
## [fit] June 2019 Edition

---

# Presented by
# Chris Gmyr
## @cmgmyr

---

# PHP Supported Versions

* 7.1 Security Only until Dec 1, 2019
* 7.2 & 7.3 Active Development
* 7.4 is underway (~Nov 2019, last `7` branch)
* 8.0 in 2020

More Info:

* `http://php.net/supported-versions.php`

---

# PHP Releases

* 7.1.[29-30]
* 7.2.[18-19]
* 7.3.[5-6]
* 7.4.0 Alpha 1!

7.1.* - 7.3.* have Security and Bug fixes

More Info:

* `http://php.net/ChangeLog-7.php`

---

# PHP RFC: Arrow Functions 2.0

### (Implemented in 7.4)

```php
// before
function array_values_from_keys($arr, $keys) {
    return array_map(function ($x) use ($arr) { return $arr[$x]; }, $keys);
}

// after
function array_values_from_keys($arr, $keys) {
    return array_map(fn($x) => $arr[$x], $keys);
}
```

`https://wiki.php.net/rfc/arrow_functions_v2`

---

# PHP RFC: Spread Operator in Array Expression

### (Implemented in 7.4)

PHP has already supported [argument unpacking](https://wiki.php.net/rfc/argument_unpacking) (AKA spread operator) since 5.6. This RFC proposes to bring this feature to array expression.

```php

$parts = ['apple', 'pear'];
$fruits = ['banana', 'orange', ...$parts, 'watermelon'];
// ['banana', 'orange', 'apple', 'pear', 'watermelon'];

```

`https://wiki.php.net/rfc/spread_operator_for_array`

---

# PHP RFC: Nullsafe Calls

### (Draft)

A new operator would be added to the language: `?->`. Calling `$obj?->foo(..)` behaves identically to `$obj->foo(..)` if `$obj` is not `null`. If `$obj` is `null`, then it returns `null`.

```php

function f($o) {
  return $o?->mayFail1()?->mayFail2()?->mayFail3()?->mayFail4();
}

```

`https://wiki.php.net/rfc/nullsafe_calls`

---

# PHP RFC: Alternative "use" syntax for Closures

### (Under Discussion)

`https://wiki.php.net/rfc/alternative-closure-use-syntax`

---

# PHP RFC: Alternative "use" syntax for Closures

```php

// before...

$closure = function (
    ArgumentType $argument1,
    ArgumentType $argument2,
    ArgumentType $argument3,
    ArgumentType $argument4
) use (
    $importVariable1,
    &$importVariable2,
    $importVariable3,
    &$importVariable4
): ReturnType {
    // ...
};

```

---

# PHP RFC: Alternative "use" syntax for Closures

```php

// after...

$closure = function (
    ArgumentType $argument1,
    ArgumentType $argument2,
    ArgumentType $argument3,
    ArgumentType $argument4
): ReturnType {
    use $importVariable1, &$importVariable2;
    use $importVariable3, &$importVariable4;

    // ...
};

```

---

# PHP Quick Tip

---

# levenshtein()

Calculate Levenshtein distance between two strings

```php
$str1 = "apple";
$str2 = "appplee";

echo levenshtein($str1, $str2); // 2
```

`https://www.php.net/manual/en/function.levenshtein.php`

---

```php
// input misspelled word
$input = 'carrrot';

// array of words to check against
$words  = array('apple','pineapple','banana','orange',
                'radish','carrot','pea','bean','potato');

// no shortest distance found, yet
$shortest = -1;

// loop through words to find the closest...
```

---

```php
foreach ($words as $word) {
    // calculate the distance between the input word, and the current word
    $lev = levenshtein($input, $word);

    // check for an exact match
    if ($lev == 0) {
        $closest = $word;
        $shortest = 0;
        break;
    }

    // if this distance is less than the next found shortest
    // distance, OR if a next shortest word has not yet been found
    if ($lev <= $shortest || $shortest < 0) {
        // set the closest match, and shortest distance
        $closest  = $word;
        $shortest = $lev;
    }
}
```

---

```php
echo "Input word: $input\n";
if ($shortest == 0) {
    echo "Exact match found: $closest\n";
} else {
    echo "Did you mean: $closest?\n";
}
```

```
---
Input word: carrrot
Did you mean: carrot?
```

---

# Latest Versions

* Laravel: 5.8.24
* Symfony: 4.3.1
* Drupal: 8.6.17
* PHPStorm: 2019.1.3
* VSCode: 1.35

---

# PHP Conferences - July

**Laracon VII**
July 24–25, New York, New York
https://laracon.us

---

# PHP Conferences - September

**SymfonyLive Berlin 2019**
September 24–27, Berlin, Germany
http://berlin2019.live.symfony.com

**Cascadia PHP**
September 19–21, Portland, OR
https://cascadiaphp.com

---

# Nomad PHP

**US: Double Loop: TDD & BDD Done Right**
presented by Jessica Mauerhan
June 20, 2019 at 06:00pm PDT

**UK: The Dark Corners of the SPL**
presented by Omni Adams
June 20, 2019 at 11:00am PDT

https://nomadphp.com/

---

# Open Call for Papers

**PHPCon Poland 2019**
CfP Deadline: July 10, 2019
November 15–17, Szczyrk, Poland
https://2019.phpcon.pl

**PHP.Barcelona Conferenence 2019**
CfP Deadline: September 30th, 2019
November 12–13, Barcelona, Spain
https://php.barcelona

---

# Upcoming regional events

**All Things Open**
Oct 13-15, 2019
http://allthingsopen.org

Early bird going on now for $99!

---

# Notable News & Articles

* [PHP Versions Stats - 2019.1 Edition](https://blog.packagist.com/php-versions-stats-2019-1-edition/)
* [Package: composer-git-hooks](https://github.com/BrainMaestro/composer-git-hooks)
* [Package: prestissimo (composer plugin)](https://github.com/hirak/prestissimo)
* [Taylor Otwell: Laravel Live QA](https://www.pscp.tv/w/1vOxwqYbjpLGB)
* [GitHub Actions for PHP Developers](https://stefanzweifel.io/posts/github-actions-for-php-developers)
* [A Look At PHP’s isset()](https://blog.usejournal.com/a-look-at-phps-isset-df64df7158ab)
* [Structuring the Docker setup for PHP Projects](https://www.pascallandau.com/blog/structuring-the-docker-setup-for-php-projects/)

---

# Next Month @ TrianglePHP

**TDB**
Presented By _YOU_?!?!

Thursday, July 18, 6pm @ Atlantic BT

**Need an Idea?**

* Testing
* Security
* Performance
* Git

---

# Have a Job/Need a Job

**Who's hiring?**
**Who's looking?**
**What are you looking for?**

---

# Tonight @ TrianglePHP

## Simple DevOps with Laravel's Forge & Envoyer
## Presented By - Chris Gmyr

### Thank you to Atlantic BT for hosting and refreshments!

repository: trianglephp/latest-in-php

repo_name: trianglephp/latest-in-php


text:
---
layout: post-no-feature
title: "General Assembly (NYC) Weekly Project 01"
description: "An introductory data science project examining distributions of 2001 SAT scores in USA."
comments: true
category: articles
quote: “The only easy day was yesterday."
---

![SAT]({{site-url}}/images/SATscore.png)

## General Assembly (NYC) Data Science Immersive Bootcamp Sep-Dec 2016

### Project01: 2001 SAT state scores across USA
We were provided with a dataset consisting of 2001 SAT math and verbal scores together with the respective participation rates from all 50 states across the United States of America plus the District of Columbia.

##### Required tasks:

- Exploratory data analyses using Python and NumPy
- Define and apply descriptive statistics
- Utilize Matplotlib, Seaborn and Tableau for data visualization
- Maintain a git repository to keep track of changes and iterations as project evolves
- Use Unix commands to navigate file systems and modify files

### Approach to project

#### Identify the problem(s)

The main question we are looking to answer is:

- "How are SAT scores in 2001 distributed across the United States?"

Another sub-question, seeing that we have participation rates as a feature of the data, is:

 - "How do the the SAT scores vary with participation rates?"

#### Data acquisition

No data wrangling or acquisition was required in this project since the data set provided was clean, without missing, NaN, or corrupted values.

#### Parsing the data

The data was parsed using the csv.reader() function into a list of list in Python.

#### Mine the data

Not applicable for this project.

#### Refine the data

Not applicable for this project.

#### Build a data model

Not applicable for this project.

#### Present results

A number of plots were created to visualise the data and three were selected to represent the information contained wthin the dataset.

- Boxplots of SAT math and SAT verbal scores

![Boxplot_math-verb]({{site-url}}/images/GA-DSI_Proj01_Boxplot_math-verb.png?raw=true)

Boxplots provide a visual summary of the descriptive statistics. The range for math scores is larger than that of the verbal scores. However, the core (25th to 75th percentile) of math scores is more compact compared to verbal, indicating math scores across most states are more similar compared to verbal. While the maximum math score is higher than that of the verbal, verbal has a higher median score.

- Scatterplot of SAT math vs SAT verbal scores with participation rates for size of plot

![Scatterplot_rate_math-verb]({{site-url}}/images/GA-DSI_Proj01_Scatterplot_rate_math-verb.png?raw=true)

This plot answers the second question quite adequately, SAT scores (both math and verbal) are higher with lower participation rates and vice versa.

- Majority of states had SAT scores near the national average

Darkest portion of the plots hovered around near 500 Math and 500 verbal. This correlated with the national average SAT scores in 2001, based on a quick google search [Studypoint website](http://www.studypoint.com/ed/average-sat-scores/).

- Higher participation rates correlated with lower SAT scores and vice versa

The relative positions of the smaller circle, which clustered to the upper right quadrant, compared with the larger circles (higher participation rates) which clustered to the lower left quadrant.

- Correlation != Causation

However, correlation doesn't indicate causation, so without more focused experiments, we cannot conclude that lower participation rates will result in better scores.

- Heatmap of SAT math scores across the United States

![SAT_math_score_heatmap]({{site-url}}/images/SAT_math_score_heatmap.png?raw=true)

The heatmap was a surprise for me. I would have expected the east coast belt (locations of the Ivy league colleges) and California to dominate with higher SAT scores. Nevertheless, it seems the central states, in particular the Midwest, were where highest SAT math scores congregated in 2001. It would be interesting to see the trend over the past 2 or 3 decades.

#### Deploy and validate

Not applicable for this project.

#### Project conclusion and potential future work

- Project conclusion

SAT scores seem to have a negative correlation with participation rates across the states and math and verbal scores are positively correlated.

- Machine Learning model to predict States SAT scores

One area of possible future work is to create a machine learning model which takes participation rates and use it to predict SAT scores for each state.

- Richer dataset

However, I suspect that overfitting is very likely since there are only 50 states and perhaps a richer dataset with more features as input to the model may help with better prediction. So perhaps combining with another state-related dataset (other educational data such as Teacher to student ratio, number of schools per unit area, average years of schooling and other educational metrics).

The other method to enhance the dataset is to include time series data, getting more historical SAT scores for rich input to the model and also to analyse trends across time.

The model would have some applications for state education administrators tasked with improving the educational standards of the state

#### Parting thoughts

This was the first project in the 12 week Data Science bootcamp. Personally, this week provided a refresher of Python and EDA visualizations. I have also learnt a lot of new things, in particular:

- Github
- Command line
- Blogging: Doing it for the first time in my life.

Looking forward to starting the modelling and machine learning portions!


text:
---
layout: default
---

# 1997-08-29 - Re: p.s. -- Re: ASK ToolKit Clarifications

## Header Data

From: Eric Murray<EMAIL_ADDRESS>To<EMAIL_ADDRESS>(Lucky Green)

Message Hash: ca9c5c7254b75385d98e3c2a320f61a1174cc2a5a1eee564f6ac01754d9cceb4

Message ID<EMAIL_ADDRESS>Reply To<EMAIL_ADDRESS>UTC Datetime: 1997-08-29 17:05:17 UTC

Raw Date: Sat, 30 Aug 1997 01:05:17 +0800

## Raw message

```
{% raw  %}From: Eric Murray<EMAIL_ADDRESS>Date: Sat, 30 Aug 1997 01:05:17 +0800
To<EMAIL_ADDRESS>(Lucky Green)
Subject: Re: p.s. -- Re: ASK ToolKit Clarifications
In-Reply-To<EMAIL_ADDRESS>Message-ID<EMAIL_ADDRESS>MIME-Version: 1.0
Content-Type: text/plain

Lucky Green writes:
>
> At 07:50 AM 8/29/97 -0600, Myron Lewis wrote:
> >Myron Lewis wrote:
> >> I know that the claims we make for the ASK ToolKit(TM) sound a little too
> >> good to be true.  In fact, someone I have been talking to for a while about
> >> other subjects and who I thought respected my views told me that "If it
> >> sounds too good to be true, it probably is-- too good to be true. "
> >
> >I forgot to mention...it can also be used to break PGP encryption.
>
> When making such strong claims, it would behoove the author to provide an
> example.

Check the headers.  The one you're replying to was a forgery.

> Until such time, the ASK toolkit will be justly regarded as snakeoil.

>From the description, it sounds like a fancy API for a PRNG.
Not snakeoil, but not all that useful either.

--
Eric Murray  Chief Security Scientist  N*Able Technologies  www.nabletech.com
(email:  ericm  at  lne.com   or   nabletech.com)          PGP keyid:E03F65E5

{% endraw %}
```

## Thread

+ Return to [August 1997](/archive/1997/08)

+ Return to "[Bill Stewart <stewarts@ix.netcom.com>](/authors/bill_stewart_stewarts_at_ix_netcom_com_)"
+ Return to "[Eric Murray <ericm@lne.com>](/authors/eric_murray_ericm_at_lne_com_)"
+ Return to "[Lucky Green <shamrock@netcom.com>](/authors/lucky_green_shamrock_at_netcom_com_)"
+ Return to "["Myron Lewis" <mrlewis@keygen.com>](/authors/myron_lewis_mrlewis_at_keygen_com_)"
+ Return to "[Myron Lewis <mrlewis@keygen.com>](/authors/myron_lewis_mrlewis_at_keygen_com_)"

+ 1997-08-29 (Fri, 29 Aug 1997 21:36:37 +0800) - [ASK ToolKit Clarifications](/archive/1997/08/c5d0738254e0f150f9d8ee5beb9722271f652c00c5c734972e131741e70e6d40) - _"Myron Lewis"<EMAIL_ADDRESS>  + 1997-08-29 (Fri, 29 Aug 1997 22:02:31 +0800) - [p.s. -- Re: ASK ToolKit Clarifications](/archive/1997/08/63ab6fc391cd8fb4cc2925cd240995e303b44f229156e48d2db7a0aae4be640b) - _Myron Lewis<EMAIL_ADDRESS>  + 1997-08-29 (Sat, 30 Aug 1997 00:44:17 +0800) - [Re: p.s. -- Re: ASK ToolKit Clarifications](/archive/1997/08/7699ac9a10d652a6457662d54755ccef2cf2ca6856f179dae40cc63a599e8804) - _Lucky Green<EMAIL_ADDRESS>    + 1997-08-29 (Sat, 30 Aug 1997 01:05:17 +0800) - Re: p.s. -- Re: ASK ToolKit Clarifications - _Eric Murray<EMAIL_ADDRESS>  + 1997-08-30 (Sun, 31 Aug 1997 06:09:58 +0800) - [Re: ASK ToolKit Clarifications](/archive/1997/08/c5194f4ab8fcaa0af116ca5926fb3c284a14cc6549d92838ec5c95dc711e8708) - _Bill Stewart<EMAIL_ADDRESS>


text:
# TICA v0.2.2

TICA is a cleaning & authoring tool for TM-based pipeline to construct indoor space models.

## Main features

- Editing polygons (e.g. edit polygons, creating rooms, walls)
- Annotating indoor features (doors, public safety features)

## Prerequisites

- OpenGL, GLEW, GLFW, libjpeg, ImGui
- Tested on Visual Studio 2017 (Windows)

## Quick Start

- Install depdendencies with vcpkg
	- vcpkg install opengl glew glfw3 imgui libjpeg-turbo boost-uuid
- Generate VS Project file with CMake GUI
	- Choose /src as source code folder
	- Choose /build as build folder
	- Click Configure
	- Click Generate
- Build the project
	- Open the generated project file using Visual Studio
	- Set TICAv022 as start project
	- Build
	- If build fails with linking error, please add "bcrypt.lib" into Project Property > Linker > Input > Additional Dependencies
- You can also use the pre-built binary files at /prebuilt

## Usage

- Camera Moving
	- W/S/A/D: Move forward/backward/left/right
	- T/G: Move up/down
	- Right Click: Camera rotation
	- Left Click: Select/deselect objects

- Geometry Editor
	- Edit Polygons Mode
		- To create a vertex, Click in the middle of an edge.
		- To remove a vertex, press ESC key while dragging the vertex.
		- To create a facet, select one facet before click the "Edit Polygons" menu. Then you can see the grid representing the base plane containing the selected facet. Clicking on that plane will creates a facet.
		- Click "OK" button to quit the polygon editing mode.
	- Make a room.
		- Create a floor facet in "Edit Polygon" mode, and Click "OK" button.
		- Select the created floor facet.
		- Click "Make 2.5D Solid" menu.
		- Set the height by dragging up/down on the screen.
		- Click "OK" button.
	- Make a wall.
		- Select an edge.
		- Click "Make Wall."
		- Set the height by dragging up/down on the screen.
		- Click "OK" button.
	- Make Connection between facets
		- After selecting two facets, click "Make Connection."
		- Click on a facet will create a vertex sequentially.
		- Click "OK" button to finalize the connection editining.
	- Vertex Alignment
		- To make edge (u,v) parallel to edge (x,y)
			- Select edge (x,y) and vertices u,v.
			- Click "Make parallel" menu.
		- To make edge (u,v) perpendicular to edge (x,u).
			- Select edge (x,u) and vertex v.
			- Click "Make perpendicular" menu.
		- Selected edges and vertices should be those of a facet that is not adjacent to any other.

- State Editor
	- After entering into the State Editor mode, the geometry becomes fixed, and connections are converted as a cellspace.
	- Edit State/Transition
	- Place Public Safety Features
		- Click "Place a Public Safety Feature" menu.
		- Choose a feature type (fire extinguisher, indoor hydrant).
		- Click the position to locate a public safety feature.
		- Clicked facet will be highlighted.
		- Click "OK" to finalize the current placement.
	- Interlayer Connection Editor
		- Select a state for a room or corridor.
		- Click "Interlayer Connection Editor" menu.
		- Select states of nonnavigables that belong to the selected room/corridor.
		- Selected states will be highlighted with yellow.
		- Click "OK" button to finalize the connection setting.
	- Export InFactory Queries
		- Export the current state as InFactory queries.
		- In the output file, each query is comprised of two lines:
			- Query URL
			- Json data
		- You can generate the corresponding IndoorGML file using the included Python script /script/request-infactory.py

## Data file formats

- Geometry (.geom)
	- If a facet has n vertices without any hole:
		- n 0
		- x1 y1 z1 i1
		- x2 y2 z2 i2
		- ...
		- xn yn zn in
		- (xj,yj,zj) is the coordinate and ij is the index number of vertex j.
	- If a facet has n vertices as its exterior and has h holes.
		- n h
		- xj yj zj ij ( * n lines)
		- h1 (=number of vertices of hole 1)
		- xj yj zj ij ( * h1 lines)
		- so on ...
- Cubemap Texture info (.texinfo)
	- Each cubemap texture information consists of two lines indicating the paths of the texture image file and the camera pose file.
- Obstacle List (.txt)
	- List of pcd file path.

repository: STEMLab/TICA

gha_language: Game Maker Language

repo_name: STEMLab/TICA


text:
## How to read barcode from URL for barcode reader API in cURL using PDF.co Web API

### Tutorial: how to read barcode from URL for barcode reader API in cURL

These source code samples are listed and grouped by their programming language and functions they use. PDF.co Web API was made to help with barcode reader API in cURL. PDF.co Web API is the Web API with a set of tools for documents manipulation, data conversion, data extraction, splitting and merging of documents. Includes image recognition, built-in OCR, barcode generation and barcode decoders to decode bar codes from scans, pictures and pdf.

Fast application programming interfaces of PDF.co Web API for cURL plus the instruction and the code below will help to learn how to read barcode from URL. Follow the instruction and copy - paste code for cURL into your project's code editor. This basic programming language sample code for cURL will do the whole work for you in implementing barcode reader API in your app.

Our website provides free trial version of PDF.co Web API that includes source code samples to help with your cURL project.

## Get In Touch

[Click here to get in touch](https://bytescout.zendesk.com/hc/en-us/requests/new?subject=PDF.co%20Web%20API%20Question)

or send email to [support@bytescout.com](mailto:support@bytescout.com?subject=PDF.co%20Web%20API%20Question)

## Free Trial Download

[Get Your 60 Day Free Trial](https://bytescout.com/download/web-installer?utm_source=github-readme)

## Web API (On-demand version)

[Get your free API key](https://pdf.co/documentation/api?utm_source=github-readme)

## API Documentation and References

[Explore PDF.co Web API Documentation](https://bytescout.com/documentation/index.html?utm_source=github-readme)

[Explore Web API Documentation](https://pdf.co/documentation/api?utm_source=github-readme)

[Check Free Training Sessions for PDF.co%20Web%20API](https://academy.bytescout.com/)

## Video Review

[https://www.youtube.com/watch?v=NEwNs2b9YN8](https://www.youtube.com/watch?v=NEwNs2b9YN8)

url: https://raw.githubusercontent.com/repohoarder/ByteScout-SDK-SourceCode/32dd9367cebb66e3aa16bd803798c026d7dfeed5/PDF.co Web API/Barcode Reader API/cURL/Read Barcode From URL/README.md

repository: repohoarder/ByteScout-SDK-SourceCode

repo_name: repohoarder/ByteScout-SDK-SourceCode


text:
---
layout: kanji
v4: 1303
v6: 1400
kanji: 附
keyword: affixed
elements: affixed, pinnacle, parthenon, acropolis, adhere, sellotape, person, glue
strokes: 8
image: E99984
on-yomi: フ
kun-yomi: つ.ける、つ.く
permalink: /rtk/附/
prev: 防
next: 院
---

1) [ruuku35] 12-6-2006(153): A sign was AFFIXED on the PINNACLE of the Acropolis so that tourists would ADHERE to the rules.

2) [xentropic] 27-7-2008(68): Signs are affixed to walls in The Pinnacle to ensure tourists adhere to the rules.

3) [dingomick] 27-8-2007(60): The Pinnacle is firmly affixed to the top of the mount with bubble gum. (adhere (#1000 付)).

4) [Meconium] 1-6-2009(14): At The Pinnacle, they use the best quality glue to make sure things adhere properly. If you see a sign adhered to the wall of The Pinnacle, don't bother trying to steal it - it's firmly affixed.

5) [haole] 15-2-2010(10): Being affixed is really the pinnacle of adherence.


text:
---
title: "17. Query Lists of Multiple Types using a Union in GraphQL"
metaTitle: "17. Query Lists of Multiple Types using a Union in GraphQL"
metaDescription: "Learn how to use unions to write a query that obtains a list of types."
---

[Video Link](https://egghead.io/lessons/graphql-query-lists-of-multiple-types-using-a-union-in-graphql)

## Summary

In this lesson we learn about unions and how to write queries that obtain a list of multiple types.

## Notes

In the refactored pet library there are some more queries that we haven't had a look at yet, `familyPets` and `exoticPets`.

If you open up the schema and click on `familyPets`, you will see some helpful documentation that says `"This query returns a list of Family Pets, either a Cat or Dog."`

![alt text](https://i.ibb.co/GFGfLQN/scrnli-1-27-2020-9-48-10-AM.png)

Another useful data structure when working with GraphQL is a `union`. We use a union when we want to return a list of multiple types.

![alt text](https://i.ibb.co/vVm1FRF/scrnli-1-27-2020-9-52-17-AM.png)

Unions don't share any fields, so if we try to query the `name` field, we will get an error.

```
"Cannot query field \"name\" on type \"FamilyPet\". Did you mean to use an inline fragment on \"Pet\", \"Cat\", or \"Dog\"?"
```

![alt text](https://i.ibb.co/zhnjPQ9/scrnli-1-27-2020-9-52-38-AM.png)

If we want to query additional pet data, we can use inline fragments.

```graphql
query {
  familyPets {
    __typename
    # This queries cat specific data
    ... on Cat {
      name
      sleepAmount
    }
    # This queries dog specific data
    ... on Dog {
      name
      good
    }
  }
}
```

We will see that the error now goes away, and we get back out data. 🥳

## Resources

- [Union types (official website)](https://graphql.org/learn/schema/#union-types)

repository: The-hated-one/awesomecheatsheets

repo_name: The-hated-one/awesomecheatsheets


text:
---
title: "Change the time zone of your CentOS system to Seoul - timedatectl"
description: "change ntpd to seoul korea timeTo change the time zone of your CentOS system to Seoul, Korea time, you can use the "timedatectl" command.First, you ca"
date: 2023-01-27T06:30:47.014Z
tags: []
---

change ntpd to seoul korea time
To change the time zone of your CentOS system to Seoul, Korea time, you can use the "timedatectl" command.

First, you can check the current time zone of your system with:

```bash
timedatectl status
```
To change the time zone of your system to Seoul, Korea time, you can use the following command:

```bash
timedatectl set-timezone Asia/Seoul
```
This will change the time zone of your system to the Seoul, Korea time zone.

Once you have changed the time zone, you can use the "ntpdate" command to synchronize the time with an NTP server in the new time zone.

```bash
ntpdate 0.kr.pool.ntp.org
```
Or you can use ntpd service as I mentioned before.

You can check the current time with the "date" command, to make sure that the time is correct.

```bash
date
```
Once you have verified that the time is correct, you can restart the ntpd service to ensure that it is using the correct time zone.

```bash
systemctl restart ntpd
```
Please note that, you may need to reboot the system to completely apply the timezone changes.

To apply to this mariaDB you may have to restart mariaDB.
```sql
select now();
```

### Reference

https://chat.openai.com/chat

url: https://raw.githubusercontent.com/cskwork/cskwork.github.io/8eb767bc5b884662045cf865ae288d0ae900ee6f/docs/uncategorized/Change the time zone of your CentOS system to Seoul - timedatectl.md


text:
# Fminor
Generate a simple web page with a single command.

##Set up
To set up a new project based on Fminor you just need composer and run:
```
$ composer create-project lexcast/fminor path dev-master
```
and that's it, now you have a very basic structure to start your project.

##Usage
Out-of-the-box you can simply open your terminal, go to the web folder and run the PHP built-in server (or if you want with a real server) and then in your browser go to <IP_ADDRESS>:8000/hello/your-name and you will receive a page saying hello to you.

###Looking inside
But that is a useless web page, probably you will have to create more routes and controllers, so let me explain the structure a little bit:
In the root you have two folder, `web` and `src`. In the first one there will be all your public files: scripts, images, css and, of course, the frontal controller called `app.php`.
But the interesting part is in the `src` folder where there are:

- App: with controllers, and other own classes you create.
- Config: with all your configuration files, mainly the `routes.php`.
- Resources: with your templates and layouts.

##Generate a project
The fun part of this mini-project is the idea to generate fragments to build a simple web page just based on a yaml file.

There is already a `chords.yml` file in the root with a functional example to build a web page, just type in your terminal:
```
$ php tuner build --force
```
and this command will generate all templates, routes and controllers needed.

###How it works?
This command just get two files. The `chords.yml` has all the information about what do you want (menus, pages, etc.) and validates it. Then in `src/Config/repertoires.php` look for all repertoires (plugins) you have, and inside of these look for Chords (are like parts or fragments, i.e. menu, section) and Generators (to generate controllers, routes, views, etc.). Finally will send requests to all registered generators whom will generate the code needed.

##About this project
This was developed just to learn more about the Symfony components and for now there is only one repertoire available with just a few basic fragments. Check it: [lexcast/fminor-repertoire](https://github.com/lexcast/fminor-repertoire).

If you want to collaborate with more fragments, feel free to do it. The idea is to generate simple web pages easily.

The author of this project is Daniel Alejandro Cast ([@lexcast](https://github.com/lexcast)).

repository: lexcast/fminor

gha_language: PHP

repo_name: lexcast/fminor


text:
# BBC Microbit Examples

## Introduction

This is my testing ground for the BBC Microbit.
I'm using micropython, via the [mu](https://github.com/ntoll/mu)
editor.

## Projects

### Remote control via microbit

These projects involve using two microbits to control something.  One
microbit is handheld and sends a radio message to the other with
readings from its sensors.  The second microbit can then be connected
to a device which can use those readings.

#### [mbhandler](mbhandler/)

This provides the handler module which deals with the communication
between the microbits and whatever device is being used to deal with
that information.

#### [ski](ski/)

This is a simple game using [`pygame`](http://www.pygame.org/).  Avoid
the trees and collect the gems.  The microbit controls the player's
left and right movement.

#### [turtle](turtle/)

This is a variety of scripts that use the microbit to draw using the
`turtle` module.

#### [lego](lego/)

These are some projects that involve controlling a lego robot with a
microbit connected to it.  The EV3 robots work using
['ev3dev'](http://www.ev3dev.org/) on the brick and a python script
using [`mbhandler`](mbhandler).  The RCX2.0 robot is a bit more
complicated as the receiving microbit has to be hooked up to a sensor.

repository: doyouknowhow/microbit

repo_name: doyouknowhow/microbit


text:
---
title: "Quick Start - Microservices Chain Application"
date: 2017-11-29T02:42:32-05:00
description: ""
categories: []
keywords: []
slug: ""
aliases: []
toc: true
draft: false
reviewed: true
---
>This is the Quick Start tutorial that utilizes the pre-built repository to provide an introduction to MS Chain Services.
>If you prefer to do a step-by-step setup of MS Chain Services please visit the [MS Chain Services Home](/tutorial/rest/swagger/ms-chain/)

You will need the following dependencies before starting this tutorial:

- Java JDK 11 (I prefer OpenJDK but Oracle JDK will do)
- Maven
- Git
- Docker

This quick start tutorial is designed for anyone beginning to utilize Light-4j and wants to gain a general understanding of how to setup a microservice chain application utilizing four APIs. This example found in *[light-example-4j/rest/swagger/ms_chain](https://github.com/networknt/light-example-4j)* shows four APIs being utilized as such:
```
API A -> API B, API B -> API C, API C -> API D
```
## Setting up the Environment

You are able to utlized two methods in order to build the `pom.xml`. One method shown below is how to run all four APIs within IntelliJ IDEA through the application solely. In order to gain a deeper look into this demonstration, it is recommended to attempt it through the command line.

### Utilizing IntelliJ IDEA

After cloning the above git repository, the *ms_chain* directory must be opened and in order to correctly run Maven, we must go into the directory containing the **pom.xml** file *(/rest/swagger/ms_chain/api_a/httpschain)* and option click>*"Add as Maven Project"*. This will create a **classpath of module** which should be selected in IntelliJ's *"Edit Configurations"*.

Once we have our environment set up, we can begin to test it and see if API A will call the other three APIs.

### Utilizing Command Line

In order to run the Microservices Chain Pattern we must finally execute all APIs (A, B, C, and D) onto their ports. The example sets up the ports 7441, 7442, 7443, and 7444, respectively. Within the separate API folder directories (E.g. api_a/httpschain) run the Maven command to run the API on the port:

```
mvn install exec:exec
```
>If you do not specify where your pom.xml file is, we must run the maven command from the directory it is in. In this example it is in api_a/httpschain.
>Also note that our api_a/generated does not include the chain services code, but is simply the "blueprint" of our APIs.

## Execution

Regardless of the platform you used to build the `pom.xml`  after the completion of many tests, the output for running API A should be :
```
Http Server started on ip:<IP_ADDRESS> Port:7441
Https Server started on ip:<IP_ADDRESS> Port:7441
```
Run this three more times for APIs B, C, and D. Do not forget to "*Add As Maven Project*" for the remaining APIs if you are utilizing IntelliJ and utilizing "`mvn install exec:exec`" in separate terminal windows if using the command line. The output, excluding port numbers, should be the same.

>If you come across an error when initializing a port, visit your *server.yml* file in each directory (A, B, C, and D) and change the *Httpsport" number to a unique port currently not in use OR ensure the port is not already in use.
>Note: each API must have a separate port number.

Once this is completed separately for all four APIs, you can begin execution and testing. Open a new shell and execute the following command.

```
curl -k https://localhost:7441/v1/data
```
##### What is curl? _Curl simply sends a request. In the command line, the curl command is entered with the option *-k* as it allows curl to proceed and operate even for server connections otherwise considered insecure. Furthermore, we input port 7441 for API A. Our */v1/data* is our *GET Handler* from our **PathHandlerProvider.java**._
The output following this is:

```
["API D: Message 1","API D: Message 2","API C: Message 1","API C: Message 2","API B: Message 1","API B: Message 2","API A: Message 1","API A: Message 2"]%
```
Which if we study our **DataGetHandler.java** (Just from API A) we can see the final output seems to be a returned list of appended strings:

```java
API_A FILE

list.add("API A: Message 1");
list.add("API A: Message 2");
```
The remaining 3 API files also append their strings, and the final output returns the list.

## Explore Further

In order to understand the differences between these four entities, explore the **PathHandlerProvider.java** in the respective directories **(api_x/httpschain)**. API A holds more connection establishment calls and checks than API D.

## Attempt Other Handlers

Other handlers can be found in **PathHandlerProvider.java** and utilized in the same way as our initial *curl* for example:
```
curl -k https://localhost:7441/v1/health
```
and will output:
```
Ok%
```

# Conclusion

In this tutorial, a Microservice Chain Pattern application was implemented locally with general understanding of the difference between our *generated* directory and our *httpschain* directory, and their differing uses. It is also recommended to strengthen your understanding by creating your own system using Light-4j

Return to our [Tutorials][] page to explore more.

[Swagger 2.0 specification]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md
[OpenAPI 3.0 specification]: https://swagger.io/specification/
[Tutorials]: /tutorial

repository: networknt/light-doc

repo_name: networknt/light-doc


text:
# Git Hooks

[![Software License][ico-license]][link-license]

The simplest way to manage project, user, and global **[Git hooks](https://git-scm.com/docs/githooks)**.

## Install

Just download the `git-hooks` executable found in the directory `src` of this repository to a directory of your choice
and ensure that it is added to your PATH environment variable so `git-hooks` can be run.

~~~bash
curl -o /usr/local/bin/git-hooks https://raw.githubusercontent.com/slavcodev/git-hooks/master/src/git-hooks
chmod +x /usr/local/bin/git-hooks
~~~

Run `git-hooks install` in a git project to tell it to use `git-hooks`
and `git-hooks uninstall` at any time to revert to your previous state.
_(Check options of these commands to specify installation)._

## TL;DR

Git hooks are powerful and useful. They help to automate the developers routine,
such as testing, code linting, etc, but Git is limited to only one script per event.

There is where `git-hooks` comes into play.

The `git-hooks` utilizes the Git configs only. On installation, it configures `core.hooksPath`
to tell Git to run `git-hooks trigger <hook-name>` command.

On trigger the hooks, `git-hooks` looks in git configs for list of hooks needed to execute.

For example for `pre-commit` hooks look like:
~~~gitconfig
[hooks "pre-commit"]
  # Using path to directory, `git-hooks` will execute scripts which name ends to hook name,
  # or all executable files in sub-directory with name `<hook-name>.d`.
  all-in-dir="~/global-hooks"

  # You also can use pattern to run many scripts in directory.
  all-in-dir="~/global-hooks/pre-commit.d/*"
  files-by-extension="~/global-hooks/mixed/*.pre-commit"

  # Or you can specify the concrete script file.
  concrete-file="~/spell-checker/spell-checker.sh"

  # Unknown or not-executable files are ignored.
  invalid-file="~/foo.txt"

  # Relative path is working as well (see note below).
  relative-dir="project-hooks"
~~~

_A relative path is taken as relative to the directory where the hooks are run
([see more in documentation](https://git-scm.com/docs/githooks#_description))._

The two special sections in configs are used by `git-hooks` to look for common hooks for all events:
~~~gitconfig
[hooks "pre-trigger"]
  # Trigger these hooks before specific hooks.
  foo="~/global-hooks"

[hooks "post-trigger"]
  # Trigger these hooks after specific hooks.
  foo="~/global-hooks"
~~~

Keep in mind, The config `core.hooksPath` overrides the Git config and it would not execute
scripts from `.git/hooks` directory inside your project. If you have hooks in that directory,
you have to add it config, i.e.
~~~gitconfig
[hooks "post-trigger"]
  default=".git/hooks"
~~~

## Locations

The `git-hooks` respects the config location supported by `git-config`
([see more in documentation](https://git-scm.com/docs/git-config)).

Example how ot install `git-hooks` globally:
~~~bash
git-hooks install --global
~~~

## Documentation

For more details see `git-hooks` help:
~~~bash
git-hooks --help
~~~

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE OF CONDUCT](CODE_OF_CONDUCT.md) for more details.

## Credits

Thanks to [Benjamin Meyer](https://benjamin-meyer.blogspot.com/2010/06/managing-project-user-and-global-git.html)
for inspiration.

**Enjoy coding ❤**

[ico-license]: https://img.shields.io/badge/License-BSD%202--Clause-blue.svg?style=for-the-badge
[link-license]: LICENSE

repository: slavcodev/git-hooks

gha_language: Shell

repo_name: slavcodev/git-hooks


text:
---
layout: documentation
title: Wallet management
category: Messages Specification
order: 4
---

This doc specifies Messages to be used to manage wallets and token transactions, where,

-	`<Wallet>` is a JSON object compliant with [Wallet data model](../../datamodel/data-objects/wallet/readme/).
-	`<Transaction>` is a JSON object compliant with [Wallet Transaction data model](../../datamodel/data-objects/wallet/readme/).

#### Wallet creation request

Message sent by the Wallet Hyperty to the Wallet Manager hyperty, requesting a wallet creation.

```
"id" : 1,
"type" : "create",
"from" : "hyperty://<wallet-manager-domain>/<wallet-hyperty-identifier>",
"to" : "hyperty://<wallet-manager-domain>/<wallet-manager-hyperty-identifier>"
```

**Response**

```
"id" : 1,
"type" : "response",
"from" : "hyperty://<wallet-manager-domain>/<wallet-manager-hyperty-identifier>",
"to" :  "hyperty://<wallet-manager-domain>/<wallet-hyperty-identifier>"
"body": {
  "code": 200,
  "value": {<Wallet>}
}
```

#### Wallet delete request

Message sent by the Wallet Hyperty to the Wallet Manager hyperty, requesting a wallet removal.

```
"id" : 1,
"type" : "delete",
"from" : "hyperty://<wallet-manager-domain>/<wallet-hyperty-identifier>",
"to" : "hyperty://<wallet-manager-domain>/<wallet-manager-hyperty-identifier>"
```

**Response**

```
"id" : 1,
"type" : "response",
"from" : "hyperty://<wallet-manager-domain>/<wallet-manager-hyperty-identifier>",
"to" :  "hyperty://<wallet-manager-domain>/<wallet-hyperty-identifier>"
"body": {
  "code": 200
}
```

#### Wallet Address request

Message sent to the Wallet Manager hyperty, requesting the wallet address of a certain user.

```
"id" : 1,
"type" : "read",
"from" : "hyperty://<sp-domain>/<hyperty-identifier>",
"to" : "hyperty://<wallet-manager-domain>/<wallet-manager-hyperty-identifier>",
"body": {
  "resource": 'user',
  "value": "userId"
}
```

**Response**

```
"id" : 1,
"type" : "response",
"from" : "hyperty://<wallet-manager-domain>/<wallet-manager-hyperty-identifier>",
"to" :  "hyperty://<sp-domain>/<hyperty-identifier>",
"body": {
  "code": 200,
  "value": "<wallet-address>"
}
```

#### Read Wallet

Message sent to the Wallet address, requesting to read the full wallet of a certain user, including all transactions.

```
"id" : 1,
"type" : "read",
"from" : "hyperty://<sp-domain>/<hyperty-identifier>",
"to" : "wallet://<wallet-manager-domain>/<wallet-identifier>"
```

**Response**

```
"id" : 1,
"type" : "response",
"from" : "wallet://<wallet-manager-domain>/<wallet-identifier>",
"to" :  "hyperty://<sp-domain>/<hyperty-identifier>",
"body": {
  "code": 200,
  "value": "{<Wallet>}"
}
```

#### Wallet Transfer

Message sent to the Wallet address, requesting to transfer a certain amount.

```
"id" : 1,
"type" : "create",
"from" : "hyperty://<sp-domain>/<hyperty-identifier>",
"to" : "hyperty://<sp-domain>/<wallet-identifier>",
"body": {
  "value": "{<Transaction>}"
}
```

**Response**

```
"id" : 1,
"type" : "response",
"from" : "wallet://<wallet-manager-domain>/<wallet-identifier>",
"to" :  "hyperty://<sp-domain>/<hyperty-identifier>",
"body": {
  "code": 200,
  "value": "{<Transaction>}"
}
```

#### Wallet update

Message sent by the Wallet Manager Hyperty, publishing an update of a certain wallet.

```
"id" : 1,
"type" : "update",
"from": "hyperty://<wallet-manager-domain>/<wallet-manager-hyperty>,
"to" : "hyperty://<sp-domain>/<wallet-identifier>/changes",
"body": {
  "value": "{<Transaction>}"
}
```

**Response**

```
"id" : 1,
"type" : "response",
"from" : "wallet://<wallet-manager-domain>/<wallet-identifier>",
"to" :  "hyperty://<sp-domain>/<hyperty-identifier>",
"body": {
  "code": 200,
  "value": "{<Transaction>}"
}
```

repository: reTHINK-project/specs

gha_language: JavaScript

repo_name: reTHINK-project/specs


text:
[![Actions Status](https://github.com/UziTech/jasmine-should-fail/workflows/CI/badge.svg)](https://github.com/UziTech/jasmine-should-fail/actions)

# jasmine-should-fail

This adds two methods to jasmine `zdescribe` and `zit`

These methods will fail if they pass and pass if they fail.

This will also add a shouldFail property to the specs that are supposed to fail so a reporter can still output the message when they pass.

This is really only useful when testing a reporter or matcher.

repository: UziTech/jasmine-should-fail

repo_name: UziTech/jasmine-should-fail


text:
In the starter project you cloned there's a folder called `templates/` that's been already created for you inside the `articles/` app folder. This folder had to be named "templates" exactly because that's where Django looks for HTML files. Even though we can write our HTML code in the view function's return, it won't be easy for us to write the entire HTML page, for every webpage on our website, inside the views alongside our Python code. It's much more organized and well-structured to contain our HTML code in their own HTML files, and use them from the views. Well, that's what we're doing here!

Create a file inside the `articles/templates/` folder called `index.html`. This is the HTML file that will be displayed on the page a little later. Let's write some HTML!

### HTML

In your `index.html`:

```html
<!DOCTYPE html>
<html>
  <head>
    <title>Document</title>
  </head>
  <body>
    <h1>This is a large header from HTML!</h1>
  </body>
</html>
```

In your `views.py`, change the view function to:

```python
from django.shortcuts import render

def index(request):
    return render(request, "index.html")
```

Now what the return line does is it just "_renders_" the HTML file and returns it to the browser, the browser then displays it. Whatever we wrote in `index.html` will be displayed on the browser. Your webpage would look like this:
![HTML](https://i.imgur.com/E0YSLA2.png)

The project file structure should now be:

```
superblog/
    manage.py
    superblog/
        __init__.py
        settings.py
        urls.py
        wsgi.py
    articles/
        __init__.py
        templates/
            blog_home.html
            blog_post.html
            index.html
        migrations/
        admin.py
        apps.py
        models.py
        tests.py
        views.py
```

---

### Git

This is a good point to commit changes. Let's create a checkpoint here for adding the template:

```bash
(superblog_env)$ git add .
(superblog_env)$ git commit -m "Added templates"
```

repository: theunicornguild/superblogdocs

repo_name: theunicornguild/superblogdocs


text:
# GitHub Trending (2020-10-07)

![](https://img.shields.io/badge/Python-New%20540-green?style=flat-square&logo=appveyor)
- [mxrch/GHunt](https://github.com/mxrch/GHunt): 🕵♂ Investigate Google Accounts with emails.

![](https://img.shields.io/badge/JavaScript-New%20393-green?style=flat-square&logo=appveyor)
- [Asabeneh/30-Days-Of-React](https://github.com/Asabeneh/30-Days-Of-React): 30 Days of React challenge is a step by step guide to learn React in 30 days. This challenge needs an intermediate level of HTML, CSS, and JavaScript knowledge. It is recommended to feel good at JavaScript before you start to React. If you are not comfortable with JavaScript check out 30DaysOfJavaScript. This is a continuation of 30 Days Of Java…

![](https://img.shields.io/badge/JavaScript-New%20246-green?style=flat-square&logo=appveyor)
- [Asabeneh/30-Days-Of-JavaScript](https://github.com/Asabeneh/30-Days-Of-JavaScript): 30 days of JavaScript programming challenge is a step by step guide to learn JavaScript programming language in 30 days

![](https://img.shields.io/badge/Python-New%20786-green?style=flat-square&logo=appveyor)
- [TheAlgorithms/Python](https://github.com/TheAlgorithms/Python): All Algorithms implemented in Python

![](https://img.shields.io/badge/none-New%20139-green?style=flat-square&logo=appveyor)
- [getify/You-Dont-Know-JS](https://github.com/getify/You-Dont-Know-JS): A book series on JavaScript. @YDKJS on twitter.

![](https://img.shields.io/badge/PHP-New%2066-green?style=flat-square&logo=appveyor)
- [laravel/jetstream](https://github.com/laravel/jetstream):

![](https://img.shields.io/badge/TypeScript-New%2064-green?style=flat-square&logo=appveyor)
- [ngrx/platform](https://github.com/ngrx/platform): Reactive libraries for Angular

![](https://img.shields.io/badge/JavaScript-New%20288-green?style=flat-square&logo=appveyor)
- [30-seconds/30-seconds-of-code](https://github.com/30-seconds/30-seconds-of-code): Short JavaScript code snippets for all your development needs

![](https://img.shields.io/badge/JavaScript-New%20226-green?style=flat-square&logo=appveyor)
- [FreeTubeApp/FreeTube](https://github.com/FreeTubeApp/FreeTube): An Open Source YouTube app for privacy

![](https://img.shields.io/badge/Rust-New%2079-green?style=flat-square&logo=appveyor)
- [RDambrosio016/RSLint](https://github.com/RDambrosio016/RSLint): A (WIP) Extremely fast JavaScript linter and Rust crate

![](https://img.shields.io/badge/HTML-New%20163-green?style=flat-square&logo=appveyor)
- [OpenSouceCode/Hacktoberfest2020](https://github.com/OpenSouceCode/Hacktoberfest2020): Make your first Pull Request and earn a free tee from GitHub!

![](https://img.shields.io/badge/JavaScript-New%2084-green?style=flat-square&logo=appveyor)
- [gatsbyjs/gatsby](https://github.com/gatsbyjs/gatsby): Build blazing fast, modern apps and websites with React

![](https://img.shields.io/badge/JavaScript-New%20128-green?style=flat-square&logo=appveyor)
- [kentcdodds/react-hooks](https://github.com/kentcdodds/react-hooks): Learn React Hooks! 🎣 ⚛

![](https://img.shields.io/badge/Shell-New%20238-green?style=flat-square&logo=appveyor)
- [Gictorbit/photoshopCClinux](https://github.com/Gictorbit/photoshopCClinux): an installer for Photoshop CC v19 on Gnu/Linux

![](https://img.shields.io/badge/Java-New%20253-green?style=flat-square&logo=appveyor)
- [Anuken/Mindustry](https://github.com/Anuken/Mindustry): A sandbox tower defense game

![](https://img.shields.io/badge/Java-New%20173-green?style=flat-square&logo=appveyor)
- [TheAlgorithms/Java](https://github.com/TheAlgorithms/Java): All Algorithms implemented in Java

![](https://img.shields.io/badge/Java-New%20134-green?style=flat-square&logo=appveyor)
- [sukritishah15/DS-Algo-Point](https://github.com/sukritishah15/DS-Algo-Point): This repository contains codes for various data structures and algorithms in C, C++, Java, Python, C#, Go, JavaScript, PHP, Kotlin and Scala

![](https://img.shields.io/badge/Python-New%20150-green?style=flat-square&logo=appveyor)
- [Asabeneh/30-Days-Of-Python](https://github.com/Asabeneh/30-Days-Of-Python): 30 days of Python programming challenge is a step by step guide to learn Python programming language in 30 days.

![](https://img.shields.io/badge/none-New%2085-green?style=flat-square&logo=appveyor)
- [dipakkr/A-to-Z-Resources-for-Students](https://github.com/dipakkr/A-to-Z-Resources-for-Students): ✅ Curated list of resources for college students

![](https://img.shields.io/badge/C%2B%2B-New%2067-green?style=flat-square&logo=appveyor)
- [Neo23x0/Raccine](https://github.com/Neo23x0/Raccine): A Simple Ransomware Vaccine

![](https://img.shields.io/badge/none-New%20180-green?style=flat-square&logo=appveyor)
- [sindresorhus/awesome](https://github.com/sindresorhus/awesome): 😎 Awesome lists about all kinds of interesting topics

![](https://img.shields.io/badge/Dart-New%20347-green?style=flat-square&logo=appveyor)
- [flutter/flutter](https://github.com/flutter/flutter): Flutter makes it easy and fast to build beautiful apps for mobile and beyond.

![](https://img.shields.io/badge/Python-New%2078-green?style=flat-square&logo=appveyor)
- [matplotlib/matplotlib](https://github.com/matplotlib/matplotlib): matplotlib: plotting with Python

![](https://img.shields.io/badge/C%2B%2B-New%2092-green?style=flat-square&logo=appveyor)
- [topjohnwu/Magisk](https://github.com/topjohnwu/Magisk): The Magic Mask for Android

![](https://img.shields.io/badge/Java-New%2036-green?style=flat-square&logo=appveyor)
- [eugenp/tutorials](https://github.com/eugenp/tutorials): Just Announced - "Learn Spring Security OAuth":

repository: Hsins/Daily-GitHub-Trending

repo_name: Hsins/Daily-GitHub-Trending


text:
Heya
===========

Heya is an application that allows people to create chat rooms or join existing ones, write posts in those rooms and rate people's posts.
The home screen shows the list of rooms available in the network in proximity.
To create a new room, users, typically tutors, can press the plus button, which leads to the screen depicted on the top right of the home screen.
There, users can define the name of a new room which will follow them around.
Students located in the vicinity of the tutor will see the newly created room and will be able to access it by simply pressing the room name in the list of nearby rooms on the home screen -- no need for a password or registration.
Inside a room they can then see the existing messages in that room and they can vote on them by pressing the thumb up or thumb down buttons.
Users can also post messages anonymously through the input field at the bottom of the screen.

# MIT Licence
Copyright (c) 2016 REACT EPFL

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

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

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

repository: react-epfl/padoc-heya

repo_name: react-epfl/padoc-heya


text:
# bgiorgio0506/nodejs-simconnect
Microsoft Flight Simulator 2020 SimConnect SDK wrapper for NodeJS.

Works on 64 bit version of NodeJS. Currently, for Windows only.

## Installation
nodejs-simconnect uses a native NodeJS addon and therefore, it must be compiled first before you can use it as module within your project.

### 1.) Install the Node module
Clone the repo move it on node_modules and then run:
`npm install`

### 2.) Copy your SimConnect SDK files
You need to copy your own SimConnect SDK files to msfs-simconnect-nodejs. 64 bit version is also supported.

Default, the SimConnect SDK installed in C:\MSFS SDK\SimConnect SDK. Copy this SimConnect SDK directory and paste it in the root of msfs-simconnect-nodejs.

### 3.) Compile
Compile the library:

`npm run build`

Once compiled, at the moment you need to copy your SimConnect.dll file from the SimConnect SDK directory into the build/Release directory. You need to this everytime you've done a rebuild.

## 4.) Requirements
* NodeJS 64 bit
* Microsoft Visual Studio 2019 (Community)
* Python 3 (for compilation)
* SimConnect SDK

## 5.) Usage
Import the module:

`const simConnect = require('msfs-simconnect-nodejs');`

The available functions are described below. Please refer to [example.js](examples/nodejs/example.js) for more help.

### open
`open(connectedCallback, simExitedCallback, exceptionCallback, errorCallback)`

Open connection and provide callback functions for handling critical events. Returns `false` if it failed to call `open` (eg. if sim is not running).

**Example**
```javascript
var success = simConnect.open("MyAppName",
    (name, version) => {
        console.log("Connected to: " + name + "\nSimConnect version: " + version);
        // Safe to start interacting with SimConnect here (request data, etc)
    }, () => {
        console.log("Simulator exited by user");
    }, (exception) => {
        console.log("SimConnect exception: " + exception.name + " (" + exception.dwException + ", " + exception.dwSendID + ", " + exception.dwIndex + ", " + exception.cbData + ")");
    }, (error) => {
        console.log("Undexpected disconnect/error: " + error); // Look up error code in ntstatus.h for details
});
```

### requestDataOnSimObject
`requestDataOnSimObject(reqData, callback, objectId, period, dataRequestFlag)`

Request one or more [Simulation Variables](https://msdn.microsoft.com/en-us/library/cc526981.aspx) and set a callback function to later handle the received data. See [SDK Reference](https://msdn.microsoft.com/en-us/library/cc526983.aspx#SimConnect_RequestDataOnSimObject) for more details.

Each simulation variable is defined by an array.

**Example:**
```javascript
[
    "Plane Latitude",              // Datum name
    "degrees",                     // Units name
    simConnect.datatype.FLOAT64,   // Datum type (optional, FLOAT64 is default and works for most data types)
    0                              // Epsilon (optional, 0 is default)
]
```
**Full example:**
```javascript
simConnect.requestDataOnSimObject([
        ["Plane Latitude", "degrees"],
        ["Plane Longitude", "degrees"],
        ["PLANE ALTITUDE", "feet"]
    ], (data) => {
        // Called when data is received
        console.log(
            "Latitude:  " + data["Plane Latitude"] + "\n" +
            "Longitude: " + data["Plane Longitude"] + "\n" +
            "Altitude:  " + data["PLANE ALTITUDE"] + " feet"
        );
    },
    simConnect.objectId.USER,               // User aircraft
    simConnect.period.SIM_FRAME,            // Get data every sim frame...
    simConnect.dataRequestFlag.CHANGED      // ...but only if one of the variables have changed
);
```

### requestDataOnSimObjectType
`requestDataOnSimObjectType(reqData, callback, radius, simobjectType)`

Similar to `requestDataOnSimObject`. Used to retrieve information about simulation objects of a given type that are within a specified radius of the user's aircraft. See [SDK Reference](https://msdn.microsoft.com/en-us/library/cc526983.aspx#SimConnect_RequestDataOnSimObjectType) for more details.

**Example**:
This will receive info about the user's aircraft. For this, a radius of 0 is used. Notice that when `STRINGV` is requested, the unit should be `null`.
```javascript
simConnect.requestDataOnSimObjectType([
    ["NAV IDENT:1", null, simConnect.datatype.STRINGV],
    ["NAV NAME:1", null, simConnect.datatype.STRINGV],
    ["NAV DME:1","Nautical miles"],
], (data) => {
    console.log(data);
}, 0 /* radius=0 */, simConnect.simobjectType.USER);
```

**Example**:
This will receive info about all aircraft within a 10 km radius. The callback will run one time for each identified aircraft.
```javascript
simConnect.requestDataOnSimObjectType([
    ["ATC MODEL",null,simConnect.datatype.STRINGV],
    ["Plane Latitude", "degrees"],
    ["Plane Longitude", "degrees"]
], (data) => {
    console.log(data);
}, 10000, simConnect.simobjectType.AIRCRAFT);
```

### createDataDefinition
`createDataDefinition(reqData)`

Used to create a data definition. Returns an id which can be used with `requestDataOnSimObjectType` in place of the array. This should be used when you have multiple requests for the same data - otherwise the app will crash after receiving too many requests.

**Example**:
```javascript
var navInfoDefId = simConnect.createDataDefinition([
    ["NAV DME:1", "Nautical miles"],
    ["NAV GLIDE SLOPE ERROR:1", "Degrees"],
    ["NAV RADIAL ERROR:1", "Degrees"],
]);

setInterval(() => {
    simConnect.requestDataOnSimObjectType(navInfoDefId, (data) => {
        console.log(data)
    }, 0, simConnect.simobjectType.USER)
},100)
```

### setDataOnSimObject
`setDataOnSimObject(variableName, unit, value)`

Set a single [Simulation Variable](https://msdn.microsoft.com/en-us/library/cc526981.aspx) on user aircraft. First parameter is the datum name, second is the units name and last is the value.

**Example**:
```javascript
simConnect.setDataOnSimObject("GENERAL ENG THROTTLE LEVER POSITION:1", "Percent", 50);
```

### subscribeToSystemEvent
`subscribeToSystemEvent(eventName, callback)`

Subscribe to a system event. See [SDK Reference](https://msdn.microsoft.com/en-us/library/cc526983.aspx#SimConnect_SubscribeToSystemEvent) for available events.

**Example**:
```javascript
simConnect.subscribeToSystemEvent("Pause", (paused) => {
    // Called when the system event occurs
    console.log(paused ? "Sim paused" : "Sim un-paused");
});
```
### close
`close()`

Manually close the connection to SimConnect. Returns `false` if it fails.

**Example**:
```javascript
var success = simConnect.close();
```

## Thanks
Inspired by https://github.com/EvenAR/node-simconnect & https://github.com/CockpitConnect/msfs-simconnect-nodejs

## Licence
[MIT](https://opensource.org/licenses/MIT)


text:
# DynamoDB Partiql result in Postgres
A command-line tool to run SQL(PartiQL) against DynamoDB and save result in out-of-box Postgres. Zero config.

# How to use

## Pre-requisites
* AWS CLI (configured)
* Node

## Install

Clone this repo, then

```
npm install
npm run clean
npm run build
```

If new features of this tool are available, run `git pull` and run the commands above again

## Run

### Start up Postgres and pgAdmin
```bash
docker-compose up
```

Go to [pgAdmin](http://localhost:21086) . You should see a pre-imported Postgres server (password: `dpp`)

### Run the tool
```
./dpp "select * from ... "
```
*(If are a windows user, take a look at file `./dpp` and you'll know how to run it in Windows)*

From the console output you will see the table name for this run, e.g. `t_1630152784804`

### Analyse the data in Postgres

Go to [pgAdmin](http://localhost:21086)
```
select * from t_1630152784804 where ...
```

## Advanced Usage

### Load PartiQL result file to Postgres

After PartiQL is run using `./dpp`, the result will be saved as a temp json file.

You can load this file into Postgres without re-running `./dpp` again

```
./dpp-load /var/folders/k5/3jjw_my51_gcdm7bmt783b480000gn/T/dpp-items--18473-j2SzClrvSH09-.json
```

# For developers

## Do a manual test

### Create a test table

The table should
* Be big enough so that "NextToken" can be tested
* Contain [all data types](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html) of DynamoDB

To make this happen,
```
./doc/test/create-test-table.sh
./doc/test/put-test-items.js
```

### Run the program against the new table

```
./dpp "select * from DppTest"
```

### Clean up

```
./doc/test/delete-test-table.sh
```

repository: chenjianjx/dpp

repo_name: chenjianjx/dpp


text:
## API Reference

### Methods
```lua
sdkbox.PluginInMobi:init()
```
>  initialize the plugin instance.

```lua
sdkbox.PluginInMobi:setListener(listener)
```
> Set listener to listen for inmobi events

```lua
sdkbox.PluginInMobi:getVersion()
```
> Use this to get the version of the SDK.
@return The version of the SDK.

```lua
sdkbox.PluginInMobi:setLogLevel(desiredLogLevel)
```
> Set the log level for SDK's logs

```lua
sdkbox.PluginInMobi:addIdForType(identifier, type)
```
> Register a user specific id with the SDK

```lua
sdkbox.PluginInMobi:removeIdType(type)
```
> Deregister a particular set of Ids

```lua
sdkbox.PluginInMobi:setAge(age)
```
> Provide the user's age to the SDK for targeting purposes.

```lua
sdkbox.PluginInMobi:setAreaCode(areaCode)
```
> Provide the user's area code to the SDK for targeting purposes.

```lua
sdkbox.PluginInMobi:setAgeGroup(ageGroup)
```
> Provide the user's age group to the SDK for targeting purposes.

```lua
sdkbox.PluginInMobi:setYearOfBirth(yearOfBirth)
```
> Provide a user's date of birth to the SDK for targeting purposes.

```lua
sdkbox.PluginInMobi:setEducation(education)
```
> Provide the user's education status to the SDK for targeting purposes.

```lua
sdkbox.PluginInMobi:setEthnicity(ethnicity)
```
> Provide the user's ethnicity to the SDK for targeting purposes.

```lua
sdkbox.PluginInMobi:setGender(gender)
```
> Provide the user's gender to the SDK for targeting purposes.

```lua
sdkbox.PluginInMobi:setHouseholdIncome(income)
```
> Provide the user's household income to the SDK for targeting purposes.

```lua
sdkbox.PluginInMobi:setIncome(income)
```
> Provide the user's income to the SDK for targeting purposes.

```lua
sdkbox.PluginInMobi:setInterests(interests)
```
> Provide the user's interests to the SDK for targeting purposes.

```lua
sdkbox.PluginInMobi:setLanguage(language)
```
> Provide the user's preferred language to the SDK for targeting purposes.

```lua
sdkbox.PluginInMobi:setLocation(city, state, country)
```
> Provide the user's location to the SDK for targeting purposes.

```lua
sdkbox.PluginInMobi:setLocation(latitude, longitude)
```
> Provide the user's location to the SDK for targeting purposes.

```lua
sdkbox.PluginInMobi:setNationality(nationality)
```
> Provide the user's nationality to the SDK for targeting purposes.

```lua
sdkbox.PluginInMobi:setPostalCode(postalcode)
```
> Provide the user's postal code to the SDK for targeting purposes.

```lua
sdkbox.PluginInMobi:shouldAutoRefresh(refresh)
```
> Control if the banner should auto-refresh ad content.

```lua
sdkbox.PluginInMobi:setRefreshInterval(interval)
```
> Specify the refresh interval for the banner ad.

```lua
sdkbox.PluginInMobi:loadBanner()
```
> Submit a request to load banner ad content.

```lua
sdkbox.PluginInMobi:disableHardwareAccelerationForBanner()
```
> Turn off hardware acceleration on the underlying views.
vaild on android

```lua
sdkbox.PluginInMobi:setBannerAnimationType(animationType)
```
> Set the animation preference on the banner views during ad refresh.

```lua
sdkbox.PluginInMobi:setBannerKeywords(keywords)
```
> Set comma delimited keywords for targeting purpose

```lua
sdkbox.PluginInMobi:hideBanner()
```
> Hide Banner

```lua
sdkbox.PluginInMobi:loadInterstitial(ad)
```
> Submit a request to load interstitial ad content.

```lua
sdkbox.PluginInMobi:isInterstitialReady(ad)
```
> Returns true if the interstitial was loaded successfully and in ready to be shown.

```lua
sdkbox.PluginInMobi:showInterstitial(ad)
```
> Displays the interstitial on the screen

```lua
sdkbox.PluginInMobi:showInterstitial(type, ad)
```
> Displays the interstitial on the screen
valid on ios

```lua
sdkbox.PluginInMobi:showInterstitial(enterAnimationResourcedId,
                                      exitAnimationResourceId,
                                      ad)
```
> Displays the interstitial on the screen
valid on android

```lua
sdkbox.PluginInMobi:disableHardwareAccelerationForInterstitial(ad)
```
> Disable hardware acceleration on the underlying views.
valid on android

```lua
sdkbox.PluginInMobi:setInterstitialKeywords(keywords, ad)
```
> Set comma delimited keywords for targeting purpose

### Listeners
```lua
bannerDidFinishLoading()
```
> Notifies the delegate that the banner has finished loading

```lua
bannerDidFailToLoadWithError(code, description)
```
> Notifies the delegate that the banner has failed to load with some error.

```lua
bannerDidInteractWithParams(params)
```
> Notifies the delegate that the banner was interacted with.

```lua
userWillLeaveApplicationFromBanner()
```
> Notifies the delegate that the user would be taken out of the application context.

```lua
bannerWillPresentScreen()
```
> Notifies the delegate that the banner would be presenting a full screen content.

```lua
bannerDidPresentScreen()
```
> Notifies the delegate that the banner has finished presenting screen.

```lua
bannerWillDismissScreen()
```
> Notifies the delegate that the banner will start dismissing the presented screen.

```lua
bannerDidDismissScreen()
```
> Notifies the delegate that the banner has dismissed the presented screen.

```lua
bannerRewardActionCompletedWithRewards(rewards)
```
> Notifies the delegate that the user has completed the action to be incentivised with.

```lua
interstitialDidFinishLoading()
```
> Notifies the delegate that the interstitial has finished loading

```lua
interstitialDidFailToLoadWithError(code, description)
```
> Notifies the delegate that the interstitial has failed to load with some error.

```lua
interstitialWillPresent()
```
> Notifies the delegate that the interstitial would be presented.

```lua
interstitialDidPresent()
```
> Notifies the delegate that the interstitial has been presented.

```lua
interstitialDidFailToPresentWithError(code, description)
```
> Notifies the delegate that the interstitial has failed to present with some error.

```lua
interstitialWillDismiss()
```
> Notifies the delegate that the interstitial will be dismissed.

```lua
interstitialDidDismiss()
```
> Notifies the delegate that the interstitial has been dismissed.

```lua
interstitialDidInteractWithParams(params)
```
> Notifies the delegate that the interstitial has been interacted with.

```lua
interstitialRewardActionCompletedWithRewards(rewards)
```
> Notifies the delegate that the user has performed the action to be incentivised with.

```lua
userWillLeaveApplicationFromInterstitial()
```
> Notifies the delegate that the user will leave application context.

repository: sdkbox-doc/en

gha_language: Python

repo_name: sdkbox-doc/en


text:
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

Please update react/app/public/keycloak.json file for following:
```json
"auth-server-url": "http://{ip}:8081/auth"
```
Please replace {ip} with your own ip.
e.g. -
```json
"auth-server-url": "http://<IP_ADDRESS>:8081/auth",
```

## Available Scripts

In the project directory, you can run:

### `npm install`
Installs all dependencies mentioned in package.json

### `npm start`

Runs the app in the development mode.

Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.

You will also see any lint errors in the console.

repository: jason-ni/csw

repo_name: jason-ni/csw


text:
# NestJs

These are my notes and type-along results from the <https://learn.nestjs.com/> course.

## Installation

`npm i`

## Starting up

- `docker-compose up` starts the db
- `npm run start:dev` starts the app

use `tests.http` with the VSC rest client, Insomnia, postman to interact with the NestJS REST API

## Migrations

Creating a TypeOrm Migration

`npx typeorm migration:create -n CoffeeRefactor`

CoffeeRefactor being the NAME we are giving "this" migration

## More info

- see [README.md](README-nest-default.md) that is generated.
- <https://learn.nestjs.com/>
- <https://nestjs.com>

repository: rkristelijn/learn-nestjs

repo_name: rkristelijn/learn-nestjs


text:
# ![LOGO](images/LOGO.png)

### 					                    									Extensive Vision AI Program

##### Design and train a CNN on MNIST dataset with the below constraints

- Total number of parameters are less than 20000
- Obtain validation accuracy of more than 99.4%