Assorted bits and pieces of code. This repository contains several bits of code that aren't projects in their own right. The idea is just to have somewhere to keep miscellaneous code fragments that may or may not be useful.
Some of these things stem from attempts to reproduce features of better known libraries (e.g. the Boost C++ libraries). Others are my attempts to learn programming languages. Still others are just there for fun, and serve no useful purpose whatsoever.
Many of these fragments have been sat on my external hard drive for years; the idea behind putting them on github is to make them available in case I ever wanted to use (or look at) them.
-
MersenneTwister [C++] C++ wrapper around mt19937ar.c. Don't use it.
-
assign [C++] Use operator+= and operator, to assign elements to standard library containers. Use boost.assign instead of this!
-
eval [C++] Recursive-descent parser for mathematical expressions
-
irc [Python] A class for parsing IRC lines, and a trivial IRC bot based on it.
-
lisp [Lisp] Fragments of code to play around with Lisp; mostly recursive stuff.
-
streaming [C++] Stream the contents of standard library containers.
-
sizeof.py [Python, C] Print the size of C types with command-line interface.
-
sound [C] PCM audio stuff.
-
space.c [C] Determine distribution of "empty" space in a file (null bytes). Useful for inspecting partial downloads (?)