Skip to content

Instantly share code, notes, and snippets.

@zolunx10 zolunx10/common.js
Created Dec 25, 2012

Embed
What would you like to do?
some js functions
function zpad(x, n) {
return String("00000000000000000000"+Math.abs(x)).slice(-n);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.