Skip to content

Instantly share code, notes, and snippets.

View whitmo's full-sized avatar
💭
state 26

Whit Morriss whitmo

💭
state 26
View GitHub Profile
@x2mirko
x2mirko / Engine_MinimalMPE.sc
Created July 8, 2018 11:07
Minimal MPE example for Norns
Engine_MinimalMPE : CroneEngine {
var synths;
*new { arg context, doneCallback;
^super.new(context, doneCallback);
}
alloc {
synths = Array.newClear(8);

A Gopher Rising

Inspired by Maya Angelou's Still I Rise

You may walk through my GitHub history,
With it’s non idiomatic and fragal lines,
You may value me less than dirt,
But still, like dust, I’ll rise.
#!/usr/bin/env python
import argparse
import pprint
from jujuclient import Environment
def setup():
parser = argparse.ArgumentParser()
@jpablo
jpablo / gist:946582
Created April 28, 2011 15:32
Monads in python using generic functions from peak.rules
__author__ = 'jpablo'
##
import operator
from peak.rules import when, abstract
@abstract
def bind(obj, func):
'do something with obj and func'
"""MongoDB UserStore implementation"""
try:
import cPickle as pickle
except ImportError:
import pickle
import pymongo
from pymongo import Connection
from pymongo.errors import ConnectionFailure