Maybe it's just my style, but I don't do alot of copy&paste snippets across projects. If something is good enough to be reusable, then I take the time to create a proper function or class for it (including javadoc style documentation so eclipse can pick up on it). Then it's a simple matter to install it "site-wide" in your development environment. For php, add it in the include path and then tell your IDE to use it. For JavaScript, put something off the root folder of your local webserver ("/jslibs" or the like). If you use jQuery, you can easily turn your javascript snippets into proper plugins.
CSS however, is a complete clusterf*ck. I don't have any real suggestions for that.
Here are a couple more suggestions specifically for offline use:
a local wiki to document things. If you're using subversion or git, I'd recommend trac as it integrates nicely.
If you use firefox, get the Scrapbook plugin. It allows you to save web pages or snipptes of pages into a local searchable database.