I've invented my own little standard for folk who put source code for algorithms on the web. It's called the Extra Mile Algo Standard (EMAS for short), the reason being that it requires the publisher to put a tiny bit more effort into how they present their work. It should be worth it though!
More details are here, together with an example. All comments are very welcome.