Premature Optimization and the Birth of Nginx Module Development
evanmiller.org
evanmiller.org
Although this was premature optimization I still find it a beautiful hack. The author was still not content with the C solution of actually generating the GIF each time (which took 30ms, actually a long time for servers) and instead reframed the problem at a deeper level and created a beautiful little hack that just modified the palette table.
Someone did it with HTML5 too:
http://www.effectgames.com/effect/article.psp.html/joe/Old_S...
Demo: