You can buy this project and download/modify it how often you want.
Files of the artifact udfs version 0.1.2 from the group com.qubole.presto.