I’m confident

Is it okey to use OReilly's Book's graphs and some codes for educational purpose?

The title say it, I want to make a lecture about javascript in my collage with no-profit. All I'm asking is it right to use some of sample codes and images (graphs mostly) in my presentation.
I think it could be used as Fair-Use Policy of companies.
1 person has
this question