Prepare for It. In this case, all you can do is politely deliver your resignation, then strive to make the transition as easy as possible for your team. Your manager may not have the ideal reaction to your news__and your workplace may not be the most pleasant environment for the next two weeks__but to avoid burning bridges, it's best to work through it with a positive attitude.
You'll have plenty of time to vent personally about your work grievances as you leave, but really, you stand to gain nothing by putting negativity into your resignation letter. And unless you're leaving the state and your current industry, you always run the risk of running into the same people later on. So you're far better off taking the high road and making sure your exit is a classy one.