Life's too short to be miserable at work. I'd chalk it up as a learning experience and move on. Lots of opportunity out there, and you'll probably land somewhere that you can either learn or teach things that you'll never be able to in your current gig.