How to stay productive when you’re depressed or heartbroken — Quartz