text:
# bangazon-03-methodoverloading
Method overloading in Python uses a single method, but utilizes parameter names and default values. This allows a single method to have multiple signatures.

Bangazon Orientation - Method Overloading

Method overloading in Python uses a single method, but utilizes parameter names and default values. This allows a single method to have multiple signatures.

Instructions

Create a new class to represent an Employee.

It's constructor should accept two parameters.

First name of employee
Last name of employee
Define a method named eat() that will allow it to be invoked with the following four signatures.

eat() - Will select a random restaurant name from a list of strings, print to console that the employee at at that restaurant, and also return the restaurant.
eat(food="sandwich") - Will output that the employee ate that specific food at the office.
eat(companions=[Sam, Dean, Alice]) - Will select a random restaurant name from a list of strings, print to console that the employee at that restaurant, and also output the first name of each employee in the specified list.
eat("pizza", [Sam, Dean, Alice]) - Will select a random restaurant name from a list of strings, print to console that the employee at that restaurant, and ordered the specified food, with the first name of the teammates specified in the list.
Note: Notice that this signature doesn't require that the parameters to be named


text:
# MetaMask

## Company blurb

MetaMask empowers users and builders to transact, raise, share, transfer, invest, coordinate and distribute value via the decentralized web. We aim to bring our 1 million+ users a private, secure, robust and delightful user interface for the ethereum blockchain. Our leading projects are the [MetaMask browser extension](https://github.com/MetaMask/metamask-extension/) and [MetaMask Mobile](https://github.com/MetaMask/metamask-mobile)

## Company size

20-50

## Remote status

We are a fully remote organization. We are located across North America, South America, Europe and east Asia. Our team meeting schedule mostly aligns with mid-morning to mid-afternoon Pacific Time. We have an annual, week long full team meet-up. We highly value active communication, and regularly communicate through both video meetings and async using slack, GitHub and google docs.

## Region

Worldwide

## Company technologies

React Native, iOS, android, React, Node.js

## How to apply

In 2019, we launched our mobile web browser and gained rapid traction. We are hiring a Senior Mobile Engineer to help lead technical development as we aim to engage and empower millions of more users. We are looking for someone with a strong depth of iOS and Android experience, who can lead feature development in our React Native codebase.

Apply here: https://boards.greenhouse.io/consensys/jobs/1990589

repository: remoteintech/remote-jobs

branch_name: refs/heads/main

extension: md

gha_language: JavaScript

license_type: permissive

repo_name: remoteintech/remote-jobs


text:
---
layout: default
---

# 1996-11-08 - Re: Judge Patel Background

## Header Data

From: jim bell<EMAIL_ADDRESS>To<EMAIL_ADDRESS>Message Hash: 3f910780371535c357b83156937e4a8d5c364b77fbed392347ab874bb603f758

Message ID<EMAIL_ADDRESS>Reply To: _N/A_

UTC Datetime: 1996-11-08 21:37:30 UTC

Raw Date: Fri, 8 Nov 1996 13:37:30 -0800 (PST)

## Raw message

```
{% raw  %}From: jim bell<EMAIL_ADDRESS>Date: Fri, 8 Nov 1996 13:37:30 -0800 (PST)
To<EMAIL_ADDRESS>Subject: Re: Judge Patel Background
Message-ID<EMAIL_ADDRESS>MIME-Version: 1.0
Content-Type: text/plain

At 09:12 PM 11/7/96 -0800, Peter Hendrickson wrote:
>Fred Korematsu was a Japanese-American shipyard worker in the
>early 1940s. His fiancee was Caucasian.  To stay with her, he evaded
>the concentration camps for two months, but was caught and convicted
>anyway.  His conviction was not reversed until 1983 in the court of one
>Judge Patel.
>
>Page 48, "After hearing lawyers on both sides, Judge Marilyn Patel
>asked Fred Korematsu to address the court.  `As long as my record
>stands in federal court,' he quietly stated, `any American citizen
>can be held in prison or concentration camps without a trial or
>hearing.'  Ruling from the bench, Judge Patel labeled the government's
>position as `tantamount to a confession of error' and erased Fred's
>conviction from the court's records."
>
>(Judge Patel is presiding over Dan Bernstein's challenge to the ITAR.)

However, the fact that it took 40 years to reverse (and didn't, presumably,
reverse the convictions of others, and didn't compensate people for lost
property) is yet another reason to take a few pieces out of the hide of the
SC, as well as a few pounds of flesh nearest the heart.

Jim Bell
<EMAIL_ADDRESS>

{% endraw %}
```

## Thread

+ Return to [November 1996](/archive/1996/11)

+ Return to "[jim bell <jimbell@pacifier.com>](/authors/jim_bell_jimbell_at_pacifier_com_)"

+ 1996-11-08 (Fri, 8 Nov 1996 13:37:30 -0800 (PST)) - Re: Judge Patel Background - _jim bell<EMAIL_ADDRESS>

license: MIT

branch_name: refs/heads/master

gha_license_id: MIT


text:
---
layout: post
title:  "recently read books"
category: books
author: mrtn
---

# the every computer performance book by Bob Wescott

i've revisited that one due to work-requirements and i needed to refresh my knowledge on that topic a bit.

i consider this one of the best (because technology-agnostic) books about performance engineering i've read so far. bob does an amazing job of conveying the *core* knowledge that helps developers in their quest for performant applications.

# Deep Work: Rules for Focused Success in a Distracted World by Cal Newport

this one was a pretty surprising hit for me. Cal describes how he and other accomplished people manage to handle their work and advance their knowledge - without missing out on family or social life. for me, the simple things like _quitting social media_, _scheduling your days_ and _actually clocking out_ when the work is done seem to work pretty well. in addition to that, the book was easy to read, had a straight narration and didn't take any detours. all in all: thumbs up - read this if you want to improve your life-work balance.

# Turn the Ship Around by L. David Marquet

this has been some kind of a disappointment. neither because of the narration nor because of anything i disagree with - it's just that the whole concept of _leader-leader_ (instead of leader-follower) approach to leadership is totally obvious to someone who works and believes in the agile methodologies. it actually annoys me, if someone doesn't think about what they are doing and just wait to get orders. or the other way round. only ordering *what* to do instead of focussing on *how* to achieve the best possible result. if this seems weird to you, go and read that book. if the navy can profit from that approach, i'm sure your organization can as well.

# Scrum: The Art of Doing Twice the Work in Half the Time by Jeff Sutherland

Jeff Sutherland, co-creator of scrum, tells some stories of ridiculous improvements in team performances that he witnessed and supports these stories with the underlying concepts in scrum. nice read, interesting stories and a great opportunity to re-visit the concept and theory behind one of the most successful agile methodologies.


text:
# Jinja2 Live Parser with FastAPI :)

A lightweight live parser for Jinja2 based on FastAPI and Jquery.
Can parse JSON and YAML inputs.

This project was based on https://github.com/qn7o/jinja2-live-parser

## Requirements

* [Docker](https://www.docker.com/).
* [Docker Compose](https://docs.docker.com/compose/install/).

## Running the application

* Start it with Docker Compose:

```bash
docker-compose up -d
```

* Now you can open your browser and interact with these URLs:

Front-end page which provides live jinja2 rendering: http://localhost:8000/

Backend, JSON based web API based on OpenAPI: http://localhost:8000/api/

Automatic interactive documentation with Swagger UI (from the OpenAPI backend): http://localhost:8000/docs

Alternative automatic documentation with ReDoc (from the OpenAPI backend): http://localhost:8000/redoc

To check the logs, run:

```bash
docker-compose logs
```

## Usage

You are all set, go to http://localhost:8000/ and have fun.

## Preview

![preview](https://i.imgur.com/JD5mJ9x.png)


text:
---
ENTRYTYPE: misc
added: 2021-09-27
archiveprefix: arXiv
authors:
- Noam Shazeer
- Azalia Mirhoseini
- Krzysztof Maziarz
- Andy Davis
- Quoc Le
- Geoffrey Hinton
- Jeff Dean
eprint: '1701.06538'
layout: paper
primaryclass: cs.LG
read: true
readings:
- 2021-09-27
title: 'Outrageously large neural networks: The sparsely-gated mixture-of-experts layer'
year: 2017
notes:
- mixture of experts
- machine learning
- neural network
- gating network
- CNN
- LSTM
- NLP
- google
papers:
---

Achieves efficiency (and, hence, scaling) by using a [mixture of experts] approach
with thousands of experts and exploiting sparsity in the [gating network] where
at most k experts are selected.

There are tricks in how the work is distributed and implemented to make learning efficient
that exploit the nature of [CNN]s.

They use two loss functions.
One encourages all experts to have equal importance.
The other encourages load balancing across experts.

They evaluate on a "billion word language model" consisting of shuffled unique
sentences from news articles containing 829 million words and a vocabulary of
793,471 words.  They trained models consisting of two stacked [LSTM] layers
with a [mixture of experts] layer between them and vary the sizes of layers and
the number of experts from 4 to 4096 where each expert consists of around 8 million MACs per
training example per timestep in the forward pass and 4 experts are active per
input.
Comparing models by size (number of parameters), this method gives similar perplexity compared
with a straight LSTM approach.
Comparing models by computational complexity, this method gives 24% lower (better) perplexity
for the same computational effort.

The also evaluated on a "100 billion word" news corpus, bilingual machine translation, multilingual machine translation,

{% include links.html %}

repository: alastairreid/RelatedWork

gha_language: TeX

repo_name: alastairreid/RelatedWork


text:
# town-sim-py
Ver. 1.1
Town growth simulator that creates road networks.

Outputs a text file which contains lists of roads, and if the road is curved, a list of its turning points.

See paper [here](https://github.com/julinas/town-sim-py/blob/master/TownSim_PCG_presentation.pdf).

See presentation slides [here](TownSim_PCG_presentation.pdf).

## Expressive Range
Below are examples of the expressive range exposed by some of the parameters.

<img src="screenshots/ExpressiveRange.png" alt="expressive range screenshot" width="600"/>

## Note
Use `-h` for up-to-date commandline options. Do not use `--noui`; it is out of sync.

## Commandline Options
```
usage: graph.py [-h] [--noui] [-o OUTPUT] [-s SIZE] [-c CYCLES] [-p2 PHASE2]
                [-p3 PHASE3] [-ma MAJOR] [-mi MINOR] [-by BYPASS]
                [-br BRIDGES]

optional arguments:
  -h, --help            show this help message and exit
  --noui                Suppresses UI if set.
  -o OUTPUT, --output OUTPUT
                        Output file name. Default: output.txt.
  -s SIZE, --size SIZE  n for nxn grid. Default: 200.
  -c CYCLES, --cycles CYCLES
                        The number of full cycles to run before ending
                        simulation in commandline. The simulation does not
                        self-terminate when running in UI. Default: 15.
  -p2 PHASE2, --phase2 PHASE2
                        Minimum total prosperity to allow calculation for
                        bypass roads. Default: 200000.
  -p3 PHASE3, --phase3 PHASE3
                        Minimum total prosperity to allow calculation for
                        minor roads. Default: 80000.
  -ma MAJOR, --major MAJOR
                        Minimum local prosperity for a new major road.
                        Default: 10.
  -mi MINOR, --minor MINOR
                        Minimum local prosperity for a new minor road.
                        Default: 400.
  -by BYPASS, --bypass BYPASS
                        Minimum local traffic for a new bypass segment.
                        Default: 2000.
  -br BRIDGES, --bridges BRIDGES
                        Minimum local prosperity for a new bridge. Default:
                        5000.
```
## Piping into SUMO format
We mirror-forked SUMO here allowing the town-sim output to be piped into the SUMO format (.net.xml): https://github.com/julinas/sumo-mirror making some minor changes to SUMO's netgenerate program. Edited files are netgen/NGEdge.* , netgen/NGNet.* , and netgen/NGFrame.*

This is the added usage where filename1 should be the location of the file generated by town-sim-py and filename2 is the output location of the resulting .net.xml file.
```
netgenerate --town-sim --town-sim.file=[filename1] --output-file=[filename2]
```
Ex.
```
netgenerate --town-sim --town-sim.file="output.txt" --output-file="NewSUMOFile.net.xml"
```

## Bugs
The output function is set up such that the lists of road nodes and segments can be messed up if outputting twice in one simulation.

repository: AugmentedDesignLab/town-sim-py

gha_language: Python

repo_name: AugmentedDesignLab/town-sim-py


text:
# GAUSS-00871 -- GAUSS-00880

GAUSS-00871: "can not set unusable index partition against NON-PARTITIONED index"

SQLSTATE: XX000

Description: Unusable index partitions are set for a non-partitioned table.

Solution: Set index partitions for a partitioned table.

GAUSS-00872: "can not set all index unusable on one partition against NON-PARTITIONED table"

SQLSTATE: XX000

Description: Unusable full index partitions are set for a non-partitioned table.

Solution: Set full index partitions for a partitioned table.

GAUSS-00873: "can not enable row movement against NON-PARTITIONED table"

SQLSTATE: XX000

Description: Row movements are not enabled for a non-partitioned table.

Solution: Change the non-partitioned table to a partitioned table.

GAUSS-00874: "can not disable row movement against NON-PARTITIONED table"

SQLSTATE: XX000

Description: Row movements cannot be canceled for a non-partitioned table.

Solution: Change the non-partitioned table to a partitioned table.

GAUSS-00875: "can not truncate partition against NON-PARTITIONED table"

SQLSTATE: XX000

Description: Partitions cannot be truncated for a non-partitioned table.

Solution: Change the non-partitioned table to a partitioned table.

GAUSS-00876: "can not exchange partition against NON-PARTITIONED table"

SQLSTATE: XX000

Description: Partitions cannot be modified for a non-partitioned table.

Solution: Change the non-partitioned table to a partitioned table.

GAUSS-00877: "can not merge partition against NON-PARTITIONED table"

SQLSTATE: XX000

Description: Partitioned cannot be merged for a non-partitioned table.

Solution: Change the non-partitioned table to a partitioned table.

GAUSS-00878: "can not split partition against NON-PARTITIONED table"

SQLSTATE: XX000

Description: Partitions cannot be split for a non-partitioned table.

Solution: Change the non-partitioned table to a partitioned table.

GAUSS-00880: "the current relation have already reached max number of partitions"

SQLSTATE: XX000

Description: The maximum number of partitions of a relational table has been reached.

Solution: Add partitions to the relational table after reducing the number of its partitions.


text:
# @leafygreen-ui/combobox

## 6.0.14

### Patch Changes

- Updated dependencies [a5770c15]
- Updated dependencies [c89d17a4]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 6.0.13

### Patch Changes

- Updated dependencies [3fe03b50]
- Updated dependencies [fd907503]
- Updated dependencies [c9f0055a]
- Updated dependencies [56459cde]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 6.0.12

### Patch Changes

- 4fcf2e94: Type assert children as `Array<React.ReactNode>` inside the internal function `renderedMenuContents` and add explicit return type to internal function `renderCombobox`.
- Updated dependencies [4fcf2e94]
- Updated dependencies [4fcf2e94]
- Updated dependencies [4fcf2e94]
- Updated dependencies [4fcf2e94]
- Updated dependencies [4fcf2e94]
- Updated dependencies [4fcf2e94]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 6.0.11

### Patch Changes

- c11bbc29: Fixes problem with ts-docs not being available in bundle.
- Updated dependencies [c11bbc29]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 6.0.10

### Patch Changes

- c15ee2ac: Fixes missing documentation file
- Updated dependencies [f73807cf]
- Updated dependencies [31c09354]
- Updated dependencies [c15ee2ac]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 6.0.9

### Patch Changes

- e8ef95e6: Updates disabled styles

## 6.0.8

### Patch Changes

- 2603d7ac: Component props now properly inherit from `PopoverProps` interface

## 6.0.7

### Patch Changes

- 215268ff: Updates build tooling. No functional changes
- Updated dependencies [215268ff]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 6.0.6

### Patch Changes

- 76161cf0: Updates stories for Chromatic testing
- Updated dependencies [76161cf0]
- Updated dependencies [76161cf0]
- Updated dependencies [735342e9]
- Updated dependencies [95f5107a]
- Updated dependencies [76161cf0]
- Updated dependencies [76161cf0]
- Updated dependencies [76161cf0]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 6.0.5

### Patch Changes

- 63b2deb0b: Upgrade button to v20.1.1
- Updated dependencies [63b2deb0b]
  -<EMAIL_ADDRESS>
## 6.0.4

### Patch Changes

- d2ce54e2f: Updates story files for Storybook 7.x
- d2ce54e2f: Exports primary component props
- Updated dependencies [d2ce54e2f]
- Updated dependencies [75099c60b]
- Updated dependencies [d2ce54e2f]
- Updated dependencies [0cd471676]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 6.0.3

### Patch Changes

- 78d36936d: Combobox tooltips receive same zindex as Combobox menu
- Updated dependencies [6a3f03fd2]
  -<EMAIL_ADDRESS>
## 6.0.2

### Patch Changes

- a3a52e131: Bumps to use new `useIdAllocator` hook
- Updated dependencies [614f7617d]
- Updated dependencies [a3a52e131]
- Updated dependencies [614f7617d]
- Updated dependencies [a3a52e131]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 6.0.1

### Patch Changes

- 32b3d3146: Bumps to use new `useIdAllocator` hook
- 73cbbd02c: Uses fontWeight token from `@leafygreen-ui/tokens`
- Updated dependencies [73cbbd02c]
- Updated dependencies [32b3d3146]
- Updated dependencies [8ece56980]
- Updated dependencies [83fc5b31b]
- Updated dependencies [9bcf8b925]
- Updated dependencies [8ece56980]
- Updated dependencies [32b3d3146]
- Updated dependencies [73cbbd02c]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 6.0.0

### Major Changes

- 77320a6b8: - Adds new size variants, `small` and `xsmall`.
  - Removes truncation from chips when overflow is set to `scroll-x`. Chips do not need truncation since consumers can scroll horizontally to read the text.
  - Sets a max height of 3 rows to the input when overflow is `expand-y`. An overflow shadow is added to indicate there is a scroll.
  - Warning icon that appears when `state='error'` is now positioned to the left of the caret or clear icon. Previously it replaced the caret icon.

### Minor Changes

- 77320a6b8: - Adds `onClick` and `description` prop to `ComboboxOption`

### Patch Changes

- 77320a6b8: Switch to `useAutoScroll` hook to auto scroll the focused option
- d9d8f770d: Updates disabled styles
- ce0fcb3f6: Excludes `children` from story controls
- 77320a6b8: Fix padding discrepancy between Combobox, Select, Text Input, and Number Input
- Updated dependencies [55d33e435]
- Updated dependencies [77320a6b8]
- Updated dependencies [07db42330]
- Updated dependencies [55d33e435]
- Updated dependencies [cf00160ec]
- Updated dependencies [ce0fcb3f6]
- Updated dependencies [111b680c5]
- Updated dependencies [77320a6b8]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 5.0.11

### Patch Changes

- 8c0c2bdf9: Updates build script to include a transpiled copy of the story file in the bundle
- Updated dependencies [8c0c2bdf9]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 5.0.10

### Patch Changes

- Updated dependencies [5b036515e]
- Updated dependencies [26e341a0b]
- Updated dependencies [997121cc3]
- Updated dependencies [eb0cc4498]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 5.0.9

### Patch Changes

- 2e8a572db: Internal refactoring. Adds `input-option` as a dependency
- Updated dependencies [2e8a572db]
- Updated dependencies [4ccc353e7]
- Updated dependencies [4ccc353e7]
  -<EMAIL_ADDRESS>
## 5.0.8

### Patch Changes

- 95eeb5a06: Spread `...rest` to `ComboboxOption`
- d58af1054: Fixes bug where clicking the clear icon button triggered the menu to reopen.
- Updated dependencies [0541bd776]
- Updated dependencies [ec2a3d66d]
- Updated dependencies [ec2a3d66d]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 5.0.7

### Patch Changes

- 64eee134d: TSDoc: Updates some exported TSDoc interfaces. Storybook: Updates story files.
- Updated dependencies [64eee134d]
- Updated dependencies [64eee134d]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 5.0.6

### Patch Changes

- Updated dependencies [050f1f8a9]
- Updated dependencies [741cdd408]
- Updated dependencies [866144167]
- Updated dependencies [c82ed35d5]
- Updated dependencies [b24b21462]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 5.0.5

### Patch Changes

- c4eb3ec26: Removes use of uiColors from component
- Updated dependencies [d8c589d35]
- Updated dependencies [703db871f]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 5.0.4

### Patch Changes

- 4215ef424: Update some PropTypes to use `oneOfType` instead of `oneOf`. Also downgrades `Chalk` package.
- Updated dependencies [75f26afbc]
- Updated dependencies [95bd93ef9]
- Updated dependencies [3bb4b7506]
- Updated dependencies [a0d6638c4]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 5.0.3

### Patch Changes

- b7f7a4c95: Updates package dependencies & devDependencies, and ensures each package is appropriately listed. Ensures `tsconfig` has no circular dependencies
- Updated dependencies [b7f7a4c95]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 5.0.2

### Patch Changes

- 38181cc1d: Update to consume darkMode from `useDarkMode`. Some components were setting `darkMode = false` as a default which would override the default value provided by the `LeafyGreenProvider`.
- Updated dependencies [38181cc1d]
  -<EMAIL_ADDRESS>
## 5.0.1

### Patch Changes

- 1a335d0b2: Migrate component internals to check for glyphs explicity, rather than for Icon components as well
- ed0e425e5: Adds `polished` as an explicit dependency
- ae5421cf6: Updates components to use internal transition tokens
- Updated dependencies [ae5421cf6]
- Updated dependencies [4b4c2d27d]
- Updated dependencies [6a266b813]
- Updated dependencies [1a335d0b2]
- Updated dependencies [ba97d1ef7]
- Updated dependencies [ae5421cf6]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 5.0.0

### Patch Changes

- Updated dependencies [07b3c797]
- Updated dependencies [07b3c797]
- Updated dependencies [b9b09a86]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 4.0.1

### Patch Changes

- Updated dependencies [2195359a]
- Updated dependencies [209f77ed]
- Updated dependencies [f2d63a60]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 4.0.0

### Patch Changes

- d51afee1: Fixes a bug where the combobox Text Input content would overflow the container
- Updated dependencies [e399f1b9]
- Updated dependencies [e399f1b9]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 3.1.1

### Patch Changes

- 24683433: - Remove an implicit dependency on `@emotion/react` fixing an issue where LG packages would not build if `<EMAIL_ADDRESS>or greater was installed.
- Updated dependencies [24683433]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 3.1.0

### Minor Changes

- 3690df49: Updates TypeScript annotations, type structures and export format of some components
- 58a5a05e: - Ensures the combobox does not open on initial focus. The menu should only open when clicked, or a relevant key is pressed when the input is focused.
  - Opens the menu on `Enter` key press if the menu is closed.

### Patch Changes

- 3690df49: Extends `div` element props
- 58a5a05e: Adds missing PropTypes declarations
- Updated dependencies [3690df49]
- Updated dependencies [3690df49]
- Updated dependencies [3690df49]
- Updated dependencies [3690df49]
- Updated dependencies [3690df49]
- Updated dependencies [58a5a05e]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 3.0.1

### Patch Changes

- 8d7534e9: Adds `tsdoc.json` to published package files
- Updated dependencies [7caa1c3e]
- Updated dependencies [1e708bd3]
- Updated dependencies [e39d8469]
- Updated dependencies [8d7534e9]
- Updated dependencies [1e708bd3]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 3.0.0

### Major Changes

- 2ff9ac32: Removes `Overflow.ExpandX` option.

  Overflow.ExpandX has always been an edge case, and is causing some issues with styling. Instead of increasing the complexity of the component to account for this edge case, we are removing this option.

  In most cases the `x` direction will be more space-limited and not many folks will opt to use this option. And if they do use expand-x, it's inherently limited to the size of the container/window and we'll need to restrict the width regardless. Just providing scroll-x and expand-y overflow options will cover most use cases.

### Patch Changes

- 090bd806: Fixes broken button styles in Combobox Chip.
  Reduces inline padding when `overflow === 'scroll-x'`.
  Flags `Overflow.ExpandX` as deprecated. Will be removed in the next major release.
- Updated dependencies [19a62173]
- Updated dependencies [30e038a3]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 2.0.2

### Patch Changes

- bf320048: Updates the highlighting function (wrapJSX) to ensure all values are accepted, including regex special characters
- bf320048: Adds missing `leafygreen-provider` as a peer dependency
- Updated dependencies [65c86281]
- Updated dependencies [4ad8cbc0]
- Updated dependencies [9cb53590]
- Updated dependencies [bac1e809]
- Updated dependencies [bac1e809]
- Updated dependencies [9dafe83a]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 2.0.1

### Patch Changes

- 5f82468e: Updates lodash imports in combobox. Lodash functions are now imported individually to reduce bundle size
- Updated dependencies [13a4adcc]
  -<EMAIL_ADDRESS>
## 2.0.0

### Major Changes

- a0beace8: Updates Combobox for visual refresh. Adds Dark Mode

### Patch Changes

- Updated dependencies [85d46871]
- Updated dependencies [99e20bb9]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 1.2.2

### Patch Changes

- fad2b287: Fixes a bug where occasionally the max menu height would be set to 0 if a ref was left unset

## 1.2.1

### Patch Changes

- Updated dependencies [f0a357e2]
  -<EMAIL_ADDRESS>
## 1.2.0

### Minor Changes

- 8ab46ed4: Adds `Large` size variant to Combobox. Additionally, restores legacy font in Label & Description
- d241af9e: Adds a `disabled` prop to ComboboxOptions. Note, disabled options will still be rendered in the menu, but not selectable

### Patch Changes

- d5c12b77: Updates filtering behavior. Now when opening the menu all options will be displayed, regardless of whether a selection has already been made
- a5d19177: Updates backdrop click behavior to match native `<select>`. Now, when clicking away from an open menu to close it, the Combobox will retain focus and no click handlers should fire on clicked elements until the menu is closed
- 8f7f8555: Updates combobox focus ring behavior. The combobox will now display a focus ring whenever the user is able to type in thy combobox. The outer focus ring will not render if a chip or the clear button is focused.
- 4f2ff237: - Updates min-width of the input to fit all characters (previously wide characters would be cut off).
  - Updates text wrapping of menu items so long unbroken strings (like ids) won't overflow, but wrap.
- d241af9e: Restores menu font to legacy Akzidenz font
- 6792bc44: Refactors Combobox and Select to use the new `useAvailableSpace` hook to calculate the max menu height
- 266e0d8e: Ensures the focus remains in the combobox when a chip is removed. Focus is set to either the input, or the next chip to the right, whichever is relevant
- 422dbfcd: Adds additional tests for internal Combobox utilities
- Updated dependencies [1356d50d]
- Updated dependencies [6a89bc29]
- Updated dependencies [fd2f6de0]
- Updated dependencies [6792bc44]
- Updated dependencies [96d1ff9c]
- Updated dependencies [422dbfcd]
- Updated dependencies [9ff90d4b]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 1.1.0

### Minor Changes

- e9c39305: - Reduces `min-width` of combobox down to `24px`

### Patch Changes

- a526ac52: Adds `@leafygreen-ui/tokens` and `@leafygreen-ui/tooltip` to dependencies
- e9c39305: Updates highlighting function to fix a bug where some text would be duplicated
  - Fixes left padding when `overflow="scroll-x"`
  - Clarifies wording for `initialValue` prop docs
- Updated dependencies [e630a889]
- Updated dependencies [2670e4db]
- Updated dependencies [6c12e85a]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 1.0.3

### Patch Changes

- Updated dependencies [e13d2487]
- Updated dependencies [500d6c60]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 1.0.2

### Patch Changes

- Updated dependencies [acd6919]
- Updated dependencies [acd6919]
- Updated dependencies [acd6919]
- Updated dependencies [acd6919]
- Updated dependencies [acd6919]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 1.0.1

### Patch Changes

- e8f1a97: - Updates focus behavior, allowing users to re-open the menu with the mouse after making a selection
  - Adds a warning if `multiselect` and `value` props don't align
  - Fixes a bug where long display names would get truncated early
  - Fixes a bug where the space bar wouldn't type a space character
  - Fixes a bug where some characters could not be typed when a `value` prop was passed in
  - Updates hooks dependency to `^7.2.0`
- Updated dependencies [e8f1a97]
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>
## 1.0.0

### Major Changes

- 548ca2c: - Release Combobox as v1
  - Adds standard popover props: `usePortal`, `popoverZIndex`, `popoverClassName`, `portalContainer`, and `scrollContainer`.
  - Fixes issue where clicking on elements within a Combobox option wouldn't select that option.

repository: mongodb/leafygreen-ui

gha_language: TypeScript

repo_name: mongodb/leafygreen-ui


text:
# Lithops Supported Clouds

## IBM Cloud
Lithops is officially supported for IBM Cloud and Red Hat OpenShift. Students or academic stuff are welcome to follow [IBM Academic Initiative](https://ibm.biz/academic), a special program that allows free trial of IBM Cloud for Academic institutions. This program is provided for students and faculty staff members, and allow up to 12 months of free usage. You can register your university email and get a free of charge account.

Currently, Lithops for IBM Cloud supports these backends:

### Compute
- [IBM Cloud Functions](https://cloud.ibm.com/docs/openwhisk)
- [IBM Code Engine](https://cloud.ibm.com/docs/codeengine)
- [IBM Virtual Private Cloud (VPC)](https://cloud.ibm.com/docs/vpc)

### Storage
- [IBM Cloud Object Storage](https://cloud.ibm.com/docs/cloud-object-storage)

## AWS
Amazon Web Services offers reliable, scalable, and inexpensive cloud computing services. Free to join, pay only for what you use. These cloud computing web services provide a variety of basic abstract technical infrastructure and distributed computing building blocks and tools.

Currently, Lithops for AWS supports these backends:

### Compute
- [AWS Lambda](https://docs.aws.amazon.com/lambda/index.html)

### Storage
- [AWS S3](https://docs.aws.amazon.com/s3/index.html)

## Google Cloud
Google Cloud Platform (GCP), offered by Google, is a suite of cloud computing services. It provides a series of modular cloud services including computing, data storage, data analytics and machine learning. Google Cloud Platform provides infrastructure as a service, platform as a service, and serverless computing environments.

Currently, Lithops for Google Cloud Platform supports these backends:

### Compute
- [Google Cloud Functions](https://cloud.google.com/functions/docs)
- [Google Cloud Run](https://cloud.google.com/run/docs)

### Storage
- [Google Cloud Storage](https://cloud.google.com/storage/docs)

## Microsoft Azure
Microsoft Azure is a cloud computing service created by Microsoft for building, testing, deploying, and managing applications and services through Microsoft-managed data centers. The Azure cloud platform is more than 200 products and cloud services. It provides software as a service (SaaS), platform as a service (PaaS) and infrastructure as a service (IaaS) and supports many different programming languages, tools, and frameworks, including both Microsoft-specific and third-party software and systems.

Currently, Lithops for Microsoft Azure supports these backends:

### Compute
- [Azure Functions](https://docs.microsoft.com/en-us/azure/azure-functions/)

### Storage
- [Azure Blob Storage](https://docs.microsoft.com/en-us/azure/storage/blobs/)

## Alibaba Aliyun
Alibaba Cloud, also known as Aliyun, provides cloud computing services to online businesses and Alibaba's own e-commerce ecosystem. Alibaba Cloud offers cloud services that are available on a pay-as-you-go basis, and include Elastic Compute, Data Storage, Relational Databases, Big-Data Processing, Anti-DDoS protection and Content Delivery Networks.

Currently, Lithops for Alibaba Cloud (Aliyun) supports these backends:

### Compute
- [Aliyun Functions Compute](https://www.alibabacloud.com/help/product/50980.htm)

### Storage
- [Aliyun Object Storage Service](https://www.alibabacloud.com/help/product/31815.htm)

## Kubernetes & On-premise
Automated container deployment, scaling, and management Kubernetes, also known as K8s, is an open-source system for automating deployment, scaling, and management of containerized applications. It groups containers that make up an application into logical units for easy management and discovery.

Currently, Lithops for Kubernetes and on-premise supports these backends:

### Compute
- [Kubernetes Jobs](https://kubernetes.io/docs/concepts/workloads/controllers/job/)
- [Knative](https://knative.dev/)
- [OpenWhisk](https://openwhisk.apache.org/)

### Storage
- [OpenStack Swift](https://docs.openstack.org/swift/latest/)
- [Redis](https://redis.io/documentation)
- [Ceph](https://docs.ceph.com/en/latest/)
- [MinIO](https://docs.min.io/minio/baremetal/)
- [Infinispan](https://infinispan.org/documentation/)

repository: Cohen-J-Omer/lithops

repo_name: Cohen-J-Omer/lithops


text:
# Go Flow Levee

This static analysis tool works to ensure your program's data flow does not spill beyond its banks.

An input program's data flow is explored using a combination of pointer analysis,
 static single assignment analysis, and taint analysis.
"Sources" must not reach "sinks" without first passing through a "sanitizer."
Additionally, source data can "taint" neighboring variables during a "propagation" function call,
 such as writing a source to a string.
Such tainted variables also must not reach any sink.

Such analysis can be used to prevent the accidental logging of credentials or personally identifying information,
 defend against maliciously constructed user input, and enforce data communication restrictions between processes.

### Motivation

Much data should not be freely shared.
For instance, secrets (e.g, OAuth tokens, passwords),
  personally identifiable information (e.g., name, email or mailing address),
  and other sensitive information (e.g., user payment info, information regulated by law)
  should typically be serialized only when necessary and should almost never be logged.
However, as a program's type hierarchy becomes more complex or
  as program logic grows to warrant increasingly detailed logging,
  it is easy to overlook when a class might contain these sensitive data and
  which log statements might accidentally expose them.

### Glossary
| Term             | Definition |
|------------------|------------|
| source           | A variable of concern, such as PII that should not be logged
| source container | A type which is expected to contain a source
| source producer  | A function or method which instantiates a source or source container
| propagator       | A function or method which accepts a source or source container as input, returning data which may be "tainted" with source data.  For instance, `fmt.Sprintf("%v", source)` may return a tainted string containing PII.
| taint            | A variable which may contain source data due to a propagator
| sink             | A function or method which should not be called on source or taint arguments.
| sanitizer        | A function or method which "sanitizes" source data, allowing it to safely pass to a sink.

### Configuration

// TODO -- via config file, via field tags

### How it works

// TODO Describe SSA, taint propagation, pointer analysis

### Automatic source container identification

// TODO -- describe

## Source Code Headers

Every file containing source code must include copyright and license
information. This includes any JS/CSS files that you might be serving out to
browsers. (This is to help well-intentioned people avoid accidental copying that
doesn't comply with the license.)

Apache header:

    Copyright 2020 Google LLC

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

        https://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.

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) for details.

## Disclaimer

This is not an officially supported Google product.

repository: immutableT/go-flow-levee

repo_name: immutableT/go-flow-levee


text:
---
layout: post
title: "FFMPEG: get a thumbnail from a video with PHP"
date: 2010-09-11 10:28
comments: true
categories: [php, ffmpeg]
alias: "/72/ffmpeg-get-a-thumbnail-from-a-video-with-php"
---

Here's a simple tutorial in order to **extract a thumbnail from a video** using FFMPEG and PHP.
<!-- more -->

First of all let's install FFMPEG ( you probably already got it if you know what kind of kick-ass video manipulator it is ):

``` bash
sudo apt-get install ffmpeg
```

Then let's set up our script: the main problem is the use of the `shell_exec()` function, in order to run a shell command inside PHP.

If you don't know anything about `cmd()`, `shell_exec()` or shell escaping please don't use this tecnique and go ahed to [php.net](http://php.net) to read some documentation about it.

At least, you also need to have `shell_exec()` enabled in your server, so shared hosting won't fit your requirements.

Here's the way:

``` php
<?php

$video = 'path/to/video.flv';
$thumbnail = 'path/to/thumbnail.jpg';

// shell command [highly simplified, please don't run it plain on your script!]
shell_exec("ffmpeg -i $video -deinterlace -an -ss 1 -t 00:00:01 -r 1 -y -vcodec mjpeg -f mjpeg $thumbnail 2>&1");
```

so you'll be able to see your thumbnail of the video at the location you specified.

branch_name: refs/heads/source

extension: markdown


text:
# Exercise Set (B)

For all of these exercises, do **not** hand them in, just ensure your teacher sees the work, and that you can communicate your understanding of the work related to the learning goals.

It is highly suggested that you complete these exercises **prior** to attempting [Python - Assignment 2](Python-Assignment-2)

## Exercise 9
_Estimated time to complete: 3-4 classes_

Include a header in this program.
Create a simple Python program using ```if```, ```print()```, ```input()```, ```while or for```, functions, and variables that shows your understanding of the following:
* Lists of strings
* Lists of integers
* Lists of float values
* Negative indexes
* Finding information in a list
* Adding things to lists
* Removing items from lists
* Joining lists (aka list concatenation)
* Slicing lists
* Using ```input()``` to put information directly into a list
* Using the keyword ```in``` and ```not```
* Using ```.sort()``` to sort in ascending and descending order
* Creating a list of lists
* Using ```.copy()``` in a function

## Exercise 10
_Estimated time to complete: 1-2 classes_

Include a header in this program.
Create a simple Python program using ```if```, ```print()```, ```input()```, ```while or for```, functions, and variables that shows your understanding of the following:
* Tuples vs Lists

## Exercise 11
_Estimated time to complete: 1-2 classes_

Include a header in this program.
Create a simple Python program using ```if```, functions, and variables that shows your understanding of the following:

* The ```raise``` keyword
* The ```try``` and ```except``` structure
* Using the ```logging``` module

## Exercise 12
_Estimated time to complete: 1-3 classes_

Include a header in this program.
Create a simple Python program using (at minimum) ```input()```, functions (and documenting them), and variables that shows your understanding of the following:
* Dictionaries
* Differences between keys, values, and items
* Dictionaries vs. Lists
* Dictionaries vs. Tuples

## Exercise 13
_Estimated time to complete: 2-5 classes_

Include a header in this program.
Create a simple Python program using (at minimum) ```print()```, ```input()```, dictionaries and variables that shows your understanding of the following:
* Escape characters
* Indexing and slicing
* ```upper()```, ```lower()```, ```isupper()```, and ```islower()```
* ```isalpha()```, ```isalnum()```, ```isdecimal()```, and ```isspace()```
* ```startswith()```, and ```endswith()```
* ```join()```, and ```split()```
* ```rjust()```, ```ljust()```, and ```center()```
* ```strip()```, ```rstrip()```, and ```lstrip()```

## Exercise 14
_Estimated time to complete: 1-3 classes_

Include a header in this program.
Create a ```.txt``` file that has 5 or more lines of text
Create a simple Python program using (at minimum) ```print()```, functions (and documentation), and variables that shows your understanding of the following:
  * ```open()``` using ```r```
  * ```read()```
  * ```readlines()```
  * ```close()```

## Exercise 15
_Estimated time to complete: 1-3 classes_

Include a header in this program.
Create a simple Python program using (at minimum) ```print()```, ```input()```, dictionaries, and functions (including documentation) that shows your understanding of the following:
  * ```open()``` using ```w``` and ```a```
  * ```write()```
  * ```writelines()```
  * ```close()```

repository: mrseidel-classes/archives

repo_name: mrseidel-classes/archives


text:
### [CVE-2018-17442](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-17442)
![](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

An issue was discovered on D-Link Central WiFi Manager before v 1.03r0100-Beta1. An unrestricted file upload vulnerability in the onUploadLogPic endpoint allows remote authenticated users to execute arbitrary PHP code.

### POC

#### Reference
- http://seclists.org/fulldisclosure/2018/Oct/11
- https://www.exploit-db.com/exploits/45533/

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

repository: trickest/cve

gha_language: HTML

repo_name: trickest/cve


text:
+++
draft = false
author = "Benjamin Herzog"
share = true
comments = true
image = "images/mvp-repl.jpg"
menu = ""
date = "2017-03-18T14:00:00+02:00"
title = "Fast feedback using a REPL"
tags = ["compiler"]
slug = "first-repl"

+++

In this blog post I would like to write about the REPL which I built to get a *fast* feedback cycle for my [lexer]({{< ref "post/9-Lexer.md" >}}). Before going into the topic, here is a short description of what REPL stands for and what its purpose is. REPL stands for Read-Evaluate-Print-Loop. So in the end it is an endless loop which is waiting for input from the user to evaluate it and print the outcome afterwards.

Mostly every programming language is shipped with a REPL to try out language specific features. [lbd](https://www.github.com/BenchR267/lbd) will also have a REPL to try out its features.

The word 'evaluate' is broadly defined in this context. When the language is usable it will mean that you are able to define variables and functions and execute them to get results back. At the moment this evaluation process is a lot less complex since the parser and all the following stuff is not written yet.

In this implementation the REPL only accepts lines of lbd-code and prints out the tokenized version of this line produced by the [lexer]({{< ref "post/9-Lexer.md" >}}). This is of course nothing useful when the compiler has all needed functionality but it is quite helpful when testing the lexer, especially when new features are added. So I think about adding a flag which starts the REPL in different modes, one of them would be the lexer only mode to test tokenizing. If tokens are not produced correctly it could cause some serious bugs in the compiler that are quite hard to catch.

So, lets get into the code! ```repl``` is a new package inside the ```lbd``` package (like ```lexer```). It has only one function which starts the loop, ```repl.Start()```. First, I wanted to create a new lexer each time a line is produced and that would technically be totally fine since the lexer does not need to know any context like previously defined variables. But later, when the parser is added, I need that context, so I wanted to create some workflow that allows it to reuse my only instance of ```lexer.Lexer```.

Since the lexer is working with a rune channel, I needed to create this one first. But the lexer is initialized with this channel and that makes it really hard to reuse the instance. To fix this, I [changed the interface](https://github.com/BenchR267/lbd/commit/0c061cd3d7926b194c34f826b540d862f56fcdd0) of the lexer to take the input channel as an argument of the ```Start``` function instead of ```New```. This makes it possible to create one ```Lexer```, one ```bufio.Scanner``` and create just the channels inside the loop.

```Go
lex := lexer.New()
scanner := bufio.NewScanner(reader)
```

An endless loop in Go is created with the only loop that exists: ```for {}```. Without any condition or iteration this does the same as a ```while``` loop in other languages. Inside the loop the REPL prints its prefix (```lbd $ ```), waits for input and evaluates this.

To read the input from the user I use a ```bufio.Scanner``` instance. It is initialized with a global defined ```io.Reader``` instance which is by default set to ```os.Stdin```. This is a great work around to mock input when unit testing this method. If I would just use ```os.Stdin``` without setting it to this variable, I would hardly be able to write unit tests. The other very important part that needs to be mocked is the ```io.Writer``` where the output is written to. This is by default also set to the obvious one, ```os.Stdout```.

If you are not familiar with those two interfaces in Go: they are the most powerful ones. Go is a truly interface oriented language since interfaces are used for everything to make code more generic usable *(especially due to the lack of [generics itself](https://github.com/golang/proposal/blob/master/design/15292-generics.md))*. Interfaces are especially powerful when they define only one or two methods. ```io.Reader``` for example only defines one method:

```Go
type Reader interface {
	Read(p []byte) (n int, err error)
}
```

Since interface conformance is implicit every type that implements this method is automatically an ```io.Reader``` and can therefor be used as a parameter to every method that accepts an ```io.Reader```. In the test case I am just using ```strings.NewReader()``` to create input for the REPL and ```bytes.Buffer``` to create a buffer for the output.

When the text is scanned from the reader, the REPL sends the given runes to the lexer and waits for its evaluation. The sending of each individual rune is done by the already introduced helper function ```StreamFromString``` from the lexer package.

If you [remember]({{< ref "post/9-Lexer.md" >}}) the [implementation](https://github.com/BenchR267/lbd/blob/c2923d5b3c47f0bfab7a7af25ce5576b71182f99/lexer/lexer.go#L45) of lexers ```Start()``` method, you know that it is creating its own go routine, so the call itself is not blocking.

The lexer is closing its channel after evaluating all runes from the input stream. So to print every evaluated token I am just using a for-range-loop on the channel:

```Go
for t := range lex.NextToken {
	fmt.Fprintln(writer, t)
}
```

Using the REPL looks like this currently:

```Bash
lbd $ a = 5
{{0 0 1} Identifier a}
{{0 2 1} Assign =}
{{0 4 1} Integer 5}

lbd $ b = a == 3
{{0 5 1} Identifier b}
{{0 7 1} Assign =}
{{0 9 1} Identifier a}
{{0 11 2} Equal ==}
{{0 14 1} Integer 3}
```

The session is ended by pressing ```ctrl``` + ```D``` *(^D)* which produces an ```io.EOF``` (end of file) error which then results in a false return value of the ```scanner.Scan()``` call.

To see the whole implementation check out the source file [here](https://github.com/BenchR267/lbd/blob/d5ba30b34ca9b03ad6f6b152cf5fe3cdb2a0e249/repl/repl.go). Thanks for reading this post, the next one is going to be published in the next days since this one is *a bit* delayed.


text:
# Rapid 2FA - Node Package

 - Copyrighted (c) 2017 - **Rapid2FA.com**
 - Author(s): Areeb Majeed (@hackingtag), Rapid2FA.com
 - License: MIT License

This NPM package can be used to interact with the Rapid 2FA API. This package can generate settings page, user session and validate the session.

## Usage ##
You can find the details on how to use the class at our [API Documentation](https://rapid2fa.com/api-documentation).

## Installation ##

Install the package by executing the following.

    npm install rapid2fa
Import the package in your project by putting the following code in your files:

    const Rapid2FA = require('rapid2fa');

## Notes ##
If you've any question or query, please feel free to contact us. You can tweet at @hackingtag or write an email to support[at]rapid2fa[dot]com.


text:
---
title: AmountAdjusterBase
description: API reference for AmountAdjusterBase in Vendr, the eCommerce solution for Umbraco
---
## AmountAdjusterBase

```csharp
public abstract class AmountAdjusterBase : IAmountAdjuster
```

**Inheritance**

* interface [IAmountAdjuster](../iamountadjuster/)

**Namespace**
* [Vendr.Core.Adjusters](../)

### Methods

#### ApplyAmountAdjustments

```csharp
public abstract void ApplyAmountAdjustments(AmountAdjusterArgs args)
```

<!-- DO NOT EDIT: generated by xmldocmd for Vendr.Core.dll -->

repository: vendrhub/vendr-documentation

gha_language: Batchfile

repo_name: vendrhub/vendr-documentation


text:
# vuls-setup
Simple setup scripts for using vuls.io via docker

## Installation

Requires an instance running docker.  Ubuntu 18 is recommended.

The scripts assume you are going to run as root, although it shouldn't be required.

Run the install.sh script.  This will create the vuls databases in the current directory.

So that you won't be prompted to accept the identity of each scanned host, either edit ~/.ssh/config and make sure it has

```
Host *
    StrictHostKeyChecking no
```

or make sure that all of the servers you define to be scanned are in known_hosts.

Edit the config.toml and update the default section for the user name, key, etc to use to ssh into the servers to be scanned.

Note that you can also specify this on a per-server basis if you use different keys, login users, etc.  See the vuls documentation at https://vuls.io/

Under the servers section in config.toml, identify the servers to scan in the format

```
[servers.my-server-1]
host = "my-server-1.mydomain.com"
```

## Updating

Run the update.sh script to update the local CVE databases before doing a scan

## Scanning and Report
Run the scan.sh to scan the servers specified in config.toml, then run report.sh to report on the results of the scan.

Each time you want fresh results, you need to scan and report.

Note that the report script by default sets the report to ignore vulnerabilities for which no patches have been released.  If you want to see these, edit the report.sh and remove the --ignore-unfixed switch.

repository: sriddell/vuls-setup

repo_name: sriddell/vuls-setup


text:
---
layout: post
title: NVC retrospective
subtitle: Building empatic connections in your team
---
## Intro
The purpose of this retrospective is to create an empatic connection within the team, by sharing observations and relating these to feelings and needs and generating concrete requests on how to improve on getting team members needs met.

## Setting the stage
Introduce the NVC process and purpose.

## Gather data

## Generate insights

## Decide what to do


text:
# Error View

The error view package is a React
[Error Boundary](https://reactjs.org/docs/error-boundaries.html). From the React
documentation itself:

> Error boundaries are React components that catch JavaScript errors anywhere in
> their child component tree, log those errors, and display a fallback UI
> instead of the component tree that crashed. Error boundaries catch errors
> during rendering, in lifecycle methods, and in constructors of the whole tree
> below them.

This package provides an `ErrorView` wrapper component that takes a render prop
as a direct child of the component. This function returns three possible values
which can be used to handle the enclosed child components:

- `error` - the error that was returned
- `hasError` - boolean, did the component error
- `onError` - a function that handles errors and triggers the error view
  components error handling

## Contributing

Please read [CONTRIBUTING.md](./CONTRIBUTING.md) before contributing to this
package

## Running the code

Please see our main [README.md](../README.md) to get the project running locally

## Development

The code can be formatted and linted in accordance with the agreed standards.

```
yarn fmt
yarn lint
```

## Testing

This package uses [yarn](https://yarnpkg.com) (latest) to run unit tests on each
platform with [jest](https://facebook.github.io/jest/).

```
yarn test:web
```

Visit the official
[storybook](http://components.thetimes.co.uk/?knob-Size%20of%20ad%20placeholder%3A=default&selectedKind=Primitives%2FError%20View&selectedStory=handles%20a%20component%20that%20errors&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybooks%2Fstorybook-addon-knobs)
to see our available error view templates.

repository: newsuk/times-components

repo_name: newsuk/times-components


text:
# Keza

[![Build Status](https://travis-ci.org/knowbee/keza.svg?branch=master)](https://travis-ci.org/knowbee/keza)
[![npm](https://img.shields.io/npm/dt/keza.svg)](https://www.npmjs.com/package/keza)
[![Dependency Status](https://david-dm.org/knowbee/keza.svg)](https://david-dm.org/knowbee/keza)
[![npm](https://img.shields.io/npm/v/keza.svg)](https://www.npmjs.com/package/keza)
[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)](https://github.com/ellerbrock/open-source-badge/)
[![Open Source Love](https://badges.frapsoft.com/os/mit/mit.svg?v=102)](https://github.com/ellerbrock/open-source-badge/)

Generate template files(babelrc, eslint, readme, etc...) from the command line

## Install

```cli
npm install -g keza
```

or

```cli
yarn global add keza
```

## Preview

## Supported template files

| Status | Template                                      |
| :----- | :-------------------------------------------- |
| ✔      | .babelrc                                      |
| ✔      | .travis.yml                                   |
| ✔      | .dockerignore                                 |
| ✔      | .eslintignore                                 |
| ✔      | .eslintrc                                     |
| ✔      | .hound.yml                                    |
| ✔      | .sequerizerc                                  |
| ✔      | Dockerfile                                    |
| ✔      | Procfile                                      |
| ✔      | now.json                                      |
| ✔      | README.md                                     |
| ✔      | docker-compose(postgres image, mongodb image) |
| ✔      | netlify.toml (for react and vue projects)     |

## Using Keza CLI

#### Command Line

```cli
$ keza
```

## Options:

- `--help`: display helper screen.

## Contribution

Please before making a PR, read first this [Contributing Guideline](./CONTRIBUTING.md)

## License

MIT License

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

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

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

repository: knowbee/keza

repo_name: knowbee/keza


text:
---
layout: page
title: Weak Types
published: true
---

An implementation of weak typing for C++11 and Arduino.

Thanks to [Foo Nathan](https://github.com/foonathan) for inspiration on variant implementation from his typesafe library. The type tracking internals of this library are largely based on his implementation, with some modifications to make things run in C++11/Arduino and to properly override operators to create the operator behavior you would expect from the underlying type.

[Github](https://github.com/eliwinkelman/Weak-Types)

## Usage

```cpp
  using var = weak<int, float, double, std::string>;

  var myInt = 1;
  var myDouble = 14.2;
  var myFloat = 1.3f;
  var myString = std::string("Hello World");

  var a = myInt + myDouble * myFloat;

```


text:
### Introduction

**node-zpar** is a node package that allows using the [ZPar tagger and parser](https://github.com/frcchang/zpar) with node.js. ZPar was written by [Yue Zhang](http://www.sutd.edu.sg/yuezhang.aspx) while he was at Oxford University. According to its home page: *ZPar is a statistical natural language parser, which performs syntactic analysis tasks including word segmentation, part-of-speech tagging and parsing. ZPar supports multiple languages and multiple grammar formalisms. ZPar has been most heavily developed for Chinese and English, while it provides generic support for other languages. ZPar is fast, processing above 50 sentences per second using the standard Penn Teebank (Wall Street Journal) data.*

This is a simple port of my other project [python-zpar](https://github.com/desilinguist/python-zpar.git) to node.js using the amazing [node-ffi](https://github.com/node-ffi/node-ffi) package.

Using the package is really easy:
```javascript
// Load the module
> zpar = require('./zpar')
{ load_models: { [Function] async: [Function] },
  load_tagger: { [Function] async: [Function] },
  load_parser: { [Function] async: [Function] },
  load_depparser: { [Function] async: [Function] },
  tag_sentence: { [Function] async: [Function] },
  parse_sentence: { [Function] async: [Function] },
  dep_parse_sentence: { [Function] async: [Function] },
  unload_models: { [Function] async: [Function] } }

// Load the tagger model
> zpar.load_tagger('/Users/nmadnani/work/NLPTools/zpar/english')
Loading tagger from /Users/nmadnani/work/NLPTools/zpar/english/tagger
Loading model... done.
0

// Tag any sentence. Note the need for the newline and the space at the end.
// ZPar's tokenizer requires that.
> zpar.tag_sentence('I am going to the market.\n ')
'I/PRP am/VBP going/VBG to/TO the/DT market/NN ./.'

> zpar.unload_models()
null
```

The other functions work in a similar fashion.

Note that the the package currently only works on 64-bit Linux and OS X systems. Right now, the zpar shared libraries for both these platforms are actually pre-compiled and bundled with the package. I am new to node and am still figuring out how to make this package installable via `npm`.

repository: EducationalTestingService/node-zpar

repo_name: EducationalTestingService/node-zpar


text:
# Basic math methods

![travis test](https://travis-ci.com/rr69sport/basic_maths.svg?branch=main) [![GitHub issues](https://img.shields.io/github/issues/rr69sport/basic_maths)](https://github.com/rr69sport/basic_maths/issues) ![GitHub last commit](https://img.shields.io/github/last-commit/rr69sport/basic_maths) ![npm](https://img.shields.io/npm/v/basic-maths) ![NPM](https://img.shields.io/npm/l/basic-maths)

```js
const maths = require("basic-maths");
// or
import maths from "basic-maths";

const add = maths.add(1, 2);
const substract = maths.substract(1, 2);
const multiply = maths.multiply(1, 2);
const divideGood = maths.divide(1, 2); // Good
const divideBad = maths.divide(1, 0); // Bad. No number is divisible by zero
```

![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/rr69sport/basic_maths) ![npm](https://img.shields.io/npm/dt/basic-maths) [![GitHub forks](https://img.shields.io/github/forks/rr69sport/basic_maths)](https://github.com/rr69sport/basic_maths/network) [![GitHub stars](https://img.shields.io/github/stars/rr69sport/basic_maths)](https://github.com/rr69sport/basic_maths/stargazers) [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/basic-maths/badge?style=rounded)](https://www.jsdelivr.com/package/npm/basic-maths) ![GitHub contributors](https://img.shields.io/github/contributors/rr69sport/basic_maths?color=success) ![npm collaborators](https://img.shields.io/npm/collaborators/basic-maths?color=success)

## CNDs

[jsDelivr](https://www.jsdelivr.com/package/npm/basic-maths)


text:
# AD.OpenXml
C# extension library for OpenXML manipulation.

![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/austindrenski/AD.OpenXml?svg=true)

## Install from NuGet:

```Powershell
dotnet add [<PROJECT>] package AD.OpenXml
```

## How to use this project

TODO: create a basic walkthrough

gha_language: C#


text:
[![Build Status](https://travis-ci.org/victorklos/ansible-role-install-k8s-tooling.svg?branch=master)](https://travis-ci.org/victorklos/ansible-role-install-k8s-tooling)

# install-k8s-tooling

Install Kubernetes tools.

Tags: kubernetes, k8s, kubeadm, kubectl, helm

## Requirements

A server with a recent version of Debian or Ubuntu that you have root access
to.

## Example Playbook

You can use this role as follows:

    - hosts: servers
      roles:
         - victorklos.install-k8s-tooling

Currently this role does not use any variables.

## License

MIT

## Contact

If you have a question or problem, please open an
[issue](https://github.com/victorklos/ansible-role-install-k8s-tooling/issues).
Also, pull requests are welcome!


text:
# [RUST] - An basic window

I use winit to build window, you can found doc [here](https://github.com/rust-windowing/winit)

repository: loicngr/RUST---basic-window

repo_name: loicngr/RUST---basic-window


text:
# node-peppol

*** UNDER CONSTRUCTION ***

Send and receive Peppol invoices.

This module is designed to run as a separate backend service, for instance on Amazon Lambda. It contains the code needed to execute webhooks for incoming and outgoing business documents. You can combine it with https://github.com/pondersource/invoice-gateway and for the GUI part, so users can connect their bookkeeping system, go through KYC checks, etcetera.

Example using an AP+SMP provider like Acube or Storecove:
```js
import { Peppol } from 'node-peppol';
import { createInvoice } from 'peppol-billing';

const peppol = new Peppol();

peppol.addService({
  acoveCredentials: {
    email: '...',
    password: '...'
  }
});

// Send a single invoice:
const invoice = createInvoice({
  sender: 'NLKVK::12345678',
  receiver: 'NLKVK::12345679',
  items: [
    {
      description: 'shampoo',
      quantity: 4,
      unitPrice: 1.50,
      currency: 'EUR'
    }
  ]
})
peppol.send(invoice, { service: SERVICE_ACUBE });
peppol.on('incoming', (invoice) => {
  console.log(invoice);
});
```

Integration with ERP systems:
```js
peppol.addIntegration({
  quickbooksCredentials: {
    clientId: '...',
    clientSecret: '...'
  }
});

// Connect a Peppol ID to an ERP system user:
peppol.connect('NLKVK::12345678', {
  integration: INTEGRATION_QUICKBOOKS,
  integrationAccess: {
    userId: '...',
    accessToken: '...',
    refreshToken: '...'
  },
  autoSend: true,
  autoReceive: true,
});
```

# Example

* Look up A-Cube S.r.l. on https://peppol.eu/who-is-who/certified-as4-peppol-service-providers/ and ask them if you can become a reseller of their AP+SMP service (support for Storecove, AdValvas and others coming soon!).
* Use https://invoice-gateway.herokuapp.com to obtain a Quickbooks access token for your sandbox company.
* Deploy this code to for instance https://peppol.herokuapp.com
* Set the `CREDS` environment variable to
  ```json
    {"acube":{"email":"...","password":"..."},"quickbooks":{"access_token":"..."}}
  ```
* Set the `WEBHOOKS_ROOT` environment variable to for instance https://peppol.herokuapp.com/webhooks

repository: pondersource/node-peppol

repo_name: pondersource/node-peppol


text:
# Thimblelina's Boutique Project

Thimblelina's Boutique is a project Thim created during her college days. After graduation, she traveled the world seeking fine fabric and have placed it on a website
for viewers to purchased on her website.

Table of contents
* [Installation instructions](https://instructions.brp.com/content/instruction-sheet/en_CA/e-instruction.html#tab=1) - The web framework used
* [Usage](http://www.silkysaws.com/Usage-Instructions) - Dependency Management
* [Credits](https://en.wikipedia.org/wiki/Credit) - Used to generate RSS Feeds
* [Lincensing](https://help.github.com/articles/licensing-a-repository/) - The web framework used

Installation Instructions
* *Install Atom*
* *Install Azure and set up your account*
* *Install FileZilla*
* *Install Bitnami*

Usage
The site should be used with the intent to spend money on items purchased through ThimBlelina's Boutique.

Credits
The author of the site is Thim Chandavong, a student at Rasmussen College deligently putting it together while working full time
and raising children.

Lincensing
Copyright (c) 2011-2017 GitHub Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


text:
# WBA Hackathon 2017 WBRA
This folder contains files related to the Whole Brain Reference Architecture for the WBAI Hackathon 2017.

* Hackathon2017WBRA.json is the BriCA language file for WBRA.

[A memo on the architecture](https://docs.google.com/document/d/1FEHb1AdJF5Pab6UwOZGKbWXXCOYlPT48A4fD0_8YnqU/edit?usp=sharing)

Click here for the figure: ![Figure 1](./2017_WBA_Hackathon_WBRA.svg "Figure 1")


text:
# Updating your code to Version 3

v3 contains many new features, optimizations, and is built on<EMAIL_ADDRESS>Visit [the guide](https://distube.js.org/guide/additional-info/update.html) for help with updating your v2 code to v3.


text:
# cv-core

[![Discord][dci]][dcl] [![Crates.io][ci]][cl] ![MIT/Apache][li] [![docs.rs][di]][dl] ![LoC][lo] ![Tests][btl] ![Lints][bll] ![no_std][bnl]

[ci]: https://img.shields.io/crates/v/cv-core.svg
[cl]: https://crates.io/crates/cv-core/

[li]: https://img.shields.io/crates/l/specs.svg?maxAge=2592000

[di]: https://docs.rs/cv-core/badge.svg
[dl]: https://docs.rs/cv-core/

[lo]: https://tokei.rs/b1/github/rust-cv/cv-core?category=code

[dci]: https://img.shields.io/discord/550706294311485440.svg?logo=discord&colorB=7289DA
[dcl]: https://discord.gg/d32jaam

[btl]: https://github.com/rust-cv/cv-core/workflows/unit%20tests/badge.svg
[bll]: https://github.com/rust-cv/cv-core/workflows/lints/badge.svg
[bnl]: https://github.com/rust-cv/cv-core/workflows/no-std/badge.svg

This library provides common abstractions and types for computer vision (CV) in Rust.
All the crates in the rust-cv ecosystem that have or depend on CV types depend on this crate.
This includes things like camera model traits, bearings, poses, keypoints, etc. The crate is designed to
be very small so that it adds negligable build time. It pulls in some dependencies
that will probably be brought in by writing computer vision code normally.
The core concept is that all CV crates can work together with each other by using the
abstractions and types specified in this crate.

The crate is designed to work with `#![no_std]`, even without an allocator. `libm` is used
for all math algorithms that aren't present in `std`. Any code that doesn't need to be shared
across all CV crates should not belong in this repository. If there is a good reason to put
code that some crates may need into `cv-core`, it should be gated behind a feature.

repository: rust-cv/cv-core

gha_language: Rust

repo_name: rust-cv/cv-core


text:
This integration supports both cloud and on-prem instances of Securonix.
To configure a cloud base instance use the *tenant* parameter only.
To configure an on-prem instance, use both the *host* and *tenant* parameters.

For more information, visit: `securonix/etnants/<tenantname>/securonix_home/responses/demisto`

repository: adambaumeister/content

repo_name: adambaumeister/content


text:
## [Spinal Tap Case](https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/spinal-tap-case)

Convert a string to spinal case. Spinal case is all-lowercase-words-joined-by-dashes.

repository: aparrett/freeCodeCampAlgorithms

repo_name: aparrett/freeCodeCampAlgorithms


text:
hypertest
=========

test a hyper+json api interface

Installation
------------

```sh
$ npm install -g hypertest
```

Usage
-----

```sh
$ hypertest path/to/test.spec.yml

  ....

  4 passing (2s)
```

`hypertest(1)` accepts the same flags as [mocha](https://github.com/visionmedia/mocha)

See [format](#format) for details.

Format
------

`hypertest` expects a yaml document describing the tests. A document includes the host name, optional headers and a set of paths with one or more assertions.

The most basic assertion is a simple string. The available methods are described by [should.js](https://github.com/visionmedia/should.js/)

```yaml
host: http://api.example.com

.account.name: should exist
```
With (optional) headers
```yaml
host: http://api.example.com
headers:
  header1: value1
  header2: value2

.account.name: should exist
```
Additionally, reference to environment variables is possible
```yaml
host: $HOST
headers:
  authorization: $AUTH_TOKEN
```

Since `should exist` is so common it is the default assertion.

```yaml
host: http://api.example.com

.account.name:
```

Assertions can also be a list of assertion statements.

```yaml
.account.name:
  - should eql 'Frank'
  - should startWith 'F'
  - should endWith 'nk'
  - should be type 'string'
  - should be a String
```

If more complex assertions are needed inline javascript functions are available.

```yaml
.account.name:
  - !!js/function >
    function(value, done) {
      // complex testing here
      done();
    }
```

The function can also be given a human-readable name.

```yaml
.account.name:
  -
    name: should do some really complex thing
    fn: !!js/function >
      function(value, done) {
        // complex testing here
        done();
      }
```

The values for the custom functions get injected in by reading the names of the arguments specified. A list of default values includes:

#### val, value

The value of the body at the end of the path

#### res

The response object returned by [superagent](https://github.com/visionmedia/superagent)

#### path, key

The path used in the test

#### should

[should.js](https://github.com/visionmedia/should.js/) module used for testing

#### hyperagent, hyper

[hyperagent](https://github.com/hypergroup/hyperagent) context used to make the request

#### require

CommonJS `require` function to require any other needed modules

#### done, cb, fn

Function to be called when the assertions are done executing. This is required for any async assertions.

repository: hypergroup/hypertest

repo_name: hypergroup/hypertest


text:
### Project Overview

 The important results for analysis have been plotted using Matplotlib and pandas

### Learnings from the project

 Learning Outcome:
1)Data Wrangling
2)Python
3)Pandas
4)Matplotlib


text:
# ansible-i3-xfce

Ansible role to install i3 and integrate it with XFCE environment

## Usage

To install use:

  ansible-playbook playbook.yml -i hosts -e action=install


text:
# cmake-gtest-template

A simple CMake template for a C++ executable using a static library for logic and GTest for unit testing.

I tried to use a relatively modern CMake style, but my experience is somewhat limited.

## Project Structure

    template
    │   CMakeLists.txt
    │
    ├───foobar
    │       CMakeLists.txt
    │       main.cpp
    │
    ├───foobar-test
    │       CMakeLists.txt
    │       CMakeLists.txt.in
    │       example.cpp
    │
    └───libfoobar
            CMakeLists.txt
            example.cpp
            example.h

GTest is checked out from [from git](https://github.com/google/googletest) during configuration and automatically built and linked together with `foobar-test`. Tests are also properly registered with CTest.

## Usage

Look at the structure in `template/` or run `generate.py`:

    generate.py -t <path to target folder>  <project name>

This will copy the example project in `template/` and do a very simple rename & replace for directories and file contents with the project name you specified. This process isn't very smart and might mess something up...

repository: erdustiggen/cmake-gtest-template

repo_name: erdustiggen/cmake-gtest-template


text:
# PaperMarioBattle

This is an implementation of the Paper Mario the Origami King battle system in Elm

[README em português](README.pt-br.md)

[Play!](https://paper-mario-battle-project.netlify.app/)

![Screenshot](images/img.png)

In the game, you slide tiles around a circle to line up the enemies. With them lined up, you can use your weapons to hit as many of them as possible.
I've implemented just the sliding around part. The blue dots are empty tiles and the red dots are the enemies.

## Controls

```
k - Moves the selector clockwise
j - Moves the selector counterclockwise
spacebar - Changes the selection mode from diametrical to concentric and vice-versa
           (Kind of like rows and columns, but in a circle)
Shift + k - Slides tiles up
Shift + j - Slides tiles down
u - Undoes the last move (Cancels the move in progress instead if there is one)
```
In the bottom right there is a counter showing how many moves have been made and how many moves are allowed in total

There is just one level in there because I really just cared about implementing the mechanics and because it would
likely be some sort of copyright infringement if I put a bunch of them in there.


text:
# Exchange

### Orderbook

An orderbook is a record of outstanding orders between XLM and a given asset.
There are a few major differences between Centaurus exchange and Stellar DEX:

- Only `{ASSET}/XLM` trading pairs allowed to provide maximum liquidity and simplify path payments.
- All asset prices  are designated in XLM.
- Tick size (the smallest unit of price change) depends on the market, by default 0.001XLM.
- There are a limited number of active markets.
Constellation members decide which asset to list with the majority of votes.

### Orders

Orders are the requests to buy/sell tokens for other tokens on Centaurus exchange.
The exchange supports `BID` (buy the asset for XLM) and `ASK` (sell the asset for XLM) orders of
the following types:

- Good Till Canceled (`GTC`, default) – an order would stay effective until it is filled in full
or the user cancels it.
- Immediate or Cancel (`IOC`) – orders would be matched against existing orderbook orders without
creating a new order on the orderbook.

Each order contains the following fields:

- **`symbol`** (`String`) – the symbol of the asset the user wants to trade.
- **`side`** (`Enum`) – buy or sell.
- **`amount`** (`Int64`) – the number of tokens a user wants to buy or sell (multiplied
by 10,000,000 to match Stellar standard 7-digit precision convention). The minimum amount eligible
for trade equals 0.1XLM.
- **`price`** (`Double`) – the price user would like to pay in terms of quote asset (XLM),
presented as a 32-bit floating-point number. The price is rounded by tick size.
- **`timeInForce`** (`Enum`) – currently supported "Good Till Expire" and "Immediate or Cancel".
- **`orderId`** (`Int64`) – the identifier of the order to modify. 0 for new orders.

### Matching logic

- When an account makes an exchange proposal, the order is checked against the existing orderbook
for that asset pair.
- If the order crosses an existing order, it is filled at the price of the existing order.
The match only happens when the bid and ask prices are "crossed," i.e., bid price >= ask price.
- If the order has not been executed entirely and more crossing orders exist, they are executed
one by one.
The next order with a better price is filled first. For orderbook orders placed at the same price,
earlier timestamped orders receive fills before later timestamped orders (FIFO method).
- Orders can be filled partially.
- If the trade order doesn't cross an existing order, a new order is created on the orderbook
until it is either taken by another order or canceled by the account that created it.
Order id of the newly created order is always equal to the quantum apex.
In the case of IOC orders (Immediate or Cancel), new order creation is skipped.
- Each order contributes locked liabilities to the balance of the account creating the order.
This guarantees that any order in the orderbook can be executed entirely.
- The match occurs when the engine starts new order quantum processing.
 All orders are processed strictly sequentially, according to the FIFO principle.
- Orders would be rejected when the account does not possess enough token to buy or sell
(excluding its current liabilities), the asset symbol orderbook not found, or orderId is invalid.

repository: centaurus-project/centaurus

repo_name: centaurus-project/centaurus


text:
# (Project Name)

## 🔎 Brief Project Description
(Your Answer)

## 📫 Programming Langauge (and Framework)
(Your Answer)

## 🤷 Other Info?
(Your Answer)

- [x] I have checked and confirm that this is not a duplicate.
- [x] All (if any) links stated are valid and do not contain any form of IP logger, any forms of malware, or content that should not be viewed by people under the age of 18

repository: eswarupkumar/projects

repo_name: eswarupkumar/projects