badge snippets