

I’ve already been using typos, and if I understand correctly have ruff rulea that do what interrogate does


I’ve already been using typos, and if I understand correctly have ruff rulea that do what interrogate does


Thanks for refurb, appears like something I’ll add to my toolset


Nothing stops you from reassigning x. _priv=3 only if you have too lenient typescript settings


I wonder when bun will migrate to something else


applying to jobs, learning in the meantime


nah, a script with one param can totally be a bash script


Wanted to suggest the same thing.
Bazzite is immutable tho, unless I’m mistaken, so if you’d rather use a mutable distro you can look into CachyOS or DraugrOS.


Thank you.
Remeda.js was organised like this. How would you organise it?


you could say it matters less


No problem, have fun


I had a blast doing AoC in https://gleam.run/
it’s like elixir with typing


you don’t have to rebase.
create a new branch from main
push it
go to main
git reset --hard origin/main


there is basedpyright


coming from a language with consistent pronunciation I pronounce it “aur” like other comments said, like “aurum” or like in Portuguese - how it is written)


I know it’s not the point of this comment, but I’ll check harlequin out


Stop using floats and cents for money medium ffs


“stop using medium”


my boring python solution:
from pathlib import Path
def main():
input = Path('input.txt').read_text().split('\n')
names = input[0].split(',')
instructions = input[-1].split(',')
print(names,instructions)
index = 0
for instruction in instructions:
dir = instruction[0]
number = int(instruction[1:])
if dir == 'L':
index -= number
if index < 0:
index = 0
else:
index += number
if index > len(names) - 1:
index = len(names) - 1
print(names[index])
index = 0
for instruction in instructions:
dir = instruction[0]
number = int(instruction[1:])
if dir == 'L':
index -= number
else:
index += number
print(names[index%(len(names))])
indexes = list(range(len(names)))
for instruction in instructions:
dir = instruction[0]
number = (int(instruction[1:]) if dir == 'R' else -int(instruction[1:])) % len(names)
indexes[0], indexes[number] = indexes[number], indexes[0]
print(names[indexes[0]])
if __name__ == "__main__":
main()
I probably should read all 3 files though. I’ll hone it out later.
Yeah, I saw the other comment and decided to deliberately not engage it.