Skip to content

Instantly share code, notes, and snippets.

View jefftriplett's full-sized avatar
Living the dream

Jeff Triplett jefftriplett

Living the dream
View GitHub Profile
"""
Quick attempt to extract speakers and talks from every DjangoCon US.
To install requirements:
pip install click grab unicodecsv
Goals:
from django import template
from datetime import datetime, timedelta
register = template.Library()
class NakedDayNode(template.Node):
def __init__(self, params, varname):
self.params = params
self.varname = varname
; A wrapper to access Tokyo Cabinet from clojure
(ns tokyo-cabinet
; exclude symbols we'll use in our API
(:refer-clojure :exclude [use get]))
(declare *db*)
(defn get [key] (.get *db* key))
"""
Copyright (c) 2008-2009, Nathan Borror, and modified heavily by Eric Florenzano
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list
of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this
# via jacob
from django.views.generic.simple import direct_to_template as render
# http://github.com/garethr/localbuilder
#
# Python script for monitoring a given directory for changes and running
# a command when something changes
#
# localbuilder_run.sh
#
# file to run every time a file changes in a given path
"""
To quote from Venture Bros... IGNORE ME!
"""
import os
#URL = 'http://podcast.thisamericanlife.org/podcast/'
URL = 'http://audio.thisamericanlife.org/jomamashouse/ismymamashouse/'
Listen = your.ip.address.here +21254
<User username>
Pass = random-gibberish-here -
Admin = true
Nick = username
AltNick = username_
Ident = username
RealName = John Doe
KeepNick = false
set serverip to "ip.address.here:27960"
set serverpass to "password"
do shell script "/path/to/UrbanTerror/ioUrbanTerror.app/Contents/MacOS/ioUrbanTerror.ub +connect " & serverip & " +password " & serverpass
import datetime
from django.db import models
class Frob(models.Model):
name = models.CharField(max_length=255)
created = models.DateTimeField(default=datetime.datetime.now)
class Fritz(models.Model):
age = models.IntegerField(default=5)