I have found that I don't can trust me snippets without proper TDD or BDD test, and sometimes I even need the compile argument or some other thing (like which version of .net as a manifest this c# code does what is supposed to do or ruby/gem or in which erlang release can I do this, or on what machine can this c code be good or bad)
So I treat not snippets but small sandboxes of environments that is contained in there own directory given the context. I try to give good names on the file/directory (so I don't really have to index but can use grep).
I put everything in a hg repos (Mercurial) .
That way I can use hg to take care of much of the rest, log, revision and sync with different computers, and if I need to take only a usb with med I clone my master to the usb and do a hg update, then I can see the plain files regardless on any computer that can mount the usb.
This is battle-proven, because on some customers site I have not been allowed to
connect to internet at all, not ben allowed to use my own computer, not been allowed to use anything that needs to be installed on their computers. But I have been allowed to look (read-only) to a usb if they have done their thing with it first (virus scan, sandboxed it and what not).