Every day is a chance to get better. Don't waste it.
Dealing with failure is easy: Work hard to improve. Success is also easy to handle: You've solved the wrong problem. Work hard to improve.
The best way to cheer yourself up is to try to cheer somebody else up.