Skip to content

Instantly share code, notes, and snippets.

View jacobb's full-sized avatar

Jacob Burch-Hill jacobb

View GitHub Profile
@jacobb
jacobb / photo.py
Created June 17, 2012 00:37 — forked from mvattuone/photo.py
Photo Upload - MV
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponse
from django.core.files.storage import default_storage
from django.core.files.base import ContentFile
from django.conf import settings
from django.shortcuts import render
import json
import md5
@jacobb
jacobb / memcache.py
Created June 20, 2010 22:10 — forked from noahsilas/gist:446050
memcache_normal.py
"Memcached cache backend"
import time
from django.conf import settings
from django.core.cache.backends.base import BaseCache, InvalidCacheBackendError
from django.utils.encoding import smart_unicode, smart_str
class CacheClass(BaseCache):
def __init__(self, server, params):