Translates text using Google translation service
2
Forgive the formality here; this is one of my professional scripts.
Analyte 1.0 (c) 2008 Bryan Elliott
Purpose:
Simplify inclusion of Google Analytics into any site, add GA tracking to non-HTML links, and reduce 'blocking' action of Google Analytics scripts.
Use:
License:
Unlimited license granted to Abacus Studios, Inc. and I-Site, Inc.
All other parties licensed under CC-BY-SA-3.0:
Creative Commons Attribution / Share Alike 3.0 US
Fulltext and synopsis at
http://creativecommons.org/licenses/by-sa/3.0/us/
This license need not appear in minified or otherwise compressed forms
of this script, so long as the script is in active use by a web site or
application, and no other credit is claimed.
Analyte 1.0 (c) 2008 Bryan Elliott
Purpose:
Simplify inclusion of Google Analytics into any site, add GA tracking to non-HTML links, and reduce 'blocking' action of Google Analytics scripts.
Use:
License:
Unlimited license granted to Abacus Studios, Inc. and I-Site, Inc.
All other parties licensed under CC-BY-SA-3.0:
Creative Commons Attribution / Share Alike 3.0 US
Fulltext and synopsis at
http://creativecommons.org/licenses/by-sa/3.0/us/
This license need not appear in minified or otherwise compressed forms
of this script, so long as the script is in active use by a web site or
application, and no other credit is claimed.
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.
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
A simple platformer written in python using pygame. It is still plagued with bugs at the moment. Pre-Alpha.
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 anagram solver in python. Requires a dictionary named wordlist.txt
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.
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.
4
This snippet extracts the keywords or search phrases from a Google referral. It also sets variables for the search engine, date and web page which received the referral if you want to log the data to a file or database. The variables are $engine, $finalphrase (keyword phrase), $page(referred web page), and $date.
6
Create a regular expression pattern matching any positive number that is less than or equal to the given max number
Example:
pattern = createRegExNumberPattern( 950 )
print pattern
([0-8]\d\d)|(9[0-4]\d)|(950)
Example:
pattern = createRegExNumberPattern( 950 )
print pattern
([0-8]\d\d)|(9[0-4]\d)|(950)









