Re-using code is potentially problematic for licensing reasons, even if we cite the source.  If you really need to use this, you need to check with @jtauber.