Skip to content

Instantly share code, notes, and snippets.

Created Apr 28, 2014
Embed
What would you like to do?
cnt = SYS_IN.L[0] % 100; /* FIXME !!!! 24APR07 */ /* function */
@magicmonty
Copy link

magicmonty commented Apr 28, 2014

fizzbuzz = lambda n: (n, "Fizz", "Buzz", "FizzBuzz")[(n%3 == 0) + 2*(n % 5 == 0)]

@magicmonty
Copy link

magicmonty commented Apr 28, 2014

if (n and (n-1)) = 0 then print "power of 2"

@magicmonty
Copy link

magicmonty commented Apr 28, 2014

// macht aus einem Date-Object einen Unix-Timestamp
+(new Date())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment