When your code is giving you fits, take a 5-minute power nap to clear your mind and come back to it with fresh eyes.
Caffeinate, then immediately nap. The sugar crash will be worth it.
Step 1: Stand up and stretch. Step 2: Close your eyes and take a deep breath. Step 3: Faint.
Nap in your favorite fantasy world. Your computer will be the perfect alarm clock.