Skip to content

Instantly share code, notes, and snippets.

@Ezku
Ezku / SketchSystems.spec
Last active September 14, 2018 13:25 — forked from valscion/SketchSystems.spec
Closed*
Closed*
report anomaly -> Opened
Opened
close -> Closed
Ilmoita muu tilanne*
Initial*
Asiakkaalle on vastattu toisessa keskustelussa -> Report specific anomaly
Tilaisuus on jo raportoitu toisessa keskustelussa -> Report specific anomaly
@Ezku
Ezku / combinators.js
Created February 20, 2018 13:53 — forked from Avaq/combinators.js
Common combinators in JavaScript
const I = x => x;
const K = x => y => x;
const A = f => x => f(x);
const T = x => f => f(x);
const W = f => x => f(x)(x);
const C = f => y => x => f(x)(y);
const B = f => g => x => f(g(x));
const S = f => g => x => f(x)(g(x));
const P = f => g => x => y => f(g(x))(g(y));
const Y = f => (g => g(g))(g => f(x => g(g)(x)));
@Ezku
Ezku / .profile
Last active October 11, 2017 12:31 — forked from bmhatfield/.profile
Automatic Git commit signing with GPG on OSX
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
else
@Ezku
Ezku / .profile
Created October 11, 2017 12:31 — forked from bmhatfield/.profile
Automatic Git commit signing with GPG on OSX
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
else
@Ezku
Ezku / Thunk.coffee
Last active January 4, 2016 13:58 — forked from anonymous/Thunk.coffee
class Thunk extends Promise
evaluated: false
constructor: (resolver) ->
deferred = Promise.defer()
@eval = ->
new Promise(resolver).then(
deferred.resolve
deferred.reject
)
super (resolve, reject) ->
@Ezku
Ezku / gist:1411585
Created November 30, 2011 22:51 — forked from ccapndave/gist:1411510
Loop timer
callback = (n) -> (-> console.log "Hello from #{n}")
for n in [0..10]
setTimeout (callback n), n * 1000