I no longer keep a single scratch text file for snippets like this. For each new thing, I simply create a new text document in a BBEdit window I have dedicated to scratch. Ever since Lion's autosave feature, I no longer have to worry about persisting anything.