This file contains 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 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 |
This file contains 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
; 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)) |
This file contains 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
# via http://github.com/blog/233-gist-support-for-textmate | |
cd ~/"Library/Application Support/TextMate/Bundles/" | |
git clone git://github.com/gtcaz/github-tmbundle.git "GitHub.tmbundle" | |
osascript -e 'tell app "TextMate" to reload bundles' |
This file contains 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
""" | |
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 |
This file contains 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
# via jacob | |
from django.views.generic.simple import direct_to_template as render |
This file contains 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
# 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 |
This file contains 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
""" | |
To quote from Venture Bros... IGNORE ME! | |
""" | |
import os | |
#URL = 'http://podcast.thisamericanlife.org/podcast/' | |
URL = 'http://audio.thisamericanlife.org/jomamashouse/ismymamashouse/' |
This file contains 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
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 |
This file contains 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
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 |
This file contains 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
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) |
OlderNewer