text:
## Goggles  -o^o-
### Swimming Results Browser & "Swimming Life-style" enhancer

[![Maintainability](https://api.codeclimate.com/v1/badges/d04a16c56341b1ce59a3/maintainability)](https://codeclimate.com/github/steveoro/goggles/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/d04a16c56341b1ce59a3/test_coverage)](https://codeclimate.com/github/steveoro/goggles/test_coverage)
[![CodeFactor](https://www.codefactor.io/repository/github/steveoro/goggles/badge)](https://www.codefactor.io/repository/github/steveoro/goggles)
[![Build Status](https://semaphoreci.com/api/v1/steveoro/goggles/branches/master/badge.svg)](https://semaphoreci.com/steveoro/goggles)

Goggles is a Rails application developed to manage and browse the results obtained
dynamically from any official Swimming competition. The app is designed also to handle
a lot more, as long as is related to Swimming.

It features some crude internal social features for handling and sharing reviews of
swimming-pools and sporting venues, manage trainings, lessons, meeting reservations,
custom internal championship cups and a lot more.

Although open for browsing to the general public, the official site (master-goggles.org)
is still used in closed beta and reserved as the Official Championship result publisher for
only a few selected Swimming Teams from a Regional Championship in the north of Italy.

The administration/data-import sub-app resides in a dedicated project (goggles_admin) and is
typically deployed and used only locally, firewalled by a LAN.

The GogglesAdmin app features a complex, mostly automated, data-import process with
a custom Parser. This is able to parse several results and starting-list file formats,
typically generated from various sources all over the net (mostly, Swimming Federations sites).
This allows recurrent jobs and crawlers to automatically update the underlying database
with all the supported data files.

Official framework Wiki, [here](https://github.com/steveoro/goggles_admin/wiki)

repository: steveoro/goggles

gha_language: Ruby

repo_name: steveoro/goggles


text:
# Chapter 5: 객체지향 디자인

## Main Presentation

- Presenter: 오기환
  - [객체지향 디자인](slides/ch5-object-oriented-design.pdf)

## Short Presentation

- Presenter: 박종혁
  - [Design Patterns (basic)](slides/ch5-design-patterns-basic.pdf)

license: MIT

repository: VLDB-Study/professional-cpp-study

branch_name: refs/heads/main

extension: md

license_type: permissive

repo_name: VLDB-Study/professional-cpp-study


text:
# Project Description
This project is the Product subsystem of the Ecommerce system, used to display product information to users.
Ecommerce Project includes：

|Repo|Purpose|Link|
| --- | --- | --- |
|ecommerce-order-service|Order service|[https://github.com/e-commerce-mock/ecommerce-order-service](https://github.com/e-commerce-mock/ecommerce-order-service)|
|ecommerce-order-query-service|Order query service|[https://github.com/e-commerce-mock/ecommerce-order-query-service](https://github.com/e-commerce-mock/ecommerce-order-query-service)|
|ecommerce-product-service|Product service|[https://github.com/e-commerce-mock/ecommerce-product-service](https://github.com/e-commerce-mock/ecommerce-product-service)|
|ecommerce-inventory-service|Inventory service|[https://github.com/e-commerce-mock/ecommerce-inventory-service](https://github.com/e-commerce-mock/ecommerce-inventory-service)|
|ecommerce-shared-model|Pure Shared model without Spring context|[https://github.com/e-commerce-mock/ecommerce-shared-model](https://github.com/e-commerce-mock/ecommerce-shared-model)|
|ecommerce-spring-common|Shared basic Spring configuration|[https://github.com/e-commerce-mock/ecommerce-spring-common](https://github.com/e-commerce-mock/ecommerce-spring-common)|
|ecommerce-devops|Infrastructure|[https://github.com/e-commerce-mock/ecommerce-devops](https://github.com/e-commerce-mock/ecommerce-devops)|

# Tech stacks
Spring Boot、Gradle、MySQL、Junit 5、Rest Assured、Docker、RabbitMQ/Kafka

# Build Project in local

The following steps must be completed before building locally：
- Pull latest[devops](https://github.com/e-commerce-mock/devops)代码
- Go to folder `ecommerce-sample/devops/local/rabbitmq` of `devops`
- Run `./start-rabbitmq.sh` to start RabbitMQ. You only need to start RabbitMQ once to serve all services under the entire Ecommerce
- Go to folder `ecommerce-sample/devops/local/zipkin` of `devops`
- Run `./start-zipkin.sh` to start zipkin server. You only need to start Zipkin once to serve all services under the entire Ecommerce

|Function|Command|Notes|
| --- | --- | --- |
|Generate IntelliJ project|`./idea.sh`|Automatically open IntelliJ|
|Run locally|`./run.sh`|Automatically start MySQL, open HTTP 8083 port, listen on 5007 debugging port|
|Build locally|`./local-build.sh`|Start MySQL, run all types of automated tests|
|Stop MySQL|`./gradlew composeDown`|All data will be cleared|
|Empty local MySQL|`./mysql-clean-local.sh`|Will not rebuild the MySQL instance|
|Log in to local MySQL|`./mysql-login-local.sh`||
|Start MySQL|`./gradlew composeUp`||
|Publish sdk|`./publish-sdk.sh`|The version can be specified by modifying the `version` in the `gradle.properties` file|

# Domain Object
|Domain Object|Business|
| --- | --- | --- |
|Product|Include name and price|

# Test strategy
|Test Type|Directory|Description|
| --- | --- | --- |
|Unit test|`src/test/java`|Contains tests for core domain models (including domain objects and Factory classes)|
|Component test|`src/componentTest/java`|Used to test some core component-level objects, such as Repository|
|API Test|`src/apiTest/java`|Simulate client calling API|

# Technical Architecture
Technical architecture diagram

# Deployment architecture
Deployment architecture diagram

# External dependencies
List other systems that the project depends on, for example, the order system depends on the membership system.

# Environmental information
List the access methods of each environment, database connection, etc.

# Coding Practice
List commonly used public coding practices.

# FAQ

# Principle

branch_name: refs/heads/master


text:
---
layout: post
title:      "How to Change Your Karma Testing Browser in Angular - For Beginners"
date:       2019-03-31 19:35:09 +0000
permalink:  how_to_change_your_karma_testing_browser_in_angular_-_for_beginners
---

A Flatiron student asked me for help the other day on how to change her Karma testing browser in Angular from Chrome to Firefox.

She specifically focused on switching from Chrome to Firefox, but these instructions can be modified to add browser types instead, or replaced with different browsers. Just do a Google search for 'karma <browser-name> launcher' and replace `karma-firefox-launcher` with that package name below.

Here are the steps:

1. Go to `package.json` and change the `karma-chrome-launcher` package to `karma-firefox-launcher` - As of the writing of this blog post, the current version is `^1.1.0`.

2. Re-run `npm install` to unintall the previous launcher and install the new one.

3. In `karma.conf.js` in the `:plugins` key, replace `require("karma-chrome-launcher")` with `require("karma-firefox-launcher")` in the plugins array.

4. Still in `karma.conf.js`, go to the `:browsers` key, and replace `Chrome` with `Firefox` in the browsers array.

Then, run `karma start` and your tests should work in the proper browser!

extension: markdown


text:
---
_id: 5dfdd481fb0ecc0036c35197
title: "Implementing GitHub Actions for an Azure Static Website"
url: 'https://dev.to/azure/implementing-github-actions-for-an-azure-static-website-488h'
category: articles
slug: 'implementing-github-actions-for-an-azure-static-website'
user_id: 5a83ce59d6eb0005c4ecda2c
username: 'bill-s'
createdOn: '2019-12-19T08:14:57.781Z'
tags: [git]
---

While I was doing the work to host my Blazor search app within my website I realised I'd need to update the deployment pipeline I use for my blog. The process being used was very similar to the one used for the DDD Sydney website, but tweaked for use with Hugo. As it was setup a while ago I used the UI designer in Azure Pipelines, not the YAML approach so this seemed like the perfect opportunity for an overhaul.

repository: dotnetweekly/dnw-gatsby

gha_language: JavaScript

gha_license_id: MIT

repo_name: dotnetweekly/dnw-gatsby


text:
# Running the device application
There are two options how to run the application on your device: Download a release package or compile it yourself from the provided source code.

## Option 1: Downloading and sideloading the application
Download a release of the device application from the [release page on Github](https://github.com/DirkSonguer/azure-iot-hub-climatecontrol/releases).

Install the application on your IoT device as [described in the documentation](https://docs.microsoft.com/en-us/windows/iot-core/develop-your-app/appinstaller).

## Option 2: Compiling and deploying the device application
As [described](1-prerequisites.md) I used the latest version of [Visual Studio 2019](https://visualstudio.microsoft.com/). If you are on macOS or Linux, you can also use any kind of editor together with [.NET Core](https://dotnet.microsoft.com/download/dotnet-core/3.1), however I will not go into usage and setup.

To run the application on the device, open the solution */device/DeviceApplication.sln* in Visual Studio.

Right click on the project in the Solution Explorer and select "Properties" and make sure the "Remote Machine target device" is set to the IP of your IoT device you want to install the application on. The target architecture should match the one of your device, in our case "ARM".

![Chosing to run the application on the remote device](assets/visual-studio-2019-remote-machine-configuration.png)

Compile and run on the remote machine to push the application onto the device. To validate that the app is running, you can either attach a monitor to the IoT device or you can open the Device Portal and capture a screenshot.

![Checking that your foreground application actually runs on the device](assets/windows-10-iot-device-portal-screenshot-capture.png)

## What the application does
Once the application runs, it will try to send ân initial update of the Device Twin data to the Azure IoT Hub as well as a telemetry update every 30 seconds.

*Note that the connection will only be successful if the device was [provisioned correctly](5-device-provisioning.md).*

Once the application is running you should see activity in the Azure IoT Hub. Go to the [Azure Portal](https://portal.azure.com/), select your IoT Hub instance and scroll down on the overview blade:

![Azure IoT Hub overview of all operations](assets/azure-iot-hub-overview-operations.png)

Once the connection is established the application will also expose its configuration in the Device Twin information. In the Azure Portal, select the respective device and click on "Device Twin". Note that the application [reported](https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-device-twins) the version number as well as the current data update interval.

![Device twin information in Azure IoT Hub](assets/azure-iot-hub-device-twin.png)

The application sends [telemetry data](https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-messages-d2c) to the IoT Hub, which can be handled as an event, for example an [Azure function](7-azure-functions.md). We will set this up in the next step.

The application is further able to react to [messages](https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-direct-methods) from the Azure IoT Hub. In the Azure Portal, select the respective device and click on "Direct Method". The method name is "SetTelemetryInterval" and the payload should be the new interval for telemetry updates in milliseconds. It should be between 5000ms and 60000ms, other values will be ignored. Make sure to set a sensible connection and method timeout, depending on the network connection your IoT device is on.

If successful, the method will return a confirmation. Once confirmed, the application will send the telemetry data in the new interval and also change the device twin information to reflect the change.

![Sending direct methods in Azure IoT Hub](assets/azure-iot-hub-direct-method.png)

You can check exactly what the application does in the [source code](https://github.com/DirkSonguer/azure-iot-hub-climatecontrol/blob/master/device/DeviceApplication/). Note that the application architecture and code is not necessarily the most efficient - it's optimized for readability and to be easy to follow.

## Developing an IoT application from scratch
To re-create the project from scratch, make sure you have installed the "Embedded and IoT development tools" workload in the Visual Studio Installer.

![Installing the Windows IoT Core development templates](assets/visual-studio-2019-iot-development-tools.png)

Also, add the Windows IoT Core Project Templates:

```
Extensions -> Manage Extensions -> "Windows IoT Core"
```

![Installing the Windows IoT Core development templates](assets/visual-studio-2019-windows-iot-core-templates.png)

Those are needed to create [background applications](https://docs.microsoft.com/en-us/windows/iot-core/develop-your-app/backgroundapplications) for Windows 19 IoT. These are applications that have no direct UI, which are launched at machine startup and run continuously. If they crash or exit the system will automatically restart them.

The included app is a [foreground application](https://docs.microsoft.com/en-us/windows/iot-core/develop-your-app/buildingappsforiotcore), which is basically just a standard UWP application with the Windows 10 IoT extensions added.

When creating the application, make sure that at least the minimum version of the SDK matches the OS installed on the IoT device.

![Creating a new foreground application](assets/visual-studio-2019-create-new-application.png)

If you haven't done so already, activate developer mode in the settings of your PC.

![Activate developer mode on the developer PC](assets/windows-10-activate-developer-mode.png)

When using a standard UWP application, the "iot" namespace needs to be added to the manifest. Right click on the "Package.appxmanifest" file in the Solution Explorer and select "View Code".

![Extend the manifest file for the project](assets/visual-studio-2019-extend-appxmanifest.png)

Inside the package attribute of the manifest, you need to define the iot xmlns as well as add it to the IgnorableNamespaces list. The final manifest file should start like this:

```xml
<Package
  xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
  xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
  xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
  xmlns:iot="http://schemas.microsoft.com/appx/manifest/iot/windows10"
  IgnorableNamespaces="uap mp iot">
```

Also add two more capabilities to the appxmanifest, which are needed to read the TPM information from a provisioned device. Scroll to the bottom and extend the capabilities with this:

```xml
  <Capabilities>
    <Capability Name="internetClient" />
    <iot:Capability Name="systemManagement"/>
    <iot:Capability Name="lowLevelDevices"/>
  </Capabilities>
```

Next, chose "Remote Machine" as the target instead of "Device". The dialog should show the IoT device if it's in the same network. If you encounter issues, right click on the project in the Solution Explorer and select "Properties". Make sure the remote machine is set to the IP of your IoT device.

Also, the target architecture should match the one of your device. For Raspberry Pi this is "ARM".

![Chosing to run the application on the remote device](assets/visual-studio-2019-remote-machine-configuration.png)

At this point you can already compile the empty template and deploy it to the remote device. Once finished, you can verify that the app is indeed running by capturing a screenshot in the Device Portal for your device.

![Checking that your foreground application actually runs on the device](assets/windows-10-iot-device-portal-screenshot-capture.png)

Now you can expand the application with your own code.

---

**Back to the [project README](../README.md).**

gha_language: PowerShell


text:
#AirHop is an open-source iOS game

* Main goal of this game is to create a fun game
* Secondary goal of this game is to combine Cocos2D with UIKit and create a live editor for the game that can be reset-modified at anytime

##Early game concept sketch
![Game Image](http://farm6.static.flickr.com/5099/5595057220_db4e2f8bc4_z.jpg)

license: Zlib,MIT

detected_licenses: Zlib MIT


text:
---
type: "team"
title: ALPHA Q
name: "ALPHA Q"
github-link: "https://github.com/TEAM-ALPHA-Q/SRM_HACKATHON"
description: "Hi, We are a team of Web developers."
Team-Quote: ""
Team_Tech_Stack: "MongoDB, Express, EJS, Node.js, Javascript"
Application_Type: "We Application"
No_Of_Members: "3"
---

Hey ! We are Team ALPHA Q. We are here to win. and we also love web development.

---

## Project's Overview

_**Theme-Name**_ : Education

_**Application-Type**_ :  Web Application

_**Idea-Description**_ :
So we are aiming to start a positive news and media company for kids. Just imagine how does a 10 year old kid would look at the world if he is seeing news tv channels 24x7 with his family everyday.
There are riots, pandemic, encounters, suicides and youtube is filled with objectionable content so a question arises do our kids really need to see all this?
Yes, they do need to understand the concept of poverty, depression and pandemic but we don't need to bombard them with all the negative news and Indian parents also don't have an option these channels, newspapers and twitter are the only source for their updates and news.

So we want to solve this problem, in simple words:
We want to build a positive platform for kids to learn new things and see that this world is not bad at all, good things happen everyday here.
Most kids can hardly read so we have also attached listen news feature with each article and speed of the audio can also be changed.

_**Tech-Stack-Used**_ :   MongoDB, Express, EJS, Node.js, Javascript

<!-- _**GitHub-Link**_ :   https://github.com/TEAM-ALPHA-Q/  -->

_**Hosted-Link**_ :

---

# Member Details

_**No of members**_ : 3

Fill Team Details for only the valid no of members in your team and delete the leftover Template...

path: /content/teams/ALPHA Q/index.md


text:
---
# Display name
name: Gyunam Park

# Username (this should match the folder name)
authors:
- admin

# Is this the primary user of the site?
superuser: true

# Role/position
role: Researcher/Ph.D. Candidate

# Organizations/Affiliations
organizations:
- name: PADS (chair of Process and Data Science), Computer Science, RWTH-Aachen University
  url: "https://www.pads.rwth-aachen.de/"

# Short bio (displayed in user profile at end of posts)
bio: My research interests include process mining, data mining, machine learning, explainalbe prediction, and recommender system.

interests:
- Process Mining
- Data Mining
- Machine Learning
- Enterprise Information Systems

education:
  courses:
  - course: M.S. in Industrial & Management Engineering
    institution: POSTECH (Pohang University of Science and Technology)
    year: 2019
  - course: B.S. in Technology Management and Computer Science
    institution: UNIST (Ulsan National Institute of Science and Technology)
    year: 2017

# Social/Academic Networking
# For available icons, see: https://sourcethemes.com/academic/docs/widgets/#icons
#   For an email link, use "fas" icon pack, "envelope" icon, and a link in the
#   form<EMAIL_ADDRESS>or "#contact" for contact widget.
social:
- icon: envelope
  icon_pack: fas
  link<EMAIL_ADDRESS># For a direct email link, use<EMAIL_ADDRESS>- icon: twitter
  icon_pack: fab
  link: https://twitter.com/gyunamister
- icon: google-scholar
  icon_pack: ai
  link: https://scholar.google.com/citations?user=pizUQ6gAAAAJ&hl=en
- icon: github
  icon_pack: fab
  link: https://github.com/gyunamister
# Link to a PDF of your resume/CV from the About widget.
# To enable, copy your resume/CV to `static/files/cv.pdf` and uncomment the lines below.
 #- icon: cv
 # icon_pack: ai
 # link: files/cv.pdf

# Enter email to display Gravatar (if Gravatar enabled in Config)
email: ""

# Organizational groups that you belong to (for People widget)
#   Set this to `[]` or comment out if you are not using People widget.
user_groups:
- Researchers
- Visitors
---

My name is Gyunam Park. I am a computer science researcher in the field of process mining and a Ph.D. candidate at the chair of Process and Data Science ([PADS](https://www.pads.rwth-aachen.de/)) led by Prof. Dr. [Wil M.P. van der Aalst](http://www.padsweb.rwth-aachen.de/wvdaalst/). My research focuses on turning insights from object-centric process mining to actions.

repository: gyunamister/academic-kickstart

repo_name: gyunamister/academic-kickstart


text:
# Minecraft Texture Set Generator

> See [Minecraft's Texture Set Documentation](https://help.minecraft.net/hc/en-us/articles/360051308931-Minecraft-Texture-Set-Documentation) for more details about `.texture_set.json` files.

## [bridge.](https://bridge-core.github.io/) Plugin

### Usage

#### Enter texture name in search bar.

  - A list of terrain texture names is loaded into a auto-complete list.

#### Optionally customize texture set output

  - Base layer, MER layer, and normal map layers are automatically filled to match terrain texture name in the search bar.

  - Layer values can be individually modified by changing the _Base layer_, _MER map_ and _Depth map_ fields.

  - The automatically-filled texture name remains in the auto-completion list.

  - Base layer and MER layers can use a uniform color instead of a terrain texture name. Click the paint bucket icon to open a color picker.

  > **TODO:**
  > Allow user to specify uniform color's output format.

  - Specify if the depth map is a normal map (default) or a heightmap by selecting a value from the dropdown menu next to the field.

  - Leave a field's value empty to omit the layer from the texture set output.

#### Save texture set output

  - Click the _Save_ button to save the generated `.texture_set.json` file to the resource pack `textures/blocks/` directory.

gha_language: Vue


text:
---
hrs_structure:
  division: '2'
  volume: '8'
  title: '23'
  chapter: 421I
  section: 421I-9
type: hrs_section
tags:
  - Business
menu:
  hrs:
    identifier: HRS_0421I-0009
    parent: HRS0421I
    name: 421I-9 Mediation and arbitration of disputes
weight: 41045
title: Mediation and arbitration of disputes
full_title: 421I-9 Mediation and arbitration of disputes
---
**§421I-9 Mediation and arbitration of disputes.** At the request of any party, any dispute concerning or involving one or more shareholders and a corporation, its board of directors, managing agent, resident manager, or one or more other shareholders relating to the interpretation, application, or enforcement of this chapter or the corporation's articles of incorporation, bylaws, or rules adopted in accordance with its bylaws shall be submitted first to mediation. When all reasonable efforts for mediation have been made and the dispute is not settled either in conference between the parties or through mediation, the dispute shall be submitted to arbitration in the same manner and subject to the same requirements, to the extent practicable, which now apply to condominium property regimes under part VII of chapter 514A or section 514B-162\. [L 1993, c 282, pt of §1; am L 2004, c 164, §12; am L 2005, c 93, §7; am L 2008, c 28, §9]

repository: SamMade/BlueAndKrabby

repo_name: SamMade/BlueAndKrabby


text:
# EntityFramework-Code-First-With-SqlServer-Compact-Reference
 EntityFramework Code First With SqlServer Compact Reference

using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;

namespace sqlcesample
{
    /*
     * packages

        Install-Package System.Data.SQLite
        Install-Package EntityFramework.SqlServerCompact

        <?xml version="1.0" encoding="utf-8"?>
        <packages>
        <package id="EntityFramework" version="6.1.3" targetFramework="net452" />
        <package id="EntityFramework.SqlServerCompact" version="6.1.3" targetFramework="net452" />
        <package id="Microsoft.SqlServer.Compact" version="4.0.8876.1" targetFramework="net452" />
        <package id="System.Data.SQLite" version="<IP_ADDRESS>" targetFramework="net452" />
        <package id="System.Data.SQLite.Core" version="<IP_ADDRESS>" targetFramework="net452" />
        <package id="System.Data.SQLite.EF6" version="<IP_ADDRESS>" targetFramework="net452" />
        <package id="System.Data.SQLite.Linq" version="<IP_ADDRESS>" targetFramework="net452" />
        </packages>

     */

    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            /*
             Enable-Migrations -Force
             Add-Migration init
             Update-Database

             – After the command is executed, a new folder Migrations will be created in project. This folder contains a _InitialCreate.cs and a Configuration.cs where
             + _InitialCreate.cs : is the first migration, it contains the changes that have already been applied to the database from an empty database to one that includes the Courses and Students tables. Although Code First already creates automatically the tables for us, the steps to create them have also been converted into a migration. However Code First has marked in database that this migration has already been applied. Therefore the application won’t try to create table again. The time stamp before file name is used for ordering purposes.
             + Configuration.cs : contains settings that migrations will use for migrating

             Database.SetInitializer(new MigrateDatabaseToLatestVersion<CourseraContext, Configuration>());
             */

            /*
             – The Add-Migration command checks for changes since your last migration and scaffolds a new migration with any change found.
             AddUrlToCourse is the name of migration. After the command is executed, a new migration class with time stamp will be created.

             Add-Migration AddUrlToCourse
             */

            /*
             – Although the migration was created, we need to explicit update database by calling Update-Database in Package Manager Console
               Update-Database
             */

            /*
             – Although the migration was created, we need to explicit update database by calling Update-Database in Package Manager Console
             – This command will apply any pending migrations to the database
             – This command also supports parameters such as Verbose, Script or TagetMigration
            Update-Database
             */

            /*

             + TargetMigration: specifies to which migration we would like to bring database schema to.
             If you want to reset to empty database, you can run the command

             Update-Database –TargetMigration: $InitialDatabase
             */

            /*
             – If you want to always update database schema to latest migration when the application starts, use this code listing at program’s start-up.
              Database.SetInitializer(new MigrateDatabaseToLatestVersion<CourseraContext, Configuration>());
             */
            //  Database.SetInitializer(new MigrateDatabaseToLatestVersion<CourseraContext, Configuration>());
            const string name = "wooooo";
            using (var db = new CourseraContext())
            {
                var course = new Course { Name = name };
                db.Courses.Add(course);
                db.SaveChanges();
            }
            using (var db = new CourseraContext())
            {
                var t = db.Courses.FirstOrDefault();
                Console.WriteLine(t);
            }
        }

        internal class Course
        {
            public int Id { get; set; }

            public string Name { get; set; }

            public string Url { get; set; }

            public virtual List<Student> Students { get; set; }
        }

        internal class Student
        {
            public int Id { get; set; }

            public string FirstName { get; set; }

            public string LastName { get; set; }

            public int CourseId { get; set; }

            public virtual Course Course { get; set; }
        }

        /*

         this class is auto generated when you do enablemigration

        internal sealed class Configuration : DbMigrationsConfiguration<sqlcesample.CourseraContext>

        internal sealed class Configuration : DbMigrationsConfiguration<sqlcesample.CourseraContext>
        {
            public Configuration()
            {
                AutomaticMigrationsEnabled = false;
                ContextKey = "sqlcesample.CourseraContext";
            }

            protected override void Seed(sqlcesample.CourseraContext context)
            {
                //  This method will be called after migrating to the latest version.

                //  You can use the DbSet<T>.AddOrUpdate() helper extension method
                //  to avoid creating duplicate seed data. E.g.
                //
                //    context.People.AddOrUpdate(
                //      p => p.FullName,
                //      new Person { FullName = "Andrew Peters" },
                //      new Person { FullName = "Brice Lambson" },
                //      new Person { FullName = "Rowan Miller" }
                //    );
                //
            }
        }
        */

        internal class CourseraContext : DbContext
        {
            public CourseraContext()
            //optional
            //: base("name=DefaultConnection")
            {
            }

            public DbSet<Course> Courses { get; set; }
            public DbSet<Student> Students { get; set; }
            /*
             To access the fluent API, you override the OnModelCreating method in DbContext. For example,
             we want to rename the column UserName of Teacher table into “Id”.
            Override the OnModelCreating method on with the following code

             protected override void OnModelCreating(DbModelBuilder modelBuilder)
            {
                modelBuilder.Entity<Student>()
                    .Property(u => u.Id)
                    .HasColumnName("Idmooo");
            }
            */
        }
    }
}

Update-Database -TargetMigration:0 -force [This will destroy all tables and all data.]

using (var context = new PersonDbContext())
{
    var query = context.Persons.Where(x => x.Age == 34);
    Console.WriteLine(query.ToString());
}
Will output

SELECT
[Extent1].[Id] AS [Id],
[Extent1].[FirstName] AS [FirstName],
[Extent1].[LastName] AS [LastName],
[Extent1].[Age] AS [Age]
FROM [dbo].[People] AS [Extent1]
WHERE 34 = [Extent1].[Age]

How to: Execute Business Logic When Saving Changes

You can override the SaveChanges() method for your DbContext, as described at How to: Execute Business Logic When Saving Changes on MSDN.

public override int SaveChanges(SaveOptions options)
{
    //perform logic here
    return base.SaveChanges(options);
}

public override int SaveChanges(SaveOptions options)
{

    foreach (ObjectStateEntry entry in
        ObjectStateManager.GetObjectStateEntries(
        EntityState.Added | EntityState.Modified))
    {
        // Validate the objects in the Added and Modified state
        // if the validation fails throw an exeption.
    }
    return base.SaveChanges(options);
}


text:
---
title: "Basic JavaScript: Practice comparing different values"
certificate: "Javascript Algorithms and Data Structures"
order: 0
---
Certificate: *Javascript Algorithms and Data Structures*

#### { Instructions }
The compareEquality function in the editor compares two values using the equality operator. Modify the function so that it returns "Equal" only when the values are strictly equal.

#### { My Solution }
```
function compareEquality(a, b) {
  if (a === b) {
    return "Equal";
  }
  return "Not Equal";
}

compareEquality(10, "10");
```

repository: Alex-Cannon/freeCodeCampPortfolio

repo_name: Alex-Cannon/freeCodeCampPortfolio


text:
# Installer creation
CPack can be used to create the installer after the build phase :

=== "Windows"
    ```
    cd _build
    cpack -G ZIP
    ```
=== "Centos"
    ### RHEL .rpm (Experimental)
    ```
    cd _build
    cpack3 -G RPM .
    ```
    Note :
    > `rpm-build` must be installed for RPM creation :  `sudo yum install rpm-build`

    ### Linux .tar.gz
    ```
    cd _build
    cpack3 -G TGZ
    ```

    ### Required system libraries
    There are still some system libraries that must be installed if you want to use *antares-xpansion*:

    ```
    sudo yum install epel-release
    sudo yum install openmpi jsoncpp boost-openmpi
    ```

    Before launching *antares-xpansion* with mpi for parallel launch (method `mpibenders`), you must load mpi module :
    ```
    scl enable devtoolset-7 bash
    module load mpi
    ```

    Note :
    > `mpirun` can't be used as root on Centos7. Be sure to launch antares-xpansion without root user.

=== "Ubuntu"
    ### Ubuntu .deb (Experimental)
    ```
    cd _build
    cpack -G DEB .
    ```
    ### Linux .tar.gz
    ```
    cd _build
    cpack -G TGZ
    ```

    ### Required system libraries
    There are still some system libraries that must be installed if you want to use *antares-xpansion*:
    ```
    sudo apt-get install libcurl4 libjsoncpp1 libboost-mpi-dev
    ```


text:
# coTables jQuery plugin
coTables is a [jQuery](//jquery.com) plugin for HTML table sorting, filtering, .xlsx export, and more.  By simply adding the plugin to your project, you can easily turn a normal static table into an interactive data set for your users.

## Installation & Setup

To install, place the js and css files into the appropriate areas of your project.  Then, include those on any pages you wish to use coTables.

You may need to configure several settings to get coTables to work the way you would like (See: Configurations).  Two settings that typically need configured on initial setup are:
* imgPath - The path to your coTable images folder (default: /css/coTableImg)
* exportIcon - Custom path to xlsx export icon (Not needed if you use Font Awesome)

## External Package Notes

As this is a [jQuery](//jquery.com) plugin, it assumes you are already familiar with [jQuery](//jquery.com) and its use.

Web toolkits / plugins that are recommended to use with this plugin, but not included:
* [Font Awesome](//fortawesome.github.io/Font-Awesome/)
* [Bootstrap](//getbootstrap.com)

Javascript libraries also included in this plugin:
* [Blob.js](//github.com/eligrey/Blob.js/)
* [Filesaver.js](//github.com/eligrey/FileSaver.js/)
* [jszip.js](//stuk.github.io/jszip/)
* [xlsx.js](//github.com/SheetJS/js-xlsx)

## Guide

The most basic and simple usage of coTables is to simple call the jQuery function on your table object:

```js
$('#myTableId').coTable();
```

However, most setups or custom/advanced usage will require the passing of settings / options.  These settings are passed in the form of a JSON array.  For example, most sites will need to identify imgPath and exportIcon:

```js
$('#myTableId').coTable( {
  imgPath: "/Content/css/coTableImg/",
  exportIcon: "/Content/css/coTableImg/export.png"
} );
```

A playground with example source and options testing can be found at [CraigOley.com/Home/coTables](http://CraigOley.com/Home/coTables)

## Settings / Options / Customizations

Here are the current options available to customize the coTables plugin:

      Setting
      Type
      Default
      Description

      filterable
      Boolean
      true
      Add filter boxes and hide non-matching filtered cells

      filterCaseSensitive
      Boolean
      true
      Case sensitive matching for filters

      sortable
      Boolean
      true
      Allow columns to be sorted

      exportable
      Boolean
      true
      Allow table to be exported to .xlsx

      exportFileName
      String
      "coTableExport"
      Custom file name for .xlsx export

      exportIcon
      String
      ""
      Image path to custom export icon - default adds Font Awesome Excel icon (http://fortawesome.github.io/Font-Awesome/icon/file-excel-o/)

      showTableInfo
      Boolean
      true
      Display table information in a table header row.  Currently includes row count.

      alternateRows
      Boolean
      true
      Alternate row colors.  Attempts to use  Bootstrap table stripe (http://getbootstrap.com/css/#tables-striped), but will pick up custom alternating row colors.

      highlightHoverRow
      Boolean
      true
      Highlight the row that the user is currently hovering their mouse over.  Attempts to use Bootstrap table hover (http://getbootstrap.com/css/#tables-hover-rows), but you can style table-hover:hover css however best fits your need.

      imgPath
      String
      "/css/coTableImg/"
      Path to the coTableImg directory where you are storing images for the coTable library

## Support & FAQ

HTML syntax note: Tables must be of the structure:
```
<TABLE>
  <THEAD>
    <TR>
      <TH>
      ...
      </TH>
    </TR>
  </THEAD>
  <TBODY>
    <TR>
      <TD>
      ...
      </TD>
    </TR>
  </TBODY>
</TABLE>
```

Support is currently handled through github issue requests.

## License

coTables is release under the [MIT license](//tldrlegal.com/license/mit-license). You are free to use, modify and distribute this software, as long as the copyright header is left intact.


text:
# InnoDB Shrink

This package provides a command-line tool that can be used to shrink InnoDB tables in a PHP application running on Platform.sh.

## Installation

`composer require royallthefourth/psh-innodb-shrink`

## Usage

Add a cron to your `.platform.app.yaml` that invokes the program with a ratio of free space as its argument.

For example, this will only run on tables that are at least 75% empty:
```
vendor/bin/shrink 0.75
```

## Tests

This package has tests. Use this command to run the them:

```
vendor/bin/phpunit tests
```

repository: royallthefourth/psh-innodb-shrink

gha_language: PHP

repo_name: royallthefourth/psh-innodb-shrink


text:
# Directory Synchronization

Directory Synchronization is a desktop application to compare and backup files.  Directory Synchronization is developed in Java and can be executed on multiple operating systems.   Enter two directories to recursively compare files between the two directories.  Easily copy files between directories.  Enter a directory and recursively find duplicate files in the directory.  Directory Synchronization was originally developed to backup photos and videos to a backup disk drive.

## User Interface

![alt tag](https://github.com/dthorntonz/DirectorySynchronization/blob/master/DirectorySynchronization.png)

## Execution Dependencies

- JDK 1.7 or greater

## Executing Directory Synchronization

- [Download  the self executing dirsync-1.0.0.jar](https://github.com/dthorntonz/DirectorySynchronization/releases/download/1.0.0/dirsync-1.0.0.jar)
- Double click the jar file
- or
- Enter the following command on a command line:
$ java jar dirsync-1.0.0.jar

## Compilation Dependencies

- Apache Maven 3.3 or greater

## Compiling

-  Compile a self executing jar file:
$ mvn package
- Look for the file dirsync-x.x.x-jar-with-dependencies.jar in the target directory.

## License
Copyright © 2015 Danny Thornton

Distributed under the Apache License, version 2.0. (http://www.apache.org/licenses/LICENSE-2.0.html)

repository: dthorntonz/DirectorySynchronization

repo_name: dthorntonz/DirectorySynchronization


text:
This sample application is archived. See https://github.com/lagom/lagom-samples for more Example projects showcasing Lagom usage.

# lagom-java-maven-chirper-example

A Lagom Java example showcasing a Twitter-like application, [Maven](https://maven.apache.org/) flavor.

## Running locally

1) Start all services using `mvn lagom:runAll`.
2) Open `http://localhost:9000` in your browser.
3) Register and Start Chirping!

## Running on Kubernetes or DC/OS

The [sbt flavor](https://github.com/lagom/lagom-java-sbt-chirper-example/)
of this project is set up to run on Kubernetes and DC/OS.

repository: lagom/lagom-java-maven-chirper-example

gha_language: Java

repo_name: lagom/lagom-java-maven-chirper-example


text:
---
layout: default
---

# 1998-10-01 - DTRA, Terrorism, Digital Daily

## Header Data

From: John Young<EMAIL_ADDRESS>To<EMAIL_ADDRESS>Message Hash: 4da129012c5ee4eea39c7883ec67a64f0f13f210ed28c6a01a4bd4553b8457e1

Message ID<EMAIL_ADDRESS>Reply To: _N/A_

UTC Datetime: 1998-10-01 11:34:18 UTC

Raw Date: Thu, 1 Oct 1998 19:34:18 +0800

## Raw message

```
{% raw  %}From: John Young<EMAIL_ADDRESS>Date: Thu, 1 Oct 1998 19:34:18 +0800
To<EMAIL_ADDRESS>Subject: DTRA, Terrorism, Digital Daily
Message-ID<EMAIL_ADDRESS>MIME-Version: 1.0
Content-Type: text/plain

DoD rolled out today the new Defense Threat Reduction
Agency which combines several agencies -- Defense
Special Weapons Agency, Defense Technology Security
Administration, On-Site Inspection Agency and others --
into a new organization whose principle purpose will be
to control the spread of technologies of mass destruction.

See remarks made at the opening ceremony by Hamre
and others:

   http://jya.com/dtra100198.htm

And the new, informative DTRA Web site:

   http://www.dtra.mil

The briefing remarks are of interest for what they disclose
about military planning for combating domestic terrorism
(parallel to what the FBI said about it yesterday), promises
to speed export licensing and a passing reference by Hamre
to "a recent ten month process of encryption policy review."
Which may refer to the recent administration policy
announcement or maybe another in the works.

With the build-up of domestic terrorism fighting forces --
all the mil and gov agencies -- and noises about legislation
being developed for more, it's worth pondering what is
coming with a crackdown on domestic use of encryption.

The Canadian duplicitous announcement today may offer
a clue to what's being secretly agreed upon internationallly:
state there will be no domestic controls (to assure privacy
and secure commerce) coupled with promises to ease export
limits (to assure commercial producers), then contradict that
with a statement about new legislation to criminalize
encryption use in the name of "public safety" and provision
for access to encrypted data (to assure national security and
law enforcement).

Tell all parties what they want to hear in public, then arrange
for what's really going to happen in secrecy among those
responsible parties who know how to bear the terrible burden
of keeping society safe and sound.

Which brings up Time's new "Digital Daily" replacement for
Netley News. News seems to have been eliminated in
favor of entertaining fluff and product promo, even worse
than "mainstream" Time itself. What's up Declan? Has the
ghost of Luce come back to order Time online to shut up
reporting unpleasant nefaria and get on with narcotizing
the masses via Luce's incomparable coy language of
insider duplicity?

{% endraw %}
```

## Thread

+ Return to [October 1998](/archive/1998/10)

+ Return to "[John Young <jya@pipeline.com>](/authors/john_young_jya_at_pipeline_com_)"

+ 1998-10-01 (Thu, 1 Oct 1998 19:34:18 +0800) - DTRA, Terrorism, Digital Daily - _John Young<EMAIL_ADDRESS>


text:
# Haxe Externs for vscode

Generated from **@types/vscode v1.45.1** by **[dts2hx](https://github.com/haxiomic/dts2hx) x.x.x** using **TypeScript 3.7.4** with arguments:

	dts2hx vscode --output _generated-libs --noDts2hxVersion

## Contributors to @types/vscode
- [Visual Studio Code Team, Microsoft](https://github.com/Microsoft)

gha_language: Haxe


text:
# PersistentCounter

this plugin counts numbers up, those numbers are persisted between builds
and saved using a combination of the project, value name and value key
if any of those changes the number resets to the default (`1`)
so by using your version as a key, you get a buildnumber that resets on a version bump

## Gradle Plugin

https://plugins.gradle.org/plugin/moe.nikky.persistentCounter

or from `http://maven.modmuss50.me/`
```kotlin
plugins {
  id("mode.nikky.persistentCounter") version "0.0.8-SNAPSHOT"
}
```

## Tasks

for each variable it will register the tasks:

- `${variable}`
- `${variable}Increment`
- `${variable}Decrement`
- `${variable}Set` argument example: `--setValue=7`
- `${variable}Reset`

## Usage Example:

kotlin-dsl:
```kotlin
import moe.nikky.counter.CounterExtension

val counter: CounterExtension = project.extensions.getByType()
val buildnumber = counter.variable(id = "buildnumber", key = "$major.$minor.$patch")

version = "$major.$minor.$patch-$buildnumber"
```

groovy (wip):
```groovy
import moe.nikky.counter.CounterExtension

// not sure how to directly access extension types in groovy
val buildnumber = counter.variable(id = "buildnumber", key = "$major.$minor.$patch")

version = "$major.$minor.$patch-$buildnumber"
```

## Full Example

```kotlin
import moe.nikky.counter.CounterExtension

val major = Constants.major
val minor = Constants.minor
val patch = Constants.patch

val counter: CounterExtension = extensions.getByType()

val buildnumber = counter.variable(id = "buildnumber", key = "$major.$minor.$patch")
val otherCounter = counter.variable(id = "otherCounter", key = "$someProperty") {
  default = 0
}
```

repository: DaemonicLabs/PersistentCounter

repo_name: DaemonicLabs/PersistentCounter


text:
# 09_Nodejs Homework

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

## Description

For this homework I created a ReadMe generator form command line prompts.

## Table of Contents (Optional)

- [Installation](#installation)
- [Usage](#usage)
- [Contribute](#contribute)
- [License](#license)

## Installation

You will need to download all associated files for this to work. The generated README is created inside of the develop folder.

## Usage

You can use this to create your own README files.

## License

Licensed under the [MIT](https://choosealicense.com/licenses/mit/)

    MIT License

    Copyright (c) [2021] [Connor Gannaway]

    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.

---

## Contribute

[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](code_of_conduct.md)
Give me credit please!

## Tests

There are not any test implementations for this specific program.

## Questions

If you have any questions regarding this application please contact me at my GitHub here: (github.com/gannacon)

Or Send me an email<EMAIL_ADDRESS>

license: MIT,Unlicense

detected_licenses: MIT Unlicense


text:
# `loop_tool`

A tiny linear algebra code-generator and optimization toolkit.  Try it out here: http://loop-tool.glitch.me

![](https://user-images.githubusercontent.com/4842908/174701426-5e479bad-821e-4395-ae1a-91c48776efd9.gif)

Preprint on [arxiv](https://arxiv.org/abs/2205.00618)

## Installation

### C++:
```bash
git clone https://github.com/facebookresearch/loop_tool.git
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
```

### Python:
```bash
pip install loop_tool
```

### JavaScript:
```bash
curl -O -L https://github.com/facebookresearch/loop_tool/raw/main/javascript/lt.mjs.gz
gunzip lt.mjs.gz
```

## Import
### C++:
```cpp
#include <loop_tool/loop_tool.h>
namespace lt = loop_tool;
```
### Python:
```python
import loop_tool as lt
```
### JavaScript:
```javascript
import * as lt from './lt.mjs';
```

## Usage

### C++:
```cpp
#include <loop_tool/loop_tool.h>
namespace lz = ::loop_tool::lazy;

auto mm = [](lz::Tensor A, lz::Tensor B) {
  lz::Symbol M, N, K;
  auto C = A.as(M, K) * B.as(K, N);
  return C.sum(K);
};

lz::Tensor A(128, 128);
lz::Tensor B(128, 128);
rand(A.data<float>(), 128 * 128);
rand(B.data<float>(), 128 * 128);

auto C = mm(A, B);
std::cout << C.data<float>()[0];
```

### Python:
```python
import loop_tool as lt
import numpy as np

def mm(a, b):
    m, n, k = lt.symbols("m n k")
    return (a.to(m, k) * b.to(k, n)).sum(k)

A_np = np.random.randn(128, 128)
B_np = np.random.randn(128, 128)
A = lt.Tensor(A_np)
B = lt.Tensor(B_np)

C = mm(A, B)
print(C.numpy()[0])
```
### JavaScript:
```javascript
import * as lt from './lt.mjs';

function mm(A, B) {
  const [m, n, k] = lt.symbols("m n k");
  return A.to(m, k).mul(B.to(k, n)).sum(k);
}

const A = lt.tensor(128, 128);
const B = lt.tensor(128, 128);
A.set(new Float32Array(128 * 128, 1));
B.set(new Float32Array(128 * 128, 1));

const C = mm(A, B);
console.log(await C.data()[0]);
```

## Overview

`loop_tool` is an experimental loop-based computation toolkit.
Building on the fact that many useful operations (in linear algebra, neural networks, and media processing)
can be written as highly optimized bounded loops,
`loop_tool` is composed of two ideas:

1. A lazy symbolic frontend
    - Extension of typical eager interfaces (e.g. [Numpy](https://numpy.org) or earlier [PyTorch](https://pytorch.org))
    - Symbolic shape deduction (including input shapes)
    - Transparent JIT compilation
2. A simple functional IR
    - Optimized through local node-level annotations
    - Lowered to various backends (currently C, WASM)

Additionally, a curses-based UI is provided (in Python `lt.ui(tensor)`) to interactively optimize loop structures on the fly:

https://user-images.githubusercontent.com/4842908/172877041-fd4b9ed8-7164-49f6-810f-b14f169e2ca9.mp4

## Arithmetic Support

`loop_tool` is built on fixed-range loop iterations over quasi-linear index equations.  Within these loops, the following operations are currently supported:

- `copy`
- `add`
- `subtract`
- `multiply`
- `divide`
- `min`
- `max`
- `log`
- `exp`
- `sqrt`
- `abs`
- `negate`
- `reciprocal`

It is straight-forward to add arithmetic support if needed.

With the constraint-based quasi-linear indexing system, far more complex operations can easily be defined, such as

- Padding
- Concatenation
- Matrix multiplication
- Convolution (group, strided, dilated)
- Pooling (max, average)

## License

loop_tool is MIT licensed, as found in the LICENSE file.


text:
## Beethoven: Piano Trio Op97, Movement 4 Questions(01)

Total: 20 marks

1. Describe the structure of the movement. (6 marks)
2. Where has the music been briefly modulated to G minor (give the bar number(s))? (2 mark)
3. Find the following features: (4 marks)\
    a. Melodic interval of a descending major 9th\
    b. Four consecutive descending chromatic notes.
4. Describe fully the following chords: (4 marks)\
    a. bar 287\
    b. last beat, bar 358.
5. Compare and contrast bars 1-10 with bars 254-261. (4 marks)

path: /Beethoven PianoTrioOp97 Movt4(01).md

filename: Beethoven PianoTrioOp97 Movt4(01).md


text:
gallery-itsamodelsyncpromise
========

This module extends Y.Model by introducing Promised sync-methods. It also transforms Y.Model's sync-events into true events with a defaultFunc which can be prevented.

Landing Page
--------------
[http://gallerydocs.itsasbreuk.nl/gallery-itsamodelsyncpromise](http://gallerydocs.itsasbreuk.nl/gallery-itsamodelsyncpromise/)

License
-------

Copyright (c) 2013 [Its Asbreuk](http://http://itsasbreuk.nl)

[YUI BSD License](http://developer.yahoo.com/yui/license.html)


text:
# Visual Recognition Demo

The [IBM Watson Visual Recognition video](https://www.youtube.com/watch?v=U-yJYHks1_s) shows you how to work with and train the IBM Watson Visual Recognition service.

The presentation containing all the commands used in the video is [here](VisualRecognition_Demo_Commands.pdf)

repository: darrenpape/cas-cognitive-lab

repo_name: darrenpape/cas-cognitive-lab


text:
# coprimes-between

List of [coprime](https://en.wikipedia.org/wiki/Coprime_integers) numbers between A and B (inclusive) for a given C.

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

## example

``` js
var coprimesBetween = require('coprimes-between');
var result = coprimesBetween(2, 10, 15); //coprimesBetween(A, B, C)
console.log(result); //[2, 4, 7, 8]
```

## install

With [npm](http://npmjs.org) do:

```
npm install coprimes-between
```

## license

MIT

repository: garciagomezluis/coprimes-between

repo_name: garciagomezluis/coprimes-between


text:
# Adv Auto Filter Bot

_This Just A Simple Hand Auto Filter Bot For Searching Files From Channel..._

_Just Sent Any Text I Will Search In All Connected Chat And Reply You With The Message link_

_You Can Even Connected To 3 Channels At A Time..._

## Usage

_=> Add Bot To Any Channel As Admin With Add Members/ Invite Users Via Link_

_=> Copy Channel ID_

_=> Use `/connect {channel id}` In Your Group To Connect With The Group_

_=> Use `/disconnect {channel id}` In Your Group To Disconnect From Your Group_

_=> Use `/delall` In Your Group To Clear All Your Group  Connections (Owner Only)_

_Now You Are All Set And Ready To Go..._

_Just Send Any Text Will Try To Lookup In Channel And Provide You The Link_

### Pre Requisites

_Your Bot Token From @BotFather_

_Your APP ID And API Harsh From [Telegram](http://www.my.telegram.org) or [@UseTGXBot](http://www.telegram.dog/UseTGXBot)_

_Your User Session String Obtained From [@PyrogramStringBot](http://www.telegram.dog/PyrogramStringBot)_

_Mongo DB URL Obtained From [Mongo DB](http://www.mongodb.com)_

### Deploy:
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/naseef12356/Auto-filter-pro)

### TODO :

- [ ] - Brodcast
- [ ] - Better Codes
- [x] - Rewrite To Motor Asyncious Driver

PR's Are Very Welcome And If Found Any Bug Feel Free To Open A Issue...
If YOu Found This Repo As Usefull A Star And Fork Would Be Amazing..😋

## Credits

 - Thanks To Dan For His Awsome [Libary](https://github.com/pyrogram/pyrogram)


text:
# akilli editor

A minimal rich text editor.

## Note

As this project is in a early state, some planned features are not finished yet or still missing.

## Usage

You can add widgets from the `main toolbar` on top. Each widget has one or more editable elements that allow adding and maybe formatting text. The `editable toolbar` will appear when you select some text in an editable element that allows text formatting, p.e. paragraphs, list items, table cells. Be aware of the fact that current configuration p.e. does not allow nesting of text formatting elements.

After adding the first widget, you can also use the `Enter` key to add a new paragraph. Depending on the widget, this new paragraph will be created inside the widget itself or on top-level. Within lists, the `Enter` key will add a new list item.

You can reorder the widgets in the editor content by drag'n'drop. As `draggable` and `contenteditable` do not play nice with each other, drag'n'drop is disabled per default. If you doubleclick on a widget you can toggle `draggable` and `contenteditable` states. After dropping the widget the states are toggled automatically. Within `draggable` state you can also use `ArrowUp` and `ArrowDown` keys to move the content.

If a widget is focused, i.e. the widget element is the active element (`document.activeElement`), you can use the `Delete` key to delete the widget, unless the widget element is also `contenteditable` which is the case for simple widgets like `paragraph`, `heading` and `subheading`. For those you have to toggle to `draggable` state first before pressing the `Delete` key.

You can also use the `Backspace`key inside editables to delete the widget, if the editable is empty and is either the widget element itself or the main editable of the widget.

The table widget additionally allows to add and remove rows and columns before or after the currently focused table cell by combining the `Control` key (add) or `Alt` key (remove) with one of the arrow keys (`ArrowLeft`, `ArrowRight`, `ArrowUp`, `ArrowDown`).

repository: sti-bayern/cms

repo_name: sti-bayern/cms


text:
# Sesion 12 -  Template Strings y Ejercicios (21-05-2019)

🙁 _El video de esta sesión no se grabó bien_

👉 <https://apuntes-javascript-intermedio.netlify.com/>

## ✍ Ejercicio

_Write a function charFreq() that takes a string and builds a frequency listing of the characters contained in it. Represent the frequency listing as a Javascript object. Try it with something like charFreq("abbabcbdbabdbdbabababcbcbab")._

Empleando esta definición → `const charFreq = text => text.split('')...`

Es decir `charFreq` devuelve directamente una concatenación de operaciones aplicadas sobre el array de caracteres que resultan en un objeto que contiene la frecuencia de los caracteres en el texto
Pista → hay que utilizar `reduce`

## ✍ Ejercicio

Randomizes three numbers in range (0.. 100) and prints the largest one.

```
const getThreeRandomNumbers = () =>
    new Array(3)
        .fill(0)
        .map(() => Math.round(Math.random()*100))
```

```
const largestNumberWay1 = numbers =>
    numbers
        .reduce( (largest, number) =>
            number > largest ? number : largest
        , 0)

const largestNumberWay2 = numbers => Math.max.apply(null,numbers)

// 👇 OJO con esta!! ¿Qué problema hay aqui?
const largestNumberWay3 = numbers => numbers.sort((a,b) => a-b).pop()
```

## [Template Strings](https://hacks.mozilla.org/2015/05/es6-in-depth-template-strings-2/)

- Enclosed by back-ticks @@` `` ` @@
- Multi-line support
- Can contain placeholders `${ expression }`

```javascript
`string text`

`string text line 1
 string text line 2`

`string text ${expression} string text`
```

BEFORE (ES5)

```javascript
var name = "juanma";
var getSuitableDrink = function(who) {
  return who === 'juanma' ? 'beer' : 'cocktail'
};

console.log( 'Hello, '+name+'!\nFancy a '+getSuitableDrink()+'?' );

// Hello, juanma!
// Fancy a beer?
```

AFTER (ES2015)

```javascript
var name = "juanma";
var getSuitableDrink = function(who) {
  return who === 'juanma' ? 'beer' : 'cocktail'
};

console.log( `Hello, ${ name }!
  Fancy a ${ getSuitableDrink() }?` );
```

- [Template Strings](https://hacks.mozilla.org/2015/05/es6-in-depth-template-strings-2/)
- [ECMAScript 6 equivalents in ES5: Template Literals](https://github.com/addyosmani/es6-equivalents-in-es5#template-literals)

## ✍ ES6 Katas: Template Strings

Do the following katas to assure the understanding of template strings
- [basics](http://tddbin.com/#?kata=es6/language/template-strings/basics)
- [multiline](http://tddbin.com/#?kata=es6/language/template-strings/multiline)
- [tagged template strings](http://tddbin.com/#?kata=es6/language/template-strings/tagged)
- [`raw` property](http://tddbin.com/#?kata=es6/language/template-strings/raw)

## ✍ Ejercicio

```
var text = `The path of the righteous man is beset on all sides by the
iniquities of the selfish and the tyranny of evil men. Blessed is he who, in
the name of charity and good will, shepherds the weak through the valley of
darkness, for he is truly his brother's keeper and the finder of lost
children.  And you will
know My name is the Lord when I lay My vengeance upon thee.

You think water moves fast? You should see ice. It moves like it has a mind.
Like it knows it killed the world once and got a taste for murder. After the
avalanche, it took us a week to climb out. Now, I don't know exactly when we
turned on each other, but I know that seven of us survived the slide... and
only five made it out. Now we took an oath, that I'm breaking now. We said
we'd say it was the snow that killed the other two, but it wasn't. Nature is
lethal but it doesn't hold a candle to man.

My money's in that office, right?   She gonna tell me too.

Do you see any Teletubbies in here? Do you see a slender plastic tag clipped
to my shirt with my name printed on it? Do you see a little Asian child with a
blank expression on his face sitting outside on a mechanical helicopter that
shakes when you put quarters in it? No? Well, that's what you see at a toy
store. And you must think you're in a toy store, because you're here shopping
for an infant named Jeb.

 But I can't give you this case, it don't belong to
me.

Now that we know who you are, I know who I am. I'm not a mistake! It all makes
sense! In a comic, you know how you can tell who the arch-villain's going to
be? He's the exact opposite of the hero.  I should've known way back when... You know why, David? Because of
the kids. They called me Mr Glass.

You think water moves fast? You should see ice. It moves like it has a mind.
Like it knows it killed the world once and got a taste for murder. After the
avalanche, it took us a week to climb out. Now, I don't know exactly when we
turned on each other, but I know that seven of us survived the slide... and
only five made it out. Now we took an oath, that I'm breaking now. We said
we'd say it was the snow that killed the other two, but it wasn't`
```

```
var wordsFreq = text =>
    text.split(' ')
        .reduce( (oWordFreq, word) => {
            var cleanedWord = word
            cleanedWord = cleanedWord.replace(".", "")
            cleanedWord = cleanedWord.replace(",", "")
            cleanedWord = cleanedWord.trim()
            if (!oWordFreq[cleanedWord]) oWordFreq[cleanedWord] = 1
            else oWordFreq[cleanedWord]++
            return oWordFreq
        }, {})
```


text:
# RESTful APIs

URL：What do you want？要什么

method：What do you want？做什么

status code：How did it come out？结果如何

refuse

### Reference

- https://auth0.com/blog/developing-restful-apis-with-python-and-flask/#restful-flask

gha_language: Python


text:
---
title: "New package regexr with initial version 0.0.2 "
kind: article
created_at: 2014-12-22 23:13:00 UTC
author: CRANberries
categories:
tags:
layout: post
---
Package: regexr

Type: Package

Title: Readable Regular Expressions

Version: 0.0.2

Date: 2014-04-19

Authors@R: c(person("Tyler", "Rinker", email =<EMAIL_ADDRESS>role = c("aut", "cre")))

Maintainer: Tyler Rinker<EMAIL_ADDRESS>Depends: R (>= 3.1.0)

Suggests: testthat, qdapRegex (>= 0.2.0)

LazyData: TRUE

Description: An R framework for constructing human readable regular
expressions.  It aims to provide tools that enable the user to write
regular expressions in a way that is similar to the ways R code is written.
The tools allow the user to (1) write in smaller, modular, named, regular
expression chunks, (2) write top to bottom, rather than a single string (3)
comment individual chunks, (4) indent expressions to represent regular
expression groups, and (5) test the validity of the concatenated expression
and the modular chunks.

License: GPL-2

URL: http://trinker.github.com/regexr/

BugReports: http://github.com/trinker/regexr/issues

Packaged: 2014-12-22 22:15:09 UTC; Tyler

Author: Tyler Rinker [aut, cre]

NeedsCompilation: no

Repository: CRAN

Date/Publication: 2014-12-23 00:47:17

More information about regexr at CRAN

    Original post by CRANberries - check out CRANberries


text:
### Contents

This is a bare minimue build container includes:
* Visual Studio Build Tools 2017
* Three more components that are neccessary for ```msbuild /t:restore``` and ```msbuild /t:pack``` to run
* NuGet.exe

Path to msbuild.exe
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\bin\

repository: SachinBind/windows-container

repo_name: SachinBind/windows-container


text:
# Advanced Algorithms, Project 2 - Image Compression Using SVD and Dimensionality Reduction Using PCA #

#### Authors: ####
- Quanshu Lu
- Edwin Sarver
- Ying Wang

---

**NOTE:** All instructions assume this project is being used on a Linux-based system.

---

## Cloning ##
This project uses git submodules to get the Eigen library. be sure to clone with the submodules.
```bash
git clone --recurse-submodules <url-to-this-repo>
```

If you have already cloned the repos but haven't gotten the submodules, run:
```bash
git submodule init
git submodule update
```

## Building ##
**NOTE**: The google test library is pulled down during the first build
automatically. Be sure you are connected to the internet before your first build.

In a terminal within the project directory:

```bash
mkdir build # create a build folder in the project directory
cd build # navigate into that build folder
cmake .. # run cmake to generate makefiles
make -j4 # build using 4 concurrent threads (increase the number if desired)
```

---

## Running the Application ##

In a terminal within the project `build` directory after a build has been completed:

```bash
cd bin

# Convert the given ASCII PGM file to the binary counterpart.
# The binary file will be saved as <filename>_b.pgm
# This will remove any comments in the given ASCII PGM file.
# The input image is assumed to meet the P2 specification for PGM
# images.
./project_two 1 image.pgm

# Convert the given binary PGM file to an ASCII representation
# The ASCII file will be saved as <base_filename>_copy.pgm
./project_two 2 image_b.pgm #this will save to image_copy.pgm

# Using the PGM header information found in the first text-file,
# the matrices found in the second text-file, and the approximation
# rank given by 'k', produce a compressed, binary PGM file called
# image_b.pgm.SVD
./project_two 3 header.txt SVD.txt k

# Reverse what was done in part 3.
# This will output header.txt, SVD.txt, and image_k.pgm
# where 'k' is the rank of the approximation.
# image_k.pgm will be readable by any PGM viewer.
./project_two 4 image_b.pgm.SVD

# Get usage information
./project_two -h
```

---

## Running Unit Tests ##
The tests for this project are written using the google test framework.
There are a couple ways the run the unit tests for this project.

In a terminal within the `build` folder in the project directory after a build has been completed:

#### Option 1: `make test` ####

```bash
make test
```

#### Option 2: `ctest` ####

```bash
ctest # use '-V' option for more information.
```

#### Option 3: Run Test Binaries Individually ####

```bash
cd bin
./*-tests
```

---

**DETERMINE WHETHER THIS WILL STILL BE APPLICABLE**

## Running Benchmarks and Generating Plots

**NOTE**: Python and "pipenv" must be installed in order to successfully carry
          out the following instructions.

In a terminal within the project `build` directory, run:

```bash
make plots
```

repository: esarver/svd-pca

repo_name: esarver/svd-pca


text:
# Two-Sum

This problem was asked by Facebook.

## Description

You are given a list of numbers, and a target number k.

Return whether or not there are two numbers in the list that add up to k.

## Example

```
Given [4, 7, 1 , -3, 2] and k = 5, return "true" since 4 + 1 = 5.
```

repository: mauricioklein/algorithm-exercises

repo_name: mauricioklein/algorithm-exercises


text:
cloud-manager
=============
[![Build Status](https://travis-ci.org/Storj/cloud-manager.svg?branch=master)](https://travis-ci.org/Storj/cloud-manager)
[![Coverage Status](https://coveralls.io/repos/Storj/cloud-manager/badge.png?branch=master)](https://coveralls.io/r/Storj/cloud-manager?branch=master)

"cloud-manager" manages a pool of files uploaded to "the cloud".  It keeps a
cache of the files uploaded, while uploading them using `plowshare-wrapper`.

It works by registering all uploaded files in a database, along with links of
hosts to where it has been uploaded. If there's enough space available locally,
some files are kept in local storage (but also uploaded) to make retrieval
faster.

#### Installation

Go to [INSTALL.md](INSTALL.md) for instructions regarding installation.

#### Module usage

`cloudmanager` requires a database to function properly. A SQL schema is available
in [cloudmanager/schema.sql](cloudmanager/schema.sql). There is also a helper tool,
`cm_setup_db`, to load this schema:

    ./cm_setup_db db/production.sqlite3

After creating the database, the module is ready to be used. One must provide
three parameters:

- File database location (sqlite3)
- Storage location (where to store the cached files)
- Storage capacity (in bytes)

Here's a usage example:

    import cloudmanager

    cm = cloudmanager.CloudManager(
      "/path/to/database.sqlite3",   # Database of the stored files' information
      "/path/to/storage/",           # Cached files will be stored here
      20 * (2**30))                  # 20 GiB capacity

    cm.upload("/path/to/file")       # returns hash of the uploaded file, or False

    cm.warm_up("6f7bed7...121b2")    # Puts the corresponding file in cache
    cm.download("6f7bed7...121b2")   # Same as warm_up

    cm.exists("6f7bed7...121b2")     # returns true if the file exists on the database
    cm.on_cache("6f7bed7...121b2")   # returns true if the file is on cache

    cm.usage_ratio()                 # Returns the storage usage percentage

    cm.close()                       # cleans up everything.

#### Serialization format

`cloudmanager` supports data export/import, through `data_load` and
`data_dump`, so that you can synchronize multiple nodes. Each of the uploaded
files exports the following information:

- version (if the json format changes, this will change too)
- file name (basename)
- file size (bytes)
- file hash (SHA-256)
- datetime (Unix timestamp)
- uploads (list of hosts and URLs)

Here's an example:

    {
      version: "0.2",
      datetime: "1391212800",
      filename: "README.md",
      filesize: "23124",
      filehash: "6e163442e29ec8d7538bc86fe2c4a48778e8ae2254632f0889da753b1c357b1b",
      "uploads": [
        { "host_name": "mediafire",  "url":"http://www.mediafire.com/?qorncpzfe74s9" },
        { "host_name": "rapidshare", "url":"http://rapidshare.com/files/130403982" },
        { "host_name": "anonfiles",  "error":true }
      ]
    }

#### Documentation

    import cloudmanager
    help(cloudmanager.CloudManager)

#### Tests

Install development dependencies by running:

    pip install -e '.[develop]'

Then run:

    tox

This will run the test suite on Python 2.7.

repository: StorjOld/cloud-manager

repo_name: StorjOld/cloud-manager


text:
# HTTP Example

This is a simple example using [hyper] that demonstrates tracing http request
from client to server, and from the server back to the client using the
[W3C Trace Context Response] header. The example shows key aspects of tracing
such as:

- Root Span (on Client)
- Child Span from a Remote Parent (on Server)
- SpanContext Propagation (from Client to Server)
- SpanContext Propagation (from Server to Client)
- Span Events
- Span Attributes

[hyper]: https://hyper.rs/
[W3C Trace Context Response]: https://w3c.github.io/trace-context/#traceresponse-header

## Usage

```shell
# Run server
$ cargo run --bin http-server

# In another tab, run client
$ cargo run --bin http-client

# The spans should be visible in stdout in the order that they were exported.
```

repository: open-telemetry/opentelemetry-rust

gha_language: Rust

repo_name: open-telemetry/opentelemetry-rust


text:
# Guidelines for contributing to Janet

Thanks for taking time to contribute to Janet!

Please read this document before making contributions.

## Reporting bugs

* Check past and current issues to see if your problem has been run into before.
* If you can't find a past issue for your problem, or if the issues has been closed
  you should open a new issue. If there is a closed issue that is relevant, make
  sure to reference it.
* As with any project, include a comprehensive description of the problem and instructions
  on how to reproduce it. If it is a compiler or language bug, please try to include a minimal
  example. This means don't post all 200 lines of code from your project, but spend some time
  distilling the problem to just the relevant code.

## Contributing Changes

If you want to contribute some code to the project, please submit a pull request and
follow the below guidelines. Not all changes will be merged, and some pull requests
may require changes before being merged.

* Include a description of the changes.
* If there are changes to the compiler or the language, please include tests in the test folder.
  The test suites are not organized in any particular way now, so simply add your tests
  to one of the test suite files (test/suite0.janet, test/suite1.janet, etc.). You can
  run tests with `make test`. If you want to add a new test suite, simply add a file to
  the test folder and make sure it is run when`make test` is invoked.
* Be consistent with the style. For C this means follow the indentation and style in
  other files (files have MIT license at top, 4 spaces indentation, no trailing
  whitespace, cuddled brackets, etc.) Use `make format` to automatically format your C code with
  [astyle](http://astyle.sourceforge.net/astyle.html). You will probably need
  to install this, but it can be installed with most package managers.

  For janet code, use lisp indentation with 2 spaces. One can use janet.vim to
  do this indentation, or approximate as close as possible. There is a janet formatter
  in [spork](https://github.com/janet-lang/spork.git) that can be used to format code as well.

## C style

For changes to the VM and Core code, you will probably need to know C. Janet is programmed with
a subset of C99 that works with Microsoft Visual C++. This means most of C99 but with the following
omissions.

* No `restrict`
* Certain functions in the standard library are not always available

In practice, this means programming for both MSVC on one hand and everything else on the other.
The code must also build with emscripten, even if some features are not available, although
this is not a priority.

Code should compile warning free and run valgrind clean. I find that these two criteria are some
of the easiest ways to protect against a large number of bugs in an unsafe language like C. To check for
valgrind errors, run `make valtest` and check the output for undefined or flagged behavior.

### Formatting

Use [astyle](http://astyle.sourceforge.net/astyle.html) via `make format` to
ensure a consistent code style for C.

## Janet style

All janet code in the project should be formatted similar to the code in core.janet.
The auto formatting from janet.vim will work well.

## Typo Fixing and One-Line changes

Typo fixes are welcome, as are simple one line fixes. Do not open many separate pull requests for each
individual typo fix. This is incredibly annoying to deal with as someone needs to review each PR, run
CI, and merge. Instead, accumulate batches of typo fixes into a single PR. If there are objections to
specific changes, these can be addressed in the review process before the final merge, if the changes
are accepted.

Similarly, low effort and bad faith changes are annoying to developers and such issues may be closed
immediately without response.

## Contributions from Automated Tools

People making changes found or generated by automated tools MUST note this when opening an issue
or creating a pull request. This can help give context to developers if the change/issue is
confusing or nonsensical.

## Suggesting Changes

To suggest changes, open an issue on GitHub. Check GitHub for other issues
that may be related to your issue before opening a new suggestion. Suggestions
put forth without code will be considered, but not necessarily implemented in any
timely manner. In short, if you want extra functionality now, then build it.

* Include a good description of the problem that is being solved
* Include descriptions of potential solutions if you have some in mind.

repository: janet-lang/janet

gha_language: C

repo_name: janet-lang/janet


text:
# `grpc-rpf` : GRPC Reverse Port Forward

[![Build Status](https://github.com/chirino/grpc-rpf/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/chirino/grpc-rpf/actions/workflows/build.yml)

If you have a private service like a on premise database, that you need to make available in the cloud
you can use `grpc-rpf` to expose it in that network without having setup a VPN or poke holes in the firewall.

## Overview

`grpc-rpf` can run in one of three modes:

* `server` - accepts GRPC/HTTP2 connections from the `importer` or `exporter` clients. It can optionally also accept
  connections to services that are exported to the `server`.
* `exporter` - Run this on the private network that does not allow inbound connections to the services your trying to
  make available in the cloud. It can export multiple local services to the `server`. It just needs to be able to make a
  https connection the `server`
* `importer` - If the app that wants to connect to your private service is also in a different private network from
  the `server`, you can run the `importer` accept connections to services that are exported to the `server`. It just
  needs to be able to make a https connection the `server`

**Figure #1**

              Firewall
       Network A  |        |   Network B    |      |    Network C
                  |        |                |      |
    +----------+  |        |  +----------+  |      |   +----------+
    | exporter | ------:443-> |  server  | <-:443----- | importer |
    +----------+  |        |  +----------+  |      |   +----------+
          |       |        |       :8080    |      |       :8080
          v       |        |       ^        |      |       ^
          :8080   |        |       |        |      |       |
    +----------+  |        |  +----------+  |      |  +----------+
    | service  |  |        |  |   app-b  |  |      |  |   app-c  |
    +----------+  |        |  +----------+  |      |  +----------+

Figure #1 shows a possible network deployment scenario. Both `app-b` and `app-c` are using `grpc-rpf` to be able to
connect to the `service` in Network A. Both Network A and C are behind NAT routers and can't accept connections.

## Installing

Browse the [releases page](https://github.com/chirino/grpc-rpf/releases), extract the appropriate executable for your
platform, and install it to your `PATH`.

# Usage

## Command Line

```shell
$ grpc-rpf
GRPC Remote Port Forward

Usage:
  grpc-rpf [command]

Available Commands:
  exporter    Runs the reverse port forward client to export services to the server.
  help        Help about any command
  importer    Runs the reverse port forward client to import services from the server.
  server      Runs the reverse port forward server.
  version     Print version information for this executable

Flags:
      --dev-mode   run in development mode. increases output verbosity.
  -h, --help       help for grpc-rpf

Use "grpc-rpf [command] --help" for more information about a command.
```

## Running the Server in Kubernetes

Running the sever in Kubernetes makes it easy to get a highly available, scalable, and secure `server` implementation up
and running.

note: right now only the OpenShift flavor of Kubernetes is supported.

You can use Helm chart in the `./helm` directory to install the server on Kubernetes:

```
$ helm install grpc-rpf ./helm --set ingress.hostname=rpf.example.com
```

Make sure you set the `ingress.hostname` option to a DNS name that points your Kube cluster.

The helm chart will run multiple `server` processes in a replica set and creates multiple external routes to each
server. You should configure your `importer` and `exporter` clients to connect to the host name you configured
in `ingress.hostname`. A Kub load balancer will spread clients out over all the `server` processes. If an `importer`
process connects to a
`server` to connect to service it's not hosting, it will send the `importer` process a redirect with the host name of
a `server` process that is hosting that service.

## Service Access Control

You must specify which `importer` and `exporter` clients can access which services. This is currently done adding a
record to a PostgreSQL table. When the helm chart is installed, it will provide you information how you can connect to
that database and a service record.1

example:

```shell
$ export PGPASSWORD=$(kubectl get secret --namespace hchirino-code grpc-rpf-postgresql \
      -o jsonpath="{.data.postgresql-password}" | base64 --decode)
$ kubectl exec -it grpc-rpf-postgresql-0 -- bash -c "PGPASSWORD=${PGPASSWORD} \
      psql -U grpc-rpf -d grpc-rpf"
```

Then you can run the following SQL to add a service named "myapp" that allows exporters with a token of "token1" and
importers with a token of "token2" to use the service:

```
INSERT INTO services (id, allowed_to_listen, allowed_to_connect) VALUES ('myapp', '{"token1"}', '{"token2"}');
```

## Connecting the `importer` and `exporter` processes

The `importer` and `exporter` processes use GRPC and a TLS connection to the server. The helm chart for the `server`
creates a self-signed certificate. We therefore need to download the CA certificate that signed the cert. This allows
the clients to trust the certificate.

Using kubectl to download the CA certificate:

```shell
$ kubectl get secret  grpc-rpf -o jsonpath="{.data['ca\.crt']}" | base64 --decode > ca.crt
```

### The `importer`

Running the importer will bind ports for each `--import` option that you configure. In the following example we are
making the 'myapp' and 'other' service available for connections on ports 8181 and 8182.

```shell
$ grpc-rpf importer --access-token token2 --ca-file ca.crt --server rpf.example.com:443 \
    --import myapp=:8181 --import other=:8182
```

### The `exporter`

```shell
$ grpc-rpf exporter --access-token token1 --ca-file ca.crt --export myapp=coolapp.local:8080
```

## Development Info

### Installing From Source

Requires [Go 1.16+](https://golang.org/dl/). To fetch the latest sources and install into your system:

    go get -u github.com/chirino/grpc-rpf/cmd/grpc-rpf

### Building From Source

    git clone https://github.com/chirino/grpc-rpf
    cd grpc-rpf
    make

repository: chirino/grpc-rpf

repo_name: chirino/grpc-rpf


text:
# TodoReview
A SublimeText 3 plugin for reviewing todo (any other) comments within your code.

![ScreenShot](http://i.imgur.com/TjGKdEH.png)

**Check the issues for upcoming features**

This is a fork of [@robcowie's](https://github.com/robcowie) SublimeTodo. Unfortunately, it doesn't have ST3 support and he is unable to maintain it any longer. Additionally, this includes [@dnatag's](https://github.com/dnatag) ST3 fork, which allowed me to get everything fixed relatively quickly.

# Install

#### [Package Control](https://sublime.wbond.net/) (Recommended)
TodoReview is accessible on Package Control. If you do not have Package Control, follow these [instructions](https://sublime.wbond.net/installation) to install it, it's extremely useful. Once you have it installed, just bring up your command pallet, type in `Install Package` then, on the next prompt, `TodoReview` and you are set!

#### Git Clone
If you are forking this project, or for whatever reason do not want to use Package Control, you can install this package this old fashion way. First, figure out where your "Packages" directory is by going to "Preferences" -> "Browse Packages" - then just run git clone as normal.

# Usage
Simply open your Sublime Text 3 Command Pallet and find the `TodoReview: Project Files` command. This will generate your TODO List using all files that are currently in your project, except the ones which are excluded in your settings. If you would like to also include your open files within the search, you can use the `TodoReview: Project and Open Files` command; it's that easy! You can then use these results to jump to the corresponding result. Additionally, you can right click a file or folder in your sidebar and select TodoReview to limit your search.

## Navigating results
Once the list is generated, as a swift coder, you must naturally want to navigate it with your keyboard, right? Well you are in luck!

By pressing the `up` or `down` keys, you are able to swiftly navigate the results. If you are a VIM user, you can also use `j` and `k` respectably. You can also use `page up` or `page down` to skip 10 lines at a time. Once you have navigated to the result you want, simply press `enter` to open the result in a new tab, while going to the corresponding line. In the event you would like to clear your selection, you may do so by pressing `c`.

You can also use your mouse, just press `alt` and double click on the result you would like to examine.

## Priorities
New in 2.1.0, results are now fully indexed and sorted. You can now add something like `(0)` to anywhere in your todo's to assign a priority of `0`. This will work with any number up to 99. Todo's are then sorted with the lowest number first; all matches that don't have priorities will be assigned a priority of 100. Here is some example output:

```
+ -------------------------------------------------------- +
| TodoReview @ Monday 02/24/14 at 07:24PM                  |
| 12 files scanned                                         |
+ -------------------------------------------------------- +

## TODO (21)
1. testing.js:2 (0) Testing
2. testing.js:3 (1) Testing
3. another.js:1 Testing Again (2)
4. testing.js:4 (99) Testing
5. testing.js:5 No priority
```

## Color Scheme
You can tag tasks using something like `@tomorrow` or `@bug`. These are only example, anything following the `@` sign, before a space, will be highlighted accordingly. If you are like me, you also would like one more option, just in the event something really needs to stand out, perhaps a reference link, etc. You can also use `[Comment]` or `[Need To Test]` for another type of reference as needed. Unlike tags with the `@` sign, you can use spaces between brackets.

The way that these are colored depends on your color scheme. It's been a pain point of sublime text for quite some time that plugins are unable to influence the color scheme without some manual edits. I use and would recommend the [Tomorrow Night](https://github.com/theymaybecoders/sublime-tomorrow-theme) color scheme. However, if you are not, here are the corresponding colors these tags will be:

- **Titles** Same color as a *string*
- **Line Numbers** Same color as a *function*
- **Priority** same color as a *variable*
- **Bracket Tags** same color as a *class*
- **@ Tags** same color as a *keyword*

These may change in the future, but for now, this is the best way of to handle highlighting differences.

# Config
Global configuration can be set within the standard package settings menu, however, this plugin also offers project specific settings. To override your global settings on a project basis, edit your `.sublime-project` file accordingly, more information on settings below:

```javascript
{
    "folders": [],
    "settings": {
        "todoreview": {
            "exclude_folders": [
                "*.git"
            ]
        }
    }
}

```

## Adding comment patterns
You can use any RegExp pattern to search by, leaving a lot of room for customization. Each pattern will generate a different group in the results page. For a lean install, only `TODO` comes in the default config. Use the example below to add your own patterns for searching. For more information on regex, please visit [Regex 101](http://regex101.com) and try the default patterns out.

**It is important to note that at least one named group must be provided and will be used to group the comments in the results**

```javascript
"patterns": {
    "TODO": "TODO[\\s]*?:+(?P<todo>.*)$",
    "NOTE": "NOTE[\\s]*?:+(?P<note>.*)$",
    "FIXME": "FIX ?ME[\\s]*?:+(?P<fixme>.*)$",
    "CHANGED": "CHANGED[\\s]*?:+(?P<changed>.*)$"
}
```

## Excluding files and folders
Obviously, some files or folders might need to be excluded from your search. An example would be your `.git` folder, which has tons of files that will take time to search, with results you most likely will not want.

To exclude directories, add the directory name to `exclude_folders`. This is a glob field, so make sure to add wildcards where needed. A preset for your `.git` folder has already been added for you. An example of this:

```javascript
"exclude_folders": [
    "*.git*",
    "*node_modules*"
]
```

Additionally, if you would like to exclude individual files, you can base the exclusion on name or glob pattern through `exclude files`. Example of this:

```javascript
"exclude_files": [
    "*.md",
    "dontsearch.txt"
]
```

## Include Directories
Though it may be unnecessary for most, I've also included a setting to override the default path, allowing for only specific folders to be searched. This is NOT a glob setting, rather absolute paths to the folders you would like searched, possibly even outside of your project. Please note, this setting is overridden by a `paths` argument being passed to the command; for example, the sidebar shortcut will still operate as normal, independent of this setting. Example of this:

```javascript
"include_paths": [
    "~/currentproject/folder",
    "~/Users/Jonathan/anotherfolder"
]
```

## Case Sensitive
By default, searching is not case sensitive. If you would like it to force case, you can add the following to your config. This defaults to `false`.

```javascript
"case_sensitive": true
```

## Include folders in results
If you have a large project with repeating file names, it is sometimes useful to also have the file's folder displayed in the results. This would turn the result `index.js:1` to `lib/index.js:1`. Results are sorted alphabetically to group folders and files together. Please note that results are sorted by priority first. This defaults to `false`.

```javascript
"render_include_folder": true
```

## Align results
If you have OCD and like things to be nicely aligned, I've included a spaces option just for you. You can set the number of spaces you would like between the line start and notes. If you usually have large filenames, it will require more spaces for your notes to be aligned and vice versa. This defaults to `1`.

```javascript
"render_spaces": 10
```

## Custom Skip Lines
If you would like to skip more (or less) than 10 lines at a time when using `page up` or `page down`, we have a setting for you! These defaults to `10`.

```javascript
"navigation_forward_skip": 10,
"navigation_backward_skip": 10
```

## Keyboard Shortcuts And Other Actions
I didn't provide a standard key bind with TodoReview due to the high likelyhood of confliction with other plugins. If you would like a shortcut, you can add the following snippit to your ST3 User Key Bindings (under the preference menu). In addition to keybinds, you can create custom sidebar, pallet, mouse, etc. commands using this same syntax; for more information, check out the SublimeText documentation. You can play around with the arguments that you would like, it currently accepts `paths`, `open_files` and `open_files_only`.

```javascript
{
	"keys": [ "ctrl+shift+t" ],
	"command": "todo_review",
	"args": { "paths": [], "open_files": true }
},
```

# License

The MIT License (MIT)

Copyright (c) 2014 Jonathan Delgado

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: SvenSeemann/dotfiles

repo_name: SvenSeemann/dotfiles


text:
![Build status](https://pagoru.visualstudio.com/redux-middleware/_apis/build/status/redux-middleware-CI)
# @pagoru/redux-middleware
Simple redux middleware library, to create your own middleware.

## Usage
```js
import { createStore } from 'redux'
import { middleware, middlewareHandler } from 'redux-middleware'

// Create as many you need.
middlewareHandler(
    (action, getState) => {
	    // you can modify your action here
		console.log('will', action, getState());
		return action;
  }, (action, getState) => {
        console.log('did', action, getState());
  }
);

const initialStore = {}
// Add the middleware to the createStore.
const store = createStore(rootReducer, initialStore, applyMiddleware(middleware));

```

repository: pagoru/redux-middleware

gha_language: TypeScript

repo_name: pagoru/redux-middleware


text:
# CoreInfra

This project is the "Hello World" of the sample projects.  It shows
the basics of how to create a resource group, App Insights, and Log
Analytics.

The outputs of this sample will be used in other demos to lay down the core infrastructure that the terrafrom-azurerm modules need as
input variables.

This demo doesn't setup remote state as that would vary to personal
preferences.

Usage is typical 'terraform init' , 'terraform plan' , terraform apply.

If you get an error about not finding modules in terraform-azurerm
repo, please check directory /submodules/terraform-azurerm.

gha_language: HCL


text:
# Archive
I had a need to selectively move old files from one volume to another while maintaining the directory structure. The script needed to run in the shell on our Synology NAS. I didn't find anything off the shelf which exactly fit what we needed, so I whipped this up. The files are moved based on last access time, not creation time.

The only dependency is a recent (2.7.x) version of Python.

The script is invoked like so:

archive.py -a90 -s/foo/bar -d/zoo/bar -t6

This will move all files/folders in the /foo/bar directory tree to the /zoo/bar tree which have not been accessed in the last 90 days. There will be 6 threads created to handle the copying tasks.

The archive_test.py script creates a directory structure of files and folders and then runs archive.py to validate proper operation.

repository: peterloron/archive

repo_name: peterloron/archive


text:
# TravelBrite Reviews Microservice
Worked on existing code base to scale their database structure to be able to query at avg 1.6ms reads per second. This is one microservice server meant to work in conjunction with other microservices in a proxy server. Proxy server found here: github.com/jqywang/TravelBrite-proxy-server

TravelBrite Tech Stack:
  * Express.js
  * React.js
  * MongoDB
  * Webpack
  * New Relic
  * Redis
  * Artillery.io
  * PostgreSQL (for comparison)

### Installing
Have a node version greater than v7.6.0

```
node -v
```
install dependancies

```
npm install
```
seed database (depending on system could take up to 20 minutes)
```
node ./database/seedMongo.js
```
run tests
```
npm test
```
start server
```
npm start
```

## Authors

 **Jeffrey Wang**

## License

This project is licensed under the MIT License

repository: jqywang/TravelBrite-review-component

repo_name: jqywang/TravelBrite-review-component


text:
Aplicativo para encomenda e venda de comidas, desfrute do maior e do melhor serviço de comida do país, o Amalex Food!

	🚧  Under development🚀...  🚧

## :card_index: Layout

## :construction_worker: Installation

You will need to install

- [Node.js](https://nodejs.org)
- [Yarn](https://yarnpkg.com/)

## Running the Project

```bash
$ git clone https://github.com/jmamadeu/foodie.git # Clone this repository to your machine
$ cd foodie # Enter to the project folder
$ yarn # Install all dependencies
$ yarn dev # Running the project
```

:tada: Congratulations, the project is running.

## :bulb: Contributing

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

Please make sure to update tests as appropriate.

## :bookmark: License

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

repository: jmamadeu/foodie

repo_name: jmamadeu/foodie


text:
# connect_facebook

Facebook session support for [Connect](http://senchalabs.github.com/connect/).

*connect\_facebook* enables you to build web sites that use [Facebook authentication](https://developers.facebook.com/docs/reference/javascript/FB.login/) both on the front-end (HTML/JS) and the back-end (server-side), allowing for a smooth user experience.

This middleware reads and cryptographically verifies the session, making it accessible from `req.fb_session` -- an object if authorized and valid, otherwise the request has no valid Facebook user session. The `req.fb_session` object is the same as returned by the client-side `FB.getLoginStatus`, `auth.sessionChange` event, etc.

## Example

server.mv

    import connect, connect_facebook
    connect()
      .use(connect_facebook('YOUR_FACEBOOK_APP_ID', 'YOUR_FACEBOOK_APP_SECRET'))
      .use(^(req, res, next) {
        res.end(req.fb_session ? 'Logged in' : 'Not logged in')
      })
      .listen 3000

See `example/` for a complete demo including client-side code.

## MIT license

Copyright (c) 2011 Rasmus Andersson <http://rsms.me/>

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.