Skip to content

Instantly share code, notes, and snippets.

@stevejackson
stevejackson / fb-photo-fetch.rb
Created August 31, 2011 19:56
Grab tagged photos from Facebook Graph API
# Ruby script to grab photos tagged of yourself on facebook and download them.
# Go to the Graph API explorer (http://developers.facebook.com/tools/explorer)
# and generate an access token with the permissions you need (user_photos, user_photo_video_tags)
# and use that access token here.
require 'json'
require 'net/http'
def fetch(output_dir, username, photo_limit, access_token)
@stevejackson
stevejackson / pymacy
Created September 14, 2011 00:25
py script
#!/usr/bin/env python
# Steve Jackson - Macy's script for Milo!
# example usage:
# ./pymacy 94404 'http://www.macys.com/catalog/product/index.ognc?ID=355333'
import sys
import urllib2
import urllib
import json
@stevejackson
stevejackson / gist:1429696
Created December 4, 2011 09:17
Chinese pinyin syllable list
'a'
'ba'
'pa'
'ma'
'fa'
'da'
'ta'
'na'
'la'
'ga'