1 2 3 4
from random import random as _ eval(compile("\n".join( ["(lambda %s:" % (chr((121 - ((25 - (ord("z") - y)))))) ...
Python Random number generator
1 2 3 4
#!/usr/bin/env python # ######################### # # $Id: sendfile.py,v 1.4 2008/03/19 11:59:52 dhylton Exp $ ...
Python sendfile.SftpSClient
by dhylton.myopenid.com,
March 19, 2008 14:53,
3 refactorings
the goal is to be able to e...
1 2 3 4
import re def addWord(token, frequencies): ...
Python Count word occurrences in a...
This code counts number of ...
1 2 3 4
class SearchLet(Form): district = Field(widget=SelectMultiple(choices=DISTRICTS, required=False) ...
Python Django models search
I'm using the following cod...
1 2 3 4
import inspect def curried(f): def curhelp(n, args): ...
Python Currying decorator
by openid.aol.com/Sxipestro,
November 01, 2007 21:35,
1 refactoring
This decorator works, but u...
1 2 3 4
def summe(zahlMaximum): z = [0,0,0,0,0,0] ...
Python Sum of all checksums to a v...
by jpzk.myopenid.com,
October 16, 2007 21:37,
5 refactorings
It's very long and i just w...
1 2 3 4
""" For a given number, prints Pascal's Triangle upside-down up to that line. Prints everything alligned at first, but starts screwing up at about 13. ...
Python Pascal's Triangle
by getopenid.com/ptn,
October 04, 2007 11:57,
4 refactorings
Algorithms and Data Structu...
1 2 3 4
#! /usr/bin/python """ A python primer. pydoc, doctest and classes. ...
Python Classtemplate
by griflet,
October 03, 2007 02:15,
2 refactorings
I'm new to python (and to O...
1 2 3 4
def montage(): topLeft = makePicture(getMediaPath("images-1.jpg")) # Top left picture, type in later topRight = makePicture(getMediaPath("images-2.jpg")) # Top Right picture, ...
Python posterize
by goatmonkey.myopenid.com/,
September 28, 2007 04:59,
5 refactorings
Creates a collage
It works okay, but I think ...