All code I post on any of the StackExchange sites is licensed under CC0, which means that:
It can be copied, modified, distributed or used in derivative works, without asking for my explicit permission, for commercial and non-commercial purposes alike.