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 itty import * | |
@get('/') | |
def index(foo): | |
return 'Hello World!' | |
run_itty(server='appengine') |
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
Dashers: | |
dusty has 167 commits. | |
ericflo has 163 commits. | |
brosner has 100 commits. | |
jtauber has 96 commits. | |
alex has 95 commits. | |
xentac has 87 commits. | |
defunkt has 81 commits. | |
pnomolos has 76 commits. | |
liz has 76 commits. |
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
For the Birds - http://nycbirdlist.org/ | |
Code monkeys - http://djapp.org/ | |
Freelancer - http://tnycnt.com/ | |
Sword of Truth - http://leafychat.com/ | |
wwswd - http://wwswd.com/ | |
East meets West - http://whohasmy.archlinux.ca/ | |
crunkd - http://getcrunkd.com:88/ | |
Ra - http://www.ntrie.com/ | |
arctangent - http://rudestword.com/ | |
Slugs - http://flicasa.com/ |
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
- simple | |
- public over private | |
- personal vanity | |
- internet is global | |
- permalinks | |
- don't break browser rules | |
- don't re-invent the wheel | |
- break convention for your users | |
- no useless widgets | |
- minimize user decision making |
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 itty import * | |
import Queue | |
import threading | |
queue = Queue.Queue() | |
message_count = 0 | |
message_count_lock = threading.Lock() | |
finish_queue = False | |
finish_queue_lock = threading.Lock() | |
wait_for_it = threading.Event() |
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
models.py | |
if field.primary_key or field.unique: | |
# You're not as special anymore but we still love you. | |
# Plop an index on it so it's fast. | |
field.primary_key = False | |
field._unique = False | |
field.db_index = True | |
+ # Bugfix: If there's a related_name, it needs to be unique-ish. |
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 -g prefix C-a | |
unbind C-b | |
bind C-a send-prefix | |
set bell-action none | |
set-option -g status-left "" | |
set-option -g status-right "#S" | |
set -g status-bg black | |
set -g status-fg white | |
set utf8-default on |
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 | |
# First, open up GitX | |
cd ~/Code/Python/django-haystack; gitx | |
tmux start-server | |
tmux new-session -d -s Haystack -n git | |
tmux new-window -tHaystack:1 -n test | |
tmux new-window -tHaystack:2 -n solr | |
tmux new-window -tHaystack:3 -n docs | |
tmux new-window -tHaystack:4 -n runserver |
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 unittest | |
# Fake the env. | |
class ValidationError(Exception): pass | |
self = type('Test', (object,), {"error_messages": {'invalid': 'ERROR'}}) | |
def is_email(email): | |
email_bits = email.split('@') | |
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
============================================================= | |
Installing Multicore Solr 1.3.0 / Tomcat 6.0.X on Ubuntu 8.10 | |
============================================================= | |
Install OpenJDK (comes from universe):: | |
aptitude install openjdk-6-jre | |
Download Tomcat 6.X and move it in place:: |
OlderNewer