Not nearly as cool, but sometimes a tricky client problem that's been bothering me seems to solve itself in my head, and I try to frantically diagram it or write it in the condensation on the inside of the shower door to make sure it checks out and to help me remember it. It's happened several times.