This is scary. I share a lot of bad code in various places, that I created in process of learning or just because I needed something done quickly. I always inform that this code shouldn't be used in any system "as is", but may serve for learning purposes.
I know that a lot of people do that. And I find it incredibily useful, sometimes finding a snippet of code saves me time from jumping extra hoops, just because (for example) driver misbehaves or documentation is incorrect/incomplete.
I hope this incident doesn't stop anyone from sharing their code and findings, no matter how good or "professional" they are.