Code

Here I put any interesting piece of code that I ever came across. I keep them here for educational purposes, so that I can copy and paste them again when I have forgotten the details :-).
That means that some of the code is of myself, but most of it have copied/pasted from other people's sources. So please do not hestiate to mail me if you think some of the code if from you. I will put a copyright under your code or remove it, whatever you like.
If you need parts of the code for your own projects please feel free to copy and paste whatever you like :-).
For coloring the source code I use the commandline tool webcpp which is hosted at Sourceforge.