This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class basic_income_age_condition(Variable): | |
value_type = bool | |
entity = Person | |
definition_period = MONTH | |
label = "Age eligibility condition for basic income" | |
reference = "https://law.gov.example/basic_income/eligibility/age" | |
def formula(persons, period, parameters): | |
input_age = persons("age", period) | |
threshold = parameters(period).general.age_of_majority |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"parser": "babel-eslint", | |
"parserOptions": { | |
"ecmaVersion": 9, | |
"ecmaFeatures": { | |
"jsx": true, | |
}, | |
"sourceType": "module", | |
}, | |
"env": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
from typing import NamedTuple | |
import numpy | |
import time | |
class Rectangle(NamedTuple): | |
height: float |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# Init. script for phantomjs, based on Ubuntu 12.04 skeleton. | |
# Author: Anthony Lapenna <[email protected]> | |
PATH=/sbin:/usr/sbin:/bin:/usr/bin | |
DESC="Phantomjs service" | |
NAME=phantomjs | |
DAEMON=/usr/bin/$NAME | |
PIDFILE=/var/run/$NAME.pid | |
SCRIPTNAME=/etc/init.d/$NAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Rebuilt URL to: boussole.beta.gouv.fr/ | |
* Trying 149.202.165.43... | |
* Connected to boussole.beta.gouv.fr (149.202.165.43) port 80 (#0) | |
> HEAD / HTTP/1.1 | |
> Host: boussole.beta.gouv.fr | |
> User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0 | |
> Accept: */* | |
> Referer: | |
> | |
< HTTP/1.1 301 Moved Permanently |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"color_scheme": "Packages/User/Monokai Soda.tmTheme", | |
"dictionary": "Packages/Language - English/en_GB.dic", | |
"font_size": 11.0, | |
"ignored_packages": | |
[ | |
"Batch File", | |
"LaTeX", | |
"PHP", | |
"Groovy", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const WORD_LEN = 8; | |
class Hangman { | |
Hangman() { | |
rounds = 0; | |
charsguessed = 0; | |
generateWord(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------------------ | |
# Returncode. | |
#------------------------------------------------------------------------------ | |
function returncode | |
{ | |
returncode=$? | |
if [ $returncode != 0 ]; then | |
echo "[$returncode]" | |
else | |
echo "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/jugdeme.yml | |
development: | |
url: "http://localhost:3001" | |
api_key: "sdfsafsafasfasdfsafdfds" | |
production: | |
url: "http://api.judgeme.com" | |
api_key: "sdfsafsafasfasdfsafdfds" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Hash | |
# Public: Filters a hash to check only for those elements desired | |
# | |
# Examples | |
# | |
# hash = { uno: "uno", dos: "dos", tres: "tres" } | |
# whitelist = [ :uno, :dos ] | |
# hash.filter whitelist | |
# # => { uno: "uno", dos: "dos" } | |
# |
NewerOlder