some web dev tricks and snippets