Harry Rose

Home

Code

This section holds (soon to be) lots of programs and code snippets that I've written. This section only really contains snippets of applications (or whole applications when they are small enough). If you'd like to see what else I've been working on, check out my Github page.

Disclaimer

Please be aware that these code snippets may not all be in full and almost certainly are not bug free (that's not because I can't code, some of these scripts were written as quick fixes). Anyway, this code is provided without warranty, I'm very sorry if they break your machine (they didn't break mine), but you have been warned.

The fun stuff

If you've been brave enough to carry on reading why not reward yourself with a look of the code below - there's even pretty syntax highlighting.

C

Noobify
A script to HeLp YoU tYpE lIkE a NoOb

Javascript

cue
A page mostly generated using javascript with jquery that builds up forms for inputting data to be formatted as a cue sheet (the actual cue sheet generation is done by PHP

LOLCODE

NumberGuesser
I was bored and couldn't sleep so I did what any self-respecting computer scientist would do and learnt LOLCODE.

Other

downloader
TexMake
TexMake is a Makefile which I use create documents from latex sources.

Perl

Adium2Pidgin
Adium2Pidgin is a perl script that converts Adium smiley themes to Pidgin smiley themes.
CurrentCost
A script to log data coming from your Current Cost
downloader
Downloader is a trio of scripts written to do bulk downloading and organising. The scripts are written in PERL, Awk and BASH.
markov
A pidgin plugin that uses N-Grams learnt from messages you send to others to generate sentences, which are sent to others.
random
Random is a very simple perl script which echoes a random number between 0 and a given number to the terminal.
webgraph
A script that follows links on webpages and generates dot allowing those links to be graphed

PHP

pastebin
A pastebin written in PHP that implements a RESTful interface

Python

pastebin
Submit data to paste.harryrose.org from the command line

Shell

alarm
Alarm is a bash script which implements a basic alarm clock. The alarm clock plays a given media file using mplayer and is disabled by answering a basic addition question.
ripcd
Rip CD is a BASH script which uses cdparanoia to rip CDs to a directory based on the given artist and album, and then uses lame to encode the files to mp3