Practicing gratitude can help you redirect your attention to what you have and create positive energy that will help you overcome adversity.