How to enumerate bits quickly using DeBruijn sequences.
Posts tagged with "code". Use the sidebar to search for other categories, or view all.
After the (useless hack) SmackBook was released, some commenters were worried that giving the laptop a smack to the head might be bad for the hard drive, not to mention the soul. Here's a gentler alternative.
It's occasionally useful to run iTunes under GDB without having it bomb out with a 'code 055' or having gdb segfault.
I for some reason wanted to see the source code of a Mathematica workbook. Here's a script to dump .mx files.
For some reason there is no standard utility to play a sound file from a shell script. Well, here's one.
This is a small script to make xterms distinguishable from one
another, by shifting the color map of each terminal window ever so
subtly in a random direction.
This is a collection of strange C (and some Java) constructs. It's probably best not to use them, but you should know why they work.
Kyrre Glette and I wrote a simple image generator using genetic programming for an artificial intelligence course. Here are some of the images it made.