399 Yonge Street
Toronto, ON M5B
70 Gerrard Street West
| import json | |
| from django.utils.feedgenerator import SyndicationFeed, rfc2822_date | |
| class JSONFeed(SyndicationFeed): | |
| mime_type = 'application/json; charset=utf-8' | |
| def write(self, outfile, encoding): | |
| data = {} |
| <!DOCTYPE html> | |
| <html> | |
| <head></head> | |
| <body> | |
| <img src="//chart.googleapis.com/chart?cht=qr&chs=177x177&ch1={{ url|urlencode }}"> | |
| </body> | |
| </html> |
| Options +FollowSymLinks | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteCond %{REQUEST_URI} !^/subdir | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule ^(.*)$ subdir/$1 [L] |
| #!/usr/bin/env python | |
| import vobject | |
| import datetime | |
| from pytz import timezone | |
| from dateutil import rrule | |
| TIME_ZONE = timezone('US/Eastern') | |
| TODAY = datetime.date.today() - datetime.timedelta(days=31) | |
| MEETING_START_TIME = datetime.time(19, 30, tzinfo=TIME_ZONE) |
| tell application "Things beta" | |
| set fileContents to read theFile using delimiter {linefeed} | |
| repeat with currentLine in reverse of fileContents | |
| set newToDo to make new to do with properties {name:currentLine} | |
| end repeat | |
| end tell |
| """ | |
| A Read Only Tumblr Python library for their version 2 API. | |
| Requires a Tumblr API Key and httplib2. | |
| Copyright (c) 2010, Myles Braithwaite <[email protected]> | |
| All rights reserved. | |
| Redistribution and use in source and binary forms, with or without | |
| modification, are permitted provided that the following conditions |
| #!/usr/bin/env python | |
| import sys | |
| def main(): | |
| print "Gob's Program: y/n?" | |
| yesorno = raw_input() | |
| if yesorno.lower()[0] == 'y': |
| #!/bin/bash | |
| # This will copy a file, appending the date and time | |
| # to the end of the file name. | |
| # | |
| # http://c.myl.be/8BYj | |
| date_formatted=$(date +%Y-%m-%d_%H.%M%S) | |
| file_extension=`echo "$1"|awk -F . '{print $NF}'` | |
| file_name=`basename $1 .$file_extension` |
| #!/usr/bin/env python | |
| """ | |
| A simple script that creates an OPML file of the RSS feeds to | |
| a Twitter user's lists. | |
| python twitter_list_to_opml.py mylesb | |
| Copyright (c) 2010, Myles Braithwaite <[email protected]> | |
| All rights reserved. |