Please consider any (original) code I post to Stack Overflow and other Stack Exchange sites to be released under CC0 unless stated otherwise. You may do whatever you want with it and don't have to credit me in any way, although of course that would be nice.
In addition, to avoid ambiguity regarding the open source status of CC0, you may also use, copy, modify, and/or distribute any original code I have posted on any Stack Exchange sites under the terms of the ISC license. If doing so, please use the copyright statement "Copyright John Freeman" if no other copyright statement is provided.
Thanks to Ilmari Karonen for sharing this example that I could follow.