If you are about to overeat, stop for a moment and ask yourself if it's worth it. Will you actually feel better, or will you feel guilty or remorseful for having abused yourself? Do you want to be bad to yourself? If so, then ask yourself why. Think about it for several minutes.
What could you do instead? Read a book or visit a new Internet site. Call a friend and tell them what's wrong. Attend to some work you've been putting off.
If you must binge, try a harmless substance, like apples or grapes. Carrots, crackers, or pretzels with a lot of water can also be satisfying.
If that doesn't work, if you must eat a ton of ice cream or fried stuff, cakes, shakes or whatever, then don't think it's the end of the world.