My Code Archive

All the code I post on BG is cataloged here according to language (currently only Python) and date (newest at the top). You can download the source code for any version by clicking on the links. It should be fairly self-explanatory.

Table of Contents:


Python

SPOJ #1Life, the Universe, and Everything (current version 1.0.0)

Submissions (successful and otherwise) for SPOJ classical problem #1: Life, the Universe, and Everything. Problem code: TEST.

Fibber (current version 1.0.0)

Generates Fibonacci numbers.

ROT13er (current version 1.0.1)

ROT13 decoder/encoder.

HTML Page Generator (current version 1.0.0)

Generates a simple HTML page from user input.

Phonebook (current version 1.0.1)

Phone book implementation with address and phone numbers read from a dictionary database (database not currently user-modifiable).

E-mail Quotation Reformatter (current version 1.0.2)

Strips the “> > > > ” characters from overly fwd’d/re’d e-mail quotations.

ROT13 Decoder

ROT13 decoder (encoder is separate program at present). —  Deprecated, now part of ROT13er.

ROT13 Encoder

ROT13 encoder (decoder is separate program at present). —  Deprecated, now part of ROT13er.

Madlibs (current version 1.0.1)

Mad Libs-type game where the user types words or phrases, which are then put into a story template for hilarious results.

Quotation Box (current version 1.1.1)

Puts a user-supplied phrase into a centered ASCII box.

  • quotationbox.v1-1-1.py (09/19/2010) — Now ensures user enters a quotation
  • quotationbox.v1-1-0.py (09/11/2010) — Added GPLv3 license text & changelog to comments; added user-visible program & (c) info; cleaned up comments and code
  • quotationbox.v1-0-0.py (08/21/2010) — Initial release (Take user input and make a centered ASCII box around it)

Domain Name Extractor (current version 1.0.2)

Strips “http://www.yahoo.com/” URLs and returns the domain name.

  • domainname.v1-0-2.py (09/19/2010) — Now ensures user enters a URL; strips spaces from beginning and end of URL
  • domainname.v1-0-1.py (09/11/2010) — Added GPLv3 license text & changelog to comments; added user-visible program & (c) info; added comments for readability; changed URL stripping to require final “/”
  • domainname.v1-0-0.py (08/21/2010) — Initial version (Extract domain name from a URL)

Date Translator (current version 1.1.3)

Takes a MM/DD/YYYY-formatted date and turns it into American-style (e.g., “January 1st, 2010”) date.

  • date.v1-1-3.py (09/19/2010) — Now ensures user enters a date
  • date.v1-1-2.py (09/11/2010) — Added GPLv3 license text & changelog to comments; added user-visible program & (c) info; cleaned up comments & code for consistency
  • date.v1-1-1.py (08/21/2010) — Now handles single-digit DD correctly
  • date.v1-1.py (08/08/2010) — Changed to be a MM/DD/YYYY converter
  • date.py (08/08/2010) — Initial release (My second program!); convert numbers to American-style dates

Hello World! (current version 1.2.1)

Classic “Hello World!”-style program that asks the user their name then prints it in a greeting.

  • hello-v1-2-1.py (10/12/2010) — More playing around with def; tells user how long their name is
  • hello-v.1-2-0.py (10/11/2010) — Now with def magic
  • hello.v1-1-2.py (09/19/2010) — Now ensures user enters a name
  • hello.v1-1-1.py (09/11/2010) — Added GPLv3 license text & changelog to comments; added user-visible program & (c) info; re-commented program, because we were all newbs once
  • hello.v1-1.py (08/08/2010) — Added “Press <enter>” prompt for terminal execution; deleted unnecessary comments
  • hello.py (07/20/2010) — Initial release (My first program!)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s