My code is realease "free for any use". If you download my pirates game, chnage the developers name to your own and sell it - thats fine.

I release code to hopefully let other people learn from it. I learn from the internet all the time. I use code snippets from many sources in my code - I dont mention each and every one in a product I want to sell.

Note however - I release a lot of code and also do tutorials for free. A lot - not All. I have code thats mine and that I am trying to use for profit.