You will find some code snippets written in different programming languages here.
There is no guaranty that this code is error free or does what it is supposed to do. If you want to use it, you may. If you don't, you must not. Nevertheless I hope, that some of these code snippets might be helpful.