Skip to content

Instantly share code, notes, and snippets.

@fbstj
Created July 5, 2013 13:01
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 fbstj/5934389 to your computer and use it in GitHub Desktop.
Save fbstj/5934389 to your computer and use it in GitHub Desktop.
// count down to zero
num -= !!(num - 1);
// count up to MAX
num += (num < MAX);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment