ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 3 Next »
2
Date Submitted Mon. Jun. 9th, 2008 4:09 AM
Revision 1
Helper jamesmcm
Tags game | platformer | pygame | python
Comments 1 comments
A simple platformer written in python using pygame. It is still plagued with bugs at the moment. Pre-Alpha.
2
Date Submitted Wed. Jun. 11th, 2008 4:45 AM
Revision 1
Helper jamesmcm
Tags plugins | python
Comments 0 comments
Part 1 of an autocomplete plugin designed for use in IMs. Not entirely finished since if two new words are used in one string then it doesn't add them correctly - starting with a full wordlist would reduce the chance of this occurring however.
2
Date Submitted Wed. Jun. 11th, 2008 4:47 AM
Revision 1
Helper jamesmcm
Tags plugins | python
Comments 0 comments
When given the start of a string it searches the wordlist and returns the most popular word used beginning with that string. Designed to be used in autocomplete IM plugin where tab would cycle through used words beginning with the string, in order of popularity.
1
Date Submitted Fri. Jun. 6th, 2008 6:28 PM
Revision 1
Beginner Can
Tags lambda | permutation | python
Comments 0 comments
First post here. Tried to get the most minimalistic way to calculate the amount of permutations. The typical formula is:

n! = 1 * 2 * 3 ... * r * r + 1 * ... n
r! = 1 * 2 * 3 ... * r

But since every number between 1 and r is simplified, it's just a multiplication of the (x)range between r+1 and n.

Also as an example of lambda functions on python, and the reduce function, which takes every pair inside a list-type object and runs the function over them.
« Previous 1 2 3 Next »