text:
# Chunking
*It takes years of focused reps to chunk like an expert.*

Something tells me Tom Brady and Cam Newton see different things. Cam Newton might be 11 defenders. Something tells me Tom Brady sees larger movements and patterns in the defense that he can't even articulate—but he sees them and makes the right read.

That's how chunking intersects with expertise, intuition, and [[Deliberate Practice]]. Speaking more to [[K. Anders Ericsson]]'s work with chess masters, Ericsson noticed that chess masters retrieved knowledge from long term memory around meaningful game patterns that novices did not see or understand. It takes years of focused reps to chunk like an expert.

In [[Douglas R. Hofstadter]]'s speech [[2009 🗣 Analogy as Core - Hofstadter]], he says (paraphrased):
> ![[2009 🗣 Analogy as Core - Hofstadter#^ffe150]]

### George A. Miller
George A. Miller, one of the top scientists of the 20th century, in his classic 1956 paper, "[[The Magical Number Seven, Plus or Minus Two]]," coined the terms "working memory" and "chunking."  He discovered that the number of digits people could hold in mind before their memory overloaded was remarkably consistent across all people.  So pervasive was this number that his famous article opened with, “My problem is that I’ve been persecuted by an integer.”
https://www.parentcorticalmass.com/2013/09/what-is-chunking.html

### Wiki
"In cognitive psychology, chunking is a process by which individual pieces of an information set are broken down and then grouped together in a meaningful whole.

The chunks by which the information is grouped is meant to improve short-term retention of the material, thus bypassing the limited capacity of working memory."

repository: JuliadeBerga/obsidian

path: /LYT Kit/Umami/Chunking.md

repo_name: JuliadeBerga/obsidian


text:
# Orpheus-Node
Orpheus runs on a blockchain that is cached onto a [Firestore Database](https://console.firebase.google.com/u/0/project/iohk-orpheus/database/firestore/data~2Fblocks~2F1625362). This allows front end clients to query the data using the [firebase client](https://www.npmjs.com/package/firebase)

## Getting started

### Deploy
Deploy to Firestore - TODO

Deploy to Firestore - TODO

## Web api
All the block data can be queried using firebase, but there are a few other queries that return time based data

### `getValueTimeSeries(from, to = Date.now())` - TODO
Returns the block values as Numbers over a time interval

### `getFeesTimeSeries(from, to = Date.now())` - TODO
Returns the block fees as Numbers over a time interval

## Server api
To maintain an up to date cache of the blocks, there are couple of methods

### `populate`
This is a node function that populates the database with all the block from the current block to the first block.
*This is a super long process. It takes days to populate the BTC blockchain*
`npm run populate`

### `checkForNewBlocks`
This is a HTTP Cloud function that checks for any new blocks since the last one in the database and adds them to Firestore

## Data

### Block

```javascript
{
  hash: Number,
  height: Number,
  time: Date | String,
  numTransactions: Number,
  value: Number,
  fee: Number,
  previous: Number
}
```

### Transaction

```javascript
{
  block: Number,
  hash: Number,
  time: Date | String,
  value: Number,
  fee: Number
}
```

repository: input-output-hk/symphony

branch_name: refs/heads/master

extension: md

gha_language: JavaScript

license_type: permissive

repo_name: input-output-hk/symphony


text:
---
title: Featurepreneur’s Workshop Add-ons!
date: 2021-07-25
tags:
  - Learning Analytics
  - Zoom Meeting
  - Workshop
author: FPR
featuredimg: 'https://miro.medium.com/max/1400/1*hXtmcyIsPnlBia_rbiV8tw.jpeg'
summary: How to make long virtual sessions interesting
---

Making long virtual sessions interesting is hard. But in @featurepreneur, we bring in interactive gaming sessions to make people more involved throughout the session.

We have some really cool add-ons to any meeting. Let’s have a look!

**1. ReadingBreak**

Here, an HBR article is shared and the candidates are given 5 minutes to read and understand. As time ends, they will be asked to discuss their opinions.
Generally, it helps you to improve your communication skills. You will also learn to put forward your opinions to a group of people.

**2. Error Scenarios**

Here, you are provided with errors and are asked to find the cause of the error.
It is so common that we come across errors while coding. But, the more errors you solve, the more confident you become.

**3. Random Research Scenario**

The participants are provided with a random word or phrase (eg. Dunning Kruger effect) and are asked to google the word and bring a related definition about the word.

**4. Random Tool Research**

This is similar to the previous one except that the name of a tool (eg. GraphQL) will be given to research and discuss with the mentors.

![Graph](https://miro.medium.com/max/700/1*tWwS_KrTXtmMadzkKiz1Lg.jpeg)

**5. American-Canadian Phrases**

Here, an American/Canadian phrase will be given. The one that comes up with exact meaning and usage wins points for the round. This helps them to learn and also understand new phrases.

**6. American TV Show Discussion**

This is all about watching a TV show episode and discussing the part which interests them the most.
It’s not only entertaining but also, helps one to learn communication and GD skills.

**7. Get to know one City (American/Canadian)**

Here, you will be given the name of any city, for which participants come up with some interesting facts about the city. This helps one to know different places and cultures.
Learn with fun! @featurepreneur

license: MIT

repository: featurepreneur/articles

gha_language: Vue

gha_license_id: MIT

repo_name: featurepreneur/articles


text:
# document.body Shadow DOM polyfills

This polyfill contains all the patched methods for document.body to work with our Synthetic Shadow.

-   Patched methods will only return root node(s) from the LWC trees.
-   Polyfill works correctly in both Synthetic and Native Shadow Dom modes
-   Methods patched:
    -   `HTMLBodyElement.prototype.querySelector`
    -   `HTMLBodyElement.prototype.querySelectorAll`
    -   `HTMLBodyElement.prototype.getElementsByClassName`
    -   `HTMLBodyElement.prototype.getElementsByTagName`
    -   `HTMLBodyElement.prototype.getElementsByTagNameNS`

repository: oguzalp/lwc

repo_name: oguzalp/lwc


text:
---
title: yTimer2
author: PipisCrew
date: 2012-02-13
categories: []
toc: true
---

Lets you run an unlimited number of countdown timers, with a popup message and an optional audio alert when the countdown reaches zero. You can also choose to run a program or open a URL in your default browser when the timer goes off

[![](https://www.pipiscrew.com/wp-content/uploads/2011/12/yTimer2.png "yTimer2")](https://www.pipiscrew.com/wp-content/uploads/2011/12/yTimer2.png)

homepage - [http://www.spacejock.com/yTimer2.html](http://www.spacejock.com/yTimer2.html)

origin - http://www.pipiscrew.com/?p=155 ytimer2


text:
# cordova-plugin-sim-alwaysmkt

[Link to Developer](https://github.com/zyhzx123e/)

A fork of cordova-plugin-sim

This is a cordova plugin to get data from the SIM card like the carrier name, mcc, mnc and country code and other system dependent additional info.

## Installation

```
cordova plugin add cordova-plugin-sim-alwaysmkt
```

branch_name: refs/heads/main


text:
# logger

`logger` is a simple RESTful API that will reflect and log whatever is sent to it, even garbage. It is intentionally not safe for production use.

## Design

I needed a service that could accept any payload at any route and display it in some way. Sometimes appliances or even internal tools don't provide samples of JSON request/response bodies and it's quicker to configure the tool to point to something that can dump it to `stdout` than it is to debug custom client code.

`logger` is just a simple, single-file python `flask` service that runs inside of a `docker` container.

## Status

It's useful from time to time and doesn't require much maintenance, especially thanks to `docker` creating a reproducible environment.


text:
audiosync
=========
Tool to sync audio and video automatically using a sync pattern which also contains scene, shot, take.
You can generate these patterns with this [app for android](https://github.com/antonxy/audiosync_androidapp).
This tool is only a quick hack for now and I only tested it on Linux.

**[demo video](http://www.youtube.com/watch?v=vqRL_LsXrd8)**

It depends on:
- Python
- numpy
- ffmpeg

It finds the sync points in the audio of all files (Camera needs some mic too), renames the files to scene-shot-take and generates EDL files for Lightworks (might work with other editors too)

You can run it like this:
`python console.py dir-with-all-video-files/ dir-with-all-audio-files/ edl-output-dir/ project_frames_per_second`
or use the GUI: `python gui.py`

repository: antonxy/audiosync

repo_name: antonxy/audiosync


text:
### [CVE-2022-25521](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25521)
![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen)

### Description

NUUO v03.11.00 was discovered to contain access control issue.

### POC

#### Reference
- https://medium.com/@dnyaneshgawande111/use-of-default-credentials-to-unauthorised-remote-access-of-internal-panel-of-network-video-5490d107fa0

#### Github
No PoCs found on GitHub currently.

repository: trickest/cve

gha_language: HTML

repo_name: trickest/cve


text:
# UNK2VEC

## Warning

Not working yet

## Background

Word2vec is a popular way to do word embeddings. Usually the unknown tokens in corpus won't make too much trouble. This
is especially true when you use large Word2vec such as Glove. However in some tasks the unknown tokens sometimes play a
big role. Such as in factoid question answering tasks, unknown tokens are usually included in the answer.

## Intuition

Studies show that most of unknown tokens are numbers (such as `32.21756368%`), time (such as `1081bc`), name entities
(include account names, domain names, emails) and typos. The first three are easy for human to recognize because they
follow some patterns. The idea in here is to use charactor n-grams as features to predict the vector of unknown tokens.

Also for words with lower frequencies (such as typos), the vector from Word2vec might not be precise. I'm hoping that
this project can also be used to adjust those values for lower frequency words.

## Implementation

I'm planning to use existing big Word2vec as data-set and start with relatively simple Neural Network. Considering the
accuracy for the vector of lower frequency words might not precise, the test set will contain the words with all
frequencies.


text:
---
contact<EMAIL_ADDRESS>date: 2022-03-07T07:00:00Z
title: Freelance Product Designer
office: 'Diamond Bar'
featuredImage: '/images/infra-week/team-in-diamond-bar.jpg'
remote: true
published: false
---

## About This Position

Providing design services to our customers by applying design best practices is a high priority for our business. We’re looking for a senior designer with agency experience that can serve our customers and partners. While you'll be leading your own project as a freelancer, you'll have opportunities to connect with other designers at Liferay! We have a global design division with teams in Europe, Latin America, Asia Pacific, and North America.

You’ll be working with our consulting teams, interfacing directly with prospects and customers in their discovery phase or along the complete software development lifecycle.

Sometimes you’ll work independently, guiding stakeholders along the entire design process from research and strategy to implementation, iterating along the way. Other times you'll work collaboratively with other designers to deliver the entire experience for customer projects.

Recent enterprise solutions this role has delivered for were customer and insurance agent portals, an employee intranet for a healthcare org, and a multi-site e-commerce solution for a major manufacturer.

## Who Are We Looking For?

### The top 3 things we’re looking for in a candidate:

1. **Experience facilitating design thinking workshops**

    User centered design is not only what we practice, but we are advisors to stakeholders and cross-functional team members on how to approach business and user problems with design thinking.

2. **Communication skills**

    Arguably one of the most important skills a designer can have — communication is both clearly articulating your design rationale while synthesizing stakeholders' input to achieve alignment and define the path forward.

3. **Leading projects end to end**

    Design Leads on projects need to be [T-shaped designers](https://chiefexecutive.net/ideo-ceo-tim-brown-t-shaped-stars-the-backbone-of-ideoaes-collaborative-culture__trashed/) that can deliver every step of the way from the discovery phase through designing mockups for implementation and development handoff to bring products to life.

### Other Qualifications

-   3+ years experience delivering end to end designs for products and not just sites
    -   Agency experience working with clients to manage expectations is ideal
-   Problem solving skills to translate complex business processes into streamlined user experiences
-   Owned or worked within design systems that you regularly contributed to and helped evolve
-   Experience leading a visual design direction for a new or redesigned product that accounts for accessibility requirements
-   Figma skills and experience for mockups, prototyping, components, design system, and Auto Layout.
-   Flexibility to work on projects based in either Pacific Standard Time or Eastern Standard Time
-   Availability to work on projects & engagements as short as 3 weeks or as long as 3-6 months.

## What will you be doing?

-   Lead various projects and engagements - ranging from discovery workshops, producing design concepts, to fully developed enterprise products
-   Collaborate with other designers as well as cross-functionally as a design consultant to our internal team of project managers and engineers and especially clients who often have no prior knowledge of design & UX.
-   Utilize and contribute robust patterns to our Figma component library

## What Can We Offer You?

-   Compensation based on an hourly rate commensurate with qualifications and experience.
-   Semi-flexible hours - there will be regular meetings with the client and team syncs, however there's flexibility of work hours outside of agreed meeting times.

## What Do I Need to Apply?

-   Tell us why you’re a fit for this freelance role
-   Resume or LinkedIn Profile
-   Portfolio link

We're transparent in how we hire, feel free to read through [our hiring process](https://liferay.design/articles/2021/how-we-hire/) — while this role is for a freelance position, the steps to bring you onboard will generally be the same.

## _Liferay is an Equal Opportunity Employer_

_Liferay is committed to the equal treatment of all candidates, customers and employees and fostering a culture of dignity at work. Our operating procedure provides for equal opportunities in recruitment and employment with the aim to eliminate discrimination against any job applicant or employee on the basis of race, age, sexual orientation, gender or gender reassignment, religion or beliefs, marital or civil partnerships status, family or dependency status, disability, pregnancy and maternity or membership of a traveling community._


text:
### [CVE-2007-5156](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-5156)
![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen)

### Description

Incomplete blacklist vulnerability in editor/filemanager/upload/php/upload.php in FCKeditor, as used in SiteX CMS 0.7.3.beta, La-Nai CMS, Syntax CMS, Cardinal Cms, and probably other products, allows remote attackers to upload and execute arbitrary PHP code via a file whose name contains ".php." and has an unknown extension, which is recognized as a .php file by the Apache HTTP server, a different vulnerability than CVE-2006-0658 and CVE-2006-2529.

### POC

#### Reference
- http://securityreason.com/securityalert/3182
- http://www.securityfocus.com/archive/1/480830/100/0/threaded
- http://www.waraxe.us/advisory-57.html
- https://www.exploit-db.com/exploits/5618
- https://www.exploit-db.com/exploits/5688

#### Github
No PoCs found on GitHub currently.


text:
---
layout: single
title: "baby back ribs"
permalink: /recipes/ribs/
author_profile: true
categories:
  - recipes
  - food
tags:
  - recipes
  - food
feature_row:
  - url: "/nom/"
    btn_class: "btn--primary"
    btn_label: "back to recipes"
---

Ribs have always been a staple of any good cookout. For Texans in particular, the ability to produce a mouth-watering rack of pork ribs is a mark of pride for many. Typical recipes will start with a dry rub or simply barbeque sauce; the ribs are then wrapped in foil and baked in the oven until they are tender. We follow a similar idea in this recipe, although the flavors are more reminiscent of Taiwanese-style 三杯鷄 (i.e. tending more on the sweet side, with spicy heat present, but taking a back seat), and the foil packet is almost like simmering the meat in its own little chamber. Many thanks to mama Tu for teaching me how to make these ribs way back!

As a side note, almost everything in this recipe is amenable to experimentation, and the measurements are more rough suggestions than anything else. The only important steps, as far as I've discovered, are to use plenty of brown sugar in the dry rub, and to crimp the foil tightly. For example, try it with apple vinegar in the liquid marinade, or basil and thai chilis in the dry rub. You can also finish the ribs with the foil opened or on the grill, if you prefer a bit more crust on the ribs.

This recipe is for one rack of ribs, although you'll likely have leftover spice rub and marinade.

## Ingredients

* 1 rack of pork ribs

### Dry rub
* 1 cup brown sugar
* 1 tbsp pepper flakes
* 2 tsp paprika
* 2 tsp cinnamon
* a pinch of salt

### Liquid marinade
* 1/2 cup soy sauce
* 2-3 tbsp sesame oil
* 3-4 tbsp shaoxin wine
* 1-2 tbsp mirin

## Directions

1. Preheat the oven to 375° F, although you can do this after the dry rub.
2. Pat dry the pork ribs.
3. Mix the dry rub in a bowl, and rub generously into all sides of the ribs; let the ribs sit for 1-2 hours. (you can go longer, but then you should cover and cure in the fridge.)
4. Prepare to wrap the ribs in foil. I like to make little boats by crimping the edges (see pictures below) to hold liquid in, and wrap foil around the entire contraption afterwards.
5. Mix the liquid marinade, and spoon some into each boat (~15 tbsp). I tend to cut racks in half to fit in the oven, with ~7-8 spoonfuls of sauce into each boat.
6. (optional) I'll often sprinkle the remaining dry rub over the ribs, and drizzle some honey on top.
7. Wrap foil tightly, making sure to crimp/seal the packet.
8. Bake at 375° F for approximately 2 hours.
9. Let rest 10-15 minutes. Unwrap, slice ribs apart, and eat away!

## Picture references

This time, I got a pack of ribs from Costco, which turned out to actually contain three full racks.
![pork ribs]({{ site.url }}{{ site.baseurl }}/images/recipes/ribs_1.jpg)

After patting them dry, I mixed up some dry rub and worked it into the meat. I ran out partway through, and had to make some more.

![dry rub!]({{ site.url }}{{ site.baseurl }}/images/recipes/ribs_2.jpg)

![]({{ site.url }}{{ site.baseurl }}/images/recipes/ribs_3.jpg)

After letting the dry rub sit for a few hours, I cut the racks in half and crimped little boats of aluminum foil around each half-rack. I spooned about 7-8 spoonfuls of liquid marinade into each boat. If you add too little liquid, it'll evaporate completely, leading to stickier ribs, as opposed to tender, 'clean' ribs. They both taste good, but its up to preference!

![]({{ site.url }}{{ site.baseurl }}/images/recipes/ribs_5.jpg)

![]({{ site.url }}{{ site.baseurl }}/images/recipes/ribs_6.jpg)

I then completely wrapped the ribs in tight packets, and got them into the oven. Since I ended up with more ribs than I had expected, one pan went in the lower rack. This one was a hotter zone, and came close to sauce reduction mentioned above.

![]({{ site.url }}{{ site.baseurl }}/images/recipes/ribs_7.jpg)

![]({{ site.url }}{{ site.baseurl }}/images/recipes/ribs_8.jpg)

After resting for a while, unwrap and devour!
![]({{ site.url }}{{ site.baseurl }}/images/recipes/ribs_9.jpg)

![]({{ site.url }}{{ site.baseurl }}/images/recipes/ribs2.jpg)

{% include feature_row %}


text:
# Usage

There are basically two ways to call the autocomplete on the input field

-	**With Javascript**
````html
<!-- settings are in js -->
<input type="text" id="with-js" />
<!-- called via js but settings in data object -->
<input type="text" id="with-default-js" data-sift-data="true" />
<script>
	var settings = {};
	$('input.with-js').autocomplete(settings);
	$('input.with-default-js').autocomplete();
</script>
````
-	**Without Javascript**
````html
<!-- default settings -->
<input type="text" data-jq-autocomplete />
<!-- custom settings in object -->
<input type="text" data-jq-autocomplete="{sift_data:true}" />
<!-- custom settings with data object -->
<input type="text" data-jq-autocomplete data-sift-data="true" />
````

# Settings

Key|Default|Description
---|-------|-----------
afterListing|function|function to call after data is loaded. Parameters are `ul` and data array where the `this` object is the input element.
beforeListing|function|Function to call before data is loaded. Parameters are `ul`, and data array where the `this` object is the input element
data|empty array|Array of data to autocomplete from
data_key|empty string|Key in the response object containing the data array
delay|300|Time in millisecond before autocomplete kicks in
list|function|Function to load each received data. Parameters are `li` and the data for the row where the `this` object is the input element.
method|get|Request method for ajax request. Url must be set
min_chars|3|Minimum characters before autocomplete kicks in
request_data|`{}`|Data to send with the request. Useful especially if method is `POST`
sift_data|`false`|Set to `true` if to check data against input string
url|empty string|Path from which to access the data
ul_class|empty string|The class to add to the ul of the displayed list

# Demo
Check the contained demo.html

repository: ezra-obiwale/JQuery-Autocomplete

repo_name: ezra-obiwale/JQuery-Autocomplete


text:
# Element-distinctness-by-quantum-walk-algorithm implemented by IBM Q Experience in April 2017
Duke University ECE523 Quantum Information Science instructed by Prof. Jungsang Kim at Duke University in Spring 2017.
Final Project authored by Yuqi Yun and Ming-Tso Wei

Element distinctness problem is determining whether all the elements in a set with N elements are
all distinct. In other words, the goal is to find a subset with two or more equal elements. Generally,
a set may have two or more subsets with different numbers of equal elements. The case of only
one subset of k equal elements is called element k-distinctness. For simplicity, we only consider the
special case of a single subset with two equal elements (k = 2).

Classically, element distinctness can be solved by sorting with
 queries. Burhman et al. [3]
first shows a quantum algorithm with  queries. Aaronson and Shi [1] also mathematically
prove that the quantum lower bound of element distinctness is . In this report, we are
focusing on the quantum walk algorithm for element distinctness proposed by Aaronson [2], which
only takes  queries.

For more information, see ECE523 Final Project Report.pdf and the slides

References:

[1] S. Aaronson and Y. Shi, "Quantum lower bounds for the collision and the element distinctness
problems", J. ACM 51, 595-605 (2004).

[2] A. Ambainis, "Quantum walks and their algorithmic applications", Int. J. Quantum Inf. 01, 507-
518 (2003).

[3] H. Buhrman, C. Dürr, M. Heiligman, P. Høyer, F. Magniez, M. Santha, and R. de Wolf, "Quantum
algorithms for element distinctness", SIAM J. Comput. 34, 1324-1330 (2005).

[4] M. Nielsen and I. Chuang, "Quantum computation and quantum information", 10th Anniversity
Edition (Cambridge University Press, 2010).


text:
# Examples

## Example 1: Create, Save, and Retrieve Data

```julia
using Pkg

Pkg.activate(".")

try
    using Accounts
catch e
    Pkg.add(url="https://github.com/rbontekoe/Accounts.jl")
    using Accounts
end

const FILE_ACCOUNTS = "./test_accounts.txt"

donald_email = create(EMAIL<EMAIL_ADDRESS>
donald_work = create(WORK,
  """
  Donalds Hardware Store
  attn. Donald Duck
  1190 Seven Seas Dr
  FL 32830 Lake Buena Vista
  USA
  """
)

addresses = [donald_email, donald_work]

donald = create("Donald Duck", addresses)

add_to_file(FILE_ACCOUNTS, [donald])

result = read_from_file(FILE_ACCOUNTS)

println(result[1].name)

println(result[1].addresses[1].address)

rm(FILE_ACCOUNTS) # Remove the file
```

## Example 2: Currying and Piping

```julia
using Accounts, DataFrames

const FILE_ACCOUNTS = "./test_accounts.txt"

# declare Currying, see: https://riptutorial.com/julia-lang/example/20261/implementing-currying

curry(f, x) = (xs...) -> f(x, xs...)

add = curry(add_to_file, FILE_ACCOUNTS)

read = curry(read_from_file, FILE_ACCOUNTS)

# end Currying

email = create(EMAIL<EMAIL_ADDRESS>
donald = create("Donald Duck", [email])

# using Currying

[donald] |> add # How to use it

r = read() |> DataFrame

println(r)

# Remove data file

cmd = `rm $FILE_ACCOUNTS` # linux remove file statement

run(cmd) # remove the file
```

gha_language: Julia


text:
[@bjerkio/crayon-api](../README.md) / [Exports](../modules.md) / Agreement

# Interface: Agreement

**`export`**

**`interface`** Agreement

## Table of contents

### Properties

- [agreementType](Agreement.md#agreementtype)
- [commitmentLevel](Agreement.md#commitmentlevel)
- [consumerId](Agreement.md#consumerid)
- [customerNumber](Agreement.md#customernumber)
- [disabled](Agreement.md#disabled)
- [endDate](Agreement.md#enddate)
- [hasTerms](Agreement.md#hasterms)
- [id](Agreement.md#id)
- [masterAgreement](Agreement.md#masteragreement)
- [name](Agreement.md#name)
- [number](Agreement.md#number)
- [organization](Agreement.md#organization)
- [parentAgreementId](Agreement.md#parentagreementid)
- [program](Agreement.md#program)
- [publisher](Agreement.md#publisher)
- [salesPriceCurrencyCode](Agreement.md#salespricecurrencycode)
- [startDate](Agreement.md#startdate)

## Properties

### agreementType

• `Optional` **agreementType**: [`AgreementType`](../enums/AgreementType.md)

**`memberof`** Agreement

#### Defined in

[src/models/Agreement.ts:116](https://github.com/bjerkio/crayon-api-js/blob/22cd66d/src/models/Agreement.ts#L116)

___

### commitmentLevel

• `Optional` **commitmentLevel**: `number`

**`memberof`** Agreement

#### Defined in

[src/models/Agreement.ts:128](https://github.com/bjerkio/crayon-api-js/blob/22cd66d/src/models/Agreement.ts#L128)

___

### consumerId

• `Optional` **consumerId**: `number`

**`memberof`** Agreement

#### Defined in

[src/models/Agreement.ts:134](https://github.com/bjerkio/crayon-api-js/blob/22cd66d/src/models/Agreement.ts#L134)

___

### customerNumber

• `Optional` **customerNumber**: `string`

**`memberof`** Agreement

#### Defined in

[src/models/Agreement.ts:98](https://github.com/bjerkio/crayon-api-js/blob/22cd66d/src/models/Agreement.ts#L98)

___

### disabled

• `Optional` **disabled**: `boolean`

**`memberof`** Agreement

#### Defined in

[src/models/Agreement.ts:74](https://github.com/bjerkio/crayon-api-js/blob/22cd66d/src/models/Agreement.ts#L74)

___

### endDate

• `Optional` **endDate**: `Date`

**`memberof`** Agreement

#### Defined in

[src/models/Agreement.ts:68](https://github.com/bjerkio/crayon-api-js/blob/22cd66d/src/models/Agreement.ts#L68)

___

### hasTerms

• `Optional` **hasTerms**: `boolean`

**`memberof`** Agreement

#### Defined in

[src/models/Agreement.ts:110](https://github.com/bjerkio/crayon-api-js/blob/22cd66d/src/models/Agreement.ts#L110)

___

### id

• `Optional` **id**: `number`

**`memberof`** Agreement

#### Defined in

[src/models/Agreement.ts:38](https://github.com/bjerkio/crayon-api-js/blob/22cd66d/src/models/Agreement.ts#L38)

___

### masterAgreement

• `Optional` **masterAgreement**: `string`

**`memberof`** Agreement

#### Defined in

[src/models/Agreement.ts:104](https://github.com/bjerkio/crayon-api-js/blob/22cd66d/src/models/Agreement.ts#L104)

___

### name

• `Optional` **name**: `string`

**`memberof`** Agreement

#### Defined in

[src/models/Agreement.ts:50](https://github.com/bjerkio/crayon-api-js/blob/22cd66d/src/models/Agreement.ts#L50)

___

### number

• `Optional` **number**: `string`

**`memberof`** Agreement

#### Defined in

[src/models/Agreement.ts:92](https://github.com/bjerkio/crayon-api-js/blob/22cd66d/src/models/Agreement.ts#L92)

___

### organization

• `Optional` **organization**: [`ObjectReference`](ObjectReference.md)

**`memberof`** Agreement

#### Defined in

[src/models/Agreement.ts:44](https://github.com/bjerkio/crayon-api-js/blob/22cd66d/src/models/Agreement.ts#L44)

___

### parentAgreementId

• `Optional` **parentAgreementId**: `number`

**`memberof`** Agreement

#### Defined in

[src/models/Agreement.ts:122](https://github.com/bjerkio/crayon-api-js/blob/22cd66d/src/models/Agreement.ts#L122)

___

### program

• `Optional` **program**: [`ObjectReference`](ObjectReference.md)

**`memberof`** Agreement

#### Defined in

[src/models/Agreement.ts:86](https://github.com/bjerkio/crayon-api-js/blob/22cd66d/src/models/Agreement.ts#L86)

___

### publisher

• `Optional` **publisher**: [`ObjectReference`](ObjectReference.md)

**`memberof`** Agreement

#### Defined in

[src/models/Agreement.ts:80](https://github.com/bjerkio/crayon-api-js/blob/22cd66d/src/models/Agreement.ts#L80)

___

### salesPriceCurrencyCode

• `Optional` **salesPriceCurrencyCode**: `string`

**`memberof`** Agreement

#### Defined in

[src/models/Agreement.ts:56](https://github.com/bjerkio/crayon-api-js/blob/22cd66d/src/models/Agreement.ts#L56)

___

### startDate

• `Optional` **startDate**: `Date`

**`memberof`** Agreement

#### Defined in

[src/models/Agreement.ts:62](https://github.com/bjerkio/crayon-api-js/blob/22cd66d/src/models/Agreement.ts#L62)

repository: bjerkio/crayon-api-js

gha_language: TypeScript

repo_name: bjerkio/crayon-api-js


text:
# My Harvard Demo

>"This was the most cookie filled training yet? - Chris

## Overview

*cover how to work in open source
*Cover the GitHub flow
*Order lots of cookes :cookie:

1. Learn Github.
2. ????
3. Profit! :moneybag:

| Name | Position |
-------|----------
Kyle   | Daigle

repository: archdiva/Pumpkin

repo_name: archdiva/Pumpkin


text:
# History

## 0.2.1 (2020-12-06)

Thank you to @stsievert for your continued support and contributions!

Release notes:

* Support autoencoders and more general use cases via BaseWrapper (#123)
* Fix slowdown caused by sample_weight processing
(reported in [DaskML#764](https://github.com/dask/dask-ml/issues/764), fixed in #123)
* Documentation improvements (#134, #135, #145 and #138)
* Fix the `initialize` method in KerasClassifier (#140)

## 0.2.0 (2020-10-03)

* Move data transformations to a Scikit-Learn Transformer based interface (#88)
* Add Keras parameters to BaseWrapper.__init__ (loss, optimizer, etc) (#47, #55)
* Remove needless checks/array creation (#63, #59)
* Make pre/post processing functions public (#42)
* Some stability around `BaseWrapper.__call__` (#35)
* Cleanup around loss names (#38, #35)
* Parameter routing (#67)
* Rename build_fn to model with deprecation cycle (#98)
* Add ability for SciKeras to compile models (#66)
* `class_weights` parameter (#52, #103)
* `classes` param for `partial_fit` (#69, #104)
* Provide an epochs parameter (#51, #114)
* Updated docs, now hosted on RTD (#58, #73)
* Checks to make sure models are correctly compiled (#86, #100, #88)

## 0.1.8 (2020-06-30)

* Add support for partial fitting and warm starts (#17, thank you @stsievert!).
* Add support for random states via the `random_state` parameter (#27).
* Scikit-Learn SLEP10 compliance (#26).
* Fix unnecessary data reshaping warnings (#23).

## 0.1.7 (2020-05-18)

* Versioning fix.

## 0.1.6 (2020-05-18)

* Rename repo.
* Derive BaseWrapper from BaseEstimator.
* Python 3.8 support.

## 0.1.5.post1 (2020-05-13)

* Deprecate Python 3.5 (#11).
* Fix prebuilt model bug (#5).
* Clean up serialization (#7).
* Implement scikit-learn estimator tests (#10).

## 0.1.4 (2020-04-12)

* Offload output type detection for classification to `sklearn.utils.multiclass.type_of_target`.
* Add documentation.
* Some file cleanup.

## 0.1.3 (2020-04-11)

* First release on PyPI.

repository: data-hound/scikeras

repo_name: data-hound/scikeras


text:
# GoProReName
## Renames GoPro video clip files so they are easier to organize.

GoPro uses annoying filenames that are difficult to properly group clips together that are part of the same recording.

Here is an example of what video filenames might look like with a GoPro. These files represent 3 videos. The first video fits into 1 file. The second video is split into 2 files, and the third video is split into 4 files. They are listed here in chronological order:

```
GOPR0001.MP4
GOPR0002.MP4
GP010002.MP4
GOPR0003.MP4
GP010003.MP4
GP020003.MP4
GP030003.MP4
```

Here are those same files listed in alphanumeric order, which is how you are most likely to see them when imported onto your computer for editing:

```
GP010002.MP4
GP010003.MP4
GP020003.MP4
GP030003.MP4
GOPR0001.MP4
GOPR0002.MP4
GOPR0003.MP4
```

GoProReName (GPRN) will simply rename those files so they are easier to organize. The same files after running GPRN would look like this:

```
GOPR0001.MP4 -> 000101.MP4
GOPR0002.MP4 -> 000201.MP4
GP010002.MP4 -> 000202.MP4
GOPR0003.MP4 -> 000301.MP4
GP010003.MP4 -> 000302.MP4
GP020003.MP4 -> 000303.MP4
GP030003.MP4 -> 000304.MP4
```

That's it. I will be adding support to rename filenames from newer GoPro cameras as well. The newer cameras are a little more sane with their file naming conventions, but they still put the "chapter" number before the file number, which still makes sorting a pain.

## Example usage

These examples assume gprn.exe is located within the current directory.

Rename files matching the GoPro naming convention in the current directory:
```
C:\Users\Bob\Videos\> gprn.exe
```

Rename files matching the GoPro naming convention in the current directory and all subdirectories recursively.
```
C:\Users\Bob\Videos\> gprn.exe -r
```

Rename files matching the GoPro naming convention in the specified directory and all subdirectories recursively.
```
C:\> gprn.exe -r C:\Users\Bob\Videos
```

repository: vancelm/GoProReName

repo_name: vancelm/GoProReName


text:
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "dynatrace_maintenance_window Resource - terraform-provider-dynatrace"
subcategory: ""
description: |-

---

# dynatrace_maintenance_window (Resource)

## Schema

### Required

- **name** (String) The name of the maintenance window, displayed in the UI
- **suppression** (String) The type of suppression of alerting and problem detection during the maintenance
- **type** (String) The type of the maintenance: planned or unplanned

### Optional

- **description** (String) A short description of the maintenance purpose
- **id** (String) The ID of this resource.
- **metadata** (Block List, Max: 1, Deprecated) `metadata` exists for backwards compatibility but shouldn't get specified anymore (see [below for nested schema](#nestedblock--metadata))
- **schedule** (Block List, Max: 1) The schedule of the maintenance window (see [below for nested schema](#nestedblock--schedule))
- **scope** (Block List, Max: 1) the tiles this Dashboard consist of (see [below for nested schema](#nestedblock--scope))
- **suppress_synth_mon_exec** (Boolean) Suppress execution of synthetic monitors during the maintenance
- **unknowns** (String) allows for configuring properties that are not explicitly supported by the current version of this provider

### Nested Schema for `metadata`

Optional:

- **cluster_version** (String) Dynatrace server version
- **configuration_versions** (List of Number) A Sorted list of the version numbers of the configuration
- **current_configuration_versions** (List of String) A Sorted list of the version numbers of the configuration

### Nested Schema for `schedule`

Required:

- **end** (String) The end date and time of the maintenance window validity period in yyyy-mm-dd HH:mm format
- **recurrence_type** (String) The type of the schedule recurrence. Possible values are `DAILY`, `MONTHLY`, `ONCE` and `WEEKLY`
- **start** (String) The start date and time of the maintenance window validity period in yyyy-mm-dd HH:mm format
- **zone_id** (String) The time zone of the start and end time. Default time zone is UTC. You can use either UTC offset `UTC+01:00` format or the IANA Time Zone Database format (for example, `Europe/Vienna`)

Optional:

- **recurrence** (Block List, Max: 1) The recurrence of the maintenance window (see [below for nested schema](#nestedblock--schedule--recurrence))
- **unknowns** (String) allows for configuring properties that are not explicitly supported by the current version of this provider

### Nested Schema for `schedule.recurrence`

Required:

- **duration_minutes** (Number) The duration of the maintenance window in minutes
- **start_time** (String) The start time of the maintenance window in HH:mm format

Optional:

- **day_of_month** (Number) The day of the month for monthly maintenance.  The value of `31` is treated as the last day of the month for months that don't have a 31st day. The value of `30` is also treated as the last day of the month for February
- **day_of_week** (String) The day of the week for weekly maintenance.  The format is the full name of the day in upper case, for example `THURSDAY`
- **unknowns** (String) allows for configuring properties that are not explicitly supported by the current version of this provider

### Nested Schema for `scope`

Optional:

- **entities** (Set of String) A list of Dynatrace entities (for example, hosts or services) to be included in the scope.  Allowed values are Dynatrace entity IDs
- **matches** (Block List) A list of matching rules for dynamic scope formation.  If several rules are set, the OR logic applies (see [below for nested schema](#nestedblock--scope--matches))
- **unknowns** (String) allows for configuring properties that are not explicitly supported by the current version of this provider

### Nested Schema for `scope.matches`

Optional:

- **mz_id** (String) The ID of a management zone to which the matched entities must belong
- **tag_combination** (String) The logic that applies when several tags are specified: AND/OR.  If not set, the OR logic is used
- **tags** (Block List) The tag you want to use for matching.  You can use custom tags from the UI, AWS tags, Cloud Foundry tags, OpenShift/Kubernetes, and tags based on environment variables (see [below for nested schema](#nestedblock--scope--matches--tags))
- **type** (String) The type of the Dynatrace entities (for example, hosts or services) you want to pick up by matching
- **unknowns** (String) allows for configuring properties that are not explicitly supported by the current version of this provider

### Nested Schema for `scope.matches.tags`

Required:

- **context** (String) The origin of the tag, such as AWS or Cloud Foundry. Custom tags use the `CONTEXTLESS` value
- **key** (String) The key of the tag. Custom tags have the tag value here

Optional:

- **unknowns** (String) allows for configuring properties that are not explicitly supported by the current version of this provider
- **value** (String) The value of the tag. Not applicable to custom tags


text:
# play-dustjs
This [sbt][sbt] plugin for [Play][play] provides build time compilation for [Dust](https://github.com/linkedin/dustjs) templates.

For Play 2.3.x there is a new version available [sbt-dustjs-linkedin][sbt-dustjs-linkedin].

## Installation

Add the sbt plugin to your `project/plugins.sbt` file:

    addSbtPlugin("com.jmparsons" % "play-dustjs" % "1.6.0")

## Usage

Include the core dust file - can be downloaded from [LinkedIn Dustjs](http://linkedin.github.io/dustjs/) or [here](https://github.com/linkedin/dustjs/tree/master/dist).

    <script src="@routes.Assets.at("javascripts/dust-core-2.3.4.js")"></script>

Place your template **.tl** files into the `app/assets` directory.

Pull in the generated javascript template file:

    <script src="@routes.Assets.at("example.js")"></script>

Render the template:

    $(function() {
<EMAIL_ADDRESS>function(data) {
        console.log('data = ' + JSON.stringify(data));
        dust.render('example', data, function(err, out) {
          $('#dust_pan').html(err ? err : out);
        });
      });
    });

Example project with RequireJS: <https://github.com/jmparsons/play-scala-backbone-todo>

## Changelog

1.6.0 - May 4, 2014

- Updated to full and core 2.3.4 from LinkedIn's dustjs.
- Added link to example project using RequireJS.

1.5.0 - November 18, 2013

- Upgraded project to work with Play 2.2.x.
- Initialized project, changed package and organization information.
- Updated to full and core 2.2.0 from LinkedIn's dustjs.
- Added tests for valid and non valid template files.
- Updated sample project.

## Credits

This project is a continuation of the Dust plugin from [play-plugins](https://github.com/typesafehub/play-plugins).

## License

This software is licensed under the Apache 2 license, quoted below.

Copyright 2012 Typesafe (http://www.typesafe.com).

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

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

[play]: http://www.playframework.com/
[sbt]: https://github.com/harrah/xsbt
[sbt-dustjs-linkedin]: https://github.com/jmparsons/sbt-dustjs-linkedin

repository: jmparsons/play-dustjs

repo_name: jmparsons/play-dustjs


text:
# filectime

This method gets all the files in a directory, and echoes them in the order of the date they were added (by ftp or whatever).

```
<?php
function dirList ($directory, $sortOrder){

    //Get each file and add its details to two arrays
    $results = array();
    $handler = opendir($directory);
    while ($file = readdir($handler)) {
        if ($file != '.' && $file != '..' && $file != "robots.txt" && $file != ".htaccess"){
            $currentModified = filectime($directory."/".$file);
            $file_names[] = $file;
            $file_dates[] = $currentModified;
        }
    }
       closedir($handler);

    //Sort the date array by preferred order
    if ($sortOrder == "newestFirst"){
        arsort($file_dates);
    }else{
        asort($file_dates);
    }

    //Match file_names array to file_dates array
    $file_names_Array = array_keys($file_dates);
    foreach ($file_names_Array as $idx => $name) $name=$file_names[$name];
    $file_dates = array_merge($file_dates);

    $i = 0;

    //Loop through dates array and then echo the list
    foreach ($file_dates as $file_dates){
        $date = $file_dates;
        $j = $file_names_Array[$i];
        $file = $file_names[$j];
        $i++;

        echo  "File name: $file - Date Added: $date. <br/>"";
    }

}
?>
```

I hope this is useful to somebody.

---

[Official documentation page](https://www.php.net/manual/en/function.filectime.php)

**[To root](/README.md)**


text:
Fine installation guide
=========================

Dependencies
------------

Fine comes as a *Composer* package and requires the "Mouf" framework to run.
The first step is therefore to [install Mouf](http://www.mouf-php.com/).

Once Mouf is installed, you can process to the Fine installation.

Install Fine
--------------

Edit your *composer.json* file, and add a dependency on *mouf/utils.i18n.fine*.

A minimal *composer.json* file might look like this:
```
	{
	    "require": {
	        "mouf/mouf": "~2.0",
	        "mouf/utils.i18n.fine": "3.0.*"
	    },
	    "autoload": {
	        "psr-0": {
	            "Test": "src/"
	        }
	    },
	    "minimum-stability": "dev"
	}
```
As explained above, Fine is a package of the Mouf framework. Mouf allows you (amoung other things) to visualy "build" your project's dependencies and instances.

To install the dependency, run
	php composer.phar install

This *composer.json* file assumes that you will put your code in the "src" directory, and that you will use the "Test" namespace and respect the PSR-0 naming scheme.
Be sure to create those directories (src/Test) before running the install process.
If you do not understand what "namespace" or "PSR-0" means, *stop right now*, and head over the [autoloading section of Composer](http://getcomposer.org/doc/01-basic-usage.md#autoloading) and the [PSR-0 documentation](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md).

At this point, the Fine packages should be downloaded and installed (and Mouf should be set up). Start the Mouf admin interface at http://localhost/{yourproject}/vendor/mouf/mouf
There is an install process to run, so just run it.

![Fine install screenshot](https://raw.github.com/thecodingmachine/utils.i18n.fine/3.0/doc/images/install_fine.png)
![Fine install screenshot](https://raw.github.com/thecodingmachine/utils.i18n.fine/3.0/doc/images/install_fine_2.png)

The Fine install process will:
 - Create a "fine" instance of the "Fine" class. The "fine" instance contains the global configuration for Fine (default resources path, language detector, etc...).

Configure your instance
----------------------------

In the edit interface you can change the language Detection and the file path where resources are saved.

![Fine menu](https://raw.github.com/thecodingmachine/utils.i18n.fine/3.0/doc/images/install_fine_3.png)

There are many possiblity to detect the language.
 - With the user browser
 - By domain: this is a list to set each language to domain name
 - Fixed: only one language fill

The second option is the file path where the translation will be stored. Be sure to create the folder before use the fine package.

gha_language: PHP


text:
# Frontend code challenge using Kotlin

I just want to test kotlin capabilities to compile to JavaScript. The project consists in four modules:

* **Common**: Just extension functions used across all the projects.
* **DatePicker**: An entire basic date picker library written entirely in Kotlin using kotlinx.html.
* **TimePicker**: An entire basic time picker library written entirely in Kotlin using kotlinx.html.
* **Main**: A project that integrates all on an appointment selection page.

## Getting Started

Just run:

```
./gradlew clean build
```

This will generate the index.html and all the files necessary to run the unit tests using qunit.

## Running the app

Navigate to web/index.html folder and open it on any browser.

Below, you can find some screenshots:

![Appointment Creator](screenshots/appointment_creator.png)

![Date Picker](screenshots/date_picker.png)

![Time Picker](screenshots/time_picker.png)

![Save Appointment](screenshots/save_appointment.png)

## Running the tests

There are three generated HTML files under web:

* *_test-common.html_*
* *_test-datepicker.html_*
* *_test-timepicker.html_*

Opening every file on a browser will run qunit tests for every module.

## Built With

* [Kotlin](http://kotlinlang.org) - Kotlin language
* [Gradle](https://gradle.org/) - Dependency Management
* [Kotlinx.html](https://github.com/Kotlin/kotlinx.html) - DSL to build HTML

## Authors

* **Gilbert Guevara** - *Initial work*

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

repository: gilbertguevara/free-we-code-challenge

repo_name: gilbertguevara/free-we-code-challenge


text:
# Release Notes Anchorman v0.9.5

## Summary

Removes dependency on Github markdown gem which had some old dependencies that didn't play well with [Travis][travis]. Replaced with
API call to Github to convert markdown to HTML.

## Changes

* Remove the GitHub markdown gem, which is a native gem, and instead use Octokit to convert the markdown. Note that Octokit takes the context for converting SHA links, and so there's a lot more work in this commit.

------

_Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_

[travis]: http://travis-ci.org

repository: infews/anchorman

gha_language: Ruby

repo_name: infews/anchorman


text:
# Yelp Interview Questions
* [Coding Round Questions](#coding)
* [Technical Interview Questions](#tech)
   * [Data Structures and Algorithms](#dsalg)
   * [DBMS](#dbms)
   * [Operating System](#os)
   * [Miscellaneous](#misc)
* [References](#ref)
____
Coding round questions

-  There is a HashMap contains 7 Keys, which is Monday through  Sunday. Each key is corresponding to a List of (Start time, end time) pairs. The pairs is unsorted. Merge the time slots that are adjacent. And finally return another HashMap that contains the same structure but with merged time slots.
- Given the arraylist<meals> input, find the number of dishes with unique ingredients
    class meals{
        String cuisine;
        ArrayList<String> dish = new ArrayList<String>();
        meals(String s, String arr[]){
            cuisine = s;
            for(String i : arr){
                dish.add(i);
            }
        }
    }
- Find topic occurrences in reviews
- Find the closest palindrome to a given number, number can be negative.
  1234 -> 1221
  101 -> 99
- Find the median of ratings in an array of objects giving businesss name and ratings.
- Remove extra spaces from string
- generate valid parenthesis
- group anagrams
- Leet code medium - Graph Traversal
- Given a string query and list of correct word dictionary, find a word in a word dictionary that has the least diff
- Count the number of weakly connected components in a graph
- Given an array of string array, find the string that occurs most and return. If there are ties, just return an array of string.
- remove duplicate entries from a linked list
- sorting the business info which looks like[{"name1", 10001},{"name2", 10004},{"name3", 10002}...]

---
Technical Interview Questions

Data Structures and Algorithms
- Write a program to pair groups of people into randomized pairs, assign leftover people to pairs to make a group of three.
- Given a set of users subscribed data and several updated data sorted by time, return a list of users whose subscribe status is changed after the update.
- Giving a list of the event name, occurrence, and business id. And return the business id with at least two event name, and has a greater number of the event than the average across all business.
- How many times do strings in a list exist in three sentences?
- Giving a list of the event name, occurrence, and business id. And return the business id with at least two event name, and has a greater number of the event than the average across all business.
- Prefix Matching
- Find the median of restaurant's review rating scores
- Merge intervals. find keyword from the customers' review
- Find out longest substring without duplicates in a string.
- Top K frequent elements, how would you run it on multiple nodes
- Given a sequence of words, print all anagrams together
- List manipulation using language of your preference
- two sum, then follow up with k sum.

DBMS
- Some questions about database principle and system design

Operating System
- Should you encrypt and then compress, or compress and then encrypt? why?
- All interviews had many UNIX specific trivia style questions which required knowledge of UNIX utilities and their options.
- What happens when I hit submit on URL of a browser? (e.g. google.com on Safari).
- What port does an http server run on?
- Explain Servlet and JSP
- Given a list of IP address and corresponding hits, asked how to get the top 10 hit IP address

Miscellaneous
- One of the three servers is slow. What can be the possible reasons and how would you take care of these things?
- How can you find all instances of a class
"'X' is a tool we use here internally, it does 'Y'. Here's some skeleton code, implement these requirements."
- What changes would you like to make on Yelp website
- Output one review for the business that is the most representative of all the other reviews. How would you evaluate your model
- Explain Spring and Hibernate
- Projects and Internship
- Tell me about your recent project?

repository: kotya/Interview-Questions

repo_name: kotya/Interview-Questions


text:
# HackerNews Go

[![Build Status](https://github.com/JoseThen/hn/workflows/Build%20Master/badge.svg)](https://github.com/JoseThen/hn/blob/master/.github/workflows/build_master.yaml)

[![Test Status](https://github.com/JoseThen/hn/workflows/Test%20Master/badge.svg)](https://github.com/JoseThen/hn/blob/master/.github/workflows/test_master.yaml)

A HackerNews client writtent in Go

---

## Usage

To get the top stories

```
hnctl get --count 4
```

To get most recent (new) stories

```
hnctl get --new
```

-   The default number of stories for both subcommands is 10. You
can change that by using the `--count` flag
-   If you do not build the executable then you can
simply do `go run main.go get--count 30`
-   Note that `--top` will be set by default if no flag is set

## Output

When running a command you will get 2 columns for Title and URL
in your terminal:
![Image of HN GO output](images/output.png)

repository: JoseThen/hnctl

gha_language: Go

repo_name: JoseThen/hnctl


text:
# 1. Add a tiny database framework

The framework can be reused in other app.

# 2. Store timers in database

* Add a class 'TimerTable', to deal with table.
* Change code in MainActivity to.

# Reference

In 'TimerTable.java', column 'id' is defined as 'integer primary key'.

But in 'TimerItem.java', field 'id' is defined as 'long'.

That's because 'integer' in SQLite *is a signed integer, stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of the value.*

See:
* [Datatypes In SQLite Version 3](http://www.sqlite.org/datatype3.html)
* [SQLite Autoincrement](http://www.sqlite.org/autoinc.html)

repository: fanhongtao/SimpleTimer

repo_name: fanhongtao/SimpleTimer


text:
Quickstart
==========

!!! warning

    This resource is in draft status, and missing essential pieces of
    information, such as outputs of the various examples. This will be remedied
    once output data types are finalised. The exact API used below is subject to
    change as the project matures, but the ideas and generic grammar is unlikely
    to vary. Note also that we do not discuss metrics yet as that API has yet to
    solidify.

If you have not read the [concepts](concepts.md) documentation, and find any of the
following unclear, be sure to go and read this documentation. If this resource
remains unclear, that is no doubt the fault of the author, and you should feel
free to reach out by creating a [GitHub issue](http://github.com/matthewwardrop/mensor/issues).

In the following, we will explore the use of Mensor in a toy example backed by
pandas data frames. All of the code shown on this page can be run equally well
in your own Python session if you would like to play with it locally. Note that
Mensor is agnostic as to where data is stored, so nothing changes in this API
for data stored in database tables.

## Toy Data Schema

The following examples of using mensor will use the following toy schema,
which does a reasonable job of demonstrating most of mensor's features.

![Toy Schema](../assets/toy_schema.png)

For the purposes of this tutorial, we will back this schema with pandas
dataframes loaded from CSV files, but as far as mensor is concerned, the source
of the data is irrelevant. The following Python code sets up a MetaMeasureProvider
which connects to data following the above schema. It is possible to easily set
up configuration from YAML files, but we defer such consideration to the as-yet TBD deployment documentation.

```python

import os
from mensor.measures import MetaMeasureProvider
from mensor.backends.pandas import PandasMeasureProvider

registry = MetaMeasureProvider()

data_dir = "<path to checked out Mensor repository>/tests/data"

people = (
    PandasMeasureProvider(
        name='people',
        data=os.path.join(data_dir, 'people.csv')
    )
    .add_identifier('person', expr='id', role='primary')
    .add_dimension('name')
    .add_measure('age')
    .add_partition('ds')
)
registry.register(people)

people2 = (
    PandasMeasureProvider(
        name='people2',
        data=os.path.join(data_dir, 'people.csv')
    )
    .add_identifier('person', expr='id', role='unique')
    .add_identifier('geography', expr='id_geography', role='foreign')
    .add_partition('ds')
)
registry.register(people2)

geographies = (
    PandasMeasureProvider(
        name='geographies',
        data=os.path.join(data_dir, 'geographies.csv')
    )
    .add_identifier('geography', expr='id_geography', role='primary')
    .add_dimension('name')
    .add_measure('population')
    .add_partition('ds')

)
registry.register(geographies)

transactions = (
    PandasMeasureProvider(
        name='transactions',
        data=os.path.join(data_dir, 'transactions.csv')
    )
    .add_identifier('transaction', expr='id', role='primary')
    .add_identifier('person:buyer', expr='id_buyer', role='foreign')
    .add_identifier('person:seller', expr='id_seller', role='foreign')
    .add_measure('value')
    .add_partition('ds', requires_constraint=True)
)
registry.register(transactions)
```

## The role of MeasureProviders

In the above code, we registered several `MeasureProvider` instances with
a `MetaMeasureProvider` instance. Each `MeasureProvider` has the
responsibility of being able to provide everything it promised upon request, and
we can test this for any particular `MeasureProvider` directly. For
example, we can ask the `transactions` measure provider for the sum
over all transactions of their value segmented by seller id where the `ds` is
`'2018-01-01'`:

```python
transactions.evaluate(
    unit_type='transaction',
    measures=['value'],
    segment_by=['person:seller'],
    where={'ds': '2018-01-01'}
)
```

The returned data is a Pandas Dataframe subclass which knows how to keep track
of statistics.

!!! todo

    This documentation is incomplete on this point, and will be extended once
    this component of mensor solidifies.

## Evaluating measures from the MetaMeasureProvider

While it is nice that you can directly evaluate measure from a single
`MeasureProvider`, we have not really gained much over just
directly accessing the data. Suppose, however, we wish to segment the
transaction value measure by sellers' names. Now we need information from
multiple providers, and this starts to be a little more taxing if we directly
access the data. In Mensor, however, it is as simple as:

```python
registry.evaluate(
    unit_type='transaction',
    measures=['value'],
    segment_by=['person:seller/name'],
    where={'ds': '2018-01-01'}
)
```

In the background, mensor is separately asking the `transactions` and `people`
data sources for data, and stitching them together for you.

!!! note

    For some backends, such as SQL, dragging down the data locally and doing the
    joins in memory would be horrendously inefficient. To cater for this use case,
    `MeasureProvider`s have a notion of an "intermediate representation"
    which they can share with other measure providers that they know to be
    compatible with themselves. Unless you are deploying Mensor, and need to be
    aware of such things, this is an implementation detail that is transparent
    to the user.

Likewise, one might be interested in segmenting the value of transactions and
the seller's age by the name of the geography of the seller **and** the buyer's
name (admittedly a very contrived example):

```python
registry.evaluate(
    unit_type='transaction',
    measures=['value', 'person:seller/age'],
    segment_by=['person:buyer/name', 'person:seller/geography/name'],
    where={'ds': '2018-01-01'}
)
```

Note that mensor also automatically stitched together providers which had the
same primary key ("person") in this case.

So far, we have only considered the unit type of 'transaction', but it is also
possible to consider other unit types.

What if we want the distribution of transaction values across sellers, segmented
by seller name?

```python
registry.evaluate(
    unit_type='person:seller',
    measures=['transaction/value'],
    segment_by=['person:seller/name']
)
```

Note the magic that just occurred there. There is no foreign key from
`person:seller` to `transaction`, but there is a foreign key from `transaction` to
`person:seller`. Mensor took advantage of this to re-aggregate transactions by
`person:seller` and the join the resulting sum as a feature of `person:seller`.

Also note that you cannot do the following (because it does not make sense):

```python
registry.evaluate(
    unit_type='person:seller',
    measures=['transaction/value'],
    segment_by=['transaction/person:buyer/name']
)
```

This is because it violates the explicit indivisible unit of the analysis
(`person:seller`); i.e. a seller may have multiple transactions with different
buyers, and so segmenting by any feature of transaction (or its derivatives)
would violate the assumption that `person:seller` is the indivisible unit.
As such, mensor prevents you from making a statistical faux pas.

## Constraints

There are three principle ways that constraints can be applied, and a rich
syntax for specifying the exact contraints.

The constraint application methods are:

- **scoped:**
    This is the most explicit constraint application method, and allows you
    to define the constraints that must be enforced even if it is the only
    reason for accessing a particular measure provider. For example, for unit
    type transaction: {'person:seller/name': "Matthew"} would restrict
    transactions to those whose sellers' name was "Matthew", regardless of which
    measures and segmentations were provided.
- **generic:**
    This is the most lenient constraint, that only applies if the nominated
    feature appears in the measure provider being evaluated; but is otherwise
    silently ignored. Note that it applies *generically* and so will match
    any measure provider with the nominated field name. For example:
    {'*/name': 'Matthew'} will filter down to results that have 'name' equal
    to 'Matthew' for any measure provider that has the field 'name', but is
    otherwise not enforced.
- **generic for a given unit_type:**
    This is a cross between the above to methods, which allows a constraint to
    be enforced whenever a given unit type is being considered, at which point
    it is enforced and if the unit_type lacks that feature, an error is thrown.
    For example: {'*/person:seller/name': 'Matthew'} will enforce that
    `name == 'Matthew'` every time the current unit type is `person:seller`,
    but is otherwise ignored.

(Mostly) irrespective of the application method, constraints can be specified in
a rich variety of ways. The possible constraint types are:

- **equality:**
    `{'ds': '2018-01-01'}` implies `[ ds=='2018-01-01']`.
- **inequality:**
    `{'ds': ('<', '2018-01-01')}` implies `[ ds<'2018-01-01' ]`.
    The supported operations are: `['<', '>', '<=', '>=']`.
- **in:**
    `{'ds': {1,2,3}}` implies `[ ds ∈ {1, 2, 3} ]`
- **and:**
    A dictionary or list of dictionaries creates and AND condition, for example:
    `[{'ds': '2018-01-01', 'name': 'Matthew'}, {'other': 1}]` implies:
    `[ ds=='2018-01-01' & name=='Matthew' & other==1 ]`
- **or:**
    A tuple of dictionaries implies an OR condition:
    `({'ds': '2018-01-01'}, {'other': 1})` implies:
    `( ds=='2018-01-01' | other==1)`
- **and (nested):**
    `{'field': [('>', 1), ('<', 2)]}` implies `[ field>1 & field<2 ]`

The types can be nested also, for example:
`[({'a': 1, 'b':2}, {'c':3, 'd':4}), ({'e': 5, 'f':6}, {'g':7, 'h':8})]`
implies
`[ ( [ a==1 & b==2 ] | [ c==3 & d==4 ] ) & ( [ e==5 & f==6 ] | [ g==7 & h==8 ] ) ]`.

Additionally, it is possible to have constraints at different levels in the join
hierarchy (for scoped constraints). For example:
`({'transaction/value': 100}, {'transaction/person:seller/name': 'Matthew'})`
implies
`( transaction/value==100 | transaction/person:seller/name=='Matthew' )`.

repository: matthewwardrop/mensor

gha_language: Python

repo_name: matthewwardrop/mensor


text:
# Container builder

> 🔔 [Subscribe](https://newsletter.chevereto.com/subscription?f=PmL892XuTdfErVq763PCycJQrvZ8PYc9JbsVUttqiPV1zXt6DDtf7lhepEStqE8LhGs8922ZYmGT7CYjMH5uSx23pL6Q) to don't miss any update regarding Chevereto.

![Chevereto](LOGO.svg)

[![Community](https://img.shields.io/badge/chv.to-community-blue?style=flat-square)](https://chv.to/community)
[![Discord](https://img.shields.io/discord/759137550312407050?style=flat-square)](https://chv.to/discord)
[![Twitter Follow](https://img.shields.io/twitter/follow/chevereto?style=social)](https://twitter.com/chevereto)

Dockerfile template project for building and distributing container images for Chevereto (ahead) releases to any container registry. It also works with custom applications.

## Note

**Do not publish** the generated image to a public access registry as it contains your licensed installation files (including your key).

🧐 Handle it with care or your license details could be stolen.

## Reference

* [SETUP](SETUP.md)
* [BUILDING](BUILDING.md)
* [UPDATING](UPDATING.md)

## Guides

* [Portainer](guides/portainer/README.md)
* [DigitalOcean App Platform](guides/digitalocean/app-platform/README.md)

repository: DiamondShark/chevereto

gha_language: Dockerfile

repo_name: DiamondShark/chevereto


text:
# Nested views

An application running as iframe can contain multiple iframe running independant applications. By design iframes can only communicate with its parent, or any of its child frame, building so a tree topology.

ShellSdk manage routing at each level to allow each frame to reach Shell-host individually. We can identify in this scenario three kind of nodes :

- **shell-host node**: always being root with a single children
- **application node**: always being the only direct connexion with shell-host
- **sub-application node**: any node connected at any deepth of the application node

```mermaid
graph LR
    A[Shell-host  .]-->B[Application  .]
    B-->A
    B-->C[iFrame 1  .]
    B-->D[iFrame 2  .]

    C--> B
    D--> B
```

For each node, ShellSdk **dynamically build routes** allowing to add or remove an iframes, and to use the **same syntax** to simplify development.

It use the concept of a [meshed distributed network](https://en.wikipedia.org/wiki/Mesh_networking) with each node running the exact same code, not being aware of its position or surrounding.

## Routing

When initialising a sub-application node, the hosting application need to register it to shellSdk so it build routing and recognise it as a valid route.

```javascript
// on init event
this.shellSdk.registerOutlet((frame: HTMLIFrameElement));
// on destroy event
this.shellSdk.unregisterOutlet((frame: HTMLIFrameElement));
```

Registration will assign a [`uuid v4`](https://fr.wikipedia.org/wiki/Universal_Unique_Identifier) used to identify a route, which is **not exposed** threw a public API.

```mermaid
graph LR
    A[Shell-host  .]---B[Application  .]
    B---|uuid_1| C[iFrame 1  .]
    B---|uuid_2| D[iFrame 2  .]
```

A node will only handle messages if coming from its parent node or a registered outlet. When receiving a message from a registered outlet, it assign the corresponding uuid as origin and will use that exact value to answer back if needed.

```mermaid
sequenceDiagram
    autonumber

    iFrame2->>Application: emit({type: request_context, ...})
    Application->>Shellhost: emit({type: request_context, from: [uuid_2], ...})
    Shellhost->>Application: emit({type: request_context, to: [uuid_2], ...})
    Application->>iFrame2: emit({type: request_context, ...})
```

## Routing algorithm

All nodes run the same code, `ShellSdk.onMessage` method define rules for each messages with different level of priority.

## Special events

### toApp

`TO_APP` is a special event directly handled if received. It will never be forwarded, meaning receiving it from a parent means it comes directly from the shell-host application. If received from a child, it is forward to the parent until the shell-host forward it back to the application.

### setViewState

`setViewState()` will send a message to the shell-host then spread it back using a [flooding technique](<https://en.wikipedia.org/wiki/Flooding_(computer_networking)>) threw the entire network with the new value.

### Example

#### ** Demo **

#### ** application.html **

[Demo](/examples/selected_items/application.html ':include :type=code text')

#### ** plugin.html **

[Demo](/examples/selected_items/plugin.html ':include :type=code text')

## Nested nested views

As all node **run the same code** and **use the same syntax**, this allow an **application to be a plugin**, a **plugin to be an application**, but also a plugin to **run at any level in depth** of an application.

```mermaid
graph LR
    A[Shell-host  .]-->B[Application  .]
    B-->A
    B-->C[iFrame 1  .]
    B-->D[iFrame 2  .]
    D-->E[iFrame 2.1  .]

    C--> B
    D--> B
    E--> D
```

Each node register mounted iframes, and initialise with its parent.

```mermaid
graph LR
    A[Shell-host  .]---B[Application  .]
    B---|uuid_1| C[iFrame 1  .]
    B---|uuid_2| D[iFrame 2  .]
    D---|uuid_3| E[iFrame 2.1  .]
```

Messages are routed by all nodes without knowing anything about its surrounding.

```mermaid
sequenceDiagram
    autonumber
    iFrame2.1->>iFrame2: emit({type: request_context, ...})
    iFrame2->>Application: emit({type: request_context, from: [uuid_3], ...})
    Application->>Shellhost: emit({type: request_context, from: [uuid_3, uuid_2], ...})
    Shellhost->>Application: emit({type: request_context, to: [uuid_3, uuid_2], ...})
    Application->>iFrame2: emit({type: request_context, to: [uuid_3], ...})
    iFrame2->>iFrame2.1: emit({type: request_context, to: [], ...})
```

### Example

#### ** Demo **

#### ** application.html?depth=3 **

[Demo](/examples/nested_nested/application.html ':include :type=code text')

#### ** Topology **

```mermaid
graph LR
    A[Shell-host  .]---B[Application  .]
    B---|uuid_1| C[iFrame 1  .]
        C---|uuid_3| D[iFrame 1.1  .]
            D---|uuid_7| I[iFrame 1.1.1  .]
            D---|uuid_8| J[iFrame 1.1.2  .]
        C---|uuid_4| E[iFrame 1.2  .]
            E---|uuid_9| K[iFrame 1.2.1  .]
            E---|uuid_10| L[iFrame 1.2.2  .]
    B---|uuid_2| F[iFrame 2  .]
        F---|uuid_5| G[iFrame 2.1  .]
            G---|uuid_11| M[iFrame 2.1.1  .]
            G---|uuid_12| N[iFrame 2.1.2  .]
        F---|uuid_6| H[iFrame 2.2  .]
            H---|uuid_13| O[iFrame 2.2.1  .]
            H---|uuid_14| P[iFrame 2.2.2  .]
```

repository: SAP/fsm-shell

repo_name: SAP/fsm-shell


text:
# bce-infrared-receiver
Infrared receiver library example

This example will send JSON messages with decoded infrared packets. Right now only NEC protocol is supported.

Connect Core module by USB to your computer and connect TSOP4838 output pin to the P10 pin on Core Module.
Make sure that you have correct power supply for your receiver - 3 or 5V.
External pull-up on sensor OUT pin is not neccessary.
Internal pull-up in MCU is enabled.

repository: RadekSchauer/bcf-sdk

repo_name: RadekSchauer/bcf-sdk


text:
# Database

The main database used in the project is [SQL Server](https://www.microsoft.com/en-us/sql-server/).

## Local Setup

For major productivity, the following instructions regarding the database are using Docker.

### Docker run example

```bash
docker run \
    -e "ACCEPT_EULA=Y" \
    -e "SA_PASSWORD=MyPass@word" \
    -e "MSSQL_PID=Developer" \
    -p 1439:1433 \
    -v "empleado-db-volume:/var/opt/mssql" \
    --name=empleado-db \
    -d
    mcr.microsoft.com/mssql/server:latest
```

| Parameter                             | Description                                                                                |
| ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| -e "ACCEPT_EULA=Y"                    | Set the ACCEPT_EULA variable to any value to confirm your acceptance of the End-User Licensing Agreement. Required setting for the SQL Server image.                                                                           |
| -e "MSSQL_PID=Developer"              | Set the Product ID (PID) or Edition that the container will run with.                                                                                |
| -e "SA_PASSWORD=MyPass@word"          | Specify your own strong password that is at least 8 characters and meets the SQL Server password requirements. Required setting for the SQL Server image.                                                                      |
| -p 1439:1433                          | Map a TCP port on the host environment (first value) with a TCP port in the container (second value). In this example, SQL Server is listening on TCP 1433 in the container and this is exposed to the port 1439, on the host. |
| -v empleado-db-volume:/var/opt/mssql  | It creates and mounts a volume with the data directory of the database. This will persist the data even if the container is removed.                                                                                |
| --name empleado-db                    | Specify a custom name for the container rather than a randomly generated one. If you run more than one container, you cannot reuse this same name.                                                                             |
| -d (--detach)                         | Run the container in the background.                                                                                |
| mcr.microsoft.com/mssql/server:latest | SQL Server latest image.                                                                                |

## Common Errors

### Problem

```
Error A connection was successfully established with the server, but then an error occurred during the pre-login handshake.
```

### Solution

The problem occurs due to the database was not ready when the action was performed. If you wait a couple of seconds and try again it should work as expected.

## References

- [Dockerhub - Microsoft SQL Server](https://hub.docker.com/_/microsoft-mssql-server)

- [Quickstart: Run SQL Server container images with Docker](https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-docker?view=sql-server-ver15&pivots=cs1-bash)

- [Configure SQL Server container images on Docker](https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-configure-docker?view=sql-server-ver15)

branch_name: refs/heads/development

gha_language: CSS


text:
# github-due-dates
Makes a feed for Github issues with due dates

This uses the PyGithub library: ```pip install PyGithub```

## todo:
1. ~~get all github issues of all repos of an organization~~ **DONE**
1. ~~scan issue bodies for "#due [date]."~~ **DONE**
1. expose as atom feed

repository: werdnanoslen/github-due-dates

repo_name: werdnanoslen/github-due-dates


text:
# tls-tofu [![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/Enteee/tls-tofu/Build/master)](https://github.com/Enteee/tls-tofu) [![Docker Pulls](https://img.shields.io/docker/pulls/enteee/tls-tofu)](https://hub.docker.com/r/enteee/tls-tofu)
_Docker images implementing Transport Layer Security (TLS) -  Trust On First Use (TOFU)_

## Usage

```sh
$ docker run \
  --rm \
  enteee/tls-tofu
```

## Environment Variables

| Variable | Description | Mandatory | Default |
| -------- | ----------- | :-------: | ------- |
| `TLS_TOFU` | Enable TLS-TOFU | No | `true` |
| `TLS_TOFU_HOST` | Host to do TLS-TOFU with | No | `google.com` |
| `TLS_TOFU_PORT` | Port on host | No | `443` |
| `TLS_TOFU_S_CLIENT_ARGS` | Additional arguments for `openssl s_client` | No | `-servername ${TLS_TOFU_HOST}` |
| `TLS_TOFU_KAMIKAZE_BIN` | Path to the kamikaze binary | No | `/kamikaze` |
| `TLS_TOFU_CA_CERTIFICATES` | Path to the ca-certificates file | No | `/etc/ssl/certs/ca-certificates.crt` |
| `TLS_TOFU_DEBUG` | Enable debug output | No | `undefined` |

repository: Enteee/tls-tofu

gha_language: Shell

repo_name: Enteee/tls-tofu


text:
# Kubernetes cluster

### Prerequisites

```sh
kubectl apply -k github.com/weaveworks/flagger//kustomize/kubernetes
```

### App

Canary releases (conformance and load testing)
* [frontend](frontend) progressive traffic strategy
* [backend](backend) progressive traffic strategy
* [cache](cache) blue/green strategy
* [database](database) blue/green strategy

### End-to-end testing

The e2e testing is powered by GitHub Actions and Kubernetes Kind.

Workflow
* validate manifests with kustomize build and kubeval
* provision Kubernetes Kind cluster
* install Linkerd
* install Flagger
* apply manifests on the cluster
* test the workloads initialization
* test communication between microservices

repository: jmistx/gitops-app-distribution

repo_name: jmistx/gitops-app-distribution


text:
# margin-left

https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left

## auto
```css
.selector {
  composes: auto from 'hydrogencss/margin-left.css'
}
```

or:
```css
.selector {
  composes: auto from 'hydrogencss/margin-left/auto.css'
}
```

repository: eddiemoore/hydrogencss

repo_name: eddiemoore/hydrogencss


text:
# DNN Media Module

This is the solution for the DNN Media module. It also is used to display how a DNN
solution could be architected to build outside of a website, as a best practice, which
includes several very useful MSBuild scripts.

## Purpose

The Media module allows authorized end-users to add and manage a single media item on a page in DNN.

The benefit of this approach versus using an HTML module is that the end-user will not have the opportunity to use a toolbar to intentionally/unintentionally break the website design and/or branding guidelines.

You can give the permission for someone to just edit a single video, image, and other embedded content on the page without worrying about how they might break the website.

If you need to manage a collection of media items, then you may want to consider using the [Gallery module](https://github.com/DNNCommunity/DNN.Gallery) instead.

---

## How You Can Help

* [Install and use the extension (see below)](/DNN.Media/installation.html)
* [Create Issues (ideas OR bugs)](/DNN.Media/issues.html)
* [Write documentation](/DNN.Media/documentation.html)
* [Test Releases](/DNN.Media/testing.html)
* Create UI/UX
* [Write Code](/DNN.Media/code.html)
* Debug Code
* [Create a Pull Request](/DNN.Media/pullrequest.html)

---

## Project Distribution Locations

New releases are going to be posted here, in [the Releases section](https://github.com/DNNCommunity/DNN.Media/releases/latest).

gha_language: C#


text:
v 0.3.1

Fix Gemfile for Travis.

Foodcritic warnings resolved

* FC007: Ensure recipe dependencies are reflected in cookbook metadata

v 0.3.0

Merge pull request #1 from gustavowt/master

* Ubuntu package name fixes

Add [test-kitchen](https://github.com/opscode/test-kitchen) scaffolding

* Simple snmp::default test

Add TravisCI attribute sanity tests, and foodcritic linting.

Foodcritic warnings resolved

* FC001: Use strings in preference to symbols to access node attributes
* FC024: Consider adding platform equivalents

v 0.2.0

Refactor SNMP cookbook

v 0.1.0

* Add Getopt::Declare dependency
* Update metadata
* Update documentation

v 0.0.1

Add snmp cookbook.

repository: monigusto/chef-snmp

repo_name: monigusto/chef-snmp


text:
# State of Iowa Revenue

## Dataset

| Name | Value |
| :--- | :---- |
| Catalog | [Link](https://catalog.data.gov/dataset/state-of-iowa-revenue) |
| Metadata | [Link](https://data.iowa.gov/api/views/urps-v5ck) |
| Data: JSON | [100 Rows](https://data.iowa.gov/api/views/urps-v5ck/rows.json?max_rows=100) |
| Data: CSV | [100 Rows](https://data.iowa.gov/api/views/urps-v5ck/rows.csv?max_rows=100) |
| Host | data.iowa.gov |
| Id | urps-v5ck |
| Name | State of Iowa Revenue |
| Attribution | Iowa Department of Administrative Services, State Accounting Enterprise, I3 Data Warehouse |
| Category | Government |
| Tags | financial, resources, revenue |
| Created | 2014-11-06T21:01:01Z |
| Publication Date | 2014-12-01T20:32:54Z |

## Description

This dataset provides information on state revenue for fiscal years starting July 1, 2011 through the current fiscal year, year to date, from the state's centralized accounting system.  The revenue are summarized by Fiscal Year, Month, Fund, Appropriation, Department, Unit, and Revenue Class. The state fiscal year runs from July 1 to the following June 30 and is numbered for the calendar year in which it ends. The State of Iowa operates on a modified accrual basis which provides that encumbrances on June 30 must be paid within 60 days after year end.

## Columns

```ls
| Included | Schema Type    | Field Name         | Name               | Data Type | Render Type |
| ======== | ============== | ================== | ================== | ========= | =========== |
| No       | time           | :updated_at        | updated_at         | meta_data | meta_data   |
| Yes      | numeric metric | budget_fy          | Budget FY          | number    | number      |
| Yes      | numeric metric | fiscal_period      | Fiscal Period      | number    | number      |
| Yes      | series tag     | fiscal_period_name | Fiscal Period Name | text      | text        |
| Yes      | series tag     | function           | Function           | text      | text        |
| Yes      | series tag     | spec_dept          | Spec Dept          | text      | text        |
| Yes      | series tag     | dept_1             | Dept #             | text      | text        |
| Yes      | series tag     | dept_2             | Dept               | text      | text        |
| Yes      | series tag     | fund               | Fund               | text      | text        |
| Yes      | series tag     | fund_name          | Fund Name          | text      | text        |
| Yes      | series tag     | unit               | Unit               | text      | text        |
| Yes      | series tag     | unit_name          | Unit Name          | text      | text        |
| Yes      | series tag     | appropriation      | Appropriation      | text      | text        |
| Yes      | series tag     | appropriation_name | Appropriation Name | text      | text        |
| Yes      | numeric metric | revenue_class      | Revenue Class      | number    | text        |
| Yes      | series tag     | revenue_class_name | Revenue Class Name | text      | text        |
| Yes      | numeric metric | amount             | Amount             | money     | money       |
```

## Time Field

```ls
Value = updated_at
Format & Zone = seconds
```

## Data Commands

```ls
series e:urps-v5ck d:2014-11-06T13:01:20.000Z t:fund_name="General Fund" t:spec_dept="General Fund Use" t:unit=2175 t:fiscal_period_name=March t:revenue_class_name=Other t:appropriation=0000 t:dept_2=Fees t:dept_1=996 t:appropriation_name="Blank Appropriation" t:fund=0001 t:unit_name="Real Estate" t:function="General Fund Use Only" m:amount=9000 m:budget_fy=2012 m:fiscal_period=9 m:revenue_class=704

series e:urps-v5ck d:2014-11-06T13:01:15.000Z t:fund_name="General Fund" t:spec_dept="Human Services, Department of" t:unit=1227 t:fiscal_period_name=January t:revenue_class_name=Other t:appropriation=M30 t:dept_2="Human Services - Cherokee" t:dept_1=407 t:appropriation_name="Cherokee MHI" t:fund=0001 t:unit_name=Laundry t:function="Human Services" m:amount=341.25 m:budget_fy=2012 m:fiscal_period=7 m:revenue_class=704

series e:urps-v5ck d:2014-11-06T13:01:25.000Z t:fund_name="IPTV- Misc" t:spec_dept="Education, Department of" t:unit=2030 t:fiscal_period_name=May t:revenue_class_name=Interest t:appropriation=0000 t:dept_2="Iowa Public Television" t:dept_1=285 t:appropriation_name="Blank Appropriation" t:fund=0085 t:unit_name="Iptv Miscellaneous" t:function=Education m:amount=19.54 m:budget_fy=2012 m:fiscal_period=11 m:revenue_class=301
```

## Meta Commands

```ls
metric m:budget_fy p:integer l:"Budget FY" d:"Budget Fiscal Year revenue was received" t:dataTypeName=number

metric m:fiscal_period p:integer l:"Fiscal Period" d:"Fiscal Period (1 -15) the revenue was received" t:dataTypeName=number

metric m:revenue_class p:integer l:"Revenue Class" d:"The code used to designate the type of revenue" t:dataTypeName=number

metric m:amount p:double l:Amount d:"Total of all revenues for the specified combination of Budget FY, Fund, Department, etc" t:dataTypeName=money

entity e:urps-v5ck l:"State of Iowa Revenue" t:attribution="Iowa Department of Administrative Services, State Accounting Enterprise, I3 Data Warehouse" t:url=https://data.iowa.gov/api/views/urps-v5ck

property e:urps-v5ck t:meta.view v:id=urps-v5ck v:category=Government v:averageRating=0 v:name="State of Iowa Revenue" v:attribution="Iowa Department of Administrative Services, State Accounting Enterprise, I3 Data Warehouse"

property e:urps-v5ck t:meta.view.license v:name="Public Domain"

property e:urps-v5ck t:meta.view.owner v:id=vxmx-2ngw v:profileImageUrlMedium=/api/users/vxmx-2ngw/profile_images/THUMB v:profileImageUrlLarge=/api/users/vxmx-2ngw/profile_images/LARGE v:screenName="DAS, State Accounting Enterprise" v:profileImageUrlSmall=/api/users/vxmx-2ngw/profile_images/TINY v:displayName="DAS, State Accounting Enterprise"

property e:urps-v5ck t:meta.view.tableauthor v:id=vxmx-2ngw v:profileImageUrlMedium=/api/users/vxmx-2ngw/profile_images/THUMB v:profileImageUrlLarge=/api/users/vxmx-2ngw/profile_images/LARGE v:screenName="DAS, State Accounting Enterprise" v:profileImageUrlSmall=/api/users/vxmx-2ngw/profile_images/TINY v:roleName=editor v:displayName="DAS, State Accounting Enterprise"
```

## Top Records

```ls
| :updated_at | budget_fy | fiscal_period | fiscal_period_name | function              | spec_dept                     | dept_1 | dept_2                    | fund | fund_name    | unit | unit_name          | appropriation | appropriation_name  | revenue_class | revenue_class_name    | amount     |
| =========== | ========= | ============= | ================== | ===================== | ============================= | ====== | ========================= | ==== | ============ | ==== | ================== | ============= | =================== | ============= | ===================== | ========== |
|<PHONE_NUMBER>  | 2012      | 9             | March              | General Fund Use Only | General Fund Use              | 996    | Fees                      | 0001 | General Fund | 2175 | Real Estate        | 0000          | Blank Appropriation | 704           | Other                 | 9000       |
|<PHONE_NUMBER>  | 2012      | 7             | January            | Human Services        | Human Services, Department of | 407    | Human Services - Cherokee | 0001 | General Fund | 1227 | Laundry            | M30           | Cherokee MHI        | 704           | Other                 | 341.25     |
|<PHONE_NUMBER>  | 2012      | 11            | May                | Education             | Education, Department of      | 285    | Iowa Public Television    | 0085 | IPTV- Misc   | 2030 | Iptv Miscellaneous | 0000          | Blank Appropriation | 301           | Interest              | 19.54      |
|<PHONE_NUMBER>  | 2012      | 12            | June               | Human Services        | Iowa Veterans Home            | 671    | Iowa Veterans Home        | 0001 | General Fund | 5126 | Housekeeping       | V03           | Iowa Veterans Home  | 603           | Rents & Leases        | 2235.5     |
|<PHONE_NUMBER>  | 2012      | 13            | July (H/O)         | Judicial Branch       | Judicial Branch               | 444    | Judicial Branch           | 0001 | General Fund | 0110 | Family Drug Court  | B20           | Judicial Branch     | 201           | Federal Support       | 91618.37   |
|<PHONE_NUMBER>  | 2012      | 14            | August (H/O)       | General Fund Use Only | General Fund Use              | 990    | Special Taxes             | 0001 | General Fund | 2120 | Beer Tax           | 0000          | Blank Appropriation | 101           | Beer Tax              | 910607.61  |
|<PHONE_NUMBER>  | 2012      | 1             | July               | General Fund Use Only | General Fund Use              | 990    | Special Taxes             | 0001 | General Fund | 6250 | Revenue & Finance  | 0000          | Blank Appropriation | 102           | Cigarette Tax         | 34556.57   |
|<PHONE_NUMBER>  | 2012      | 1             | July               | General Fund Use Only | General Fund Use              | 990    | Special Taxes             | 0001 | General Fund | 6250 | Revenue & Finance  | 0000          | Blank Appropriation | 103           | Tobacco Products Tax  | 2472419.81 |
|<PHONE_NUMBER>  | 2012      | 1             | July               | General Fund Use Only | General Fund Use              | 990    | Special Taxes             | 0001 | General Fund | 6250 | Revenue & Finance  | 0000          | Blank Appropriation | 108           | Inheritance Tax       | 5093157.04 |
|<PHONE_NUMBER>  | 2012      | 1             | July               | General Fund Use Only | General Fund Use              | 990    | Special Taxes             | 0001 | General Fund | 6250 | Revenue & Finance  | 0000          | Blank Appropriation | 110           | Insurance Premium Tax | 1019616.36 |
```

repository: SpellarBot/open-data-catalog

repo_name: SpellarBot/open-data-catalog


text:
# fuego - Functional Experiment in Go.

[![godoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/seborama/fuego) [![goreportcard](https://img.shields.io/badge/go%20report-A%2B-brightgreen.svg)](http://goreportcard.com/report/seborama/fuego) [![cover.run](https://cover.run/go/github.com/seborama/fuego.svg?style=flat&tag=golang-1.9)](https://cover.run/go?tag=golang-1.9&repo=github.com%2Fseborama%2Ffuego)

## Overview

_Making Go come to functional programming._

This is a research project in functional programming which I hope will prove useful!

Fuego brings a few functional paradigms to Go. The intent is to save development time while promoting code readability and reduce the risk of complex bugs.

## Install

```bash
go get github.com/seborama/fuego
```

Or for a specific version:

```bash
go get gopkg.in/seborama/govcr.v5
```

## Contribute

Contributions and feedback are welcome.

For contributions, you must develop in TDD fashion and ideally provide Go testable examples (if meaningful).

## Main features

The code documentation can be found on [godoc](http://godoc.org/github.com/seborama/fuego).

**The tests form the best source of documentation. Fuego comes with a good collection of unit tests and testable Go examples. Don't be shy, open them up and read them and tinker with them!**

Have fun!!

### Entry

`Entry` is based on `hamt.Entry`. This is an elegant solution from [Yota Toyama](https://github.com/raviqqe): the type can be anything so long as it respects the simple behaviour of `hamt.Entry`. This provides an abstraction of types yet with known behaviour:
- Hash(): identifies an Entry Uniquely.
- Equal(): defines equality for a type of `Entry`. `Equal()` is expected to be based on `Hash()`.

### Maybe

A `Maybe` represents an optional value.

When the value is `nil`, `Maybe` is considered empty unless it was created with `MaybeSome()` in which case it is considered to hold the `nil` value.

`MaybeNone()` always produces an empty optional.

### HamtSet

`HamtSet` is based on hamt.Set and entries must implement interface `Entry`.

It is an unordered collection, yet unnaturally sorted (i.e. sorting is based on the hash of the `hamt.Entry`).

An example `Entry` implementation called `EntryInt` is provided in [entry_test.go](entry_test.go).

```go
// See entry_test.go for "EntryInt"
NewHamtSet().
    Insert(EntryInt(1)).
    Insert(EntryInt(2)).
    Delete(EntryInt(1)).
    Insert(EntryInt(3)).
    Stream()
```

Uses of streams with Sets are also available in [example_map_test.go](example_map_test.go).

### OrderedSet

This is an **ordered** implementation of a `Set`.

### HamtMap

As with `HamtSet`, `HamtMap` is based on hamt.Map and entries must implement interface `Entry` for its keys but values can be anything (`interface{}`).

It is an unordered collection, yet unnaturally sorted (i.e. sorting is based on the hash of the `hamt.Entry` keys).

See [example_map_test.go](example_map_test.go) for more details of an example of `HamtMap` with Stream and Filter combined together to extract entries which keys are an even number.

### OrderedMap

This is an **ordered** implementation of a `Map`.

### Tuple

fuego provides these `Tuple`'s:
- Tuple0
- Tuple1
- Tuple2

The values of fuego `Tuples` is of type `Entry` but can represent any type (see EntryInt and EntryString examples).

### Functions

See [example_function_test.go](example_function_test.go) for basic example uses of `Function` and `BiFunction` and the other tests / examples for more uses.

### Iterator

You can create you own `Iterator`'s.

See [iterator.go](iterator.go) for several convenience implementations of iterators:
- NewSliceIterator
- NewSetIterator

Iterator supports:
- Forward
- Value
- Reverse
- Size

```go
NewSliceIterator([]Entry{EntryInt(2), EntryInt(3)}) // returns an Iterator over []interface{2, 3}

NewSetIterator(NewHamtSet().
    Insert(EntryInt(2))), // returns an Iterator over a HamtSet that contains a single EntryInt(2)
```

### Stream

#### Creation

```go
someGoSlice := []int{1, 2, 3}
NewStream(
    NewSliceIterator(someGoSlice)),
```

```go
NewStream(
    NewSetIterator(
        NewOrderedSet().
            Insert(EntryInt(1)).
            Insert(EntryInt(2))))
```

#### Map

```go
// See in this README and in helpers_test.go for "functionTimesTwo()"
NewOrderedSet().
    Insert(EntryInt(1)).
    Insert(EntryInt(2)).
    Insert(EntryInt(3)).
    Stream().
    Map(functionTimesTwo())
// returns EntryInt's {2,4,6}
```

#### Filter

```go
// See helpers_test.go for "newEntryIntEqualsTo()"
NewOrderedSet().
    Insert(EntryInt(1)).
    Insert(EntryInt(2)).
    Insert(EntryInt(3)).
    Stream().
    Filter(FunctionPredicate(entryIntEqualsTo(EntryInt(1))).
        Or(FunctionPredicate(entryIntEqualsTo(EntryInt(3)))))
// returns EntryInt's {1,3}
```

#### Reduce / LeftReduce / RightReduce

```go
// See helpers_test.go for "concatenateStringsBiFunc()"
NewOrderedSet().
    Insert(EntryString("four")).
    Insert(EntryString("twelve")).
    Insert(EntryString("one")).
    Insert(EntryString("six")).
    Insert(EntryString("three"))
    Stream().
    Reduce(concatenateStringsBiFunc)
// returns EntryString("one-three-twelve-six-four")
```

#### ForEach

```go
total := 0

computeSumTotal := func(value interface{}) {
    total += int(value.(EntryInt).Value())
}

NewOrderedSet().
    Insert(EntryInt(1)).
    Insert(EntryInt(2)).
    Insert(EntryInt(3)).
    Stream().
    ForEach(calculateSumTotal)
// total == 6
```

#### Intersperse

```go
NewOrderedSet().
    Insert(EntryString("three")).
    Insert(EntryString("two")).
    Insert(EntryString("four")).
    Stream().
    Intersperse(EntryString(" - "))
// "three - two - four"
```

#### GroupBy

Please refer to [stream_test.go](stream_test.go) for an example that groups numbers by parity (odd / even).

### Predicates

A `Predicate` is a normal Go function which signature is

```go
func(t interface{}) bool
```

A `Predicate` has convenient pre-defined methods:
- Or
- And
- Not

Several pre-defined `Predicate`'s exist too:
- True
- False
- FunctionPredicate - a Predicate that wraps over a Function

See [example_predicate_test.go](example_predicate_test.go) for some examples.

```go
// ƒ is ALT+f on Mac. For other OSes, search the internet,  for instance,  this page: https://en.wikipedia.org/wiki/%C6%91#Appearance_in_computer_fonts
_ = ƒ.Predicate(ƒ.False).And(ƒ.Predicate(ƒ.False).Or(ƒ.True))(1) // returns false

res := ƒ.Predicate(intGreaterThanPredicate(50)).And(ƒ.True).Not()(23) // res = true

func intGreaterThanPredicate(rhs int) ƒ.Predicate {
	return func(lhs interface{}) bool {
		return lhs.(int) > rhs
	}
}
```

## Known limitations

- hamt.Set and hamt.Map are not ordered as per their initialisation but rather following their Hash. Use OrderedSet as an alternative.
- several operations may be memory intensive or poorly performing, notably - but not limited to - in OrderedSet.

repository: developgo/fuego

repo_name: developgo/fuego


text:
---
hrs_structure:
  division: '1'
  volume: '2'
  title: '7'
  chapter: 88F
  section: 88F-1
type: hrs_section
tags:
  - Government
menu:
  hrs:
    identifier: HRS_0088F-0001
    parent: HRS0088F
    name: 88F-1 Definitions
weight: 45005
title: Definitions
full_title: 88F-1 Definitions
---
**[§88F-1] Definitions.** As used in this chapter, unless the context clearly indicates otherwise:

"County" means the counties of Honolulu, Hawaii, Kauai, and Maui.

"Employee" means a part-time, temporary, seasonal or casual employee, as defined by rules of the board of trustees, who is not eligible to participate in the employees' retirement system of the State under chapter 88.

"State" means the State of Hawaii. [L 1996, c 212, pt of §2]

repository: SamMade/BlueAndKrabby

repo_name: SamMade/BlueAndKrabby