a place to remember common of cross platform code snippets