Skip to content

Instantly share code, notes, and snippets.

stevejackson / gist:1429696
Created Dec 4, 2011
Chinese pinyin syllable list
View gist:1429696
View pymacy
#!/usr/bin/env python
# Steve Jackson - Macy's script for Milo!
# example usage:
# ./pymacy 94404 ''
import sys
import urllib2
import urllib
import json
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 (
# 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)