Skip to content

Instantly share code, notes, and snippets.

@therealbill
therealbill / samplelayout.txt
Created August 24, 2012 21:06
How I'd like to have my Flask project
/siteroot/
runserver.py
site.wsgi
/templates/ (for root/global templates)
layout.html
/static/
/css/
/js/
/section1/
__init__.py
#!/usr/bin/env python
import timeit
from random import choice
def getTriplets(top=1000):
triplets = []
for c in xrange(top,3,-1):
maxb = top-c - 1
for b in xrange(maxb,0,-1):