If you're like me when you get angry, fuck, damn, shit, the list goes on, become more than an every other word problem. So, while you are calm begin cussing but, make it into a play fight with your dog. Get down in the floor start cussing in a playful manner. Get on all 4 then bow at your dog. This will indicate you want to play. When you bow keep your rear end high stretch your arms all the way out in front of you then put your head against the floor, looking at your dog. Then begin playfully fighting with your dog while you are cussing. This will build a desire into your dog to begin playing when you start cussing causing you to give attention to your partner to get them back in line and give you a chance to calm yourself. Remember, do this only AFTER building a bond with your dog, AND, reward them with affection afterwards. You can use treats but, if you have a really strong bond affection will be more than enough reward for your partner.