Skip to content

Instantly share code, notes, and snippets.


Skylar Saveland skyl

View GitHub Profile
View gist:291188
2010-01-31 12:58:37-0600 [-] Unhandled Error
Traceback (most recent call last):
File "/home/skyl/envs-projs/hotdot_env/lib/python2.5/site-packages/twisted/application/", line 445, in startReactor
self.config, oldstdout, oldstderr, self.profiler, reactor)
File "/home/skyl/envs-projs/hotdot_env/lib/python2.5/site-packages/twisted/application/", line 348, in runReactorWithLogging
File "/home/skyl/envs-projs/hotdot_env/lib/python2.5/site-packages/twisted/internet/", line 1166, in run
File "/home/skyl/envs-projs/hotdot_env/lib/python2.5/site-packages/twisted/internet/", line 1175, in mainLoop
View gist:296994
(mednet)skyl@SCSI40:~/Code/python$ pip install -e svn+
Obtaining django from svn+
Could not find for directory /home/skyl/Code/python/envs/mednet/src/django (tried all parent directories)
Traceback (most recent call last):
File "/home/skyl/Code/python/envs/mednet/lib/python2.6/site-packages/pip-0.6.1-py2.6.egg/", line 482, in main, args)
File "/home/skyl/Code/python/envs/mednet/lib/python2.6/site-packages/pip-0.6.1-py2.6.egg/", line 675, in run
requirement_set.install_files(finder, force_root_egg_info=self.bundle)
File "/home/skyl/Code/python/envs/mednet/lib/python2.6/site-packages/pip-0.6.1-py2.6.egg/", line 2409, in install_files
View gist:297913
::site-wide keys::
The set of usernames.
r.sismember('users', 'foouser')
List of all groups
from djredis.models import DredisMixin
import djredis.models
class Blog(models.Model, DredisMixin): # inherit from the mixin class
author = models.ForeignKey('Author')
title = models.CharField(max_length=200)
# declaratively add your redis fields
viewcount = djredis.models.Counter()
skyl / gist:423540
Created June 3, 2010 06:06
View gist:423540
from django.db import models
from mymongo.models import Mongo
class M(models.Model):
mongo = Mongo()
skyl / Tomjunk
Created June 7, 2010 18:17 — forked from anonymous/Tomjunk
View Tomjunk
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="">
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
Google Visualization API Sample
<script type="text/javascript" src=""></script>
<script type="text/javascript">
View gist:753900
from django import db
from django.db import connection
from django.conf import settings
class LoggingMiddleware(object):
def process_request(self, request):
"""Logs the POST (and resets the queries if DEBUG)"""
skyl / gist:764182
Created January 3, 2011 23:41
TxBl api sample
View gist:764182
v1 = Stepper(
[60,30,30,30,50,N] * 2 + [120,40,40,120,40,40] * 2
n1 = snd(cycle(
d1 = rhodes_f()
player1 = Player(d1, n1, v1, interval=sixteenth)
View gist:775697
def _action(action, o):
o.is_processing = False
def _bulk_action(action, objs):
for o in objs:
skyl / gist:778973
Created January 14, 2011 01:10
rough openlayers example
View gist:778973
<!DOCTYPE html>
<html lang="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
Example Site : Welcome