Human beings are not like machines, we are greatly affected by our environment, mindset, and emotional state- we must manage all of these influences in order to do our best work. The “hack” to adapt is to get yourself into that optimal state and mindset so that you can be productive.
So next time you’re in that funk, do whatever it takes to get your mindset out of that negative state so that you can get on with achieving your greatness!