I often find myself mote productive after a mildly bad night. The brain stops anxiously looking for nuts to crack, and instead can easily focus on a single problem for a long time. Isn't best for all scenarios, but definitely superior in some, e.g. implementing a large chunk of logic that was designed earlier.
Haha, that I recognize. Especially if I am a bit hung-over because I could not resist taking an advance on the weekend by hitting the pub on a Thursday night. May today be a productive day!