Karma Yoga
"If you can invariably take take the position of a giver, in which everything given by you is a free offering to the world, without any thought of return, then will your work bring you no attachment. Attachment comes only where we expect a return . . . Now you see what Karma-Yoga means; even at the point of death to help anyone, without asking questions. Be cheated millions of times and never ask question, and never think of what you are doing. Never vaunt of your gifts to the poor or expect their gratitude, but rather be grateful to them for giving you the occasion of practicing charity to them"
-- Complete Works of Swami Vivekananda, 1.2.3 Chapter 3: The Secret of Work
I recently read this lecture by Swami Vivekanda into the basics to Karma Yoga. I've noticed in life that we often give something our all and expect the result to be an outcome that we want. We think we deserve that outcome because of all the effort we put into it and we think we should be praised because of that work. And then when the opposite happens, we get sad because we didn't get what we felt we deserved.
I find that Karma Yoga seems to have a fix for this, instead of doing an action or work in order to get some kind of reward we should instead be doing work for work's sake. In reality we are guaranteed nothing in life so we might as well put forth our max effort and accept whatever outcome may come. We can't decide what an outcome may be but we can decide how much effort we put into our work and how we react to it.