Generate all permutations of a list
1
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.
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.
2
A simple CLI hangman implementation in Python.
Uses a simple list of countries in countries.txt to generate words.
Uses a simple list of countries in countries.txt to generate words.
2
A simple anagram solver in python. Requires a dictionary named wordlist.txt
2
A simple anagram maker written in python. Automatically adds original word to wordlist.txt if it does not exist there already so it may be used in conjunction with the solver.
2
A simple platformer written in python using pygame. It is still plagued with bugs at the moment. Pre-Alpha.
2
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
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.
4
This module is a Python Library to support all IP2Location™ database products. It has been optimized for speed and memory utilization. Developers can use the API to qeury all IP2Location™ binary databases for applications written in Python.
4
Utsawin
Go easy on me, my first snippet - plus I am new to VB.NET 2.0... with only basic knowledge of classic VB... Just want to mention that the Permutations function is not actually mine - found it online... (credit where credit's due)
Fairly simple stuff, but had me pulling my hair out - Even Excel has a COMBI function out of the box!
Fairly simple stuff, but had me pulling my hair out - Even Excel has a COMBI function out of the box!
6
Reads a file line by line using Python in 3 lines









