sjmarf

joined 2 years ago
MODERATOR OF
475
submitted 3 days ago* (last edited 3 days ago) by [email protected] to c/[email protected]
 

Captured by u/ajamesmccarthy on Reddit (post here) on Sunday.

[–] [email protected] 53 points 1 week ago (3 children)
[–] [email protected] 103 points 1 week ago (4 children)

For your viewing pleasure:

for entry in entries:
    if entry['time'] + 1800 < time():
        guild = self._bot.get_guild(int(entry['guild_id']))
        member = guild.get_member(int(entry['user_id']))
        if member is not None:
            if member.activity.name is not None:
                if member.activity.name.lower() == "league of legends":
                    await member.send("The 30 minutes has elapsed and you are still playing league, get banned.")
                    await member.ban(delete_message_days=0, reason='playing league')
[–] [email protected] 17 points 2 weeks ago (2 children)

Python does have a switch statement now, actually. And yes, they went out of their way to call it something different - match.

https://docs.python.org/3/tutorial/controlflow.html#match-statements

222
Meow (sh.itjust.works)
 
810
The irony (sh.itjust.works)
 
 
[–] [email protected] 28 points 3 weeks ago* (last edited 3 weeks ago)
[–] [email protected] 2 points 3 weeks ago (1 children)

When you go out in public and the public is there

[–] [email protected] 3 points 1 month ago (2 children)

Yes. This is the Armor 33 Pro by Ulefone. It’s got a 25500mAh battery.

[–] [email protected] 27 points 1 month ago (1 children)

there was nothing preventing women from having bank accounts before 1974.

Depending on which banks were available in her area, she may still have been unable to open a credit card despite it being legal to do so. Prior to 1974, it was legal for banks to require a man’s signature for a woman to open a credit card, and many banks chose to require this. According to this article from the Smithsonian Magazine, some banks also applied a 50% reduction to womens’ wages when calculating the credit card limit for an applicant.

I agree that the facts are very frequently misrepresented.

[–] [email protected] 51 points 1 month ago

He dined peacefully in his home with his family.

[–] [email protected] 6 points 1 month ago* (last edited 1 month ago) (4 children)

Yeah, you would've thought it would work that way. Regrettably, the standard timezone code of Etc/GMT+4 is actually GMT-4. Wikipedia

[–] [email protected] 21 points 1 month ago (7 children)

Today I spent multiple hours trying to debug a timezone issue in a codebase. The timezone I was testing with was Etc/GMT+4, which I had assumed was four hours ahead of GMT. Turns out, it’s actually 4 hours behind GMT 🤦‍♂️

[–] [email protected] 2 points 1 month ago

There’s an empty community [email protected]

 
 
 
475
me_irl (sh.itjust.works)
 
 
116
Printed out (sh.itjust.works)
 
547
Saitama, Japan (sh.itjust.works)
 
view more: next ›