When I'm feeling unproductive, I sit down at the computer and set a timer for 60 minutes of coding on a brand new project. At the end of that hour, I publish whatever code I've written, even if it remains unrefined or incomplete. This helps me improve my coding-speed, improve my intuition, stop getting caught worrying about minutiae, and it also forces me to write modular, readable code. It also keeps me off the streets.
Here are some of these projects. Everything is open-source and free to use.