Temperature Shocks, Labor Productivity, and Adaptation to Climate