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
#!/usr/bin/env python | |
from sauce import Twitter | |
def write_heyer(replies): | |
last_reply_id = str(replies[len(replies)-1].id) | |
hf = open('.heyer', 'w') | |
hf.write(last_reply_id) | |
hf.close() |
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
#!/usr/bin/env python2.5 | |
## WARNING: This file is generated | |
#!/usr/bin/env python | |
"""Create a "virtual" Python installation | |
""" | |
import sys | |
import os | |
import optparse | |
import shutil |
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
class Person(models.Model): | |
name = models.CharField(_('name'), max_length=128) | |
parent = models.ForeignKey('self') | |
# parent, assuming this person is spontaneously created | |
fred = Person(name='Fred') | |
# me and my brothers | |
zach = Person.objects.get_or_create(name='Zach', parent=fred) | |
trevor = Person.objects.get_or_create(name='Trevor', parent=fred) |
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
<?php | |
/** Function fixing a title | |
* | |
* On the homepage for Wall to Wall Photos (and I guess other pages) the | |
* rotating image's title is fucked up and it's really annoying me. Here's | |
* a function that should fix it. | |
* | |
* That way if a title is `IMG_S4_500` it would be transformed into | |
* 'No Title'. When a title is `file_name` it will be transformed into |
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
cd ~/.virtualenvs | |
virtualenv --no-site-packages booneweather | |
source ./booneweather/bin/activate |
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
cd booneweather | |
git clone http://github.com/zachseifts/tweetbot.git | |
pip install -r ./tweetbot/requirements.txt | |
cd ~/.virtualenvs/booneweather/lib/python2.X/site-packages | |
ln -s ~/.virtualenvs/booneweather/tweetbot |
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 tweetbot import bot |
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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: redis-server | |
# Required-Start: $syslog | |
# Required-Stop: $syslog | |
# Should-Start: $local_fs | |
# Should-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: redis-server - Persistent key-value db |
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
// Connect to the database. | |
try { | |
if (!window.openDatabase) { | |
alert('This browser does not support window.openDatabase, boo!'); | |
} else { | |
var shortName = 'eightA'; | |
var version = '0.1'; | |
var displayName = 'eightA Climbs Database'; | |
var maxSize = 1024*1024; | |
var db = window.openDatabase(shortName, version, displayName, maxSize); |
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
server { | |
listen 22.22.22.22:80; | |
server_name www.mysite.com; | |
rewrite ^/(.*) http://mysite.com/$1 permanent; | |
} | |
server { | |
listen 22.22.22.22:80; | |
server_name mysite.com; |
OlderNewer