If I want to copy a method from Stack Overflow, I usually put the name of the author and the link in a comment above it. I'm just wondering if there's any license in effect for all the code put in answers and questions as sample.
1 Answer
Look at the very bottom of every page:
site design / logo © 2017 Stack Exchange Inc; user contributions licensed under cc by-sa 3.0 with attribution required
And back in 2011:
site design / logo © 2011 stack exchange inc; user contributions licensed under cc-wiki with attribution required