This file contains hidden or 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
| from mimetypes import guess_type | |
| from django.core.exceptions import ImproperlyConfigured | |
| from django.core.files.storage import Storage | |
| from django.utils.encoding import iri_to_uri | |
| import re | |
| try: | |
| import S3 | |
| except ImportError: | |
| raise ImproperlyConfigured, "Could not load amazon's S3 bindings.\ |
This file contains hidden or 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 | |
| # encoding: utf-8 | |
| import demjson | |
| from pprint import pprint | |
| import urllib2 | |
| def main(): | |
| user = "jeremybanks" | |
| userJSON = urllib2.urlopen("http://github.com/api/v1/json/%s/" % user).read() | |
| user = demjson.decode(userJSON)["user"] |
NewerOlder