random code snippets written here and there