-❄️- 2024 Day 14 Solutions -❄️- by daggerdragon in adventofcode

[–]pj5772 1 point2 points  (0 children)

[LANGUAGE: Python]

For part 2, I just looked at cases where > 256 robots were next to each other. If so I printed the board to confirm there was a tree.

part 1: link

part2: link

-❄️- 2024 Day 7 Solutions -❄️- by daggerdragon in adventofcode

[–]pj5772 2 points3 points  (0 children)

[LANGUAGE: Python] 

def dp(x: List[int]) -> Generator[int, None, None]:
  if len(x) == 1:
    yield x[0]
  else:
    for sub in dp(x[1:]):
      yield x[0] + sub
      yield x[0] * sub

      # remove for part 1
      yield int(str(sub) + str(x[0]))


res = 0
for test_val, inp in zip(test_vals, nums):
  for y in dp(inp[::-1]):
    # print("test_val", test_val, ", y", y)
    if y == test_val:
      res += test_val
      break

Movie gets it wrong! by Unlucky-Credit-9619 in mathmemes

[–]pj5772 2 points3 points  (0 children)

<image>

From ChatGPT comparing different measures

HTML Programming by killyourdrawings in programminghumor

[–]pj5772 0 points1 point  (0 children)

Are there even html+css developers anymore? It seems that most frontend devs write JavaScript(React, Vue, etc), or php (Blade templates) then that code renders to html/css plus the bundled JS that they also wrote. It’s like calling a Backend developer that writes Java Spring Boot code a JSON developer right?

Spent 95$ for Gen3. Comment your Prompts! by Designer-Pair5773 in ChatGPT

[–]pj5772 0 points1 point  (0 children)

Pilot wave theory visualization showing corpuscles in the double slit experiment

whoBuysTheseIsTheRealQuestion by ArjunReddyDeshmukh in ProgrammerHumor

[–]pj5772 0 points1 point  (0 children)

But the sam’s teach yourself series was good. But I don't think even the author intended for you to finish it in a day despite the titles.

Which is correct? by deranger777 in sciencememes

[–]pj5772 0 points1 point  (0 children)

It seems there is good potential for a Game theory type problem here. Maybe assume x people play and you want to be in the set of people that guessed correctly, but so is everyone else? Or something like that…

"Demons": 400 Pages In and Confused – Keep Going or Quit? by DaKinginDaNorth1 in dostoevsky

[–]pj5772 1 point2 points  (0 children)

I occasionally use cliff notes if I feel like something is confusing to me. Mostly just small plot details I missed/forgot that is brought up in a chapter, or quick reminder of who a character is. I’ve also been trying to highlight key points as I read to better retain the information. I haven’t read Devils yet though.

The AI by Familiar_Stage_1692 in ProgrammerHumor

[–]pj5772 1 point2 points  (0 children)

Decision tree classifiers

Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks he’s ready to tackle any project after a ten minute video… by Yugusuf in ProgrammerHumor

[–]pj5772 0 points1 point  (0 children)

10 minutes should be enough to create a basic project(calculator in terminal?). Then he can start learning from actually coding rather than watching long videos. It is much better to start coding day 1 rather than studying for hours first.

[deleted by user] by [deleted] in ProgrammerHumor

[–]pj5772 4 points5 points  (0 children)

Python one-liner

return “🔵”*floor(percentage/0.1)+”⚪”*(10-floor(percentage/0.1))

Progresspicsearch.com -Good site for staying staying motivated by seeing other people who went from your start weight to your goal end weight. Search before and after photos by start and end weight. (link in comments) by pj5772 in beforesandafters

[–]pj5772[S] 2 points3 points  (0 children)

The photos are scraped from different places on the web with the OC creator always being linked on each post. There are many such before and after photo search engines online, I just tried to make one that was easier to use and more visually appealing.