Hard work and a proper frame of mind prepare you for the lucky breaks that come along — or don’t.