Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am matthiaskr on github.
  • I am matthias (https://keybase.io/matthias) on keybase.
  • I have a public key whose fingerprint is 8EAC 5D99 2106 BBC0 314F 265B 1272 5E1E 9C0A 902E

To claim this, I am signing this object:

@matthias11-21
matthias11-21 / gist:c2aba0785c9c7f0abedd
Created September 29, 2015 06:29
Fun with JavaScript scoping
$ cat foo.js
function foo() {
function bar(bllll1) {
return function() { return blllll; }
}
var list = [];
for (var i=0; i<10; i++) {
var blllll = "Fuck yeah! (" + i + ")";
list.push(bar(blllll));
@matthias11-21
matthias11-21 / gist:76d43ab66d469743f9c4
Created September 4, 2015 09:50
zraft problem again :-(
--------------------------------------------------------------------------------
Commands left: 86
Cluster: [{{1,zraftnode1,zraftnode1@localhost},true},
{{3,zraftnode3,zraftnode3@localhost},true},
{{4,zraftnode4,zraftnode4@localhost},true}]
Current value: 0.3302492454705035
Checking values in cluster...{{1,zraftnode1,zraftnode1@localhost}, 1}...{{3,zraftnode3,zraftnode3@localhost}, 1}...{{4,zraftnode4,zraftnode4@localhost}, 1}...{{1,zraftnode1,zraftnode1@localhost}, 2}...{{3,zraftnode3,zraftnode3@localhost}, 2}...{{4,zraftnode4,zraftnode4@localhost}, 2}...done
try to remove node {1,zraftnode1,zraftnode1@localhost}
zraft_cluster:switch(): using peer-node {3,zraftnode3,zraftnode3@localhost}