Skip to content

Instantly share code, notes, and snippets.

@mildsunrise
Last active October 11, 2015 10:58
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 mildsunrise/3848268 to your computer and use it in GitHub Desktop.
Save mildsunrise/3848268 to your computer and use it in GitHub Desktop.
Greatest Common Divisor comes to Stylus!
gcd(a,b)
unless b
return a
gcd(b, a%b)
mcm(a,b)
a*b / gcd(a,b)
foo
bar gcd(24,60)
bar mcm(35,14)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment