in reply to Re^3: A Copyright/License question
in thread A Copyright/License question

US copyright law contains provisions that cover academic research and fair use likely covers the code snippits. After that you are left with a weak defense in court. Much better to ask the author first.