Recently I re-looked over licenses and license related posts for a project at work. And after reading an old blog post on being sure to pick any license I thought about my blog posts. I've included code snippets in them sometimes for others to use and never declared any permissions for them.
Now the copyright of these simple functional snippets is relatively debatable and any license at all (even the tiny MIT license) is really too much for snippets. Frankly requiring attribution for any of them is relatively unwarranted.
So I've decided to go back and tag most of the code snippets on my blog releasing them as CC-0. You're free to use those snippets in any code you want and you don't even have to include attribution for them. ((;) Though if you feel like including a code comment next to your use of them pointing back to where you found them I'd be flattered.))
The CC-0 code blocks look like this, with an explicit footer on each of them stating the CC-0 release for that block of code.
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>...</title> </head> <body> ... </body> </html>
Now I admit I don't have many blog posts with code snippets inside of them right now. Though hopefully that'll change. I have been thinking it would be a good idea for me to try writing blog posts about various techniques, etc... Once I can figure out what to write on.