For the record, any code that I post on this blog can be freely used for any purpose without restriction or limitation. You do not need to ask permission, nor do you need to attribute me.
I will make it clear in the posting if any code is released under other terms. I would only do that if I had to, because (for example) the code was based on existing code that used a viral license, or the code was written for a client that insists on a license in order to allow me to distribute it
But, if I don't clearly state that there are restrictions or limitations, assume there are none.