This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _ = require('lodash'); | |
var Success = function(success) { this.success = success; }; | |
var Failure = function(failure) { this.failure = failure; }; | |
var bindAll = function(fs) { | |
var bind = function(res, f) { | |
return res instanceof Success ? f(res.success) : res; | |
}; | |
var bindF = function(f) { return _.partial(bind, _, f); }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import hmac | |
from hashlib import sha1 | |
import urllib | |
def urlbox(key, secret, url, args): | |
qs = urllib.urlencode(dict(url=url, **args)) |