For example, sometimes if I am working on something and it doesn't seem to be working out as it is supposed to I will just keep at it just because it annoys me so much.
Another example can be assume that someone tells you not to do something and you do it anyway just because you don't want to be told what to do.
Someone does something bad to you and you can leave it. But you can't just because it annoys you that he goes with out any response.
You get the idea I guess. Now is there a specific word for this behavior?