Store the snippet with a language, purpose, source and one caveat. The tiny note beside the code can save more time than the code itself.
A snippet worth keeping
Intent What job does this code solve?
Context What framework, version or assumption does it need?
Proof Where did it work, and what should be checked before reuse?