Follow

How to create an open-source project

twitter: @ haoel

@dctewi Lulz
made with 1 line (in C)
if(number %2){return true;}else{return false;}

@dctewi I'm pretty sure 80% of npm is hipsters coding ironically.

@dctewi
function isOdd(i) {
return i > 0&& isEven(i - 1) || i < 0 && isOdd(i + 2);
}

@dctewi Here's the effective source (MIT license please don't steal):

Unfortunately, it's about 100 characters too long to fit in a toot (at the default 500 maximum length)

@dctewi Okay, their tests (discounting error messages) pass with this implementation:

function isOdd(num) {
return (Math.abs(num) % 2) == 1
}

@dctewi this thing is downloaded 4 million times a month. Twice every second.

h

Sign in to participate in the conversation
niu.moe

Welcome to your niu world ! We are a cute and loving international community O(≧▽≦)O !