This is an issue that I have to deal with as well. The worst part is, I have some brain-dead classes that are simply required classes and I still can't really do much with them.
The trick for me has been to stay on top of assignments so that they don't get in the way. Ideally you could do all of your school on campus then head home and get to work. Another option is to bring a laptop into class and pretend to take notes while instead coding away.