Skip to content

Instantly share code, notes, and snippets.

/one-line-of-code
Created Apr 28, 2014

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

This comment has been minimized.

Copy link

magicmonty commented Apr 28, 2014

String[] dataArray = csvRow.split(",");
@magicmonty

This comment has been minimized.

Copy link

magicmonty commented Apr 28, 2014

// Fall 1
if ((clientID == null || !clientID.HasValues || !clientID.PartnerID.HasValue || !clientID.SubPartnerID.HasValue ? true : !clientID.GlobalClientID.HasValue))

// Fall 2
return ((clientID == null || !clientID.HasValues || !clientID.PartnerID.HasValue || !clientID.SubPartnerID.HasValue ? false : clientID.GlobalClientID.HasValue) ? true : false);
@magicmonty

This comment has been minimized.

Copy link

magicmonty commented Apr 28, 2014

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

This comment has been minimized.

Copy link

magicmonty commented Apr 28, 2014

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

This comment has been minimized.

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
You can’t perform that action at this time.