Skip to content

Instantly share code, notes, and snippets.

@zolunx10
Created December 25, 2012 11:55
Show Gist options
  • Save zolunx10/4372845 to your computer and use it in GitHub Desktop.
Save zolunx10/4372845 to your computer and use it in GitHub Desktop.
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