body: I sometime post code to StackExchange sites like StackOverflow or CodeReview. To meet the requirements of the site you often have to post full code to get help. This is often code I would like to later publish to certain sites for sale.
  
  
  When I do this I am always quite worried that my code is now visible to millions of people that could simply copy/paste my code into a notepad file and have the same product as me, completely devaluing mine. 
  
  
  As far as I know once your idea/product is made public in a timestampable way it is considered intellectual property. But how does that hold up when you freely post it to a knowledge sharing site like this that you cannot include licenses on. Even if it were determined that it were your own intellectual property would it be a worthy cause to fight for when the code might make you a few hundred dollars if anything?
  
  
  
title: Intellectual Property of Stack Exchange posts