Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I do not claim any copyright over the code samples (including code comments) I post to Stack Exchange sites. See https://creativecommons.org/publicdomain/zero/1.0/ . You don't even need to attribute the work.