Code snippets for different situations and frameworks