Skip to content

Instantly share code, notes, and snippets.

@stevejackson
stevejackson / gist:1429696
Created Dec 4, 2011
Chinese pinyin syllable list
View gist:1429696
'a'
'ba'
'pa'
'ma'
'fa'
'da'
'ta'
'na'
'la'
'ga'
View pymacy
#!/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 / fb-photo-fetch.rb
Created Aug 31, 2011
Grab tagged photos from Facebook Graph API
View fb-photo-fetch.rb
# 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)