Code for some of my answers on stackoverflow