Various code snippets for the electric imp