Skip to content

Instantly share code, notes, and snippets.

View mandric's full-sized avatar

Milan Andric mandric

View GitHub Profile
exports['clinic totals'] = function(test) {
var args = { group_level: 1 };
var sum = function(data) {
var t = 0;
for (var i in data.rows) {
t += data.rows[i].value;
}
return t;
};
@mandric
mandric / gist:1127917
Created August 5, 2011 16:29
install kanso
git clone https://github.com/caolan/kanso
cd kanso
git checkout dev
make install
@mandric
mandric / gist:983745
Created May 20, 2011 20:37
phenny module
"""
Phenny module for a readthedocs.com docs push.
"""
import urllib2
def readthedocs(phenny, input):
"""Start a docs build on medic-dashboard.readthedocs.org."""
req = urllib2.Request(url='http://readthedocs.org/build/806', data='')
f = urllib2.urlopen(req)
res = f.read()