Well, what you should NOT do before going to sleep is puzzling with a programming-task, or problem or anything at all that annoys you! Then you'll just lay there thinking on how it can be solved!
If I need something to clear my mind I usually read a comic or watch cartoons. The simpler, the better
