People get snippets from Stack Overflow all the time and usually there is no concern whether it is properly attributed or not.
I'd argue that people who open-source code expect other people to learn from it in a small way of snippets and that constitutes fair-use.