Skip to content

Instantly share code, notes, and snippets.

View timhaines's full-sized avatar

Tim Haines timhaines

View GitHub Profile
@gotwalt
gotwalt / gist:528586
Created August 17, 2010 05:33
Posting to twitpic in Ruby using oauth echo
require "nestful"
require "roauth"
def upload(path_to_file)
twitpic_key = "my_twitpic_api_key"
oauth_url = "https://api.twitter.com/1/account/verify_credentials.json"
oauth = {
:access_key => "account_access_key",
:access_secret => "account_access_secret",
@tmeasday
tmeasday / gist:4042603
Last active October 12, 2015 14:47
Meteor "Join" -- Note that this code is *not* production ready.
Meteor.publish 'paths', (since) ->
pointHandles = {}
publishPath = (pathId) =>
pointHandles[pathId] = Points.find({pathId: pathId}).observe
added: (obj) =>
@set('points', obj._id, obj)
@flush()
# these two should never happen
changed: (obj) =>