Useful code snippets to help my arduino development