Code

These programs have all been written by me for my personal use and the use of my friends. Though I have made all attempts to make sure that they are free of bugs, you are urged to treat them all as alpha code that can very well prove the Riemann hypothesis or send you into another universe.

wikiwatch:
your Wikipedia watchlist as a RSS/ATOM feed

Download

Description

Wikipedia allows you to create a watchlist of articles that you want to monitor and notifies you when any of those articles is modified. This Python program uses the MediaWiki API to fetch your watchlist as an RSS/ATOM feed. It is meant to be used with a feedreader like Liferea which allows you to use a local script as a feed source.

Usage

wikiwatch.py <username> <password> [atom/rss]

Version

0.2alpha

pretty-schema:
database schema pretty printer

Download

Description

pretty-schema is a Python script that that prints out the structure of tables in a MySQL database in AsciiDoc format.

Usage

pretty-schema.py <database> <username> [password]

If you have AsciiDoc installed you can use the following to produce a pretty HTML file of your database schema:

pretty-schema.py mydb myusr | asciidoc -a toc - > schema.html

Example

Dependencies

pretty-schema requires the MySQLdb module for Python to be installed.

Version

0.0alpha

centipede

Download

Description

A Python script to keep score for Rosenthal's centipede game

Usage

python centipede.py [stopping payoff]

The default stopping payoff is 100