The piece of code I'm probably most 'proud' of is my mesh clipping code/demo. The reason being, that I generally suck at maths, so working out the clipping formula by my self, then later seeing the formula on the net (d'oh!) which showed I'd worked it out correctly, was pretty satisfying.