Small Source code snippets for the mbed-platform