All of the code I've written and contributed to Stack Exchange is dedicated to the public domain, or (at your option) available under the terms of CC0.
This of course doesn't include code which I posted without being its owner. You can distinguish that code by, for example, the attribution notices (sometimes when answering I might be using the OP's code without explicit attribution but it should be evident) .