Public Gists by mmalone

gist: 234279 Replacement Django runserve...
Gravatar
Fri Nov 13 15:57:44 -0800 2009
1
2
3
>>> import pstats
>>> p = pstats.Stats('p.1258156459.52174278XcQE.prof')
>>> p.strip_dirs().sort_stats(-1).print_stats(5)
Gravatar
Mon Oct 19 13:52:12 -0700 2009
1
2
3
from django.core.paginator import ObjectPaginator
 
class QuickObjectPaginator(ObjectPaginator):
Gravatar
Fri Sep 11 11:24:38 -0700 2009
1
2
3
"""
Some simple utilities to read the magic bytes from the beginning of a
file and determine whether the file meets certain criteria (e.g., contains
gist: 180064 hateoasis
Gravatar
Wed Sep 02 18:05:33 -0700 2009
1
2
3
import datetime
from django.db import models
 
Gravatar
Tue Sep 01 14:30:11 -0700 2009
1
2
3
class Model(object):
    keyspace = None
    column_family = None
Gravatar
Tue Sep 01 13:13:05 -0700 2009
1
2
3
class FollowerDescriptor(object):
    """
A descriptor which provides access to a user's followers.
Gravatar
Tue Sep 01 13:06:31 -0700 2009
1
2
3
class FriendDescriptor(object):
    """
A descriptor that provides access to a user's friends.
Gravatar
Sat Aug 29 15:32:45 -0700 2009
1
2
3
from django.core.management.base import BaseCommand, CommandError
from django.db.models.loading import get_apps
from django.conf import settings
Gravatar
Mon Aug 03 11:51:39 -0700 2009
1
2
3
import csv
import sys
 
Gravatar
Fri Jul 31 10:17:15 -0700 2009
1
2
3
======================================================
Setting up Django using Apache/mod_wsgi on Ubuntu 8.10
======================================================
Gravatar
Mon Jul 27 10:31:12 -0700 2009
1
2
3
from django.views import debug
 
view_settings = dict(((k.lower(), v) for (k, v) in
Gravatar
Mon Jul 27 10:02:40 -0700 2009
1
2
3
#!/usr/bin/perl
use strict;
use LWP::UserAgent;
Gravatar
Mon Jul 27 09:59:37 -0700 2009

      
Gravatar
Tue Jul 14 16:10:09 -0700 2009
1
2
3
class AssetTagDescriptor(object):
    """
A descriptor which provides access to an asset's tags.
Gravatar
Tue Jul 14 15:12:09 -0700 2009
1
2
3
- simple
- public over private
- personal vanity
Gravatar
Sat Jun 06 15:34:19 -0700 2009
1
2
3
"""
Copyright (c) 2008-2009, Nathan Borror, and modified heavily by Eric Florenzano
All rights reserved.
Gravatar
Tue May 26 13:31:20 -0700 2009
1
2
3
import operator
from django import http
 
Gravatar
Sun May 24 16:00:53 -0700 2009
1
2
3
import socket
 
 
Gravatar
Thu May 21 14:55:11 -0700 2009
1
2
3
"""
Copyright (c) 2008-2009, Nathan Borror
All rights reserved.