My code snippet collection. Feel free to use them as you like.