I was up all night coding, and somewhere along the line I fell asleep, but I dreamt I was still coding. The program in my dream made no sense, but when I woke I felt really surprised that I hadn't finished the program yet. It took me a few minutes to realize what happened.