Code snippets for sharing and reference