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 | |
class Pipeline(object): | |
def __init__(self): | |
self.source = None | |
def __iter__(self): | |
return self.generator() | |
def generator(self): |
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 | |
# remove .pyc files recursively | |
find . | egrep *.pyc$ | xargs rm |
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
$ python generate_bootstrap.py bootstrap_base.py > django-bootstrap.py | |
$ python django-bootstrap.py ENV --project=NAME [ --hg --git --mysql --south --fabric --nose ] |
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
workon() | |
{ | |
if [ $# -eq 0 ]; then | |
echo Pass a environment to load. | |
return | |
fi | |
source ~/environments/$1/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
#! /usr/bin/env python | |
import getpass | |
import base64 | |
import httplib | |
import urllib | |
import json | |
import getopt | |
import sys |
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
module Lazy | |
class LazyProc | |
alias __class__ class | |
instance_methods.each { |m| undef_method m unless m =~ /^__/ or m == :object_id } | |
def initialize(&computation) | |
@computation = computation | |
end | |
def inspect |