Skip to content

Instantly share code, notes, and snippets.

@danprince
Created April 26, 2013 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danprince/5467176 to your computer and use it in GitHub Desktop.
Save danprince/5467176 to your computer and use it in GitHub Desktop.
Golf
function c(i){return i.match(/1[0-9]*1/g).length}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment