I hereby claim:
- I am sramam on github.
- I am sramam (https://keybase.io/sramam) on keybase.
- I have a public key ASCI8gYhUTm48z9FzuBDI_JvHuzIHiZ7PfN8FcLgwhlEsQo
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| OS_CODE="linux_amd64" | |
| # TODO: check the OS and architecture and make this work across platforms | |
| VERSION="v2.1.5" | |
| # TODO: scrape the GitHub README for the latest version | |
| TARGET=~/bin | |
| # TODO: accept command line options, and prompt if nothing is specified |
| #!/usr/bin/env sh | |
| banner() | |
| { | |
| echo "+------------------------------------------+" | |
| printf "| %-40s |\n" "`date`" | |
| echo "| |" | |
| printf "|`tput bold` %-40s `tput sgr0`|\n" "$@" | |
| echo "+------------------------------------------+" | |
| } |
| git rebase -i e18577023fd5f5fa5a9d427f40d953c093f4d4d3 -x "git commit --amend --no-edit --no-verify --author -CHEAD " |
| function createForm() { | |
| // global constants, that drive the script | |
| var G = { | |
| Settings: 'Settings', | |
| CSV: 'CSV', | |
| Grade: {} | |
| }; | |
| var SS = SpreadsheetApp.getActive(); |
| const pmap = require('p-map'); | |
| const delay = (n) => new Promise(res => setTimeout(res, n)); | |
| const promises = [ | |
| new Promise(async (res) => { | |
| await delay(20); | |
| res('a') | |
| }), | |
| new Promise(async (res) => { |
| /** | |
| A fizzbizz implementation in modern JavaScript | |
| */ | |
| const fizzbizz = (n) => { | |
| const fz = (n) => { | |
| switch(true) { | |
| case (n%15 === 0): return 'fizzbizz'; | |
| case (n%5 === 0): return 'bizz'; | |
| case (n%3 === 0): return 'fizz'; |
| /** | |
| List of spinners that work on Windows (and mac) | |
| */ | |
| 'line,pipe,star2,flip,balloon2,noise,boxBounce2,bouncingBar,shark,dqpb,layer'.split(',') | |
| import * as traverse from 'json-schema-traverse'; | |
| import * as jsonFilter from 'json-schema-filter'; | |
| import * as concordance from 'concordance'; | |
| import * as _ from 'lodash'; | |
| import * as jsonPtr from 'json-ptr'; | |
| export enum Modification { | |
| Update = 'Update', | |
| Recreate = 'Recreate', | |
| Noop = 'Noop' |
I hereby claim:
To claim this, I am signing this object:
| const StateMachine = require('javascript-state-machine'); | |
| const Account = StateMachine.factory({ | |
| init: 'open', | |
| transitions: [ | |
| // open state | |
| {name: 'deposit', from: 'open', to: 'open'}, | |
| {name: 'withdraw', from: 'open', to: 'open'}, | |
| {name: 'available', from: 'open', to: 'open'}, |