Period Cramp Hacks

I'm just curious to know what everyone else does to calm period cramps or maybe even prevent them? I hear you can do a few things some weeks before in order to prevent getting cramps. I get major severe cramps and not a lot works to stop them. Using a heat pad usually helps but only when I'm laying on one, and I can't do that when I have class, work, and so on...