Skip to content

Instantly share code, notes, and snippets.

View eloop's full-sized avatar

Drew Whitehouse eloop

  • VizLab, NCI National Facility, Australian National University
  • Canberra, Australia
View GitHub Profile

Keybase proof

I hereby claim:

  • I am eloop on github.
  • I am eloop (https://keybase.io/eloop) on keybase.
  • I have a public key ASBgOtbKRcsrEfocZuOPN6jOE-rOtNyaQ44TtEi1SD4KvAo

To claim this, I am signing this object:

var dbm = require('db-migrate');
var type = dbm.dataType;
var async = require ('async');
exports.up = function(db, callback) {
var tasks = [];
// tagging
tasks.push(db.runSql.bind(db, "ALTER TABLE volumes ADD tags text[] DEFAULT '{}'"));
import os
import sys
import time
import shutil
from riak import *
filename = '/tmp/junk.dat'
client = RiakClient(port=8091)
a = [1,1,1,1,1,1,2,2,3,3,3,4,4,4,4,4]
counts = (lst) ->
res = {}
(res[elt] = if res[elt] then res[elt] + 1 else 1) for elt in lst
res
decode_val = (k,v) ->
if v > 3 then "#{k}^#{v}" else ("#{k}" for i in [0..v]).join(",")