text:
# FindMyiPhone

## Introduction

The code and procedure in this project describe how one can use the AWS IoT button to find the iPhone. This is equivalent to log in to the FindMyiPhone app in iPhone, and click the "Play Sound" button.

The following hardware and software are required for this program to work,

#### Hardware:

AWS IoT Button

iPhone :-)

#### Software

##### AWS Lambda

Follow [these](http://docs.aws.amazon.com/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html) instructions to [create](http://docs.aws.amazon.com/lambda/latest/dg/get-started-create-function.html) the Lambda function package, and upload it to Lambda to create the Lambda function.

This project uses the [pyicloud](https://github.com/picklepete/pyicloud) Python program to call the "Play Sound" in findmyiphone app.

The findMyiPhone.py is the main code in AWS Lambda function that is triggerred when the AWS IoT buttion is pressed. The Lambda function will in turn call the "Play Sound" function.

The appleid/password are required for pyicloud to authenticate with Apple. This information can be encrypted in Lambda using environment variables, and use kms to encrypt them at rest. Simply add "MY_EMAIL" and "MY_PASSWORD" and alike for person B, as the environment variables, and use one of the kms keys to encrypt them at rest, meaning that they are stored in the lambda container as ciphertext. More information on environment variables in Lambda function can be found [here.](http://docs.aws.amazon.com/lambda/latest/dg/env_variables.html)

##### AWS IoT Buttion

Follow the steps [here](http://docs.aws.amazon.com/iot/latest/developerguide/iot-button-lambda.html) to configure your IoT button.

Please select the Lambda function created above in step 4 when configuring the trigger.

repository: kmcyjm/FindMyiPhone

repo_name: kmcyjm/FindMyiPhone


text:
---
layout: default
title: Security
permalink: /security
---

{% include section-image.html img="security.jpg" heading="Security" %}

{% include left-right-image.html img="wgtwo-security-whitepaper-2019.jpg" title="Security Whitepaper" text="
    Security is at the heart of our company with an aim to create scalable, reliable and secure services that meet our customers' needs. To learn more about how we ensure the confidentiality, integrity, and availability of our platform, request to download our “Approach to Security” security whitepaper by contacting us at <a href='mailto:security@wgwto.com?subject=Approach to<EMAIL_ADDRESS>    "%}

branch_name: refs/heads/master

extension: md

license_type: permissive


text:
# Description
 A soundbox made in python and the qt framework

## Used librairies
 - Pyqt5
 - threading
 - playsound

## Installation
### Requirements:
 - python3.9
 - pip
 - all above librairies

### Process
 1- clone this repo `https://github.com/TheFourchette/PyBox.git`
 2- cd into PyBox
 3- Use the `pip install -r requirements.txt` to install required librairies
 4- Run by using `python main.py`

### Compilation
If for some reasons you want to compile that thing here's how to:
#### Requirements
 - all the above librairies
 - pyinstaller

#### Process
 Use this command in the PyBox folder `python -m PyInstaller -F main.py -n PyBox -w && rm -rf build && mv dist/PyBox Pybox && rm -rf dist *.spec *.prop`

 Now you have an executable named PyBox that you can execute

## Disclaimer
 Im still bad a doing things so keep in mind that this programm is WNIP(work not in progress).
 Feel free to modify it as you want!
 Btw the "stop all" button does nothing

license: MIT

branch_name: refs/heads/main


text:
---
title: PDL1
name: Pathway Digital Literacy
code: PDL1
subject_area: Pathway Digital Literacy
date: 2019-07-03T04:34:35.368Z
entry_requirements: Subject to HOF approval.
year: '11'
type: Optional
course_duration: Full Year
course_level: NCEA 1
assessment_type: Achievement Standard
leads_to:
  - DTM2
  - DTA2
standards:
  - '2792'
  - '5946'
  - '12883'
  - '18734'
  - '18743'
  - '26745'
credits: '18'
---
Computing skills are an essential requirement for most employment opportunities. This course concentrates on gaining a base of good practical computing skills and knowledge through a hands-on approach. Course content includes, managing computer files, presentation software, incorporating digital media, database applications and spreadsheets, internet research skills and creation of documents for the World Wide Web.

repository: WhanganuiHigh/Website

gha_language: HTML

repo_name: WhanganuiHigh/Website


text:
---
title: 为何影视业拿了这么多税务补贴？
date: 2016-09-07
tags: ['政策', '税收']
disqus_identifier: "2016-09-07-7371"
contributors_included: true
proof_reader: "辉格(@whigzhou)"
source: "[Reason ](http://reason.com/archives/2016/02/26/no-matter-who-wins-at-the-oscars-taxpaye)"
writing_time: "2016-02-26"
author: "Jared Meyer"
description: "好莱坞无论如何都算不上贫困户或弱势群体，但奇特的是，美国各州争相为影视制片商提供税务补贴，以说服他们在本州拍摄外景，相互攀比之下，补贴额越来越高，据说这可以提升当地旅游业，可实际上并没有任何经验证据支持这一点，那么这事情究竟为何会发生呢？"
more_description: "
这些补贴不仅仅是税收减免，而且还包括可转移补贴（即当补贴额超出应纳税额时，超出部分可以留着抵扣未来税项）和可补差补贴（即当补贴额超出应纳税额时，超出部分以现金支付），所以说起来有点难以置信，有些电影对于拍摄地纳税人来说就是真金白银的倒贴货。这说明一个小道理：长了脚的资产／生意很难征到税。我们一篇旧译文中有个概念叫『可收夺性（appropriability）』，说的也是这个道理《[农作物类型如何影响制度进化](https://translations.headsalon.org/post/2016/03/%E5%86%9C%E4%BD%9C%E7%89%A9%E7%B1%BB%E5%9E%8B%E5%A6%82%E4%BD%95%E5%BD%B1%E5%93%8D%E5%88%B6%E5%BA%A6%E8%BF%9B%E5%8C%96/)》。"
translator: "沈沉(@你在何地-sxy)"
thumbnail: /img/thumbnails/为何影视业拿了这么多税务补贴？.jpg
---

**No Matter Who Wins at the Oscars, Taxpayers Lose on Film Subsidies**
**不管奥斯卡花落谁家，纳税人在电影补贴上都是输**

**Big screen and small get big benefits at taxpayer expense.**
**纳税人埋单，荧屏业大获其利**

Sunday night brings the 89th Academy Awards, and many are wondering what film will take home the Oscar for Best Picture. No matter what film wins, one group of people should be thanked during the acceptance speech—taxpayers.

本周日将举办第89届奥斯卡金像奖，许多人都在猜测最佳影片将会花落谁家。但不管哪部影片得奖，获奖感言里都应该感谢一个群体：纳税人。

Film is a heavily subsidized industry, and the majority of states have tax incentive programs that lower the cost of production. These tax credits are determined by production costs, not profits, and many credits are transferrable or refundable. When a film’s tax liabilities are below its allotted refundable credits, taxpayers end up directly paying film companies the difference.

电影行业得到的补贴极大，大部分州都设置有税收激励计划，以降低制片成本。这类税收抵免额度由制片成本而非影片收益决定，而且其中许多都可以转移或补差【译注：指如果抵免额高于应税额，纳税人不但不用纳税，还能倒拿差额】。如果一部影片的应税额低于它所得的可补差抵免额，那就相当于纳税人直接向电影公司支付差额。

*The Big Short*, one of this year’s nominees, cost $28 million to produce and was filmed in California, Nevada, and Louisiana. All three states have film tax credit programs, but Louisiana’s 40 percent partially-transferable credit is the largest. The film’s producers made a movie about Wall Street greed, but they clearly had no problem making taxpayers pay for their production costs.

今年获提名的影片《大空头》制作成本为2800万，在加利福尼亚、内华达和路易斯安那三地拍摄。三个州都有电影业税收抵免计划，不过，路易斯安那的40%部分可转移税收抵免仍属其中翘楚。制片人拍摄了一部讲述华尔街之贪婪的电影，但在让纳税人为其制片成本埋单的时候，他们显然心安理得。

New York’s fully-refundable 30 percent film tax credit is the most generous in the nation, with an annual limit of [$420 million](http://esd.ny.gov/BusinessPrograms/filmCredit.html). *Brooklyn* and *Bridge of Spies*, two of this year’s nominees, were filmed in New York, and their budgets were $12 million and $40 million, respectively.

要论慷慨，全国之最当数纽约的30%全额可补差电影业税收抵免，每年最高限额是4.2亿。本年度有两部提名电影在纽约拍摄，《布鲁克林》和《间谍之桥》，费用分别达到1200万和4000万。

States are starting to realize that the economic benefits of film tax credits are pure fantasy, like some movie plots. In 2012, 40 states offered tax incentives, at a total cost of [$1.4 billion](http://taxfoundation.org/article/more-states-abandon-film-tax-incentives-programs-ineffectiveness-becomes-more-apparent), but since then some states have decided that maintaining roads, funding schools, staffing police departments, and letting residents keep more income are better uses of funds. Since last year’s Oscars, Alaska, Michigan, and Illinois all ended their film tax credit programs. (See my testimony for the Alaska Senate on the false promise of film tax credits [here](http://www.akleg.gov/basis/Meeting/Detail?Meeting=SL%26C%202015-02-24%2013:30:00)).

许多州已经开始意识到，电影业税收抵免的经济利好效应就跟某些电影情节一样纯属空想。2012年，有40个州提供此类税收激励，总共耗费14亿。但自此以后，一些州已经决定，维护公路、资助学校、充实警力以及让居民手中存留更多收入才是对资金的更好使用。上届奥斯卡以来，阿拉斯加、密歇根和伊利诺伊等州都已经终止了电影业税收抵免计划。（可参考我在阿拉斯加州议会上就电影业税收抵免之虚假承诺所做的证言）

In contrast, California [triple](http://www.film.ca.gov/Incentives.htm)d its non-refundable film tax credit budget to $330 million in an effort to lure more film production back to Hollywood.

加利福尼亚则反其道行之，为吸引更多影片返回好莱坞制作，该州已经将其用于不可补差电影业税收抵免的预算增加了三倍，达到3.3亿。

It is not only Oscar-nominated movies that receive sweetheart tax deals. Television shows, including HBO’s *VEEP* and Netflix’s *House of Cards,* are two examples.

获得这种甜蜜的减税待遇的并不是只有奥斯卡提名影片。电视剧也是如此，HBO的《副总统》和Netflix的《纸牌屋》就是其中两个例子。

When Maryland did not increase its fully-refundable [film tax incentive program](http://www.marylandfilm.org/FilmProductionEmploymentAct.html) in 2014, Netflix executives went all Frank Underwood on former governor Martin O’Malley and [threatened](http://thefederalist.com/2015/03/12/if-you-watch-house-of-cards-thank-maryland-taxpayers/) to leave the state. Political pressure, including a Kevin Spacey visit to Annapolis, convinced Maryland to raid other funds in order to double its film tax credit budget to $15 million. This does not include the $4 million in annual lost revenue from sales tax exemptions for film production companies.

2014年，在马里兰州尚未在其全额可补差电影业税收激励计划上增加力度之际，Netflix的总监们就在前任州长Martin O’Malley面前扮演“弗兰克·安德伍德”（译注：《纸牌屋》主角，马基雅维利式政客），并且威胁要撤离该州。凯文·史派西（译注：安德伍德的扮演者）到访安纳波利斯，在诸如此类的政治压力之下，马里兰州将其电影业税收抵免预算增加一倍，达到1500万，为此砍掉了许多其他方面的资金。这还没把电影制片公司所享受的营业税免征额包含在内，每年因此少征的税收可是有400万。

Even though film tax credits are often sold as a way to help small producers, 98 percent of Maryland’s film tax credit budget over the last three years has been taken up by *House of Cards* and *VEEP*. The increased tourism argument that film tax credit proponents constantly use clearly does not apply for two shows that are set in Washington, D.C. Similarly, no one thinks of Louisiana while they are watching *The Big Short.*

尽管电影业税收抵免经常顶着帮助小制片公司的名头做游说，但在过去三年中，马里兰州98%的电影税收抵免款都进了《纸牌屋》和《副总统》的兜里。电影业税收抵免的鼓吹者们经常使用的抵免带动旅游业的论证，显然在这里也并不适用，因为两部剧的背景都设定在华盛顿特区。同样，在观看《大空头》时，根本没人会想起路易斯安那州。

Maryland’s handouts were still not enough to convince HBO executives to keep filming *VEEP* in Maryland. VEEP’s production [moved to California](http://townhall.com/columnists/jaredmeyer/2015/06/05/maryland-should-let-hbos-veep-go-to-hollywood-n2008266/page/full) after the state offered the show a $6.5 million tax credit.

即便如此，马里兰州的馈赠仍然不足以说服HBO的总监们继续在该州拍摄《副总统》。该片将搬到加利福利亚制作，因为加州将为该剧提供650万的税收抵免。

The Maryland Department of Legislative Services found that the state’s film tax incentive program only returns [6 cents](http://dls.state.md.us/data/polanasubare/polanasubare_taxnfispla/Evaluation-of-the-Maryland-Film-Production-Activity-Tax-Credit.pdf) for every dollar spent. While this return is particularly poor, the best return in any state is still less than [30 cents](http://taxfoundation.org/article/motion-picture-association-attacks-tax-foundation-critique-film-tax-subsidies) on the dollar.

马里兰州立法服务部发现，该州的电影业税收激励计划每花掉1美元，只能收回6美分。这么低的回报当然很极端，但各州回报表现最好的也仍然不到每美元30美分。

Jobs in the film industry are highly skilled and mobile, which means they do not create lasting economic benefits. If another state rolls out an even more generous tax credit, film production can simply pack up and leave for another soundstage. States that decide to shower the film industry with taxpayer funds are in a race to the bottom, as no credit is high enough to satisfy Hollywood executives.

电影行业所提供的工作都是技术岗位，且流动性很高，这就意味着该行业并不能创造持久的经济效益。如果另外一个州推出了更为慷慨的税收抵免计划，电影制片商只需要打个包，就能换个摄影棚。各州如果决心花纳税人的钱来馈赠电影行业，它们就是加入了一场竞相逐底的比赛，因为抵免额度无论多高都无法满足好莱坞的总监们。

Maryland’s experience of losing film productions and wasting taxpayer dollars on its program is not unique. [Every independent study](http://taxfoundation.org/article/motion-picture-association-attacks-tax-foundation-critique-film-tax-subsidies) of film tax credits have found that the programs come nowhere close to paying for themselves. But this reality has not stopped proponents from making fanciful predictions. The Maryland Film Industry Coalition—a group dedicated to promoting the film industry—claims that each dollar in tax credits leads to [$1.03](http://baltimorefilm.com/uploads/File/2014_RESI_Economic_Impact_Analysis.pdf) in tax revenue.

马里兰州遭制片公司抛弃、在补贴计划上浪费纳税人税金的上述经历并不罕见。所有关于电影业税收减免的独立研究都已发现，各种补贴计划均远远无法实现收支平衡。但这一事实并没能阻止其鼓吹者提出各种白日梦般的预测。“马里兰州电影行业联盟”——一个旨在促进电影行业发展的组织——宣称，税收抵免每花1美元都能带来1.03美元的税收。

The Tax Foundation’s Joseph Henchman [points out](http://taxfoundation.org/article/motion-picture-association-attacks-tax-foundation-critique-film-tax-subsidies) that if these fanciful projections were taken seriously, the United States could pay off its national debt by simply giving the film industry $1 trillion.

“税务基金会”的Joseph Henchman指出，如果我们拿这种白日梦似的测算当真，那么美国只需要给电影行业派送1万亿，就能偿清它的全部国债了。

One study that was funded by the Motion Picture Association of American assumes that every dollar in tax credits creates $17.75 in economic activity, which leads to $1.88 in new tax revenue for the state. These claims are less realistic than the science-fiction films the credits support.

由“美国电影协会”赞助实施的一项研究提出，税收抵免每花掉1美元，就能创造出17.75美元的经济活动，而这又会为所在州形成1.88美元的新税收收入。这类说法比那些获得税收抵免补贴的科幻电影还要不切实际一些。

Film tax credit programs do not pay for themselves. They do not create long-term jobs, nor do they have tourism benefits. All film tax incentives do is provide opportunities for politicians to rub elbows with movie stars.

电影业税收抵免计划无法实现收支平衡。他们无法创造长期岗位，也不会带来旅游收益。电影业税收激励所能做的，无非是给政客们提供了和电影明星亲密往来的机会。

With the hundreds of millions of dollars that taxpayers gift the film industry each year, perhaps it is time for the Academy Awards to create an Oscar for Best Tax Break. If nothing else, taxpayers at least deserve a shout-out during Sunday’s award ceremony.

纳税人每年都向电影行业派送数亿美元的礼包，也许金像奖是时候设立一个“奥斯卡最佳减税奖”了。如果啥都没有，那么纳税人至少也应出现在周日颁奖典礼的致谢词中。

*Jared Meyer is a fellow at Economics21 at the Manhattan Institute for Policy Research. You can follow him on Twitter [here](https://twitter.com/jaredmeyer10)*.
Jared Meyer是曼哈顿政策研究所Economics21分部的研究员。你可以到这里关注他的Twitter账号。

翻译：沈沉(@你在何地-sxy)
校对：辉格(@whigzhou)
编辑：辉格@whigzhou

### 相关文章

* [[译文]税法创造的两朵奇葩](https://headsalon.org/archives/7556.html "[译文]税法创造的两朵奇葩")
* [border-adjustment](https://headsalon.org/archives/7673.html "border-adjustment")
* [长了脚的资产](https://headsalon.org/archives/7611.html "长了脚的资产")
* [[译文]好莱坞如何改编故事](https://headsalon.org/archives/7382.html "[译文]好莱坞如何改编故事")
* [穷人最好欺负了](https://headsalon.org/archives/7050.html "穷人最好欺负了")
* [[饭文]巴菲特错了](https://headsalon.org/archives/4268.html "[饭文]巴菲特错了")
* [[饭文]征收金融交易税是自残](https://headsalon.org/archives/3608.html "[饭文]征收金融交易税是自残")
* [饭文#V6: 资源税的理由](https://headsalon.org/archives/2100.html "饭文#V6: 资源税的理由")
* [饭文#M0: 税收无法有效调节收入差距](https://headsalon.org/archives/726.html "饭文#M0: 税收无法有效调节收入差距")
* [饭文#32: 实际税负在增加](https://headsalon.org/archives/622.html "饭文#32: 实际税负在增加")

repository: headsalon/fanyizu

gha_license_id: MIT

repo_name: headsalon/fanyizu


text:
# IDNA-UTS #46 in JavaScript

This is a maintained fork of the idna-uts46 library originally written by jcranmer.

The [JS Punycode converter library](https://github.com/bestiejs/punycode.js/) is
a great tool for handling Unicode domain names, but it only implements the
Punycode encoding of domain labels, not the full IDNA algorithm. In simple
cases, a mere conversion to lowercase text before input would seem sufficient,
but the real mapping for strings is far more complex. This library implements
the full mapping for these strings, as defined by
[UTS #46](http://unicode.org/reports/tr46/).

## Install

npm install idna-uts46-hx --save

## IDNA mess for dummies

Unfortunately, the situation of internationalized domain names is rather
complicated by the existence of multiple incompatible standards (IDNA2003 and
IDNA2008, predominantly). While UTS #46 tries to bridge the incompatibility,
there are four characters which cannot be so bridged: ß (the German sharp s),
ς (Greek final sigma), and the ZWJ and ZWNJ characters. These are handled
differently depending on the mode; in ``transitional`` mode, these strings are
mapped to different ones, preserving capability with IDNA2003; in
``nontransitional`` mode, these strings are mapped to themselves, in accordance
with IDNA2008.

Presently, this library uses ``transitional`` mode, compatible with all known
browser implementations at this point. It is expected that, in the future, this
will be changed to ``nontransitional`` mode.

`It is highly recommended that you use the ASCII form of the label for storing
or comparing strings.`

## API

### `uts46.toAscii(domain, options={transitional: false, useStd3ASCII: false, verifyDnsLength: false })`

Converts a domain name to the correct ASCII label. The second parameter is an
optional options parameter, which has two configurable options. The
`transitional` option controls whether or not transitional processing (see the
IDNA mess for dummies section for more details) is requested, defaulting to
false. The `useStd3ASCII` option controls whether or not characters that are
illegal in domain names per the DNS specification should be omitted. The
`verifyDnsLength` option controls whether or not the resulting DNS label should
be checked for length validity (i.e., no empty components and not too long). The
options parameter and its associated fields are all optional and should be
omitted for most users.

```js
uts46.toAscii('öbb.at'); // 'xn-bb-eka.at'
uts46.toAscii('ÖBB.AT'); // 'xn-bb-eka.at'
uts46.toAscii('XN-BB-EKA.AT'); // 'xn-bb-eka.at'
uts46.toAscii('faß.de'); // 'fass.de'
uts46.toAscii('faß.de', {transitional: true}); // 'fass.de'
uts46.toAscii('faß.de', {transitional: false}); // 'xn--fa-hia.de'
uts46.toAscii('xn--fa-hia.de', {transitional: false}); // 'xn--fa-hia.de'
uts46.toAscii(String.fromCodePoint(0xd0000)); // Error (as it is unassigned)
```

### `uts46.toUnicode(domain, options={useStd3ASCII: false})`

Converts a domain name to a normalized Unicode label. The second parameter is an
optional options parameter. The `useStd3ASCII` option controls whether or not
characters that are illegal in domain names per the DNS specification should be
omitted. The latter parameter is optional and should be omitted for most users.

```js
uts46.toUnicode('xn-bb-eka.at'); // 'öbb.at'
uts46.toUnicode('ÖBB.AT'); // 'öbb.at'
uts46.toUnicode('O\u0308BB.AT'); // 'öbb.at'
uts46.toUnicode('faß.de'); // 'faß.de'
uts46.toUnicode('xn--fa-hia.de'); // 'faß.de'
uts46.toUnicode('﷼'); // "ریال"
uts46.toUnicode(String.fromCodePoint(0xd0000)); // Error (as it is unassigned)
```

## Pull latest idna-map.js
Call the below python script by providing the most current RELEASED unicode version.
The latest released version can be found in here: http://www.unicode.org/Public/UCD/latest/ReadMe.txt
e.g.:

```bash
python build-unicode-tables.py 10.0.0
```

## Known issues

It also does not try to implement the Bidi and contextual rules for validation:
these do not affect any mapping of the domain names; instead, they restrict the
set of valid domain names. Since registrars shouldn't be accepting these names
in the first place, a domain that violates these rules will simply fail to
resolve.

repository: Hsiang-xxs/via-issuer

repo_name: Hsiang-xxs/via-issuer


text:
# RegistrationAutomation

I wrote this java application for fun to scan a user's email for class openings by course number. Once the email is recieved, the program automatically logs into the student's school account, inputs the course information and registers them for the class.

repository: micylt/RegistrationAutomation

repo_name: micylt/RegistrationAutomation


text:
How do I contribute new code back to the `LakeEnsemblR` project?
==========================================================

In order to contribute to this code, we recommend the following workflow:

1.  "fork" this repository to your own personal github account

2.  clone the github repository to your computer:

    $git clone <git@github.com:{username}/LakeEnsemblR.git>

3.  modify code or add new functionality, save the code

4.  add the repository master to a remote master called "upstream"

    $cd LakeEnsemblR

    $git remote add upstream <git@github.com:aemon-j/LakeEnsemblR.git>

5.  before pushing your changes to your repository, pull in the current version of the aemon-j master:

    $git fetch upstream

6.  merge these differences with your own "master" version:

    $git merge upstream/master

7.  push your changes to your github repository, in addition to changes made by pulling in the aemon-j master:

    $git push

8.  submit a pull request to aemon-j master using your account at github.com

repository: ryanmclake/LakeEnsemblR

repo_name: ryanmclake/LakeEnsemblR


text:
# Terraform::AWS::CustomerGateway

Provides a customer gateway inside a VPC. These objects can be connected to VPN gateways via VPN connections, and allow you to establish tunnels between your network and the VPC.

## Properties

`BgpAsn` - (Required) The gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

`IpAddress` - (Required) The IP address of the gateway's Internet-routable external interface.

`Type` - (Required) The type of customer gateway. The only type AWS
supports at this time is "ipsec.1".

`Tags` - (Optional) Tags to apply to the gateway.

## See Also

* [aws_customer_gateway](https://www.terraform.io/docs/providers/aws/r/customer_gateway.html) in the _Terraform Provider Documentation_


text:
# Copula-Based Normalizing Flows
This repository contains the code for reproducing the experiments in the paper:

> M. Laszkiewicz, J. Lederer, A. Fischer, _Copula-Based Normalizing Flows_, INNF+ 2021. </br>

## Abstract
Normalizing flows, which learn a distribution by transforming the data to samples from a Gaussian base distribution, have proven powerful density approximations. But their expressive power is limited by this choice of the base distribution. We, therefore, propose to generalize the base distribution to a more elaborate copula distribution to capture the properties of the target distribution more accurately. In a first empirical analysis, we demonstrate that this replacement can dramatically improve the vanilla normalizing flows in terms of flexibility, stability, and effectivity for heavy-tailed data. Our results suggest that the improvements are related to an increased local Lipschitz-stability of the learned flow.

## How to run the code
Install required packages:
```
pip install -r requirements.txt
```

1. Plotting the training and test loss over 100 trails:
```
python 2d_estimation.py
```
This will generate Figure 1 based on pre-trained models. To retrain and then generate Figure 1, please set the flag ``--compute True``.

2. Computing the Q-plots:
```
python quantile_functions.py
```
This reproduces Figures 2, 8, and 9.

3. Computing the Lipschitz surfaces:
```
python lipschitz_surface.py --base_dist exactMaginals
```
This reproduces Figure 3 and 10. Possible options for the flag ``--base_dist`` are ``normal, heavierTails, correctFamily, exactMaginals``.

4. Visualizing the Copulae:
```
jupyter lab visualizations_copula.ipynb
```
This opens the corresponding Jupyter notebook.

## Access the data
All plots are saved in ``/plots``.
``/utils`` contains some helper functions.
We save the ``.csv`` file computed by ``2d_estimation.py`` in ``/data``.

repository: MikeLasz/Copula-Based-Normalizing-Flows

repo_name: MikeLasz/Copula-Based-Normalizing-Flows


text:
# elephantpink-contact

## Install package

```
 composer require elephantpink/contact
```

## Database: migrations and seeders

```
 php artisan vendor:publish --tag=epink-contact-migrations
```

After this, you'll find the migrations under the main database/migrations folder.

In order to create the required tables run:

```
 php artisan migrate
```

If you want sample data on the database run:

```
 php artisan db:seed --class=ContactSeeder
```

## Frontend

In order to use these components you'll need to install the following node packages:

To do so execute:

```
 npm install lang.js laravel-mix-svg-vue svg-vue vue vue-template-compiler vue-router vuex
```

You can use directly the components from the vendor folder, or if you need to customize them, simply publish them to the resource folder:

```
 php artisan vendor:publish --tag=epink-contact-assets
```

This will create two separate "contact" folders under resources/js and resources/sass.

#### Router import example:

```
import contactAdminRoutes from './contact/router'

let routes = [other routes]

routes = routes.concat(contactAdminRoutes [, other router files ])

const router = new VueRouter({
  routes: routes
})
```

#### Store import example:

```
import Vue from 'vue'
import Vuex from 'vuex'
import contactStore from './contact/store'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    contact: contactStore,
  },
  ...
})
```

#### Translations import example:

```
import Lang from 'lang.js';
import contactTranslations from './contact/translations'

let lang = new Lang();
let fullTranslations = Object.assign({}, contactTranslations [, other translation files ])
lang.setMessages(fullTranslations)
```

#### Icons

In order to use the svg-vue icons you should add the `laravel-mix-svg-vue` modify your webpack.mix.js file so it has the following content:

```
const mix = require('laravel-mix');
require('laravel-mix-svg-vue');

mix.js('resources/js/app.js', 'public/js')
   .sass('resources/sass/app.scss', 'public/css')
   .svgVue()
```

repository: Elephantpink/elephantpink-contact

repo_name: Elephantpink/elephantpink-contact


text:
# Webcam Effects

:camera: :sparkles: :eyes:

[![CircleCI](https://circleci.com/gh/jstriebel/webcam-effects.svg?style=svg)](https://circleci.com/gh/jstriebel/webcam-effects)

Effect pipelines for webcam images, using Python 3, OpenCV and Numpy.

Developed during the course ["Autonomous Driving" of the Schülerakademie Papenburg](https://jgw-ev.de/schuelerakademie/schulerakademie-papenburg-ii-2017/).

## Raspberry Pi Support
A Raspberry Pi with a RPi Camera is supported! Use main_pi.py to start the program on the Raspberry Pi.

## Licence

[MIT License](LICENSE)

repository: sanyaade-robotic/webcam-effects

repo_name: sanyaade-robotic/webcam-effects


text:
# Reproducer for setcap in user-namespaced Docker builds

## Problem

Images built in user-namespaced Docker daemons and that contain layers in which capabilities have been set on files store the extended attributes using v3 format. This persists the user id of the root user that created the user-namespace employed in the build.

When running such images under a container runtime that either does not user user-namespaces, or for which the root user id is different than the one of the build environment, `execve(2)` will not honour the capabilities effective bit on executables, since the v3-encoded root user id will not match.

## Use

``` shell
$ vagrant up
```

Provisioning automatically runs the test. See `provision-vm.sh` for details of the test case.

## Tear-down

``` shell
$ vagrant destroy -f
```

repository: EricMountain/dishonoured-capabilities

repo_name: EricMountain/dishonoured-capabilities


text:
# Packlink Pro API client for Crystal

Compare Courier Services or Send a Parcel with Packlink. This is the unofficial
[Crystal](https://crystal-lang.org/) shard for Packlink.

![GitHub](https://img.shields.io/github/license/wout/packlink.cr)
![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/wout/packlink.cr)
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/wout/packlink.cr/Packlink%20CI)

## Installation

Add packlink as a depencency to your application's `shard.yml`:

```yaml
dependencies:
  packlink:
    github: wout/packlink.cr
```

Then run `shards install`.

## Usage

### Configuring the API key

To configure it globally, create an initializer and add the following line:

```crystal
Packlink.configure do |config|
  config.api_key = "<your-api-key>"
  config.environment = "sandbox" # or "production"
end
```

You can also include a client instance in each request you make:

```crystal
client = Packlink::Client.new("<your-api-key>")

begin
  shipments = Packlink::Shipment
    .from("GB", "BN2 1JJ")
    .to("BE", 2000)
    .package({width: 40, height: 30, length: 25, weight: 5})
    .all(client: client)
rescue e : Packlink::RequestException
  puts e.message
end
```

If you need to do multiple calls with the same API key, use the following helper:

```crystal
Packlink::Client.with_api_key("<your-api-key>") do |packlink|
  begin
    from_gb_to_be = packlink.shipment
      .from("GB", "BN2 1JJ").to("BE", 2000)
      .package({width: 40, height: 30, length: 25, weight: 5}).all
    from_de_to_fr = packlink.shipment
      .package({width: 40, height: 30, length: 25, weight: 5})
      .package({width: 10, height: 10, length: 10, weight: 1})
      .from("DE", 10587).to("FR", 75013).all
  rescue e : Packlink::RequestException
    puts e.message
  end
end
```

Available scoped calls for a given API key are:

```crystal
Packlink::Client.with_api_key("<your-api-key>") do |packlink|
  packlink.callback.register(*args)
  packlink.customs.pdf(*args)
  packlink.draft.create(*args)
  packlink.dropoff.all(*args)
  packlink.label.all(*args)
  packlink.order.create(*args)
  packlink.service.find(*args)
  packlink.service.from(*args)
  packlink.service.to(*args)
  packlink.service.package(*args)
  packlink.shipment.find(*args)
  packlink.tracking.history(*args)
end
```

### Registration and Authentication

User management is only required if you are creating accounts for other users.
For example, in a situation where other users can create an account for Packlink
through your platform or plugin.

#### Register a new user:

```crystal
temporary_token = Packlink::Register.user({
  email<EMAIL_ADDRESS>  estimated_delivery_volume: "1 - 10",
  ip:                        "<IP_ADDRESS>",
  password:                  "myPassword",
  phone:                     "+447987654321",
  platform:                  "PRO",
  platform_country:          "GB",
  policies:                  {
    terms_and_conditions: true,
    data_processing:      true,
    marketing_emails:     true,
    marketing_calls:      true,
  },
  referral: {
    onboarding_product:     "dummy",
    onboarding_sub_product: "sub_dummy",
  },
  source: "https://urlwhereregistrationoffered",
})

puts temporary_token # => e0f90eacfa678e20051c3a5bc2bcc05a...
```

#### Activation

Using the temporary token obtained at registration, check if the user is
activated.

```crystal
active = Packlink::User.active?("e0f90eac...")
```

If the user is not active, the permanent api token can be obtained as follows:

```crystal
unless Packlink::User.active?("e0f90eac...")
  permanent_token = Packlink::User.activate("e0f90eac...")
  puts permanent_token # => fa678e20...
end
```

#### Generating a new token

If a given user already has a Packlink Pro account, a new API key can be
generated:

```crystal
token = Packlink::Auth.generate({
  email<EMAIL_ADDRESS>  password:         "myPassword",
  platform:         "pro",
  platform_country: "gb",
})
puts token # => fa678e20...
```

#### Password reset
If a given user has an account but forgot their password, a password reset link
can be requested:

```crystal
Packlink::Auth.reset_password({
  email<EMAIL_ADDRESS>  platform:         "pro",
  platform_country: "gb",
})
```

*__Note:__ This will never fail and there is no response. If the email address
exists, an email will arrive. If not, nothing will happen.*

### Get Services

You need a source (`from`), destination (`to`) and at least one `package`:

```crystal
services = Packlink::Service
  .from("GB", "BN2 1JJ")
  .to("BE", 9000)
  .package({width: 15, height: 15, length: 15, weight: 1.5})
  .all

service = services.first

service.id                                  # => 20154
service.carrier_name                        # => "DPD"
service.name                                # => "Classic Kleinpaket"
service.price.total_price                   # => 3.94
service.price.currency                      # => "EUR"
service.transit_hours                       # => "24"
service.available_dates["2020/03/30"].from  # => "08:00"
service.available_dates["2020/03/30"].till  # => "18:00"
service.available_dates["2020/03/30"].to_s  # => "08:00-18:00"
...
```

*__Note:__ For a full list if available fields, check the
[services spec fixture](https://github.com/wout/packlink.cr/blob/master/spec/fixtures/services/all-response.json).*

You can also add multiple packages and the order of the method chain is not
important:

```crystal
services = Packlink::Service
  .package({width: 40, height: 30, length: 25, weight: 5})
  .from("GB", "BN2 1JJ")
  .package({width: 15, height: 15, length: 15, weight: 1.5})
  .to("BE", 9000)
  .package({width: 20, height: 15, length: 10, weight: 3})
  .all
```

With an instance of a `Packlink::Package` object:

```crystal
package = Packlink::Package.build({
  width: 40,
  height: 30,
  length: 25,
  weight: 5
})
services = Packlink::Service
  .package(package)
  .from("GB", "BN2 1JJ")
  .to("BE", 9000)
  .all
```

For more clarity, or a different order, use named arguments:

```crystal
services = Packlink::Service
  .package(package)
  .from(country: "GB", zip: "BN2 1JJ")
  .to(country: "BE", zip: 9000)
  .all
```

Finally, you can also avoid the method chain and use a `NamedTuple` or `Hash`:

```crystal
services = Packlink::Service.all(query: {
  from:     {country: "DE", zip: 56457},
  to:       {country: "BE", zip: 9000},
  packages: {
    "0": {width: 10, height: 10, length: 10, weight: 1},
  },
})
```

Or even:

```crystal
services = Packlink::Service.all(query: {
  from:     {country: "DE", zip: 56457},
  to:       {country: "BE", zip: 9000},
  packages: {
    "0": Packlink::Package.build({width: 40, height: 30, length: 25, weight: 5}),
  },
})
```

### Get available services details

If you know the id of a service, its details can be fetched as follows:

```crystal
service = Packlink::Service.find(20154)
```

### Get Dropoffs

Gives you a list of the ten closest dropoff points.

```crystal
dropoffs = Packlink::Dropoff.all({
  service_id: 21369,
  country:    "GB",
  zip:        "BN2 1JJ",
})

dropoff = dropoffs.first

dropoff.address               # => "52 St. George's Road"
dropoff.city                  # => "Brighton"
dropoff.commerce_name         # => "St. Georges News"
dropoff.id                    # => "S16271"
dropoff.lat                   # => 50.817563999999997
dropoff.long                  # => -0.118057
dropoff.opening_times.monday  # => "06:00-21:00"
dropoff.phone                 # => "07461451073"
dropoff.zip                   # => "BN2 1EF"
```

### Create Order

Creates a new order. Each order can include several shipments.

An order consists of multiple parts, and that is how one should be built. It is
also possible to use one large `Hash` or `NamedTuple`. But using the method
below ensures type safety and completeness of the posted data.

```crystal
# 1. Build one or more packages
package = Packlink::Package.build({
  width: 15,
  height: 15,
  length: 10,
  weight: 1
})

# 2. Build a source address
from_address = Packlink::Address.build({
  city:     "Cannes",
  country:  "FR",
  email<EMAIL_ADDRESS>  name:     "TestName",
  phone:    "0666559988",
  state:    "FR",
  street1:  "Suffren 3",
  surname:  "TestLastName",
  zip_code: "06400",
})

# 3. Build a destination address
to_address = Packlink::Address.build({
  city:     "Paris",
  country:  "FR",
  email<EMAIL_ADDRESS>  name:     "TestName",
  phone:    "630465777",
  state:    "FR",
  street1:  "Avenue Marchal 1",
  surname:  "TestLastName",
  zip_code: "75001",
})

# 3b. Build a customs object (only required for shipments outside the EU)
customs = Packlink::Shipment::Customs.build({
  eori_number:       "GB123456789000",
  sender_personalid: "EX123456",
  sender_type:       "private",
  shipment_type:     "gift",
  vat_number:        "GB123456789",
  items:             [{
    description_english: "Hairdryer",
    quantity:            2,
    weight:              1.3,
    value:               33.5,
    country_of_origin:   "GB",
  }],
})

# 4. Build shipment (can be multiple within one order)
shipment = Packlink::Order::Shipment.build({
  from:                       from_address,
  to:                         to_address,
  packages:                   [package],
  customs:                    customs,
  content:                    "Test content",
  contentvalue:               160,
  dropoff_point_id:           "062049",
  service_id:                 20149,
  shipment_custom_reference:  "69a280b2-f7db-11e6-915e-5c54c4398ed2",
  source:                     "source_inbound",
})

# 5. Create order
order = Packlink::Order.create({
  order_custom_reference: "Beautiful leggins from eBay",
  shipments:              [shipment]
})

# If everything went well, you will receive an order summary:

order.order_reference             # => "DE00019732CF"
order.total_amount                # => 4.9

line = order.shipments.first      # => Packlink::Order::ShipmentLine

line.shipment_custom_reference    # => "eBay_11993382332"
line.shipment_reference           # => "DE000193392AB"
line.insurance_coverage_amount    # => 750.0
line.total_price                  # => 4.9
line.receipt                      # => "http://url/to/receipt"
```

### Create Draft

Creates a new draft shipment. Building a draft shipment is exactly the same as
building a shipment for an order, except that in a draft, all fields are
optional.

```crystal
draft = Packlink::Draft.create({
  from:                       from_address,
  to:                         to_address,
  packages:                   [package],
  content:                    "Test content",
  contentvalue:               160,
  dropoff_point_id:           "062049",
  service_id:                 20149,
  shipment_custom_reference:  "69a280b2-f7db-11e6-915e-5c54c4398ed2",
  source:                     "source_inbound",
})

draft.shipment_reference   # => "DE00019732CF"
```

### Get Labels

Returns the shipping labels in PDF format (A4) for the given shipment
reference:

```crystal
labels = Packlink::Label.all("ES00019388AB")

puts labels.first   # => "http://packlink.de/de/purchase/PostVenta/getLabelsByRef?ref=52cf..."
```

*__Note:__ In many cases, there will only be one shipping label.*

### Get Customs

Returns the shipping customs PDF url.

```crystal
pdf = Packlink::Customs.pdf("DE2015API0000003515")

puts pdf   # => "http://static.packitos.com/prodev-pro/customs/c24a19d1bf25df8..."
```

### Get Shipment Details

Returns the shipping details.

```crystal
shipment = Packlink::Shipment.find("DE2015API0000003515")

shipment.base_price         # => 15.85
shipment.carrier            # => "Mondial Relay"
shipment.collection.city    # => "Paris"
shipment.collection.name    # => "Daniel Werner"
shipment.collection_date    # => "2015-04-16"
shipment.collection_hour    # => "00:00-24:00"
...
```

*__Note:__ For a full list if available fields, check the
[shipment spec fixture](https://github.com/wout/packlink.cr/blob/master/spec/fixtures/shipments/get-response.json).*

### Track a Shipment

Returns the tracking history of your shipment.

```crystal
history = Packlink::Tracking.history("ES00019388AB")
event = history.first

event.city          # => "MIAMI"
event.created_at    # => 2020-02-18 04:03:20.0 UTC : Time
event.description   # => "DELIVERED"
event.timestamp     # => 14242322
```

### Registering and receiving Shipment Callbacks

Store a url to notifiy shipment events. This call should be done only once per
Packlink client since the configured url will be used to send status updates for
all shipments of the client.

```crystal
success = Packlink::Callback.register("https://www.urlexample.com/packlink")

puts success   # => true
```

#### Event Callbacks

On the configured endpoints, you could process the events as follows:

```crystal
# grab the posted JSON
json = post.body

# parse the event
event = Packlink::Callback::Event.from_json(json)

event.name                            # => "shipment.carrier.success"
event.created_at                      # => 2020-01-01 15:55:23.0 UTC : Time
event.data.shipment_custom_reference  # => "eBay_11993382332589"
event.data.shipment_reference         # => "DE567YH981230AA"
```

#### Available events
- `shipment.carrier.success`: Shipment registered successfully in carrier's system.
- `shipment.carrier.fail`: Shipment failed to register in carrier's system.
- `shipment.label.ready`: Labels ready to print.
- `shipment.label.fail`: Labels have failed.
- `shipment.tracking.update`: Shipment is in transit.
- `shipment.delivered`: Shipment has been delivered.

## Documentation

- [Shard API Docs](https://wout.github.io/packlink.cr/)

## Contributing

1. Fork it at https://github.com/wout/packlink.cr/fork
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

## Contributors

- [wout](https://github.com/wout) - creator and maintainer


text:
## Simple Substitution Cipher Algorithm
Originally published: 2013-06-03 17:51:00
Last updated: 2013-06-03 17:51:00
Author: Captain DeadBones

This script was written for an article I wrote It converts any plain text into a Caesar Cipher message. For more information [Caesar Ciphers In Python](http://thelivingpearl.com/2013/06/03/caesar-ciphers-in-python/)

gha_language: Python


text:
# DMS
Docker Container Runtime Manage System, Like A Mini Kubernetes.

## Start to deploy a master server:

### 1. Build with gradle.

> gradle buildToRun

### 2. Run using groovy command(You need download jdk8+/groovy 2.4.x+ local)

```
cd dms
groovy -cp dist\*:src:resources src/RunServer.groovy
```

TIPS: By default, dms use h2 database and data file is /var/dms/data*, and DMS will create tables when first run. DDL refer init_h2.sql

### 3. View web ui http://<IP_ADDRESS>:5010/admin/login.html and login using any username and password.

TIPS: By default, dms do not check password, if you want use your login service, you can change ${projectRoot}/src/conf.properties, dms will post user/password as a form to target url

 ```
login.url=http://server/login
```

You can also create a class implements LoginService in package vendor to use your login service, remember change ${projectRoot}/resources/META-INFO/services/auth.LoginService

TIPS: DMS use SPI to support user define login service/distributed lock/scale strategy etc.

### 4. Update scripts using by node agent to database table.

after login, then open url: http://<IP_ADDRESS>:5010/dms/agent/script/update/batch

### 5. Create first cluster in web ui.

the first cluster's secret is default 1, it is a http token used by agents, refer conf.properties.

### Others: Change if you need use another database server.

You can use mysql, just change ${projectRoot}/src/conf.properties

```
db.driver=***
db.url=***
db.user=***
db.password=***
db.minPoolSize=5
db.maxPoolSize=10
```

## Deploy a node agent:

### 6. Install docker/boot2docker, open -H <IP_ADDRESS>:2376

### 7. change ${projectRoot}/src/conf.properties if docker daemon is not localhost.

```
nodeIpDockerHost=<IP_ADDRESS>
dockerHostUri=http://<IP_ADDRESS>:2376
```

TIPS: If you run node agent in windows using boot2docker like me, need system property set DOCKER_CERT_PATH

### 8. Run using groovy command(You need download jdk8+/groovy 2.4.x+ local)

```
cd dms
groovy -cp dist\*:src:resources src/RunAgent.groovy
```

### Then enjoy

## Some Snapshot Pictures:

cluster overview:
![alt](www/cluster_overview.png)

node stats:
![alt](www/node_stats.png)

application create:
![alt](www/app_create.png)

inspect a container:
![alt](www/container_inspect.png)

application job process log:
![alt](www/app_job_process_log_view.png)


text:
# Cryptomycina filicina (Fr.) L. Holm & K. Holm, 1978 SPECIES

#### Status
SYNONYM

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Bot. Notiser 131: 97 (1978)

#### Original name
Leptostroma filicinum Fr., 1815

### Remarks
null

repository: mdoering/backbone

path: /life/Fungi/Ascomycota/Cryptomycina/Cryptomycina pteridis/ Syn. Cryptomycina filicina/README.md

repo_name: mdoering/backbone


text:
## Security

Password hashing and comparison is provided via `noir.util.crypt` in [lib-noir](https://github.com/noir-clojure/lib-noir).

It provides two functions, `encrypt` and `compare`. The first will encrypt and salt the password,
while the second compares the raw password to the encrypted string generated by the first. BCrypt
is used to do the actual encryption.

The signature for `compare` looks as follows:

```clojure
(compare raw encrypted)
```

The `encrypt` function allows specifying the salt, or it will generate one if it is none is provided:

```clojure
(encrypt salt raw)
(encrypt raw)
```

For information on restricting access to specific routes, please refer to the [routing section](/docs/routes.md#marking_routes_as_restricted).

For a more comprehensive security solution you may wish to check out the [Friend](https://github.com/cemerick/friend) library.

repository: leontalbot/luminus

repo_name: leontalbot/luminus