Being unproductive sucks. Breaking the cycle can be writing ten lines of code, or forking some interesting project on github and poking at it with a stick. Every developer is different. Find your charger somewhere and go do. Do it every day. Do it with quality in mind.