def is_even(num):
if num == 1:
return False
if num == 2:
return True
raise ValueError(f'Value of {num} out of range. Literally impossible to tell if it is even.')
- 0 Posts
- 115 Comments
The barbarian got the +3 pink tootoo. Went better with his hell-o kitty battle axe.
+3 to AC, passive, one attunement slot, no armor proficiency necessary, no need for a free hand, can be slept in? My wizard will look fabulous.
kryptonianCodeMonkey@lemmy.worldto Lefty Memes@lemmy.dbzer0.com•US/Israel/Russia right now...English211·24 days agoAn administration or official that is otherwise competent, stable and uneventful can be rocked by a single scandal. If everyone can focus on one thing, spend time researching it, and drive it to ground finding out everything about the situation, they can shine a light on it and try to make a giant political issue out of it. A mistake can be career ending if they can find or manufacture some culpability or negligence in it.
But if you just constantly make incompetent decisions, mistakes, lies, threats, scandals, military actions, crimes, etc. and never give any breathing room between them, then despite the plethora of things to scandalize, no one ever had time to run any single issue to ground and use it against you politically. It’s a high risk, high reward strategy that works, unfortunately, very well. It puts your opponents on the back foot and makes their work seem daunting, and by the time someone does put in the time with one issue to expose the details, dozens more issues have stolen the limelight.
Think about this. Years later, everyone remembers scandals under or related to the Obama and Biden administrations. Benghazi, Hunter’s Laptop, Hillary’s Emails… but despite the overwhelming number of scandals under or related to Trump, it is a lot harder to pick just one off the top of your head. The exception to that is probably the things he was actually tried for, because those got a.lot of time and focus and people understand them well, and he wasn’t in a position of power to generate a many new scandals to steal the focus away. But things that didn’t get that focus? Despite being bigger deals than any of that shit accused of Democrats, they are just blips on the radar among many. Someone might bring one up and you think, “Oh yeah! I remember that!” That’s the strategy. That’s what they are doing. Intentionally.
kryptonianCodeMonkey@lemmy.worldto Programmer Humor@programming.dev•Explaining to your boss how Sr engineers are made3·1 month ago“You can fucking try…” 🙃
kryptonianCodeMonkey@lemmy.worldto Palestine@lemmy.ml•problem is not Netanyahu, it is not Ben Gvir. it is the white supremacist mindset of Israeli public.212·2 months agoEthno-states gonna ethno-state.
kryptonianCodeMonkey@lemmy.worldto Programmer Humor@programming.dev•Which of these javascript expressions is false?2·2 months agoIts the min value of the input params, or Infinity.
And the reason it’s Infinity If there is no input, for better or worse, under the hood the method is assigning a variable, min, the highest value possible and then comparing it to each element in the list, reassigning it when it encounters an element lower than its value at the time. So it will obviously always be reassigned if there are any elements at all (if they’re less than Infinity, I guess). But if there are no elements, it’s never reassigned, and thus returns Infinity. It could have just signed min to the first element instead if Infinity, but that would lead to a runtime error when min was run without a function. If you’re not going to throw a runtime error though, it makes sense for min to return Infinity because, what other number could you return that couldn’t actually be the minimum
kryptonianCodeMonkey@lemmy.worldto Programmer Humor@programming.dev•Which of these javascript expressions is false?12·2 months agoNarrator: “It wasn’t B.”
kryptonianCodeMonkey@lemmy.worldto Programmer Humor@programming.dev•ultimate storage hack61·2 months agoI had a manager once tell me during a casual conversation with complete sincerity that one day with advancements in compression algorithms we could get any file down to a single bit. I really didn’t know what to say to that level of absurdity. I just nodded.
kryptonianCodeMonkey@lemmy.worldto World News@lemmy.ml•Harry Potter creator goes on rant about asexuals for some reason 🤷🏽♂️691·3 months agoGetting too much money reaaaaally fucks with your head. Becoming a billionaire should count as a brain injury.
‘#include cpptrace’ gays drawing dick outlines over here.
So… I was just trying to be funny and sarcastic. I added the “/s” as I realized someone was probably going to take me seriously, but probably after you loaded my comment. My bad.
Everyone is making this same joke now. “They’re going to tariff my imports now!” “My PR got flagged for DEI because they thought ‘#include dr_libs’ was about hiring communist physicians.” “If I import pandas do I have to pay 145% more now?” Jeez. Enough already. /s
Why can’t anyone tell an original joke anymore?! Like a steak joke. You almost never hear someone tell a good joke about steaks. It really is a rare medium well done.
As well you should. Duck 'em up!
“I’ll take a fudge pop with extra mint, please!”
Jahovah’s Witness knocking on your door
My exit condition is when the stack overflows
kryptonianCodeMonkey@lemmy.worldto Programmer Humor@programming.dev•muskrat's data eng expert's hard drive overheats while processing 60k rows1·4 months agodeleted by creator
If you’re waiting for “num & 1 == 2”, you’re going to be very disappointed