Scientists have discovered new routines that help explain the behaviors of the energy grid, fireflies, and pendulum clocks.