This file contains 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
<<<<<<< Updated upstream | |
#!/usr/bin/python | |
import flickrapi # http://stuvel.eu/projects/flickrapi | |
import json as simplejson | |
import urllib2 | |
api_key = '' | |
api_secret = '' | |
photoset_id = '' |
This file contains 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
""" | |
Convert numbers from base 10 integers to base X strings and back again. | |
Sample usage: | |
>>> base20 = BaseConverter('0123456789abcdefghij') | |
>>> base20.from_decimal(1234) | |
'31e' | |
>>> base20.from_decimal('31e') | |
1234 |
This file contains 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 simplejson as json | |
import sys | |
import urllib2 | |
# what site? | |
top_level_url = "http://twitter.com/" | |
username = "blech" | |
password = "notmyrealpassword" |
This file contains 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 flickrapi | |
import simplejson | |
keys = { | |
'flickr_key': " ", # put your key and secret here. I'm not giving you mine. | |
'flickr_sec': " ", | |
} |
This file contains 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/env python | |
# | |
# FlickrTouchr - a simple python script to grab all your photos from flickr, | |
# dump into a directory - organised into folders by set - | |
# along with any favourites you have saved. | |
# | |
# You can then sync the photos to an iPod touch. | |
# | |
# Version: 1.1 |
This file contains 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 feedparser | |
import flickrapi | |
import simplejson | |
import sys, codecs | |
sys.stdout = codecs.getwriter('utf-8')(sys.stdout) | |
keys = { |
This file contains 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
import time | |
from google.appengine.ext import webapp | |
from google.appengine.api import datastore | |
import logging | |
ACCUMULATE = False | |
def monkey_patch(namespace, name, wrapper): | |
nname = '_orig_' + name | |
if not getattr(namespace, nname, None): |
This file contains 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 warnings | |
warnings.simplefilter('ignore', DeprecationWarning) | |
import httplib2, urllib, time | |
from urllib import urlencode | |
try: | |
import json | |
except ImportError: |
This file contains 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
tell application "Address Book" | |
repeat with p in every person | |
get name of p | |
get value of every phone of p | |
end repeat | |
end tell |
This file contains 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
2010-04-23 09:47:18: Charger unplugged | |
2010-04-23 09:47:19: --- System waking up... (battery charge = 95%) | |
2010-04-23 12:36:05: --- System going to sleep... (battery charge = 48%) | |
2010-04-23 13:05:32: --- System waking up... (battery charge = 46%) | |
[Shutdown ~15:40:00 with 0% battery] |