setup.py
yakuza:src kw$ cat testapp/setup.py
#!/usr/bin/env python
from distutils.core import setup
PYTHON := python2.6 | |
BUILD_DIR := buildtmp | |
AURORA_CLUSTER := test | |
AURORA_ROLE := $(shell whoami) | |
UWSGI_VER = 2.0.4 | |
UWSGI_DIR = uwsgi-$(UWSGI_VER) | |
UWSGI_FILE = $(UWSGI_DIR).tar.gz | |
UWSGI_URL = http://projects.unbit.it/downloads/$(UWSGI_FILE) |
#!/usr/bin/env python | |
from collections import deque | |
class TaskGraph(object): | |
''' simple acyclic, directed property graph with iteration | |
use case: | |
1) model nodes as dicts and dependencies as directed edges (name=occ -> name=twist) | |
2) start with all nodes colored down (_st=0) |
#!/usr/bin/env python | |
import sys, time, select, signal | |
try: window = int(sys.argv[1]) | |
except: print 'usage: %s <window>' % sys.argv[0]; sys.exit(1) | |
a_time, b_time = long( time.time() ), 0 | |
count = 0 | |
def ctrlc(signum, frame): sys.exit(0) |