- 0 Posts
- 134 Comments
https://www.npmjs.com/package/is-even
don’t look at the weekly downloads if you are faint of heart.
isEven(0) -> true; isEven(Num) -> isOdd(Num-1). isOdd(0) -> false; isOdd(Num) -> isEven(Num-1).
I see what you did þere
FiskFisk33@startrek.websiteto
Programmer Humor@programming.dev•I got to avoid memory management for quite some time
7·2 months agoit is good to learn C, even if you’re never gonna touch it again. It teaches you what other languages abstract away.
FiskFisk33@startrek.websiteto
Programmer Humor@programming.dev•We don't talk about IPv5
19·3 months agofun fact, the RFC introducing NAT calls it a “short-term solution”
wait, does windows jit compile C++ ??
come to the dork side
FiskFisk33@startrek.websiteto
linuxmemes@lemmy.world•boot: "you are in emergency mode"
16·5 months agoA usb stick with a live linux iso is generally enough
FiskFisk33@startrek.websiteto
Programmer Humor@programming.dev•I'm gonna refactor later.
181·6 months agobut it removed half the point…?
i know this is a joke, but i find it quite interesting those two words have completely different etymologies.
Grave as in burial site comes from an old proto indo european word for “dig”, while grave as in serious comes from french.
I mean, sure, you won’t stay alive for very long with a stopped heart.
I meant like, when someones heart stops and gets restarted again with cpr or a defibrillator or something. People often call that being dead, and coming back.
people say quitting smoking is hard. I don’t understand, I do it multiple times a day.
I know this is a definition in many places. I find it stupid and useless.
The heart beating is not a good definition of being alive in my opinion. The heart stopping temporarily doesn’t mean you died, you were just in terribly grave danger.
If a person is defined by their heart, what does that make a heart transplant?
utterly useless definition.
oh god the reason is even stupider then I expected
Because large numbers use the
echaracter in their string representation (e.g.,6.022e23for 6.022 × 1023), usingparseIntto truncate numbers will produce unexpected results when used on very large or very small numbers.parseIntshould not be used as a substitute forMath.trunc().
I wouldn’t trust a guy letting their battery go that low either