"The only way to get rid of temptation is to yield to it. [...] I can resist anything except temptation." - Oscar Wilde
And if I can't resist temptation, I eliminate it.

Don't keep the foods that you usually crave during that time in the house. I'd say the only thing that I permit myself to snarf is chocolate, since it ups my mood too.
Geek moment - whenever I think of eating chocolate, especially in times of self-medication, I can't help thinking of Harry Potter and Lupin. "Eat this - it helps. It really helps."