25 minutes of focus. 5 minutes of rest. Repeat.
Pomodoros are great for sprints. For longer sessions, check out Ship It Badger.