I hereby claim:
- I am cbrunnkvist on github.
- I am conny (https://keybase.io/conny) on keybase.
- I have a public key whose fingerprint is 7E6F 21B0 5536 B1E6 B1D5 37FD BE54 54A1 14A6 40FD
To claim this, I am signing this object:
# Step 0 -- create test data | |
redis-cli HSET :object:30343552:data foo bar | |
# Step 1 -- store sample function 'sampleFunction' | |
redis-cli SET :functions:sample1 " | |
redis.call('SELECT', 0); | |
local data = redis.call('HGETALL', ':object:' .. ARGV[1] .. ':data'); | |
return table.concat(data, '+'); | |
" |
if [ -f /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash ]; then | |
. /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash | |
fi | |
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh | |
# configuration variables as documented in: | |
# https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh#L8 | |
# | |
GIT_PS1_SHOWDIRTYSTATE="yes" |
function executeWithCoroutine(generatorFunction) { | |
function letItYield(rejectionError, resolvedValue) { | |
// 1st round: resolvedValue is empty at kick off (see last line in executeAsCoroutine) | |
// 2nd round and onwards: resolvedValue is the value we pass ourselves at promise resolution | |
// let the generatorObject deal with the error in case of promise rejection | |
if (rejectionError) { | |
generatorObject.throw(rejectionError) | |
} |
class Fig { constructor() { console.log("I'm Ficus carica") } } | |
const Dateable = (SC) => class extends SC { constructor() { super(); this.creationDate = new Date() } } | |
const Invisible = (SC) => class extends SC { isVisible() { return false } } | |
class InvisibleDateableFig extends Invisible(Dateable(Fig)) {} | |
let f = new InvisibleDateableFig() | |
// > f |
From c12288f5242d84a497c60452562b535f3044f1da Mon Sep 17 00:00:00 2001 | |
From: Conny Brunnkvist <cbrunnkvist@gmail.com> | |
Date: Thu, 15 Dec 2016 18:42:13 +0700 | |
Subject: [PATCH] Echo access- and error log from dev server | |
--- | |
devel/Dockerfile | 1 + | |
1 file changed, 1 insertion(+) | |
diff --git a/devel/Dockerfile b/devel/Dockerfile |
I hereby claim:
To claim this, I am signing this object:
# ~/.bash_profile | |
# `docker-machine` is commonly used for controlling a local VM which acts as your | |
# Docker host. What occationaly happens is that I have to(*) restart the VM, and | |
# subsequently re-assign the DOCKER_* environment variables in each Terminal | |
# window I have open. These completion-friendly aliases makes it less of a chore. | |
alias docker-env-eval='eval "$(docker-machine env default)"' | |
alias docker-machine-refresh='(docker-machine stop || docker-machine kill) ; docker-machine start; docker-env-eval' |
'use strict'; | |
const Promise = require('bluebird'); | |
function someAsyncTask() { | |
return new Promise(function(resolve) { | |
let delay = Math.floor(Math.random() * 10000); | |
setTimeout(function () { | |
resolve(delay); |
{ | |
"type": "callback", | |
"source": { | |
"pushType": "gcm", | |
"invocationAPIs": [], | |
"bubbleParent": true, | |
"showTrayNotification": true, | |
"enabled": false, | |
"__propertiesDefined__": true, | |
"singleCallback": false, |
"\e[5D": backward-word | |
"\e[5C": forward-word |