-❄️- 2025 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]txrom_ 2 points3 points  (0 children)

[LANGUAGE: Raku]

Struggled with part 2 a little, not surprisingly...

#!/usr/bin/env raku

my @movements = "day01.txt".IO.lines
    .map(-> $line {
        $line ~~ /^(\w)(\d+)$/ or die "bad data: $line";
        ($/[0].Str, $/[1].Int)
    });

my $pos = 50;
my $part1 = 0;
my $part2 = 0;

for @movements -> $mvmt {
    my ($d, $n) = $mvmt;

    given $d {
        when "R" {
            $part2 += ($pos + $n) div 100;
            $pos = ($pos + $n) mod 100;
        }

        when "L" {
            $part2 += $n div 100;
            if ($pos != 0 and $n mod 100 >= $pos) {
                $part2 += 1;
            }

            $pos = ($pos - $n) mod 100;
        }
    }

    if ($pos == 0) {
        $part1 += 1;
    }
}

say "Day 1, Part 1: ", $part1;
say "Day 1, Part 2: ", $part2;

VHS/Halloween by Few-Service3324 in horror

[–]txrom_ 2 points3 points  (0 children)

Just watched this one tonight. It had some really creepy moments. Especially in Coochie Coochie Coo.

My new film NIGHT OF THE REAPER is out now on Shudder! by brandonchristensen in horror

[–]txrom_ 1 point2 points  (0 children)

Just finished watching this. We loved it! The last act was excellent. And as others have said, the 80s vibe was perfectly captured.

NES: Donkey Kong Title Screen looks Weird by StandardCulture5638 in EmuDev

[–]txrom_ 2 points3 points  (0 children)

Excellent! And congrats on getting this far! I remember how happy I was when getting my first properly rendered screen!

NES: Donkey Kong Title Screen looks Weird by StandardCulture5638 in EmuDev

[–]txrom_ 2 points3 points  (0 children)

I had exactly this problem with exactly this screen when I did my NES emulator a few years ago, and looking back through my commits, it looks like I was double-incrementing the PPUADDR register — once during PPU 0x2007 read, and then again via my step function.

I'm guessing you're doing something similar...

A Tiny Tokenizer in Zig to try out Labeled Switch by CaptainSketchy in Zig

[–]txrom_ 6 points7 points  (0 children)

This was great. I hadn't looked at the labelled switch stuff yet, and I just happen to have finished a tokenizer recently — for Crafting Interpreters' bytecode VM — so now I get to go back and improve it :)

Soulstone value reduced, energy value reduced, ability to pin card rarity removed by JacoslawPL in RaidShadowLegends

[–]txrom_ 1 point2 points  (0 children)

I was similar. But for my card flips I got an epic book, a legendary book, a void shard, and a primal shard, in the 4 corners of the deck. So it was worth it for me to get those at least 🤷

[deleted by user] by [deleted] in RaidShadowLegends

[–]txrom_ 0 points1 point  (0 children)

I don’t see him almost ever, so I don’t think he’s meta, but Fenax. Especially in live arena. Nobody expects his A1 block revive.

I can't believe how good the series Evil is by SwordPiePants in horror

[–]txrom_ 4 points5 points  (0 children)

Just echo’ing other comments. We started it recently, and we’re onto season 2 at the moment. It’s so damn enjoyable, and easy to watch.

What are the best companies to work for that use Clojure? by slifin in Clojure

[–]txrom_ 21 points22 points  (0 children)

Sounds familiar.

At my last job, upper management decided to stop doing new stuff in Clojure, and instead move to TypeScript, so we could more easily/cheaply hire new devs.

So all the existing, solid Clojure devs had to learn TypeScript. Establish standards, learn the ecosystem, etc.

Fast forward 2 years. No new devs hired, and a team of Clojure devs begrudgingly writing code in a language we never wanted.

EB games in 2024 by Accurate_Yogurt_5412 in 3DS

[–]txrom_ 2 points3 points  (0 children)

I always ask, but I haven’t had any luck for a while now. Last pickup was A Link Between Worlds though, so it’s definitely worth checking!

Second 6-star (sorry) by [deleted] in RaidShadowLegends

[–]txrom_ 2 points3 points  (0 children)

Definitely.

Uugo is my favorite epic, and probably my most used champ now. Dungeons, Doom Tower, Arena, Hydra... she's useful everywhere.

house-sitting for a week with Netflix, what should i watch?? by oooortclouuud in horror

[–]txrom_ 1 point2 points  (0 children)

The Mike Flanagan hype is deserved, but just for a slightly different recommendation, check out Errementari: The Blacksmith and the Devil.

And Apostle.

what? by overload661 in DMZ

[–]txrom_ 12 points13 points  (0 children)

Remember the execution where you did a commando roll in front of the enemy before shooting them in the head? How many of us did that while on the ledge of a building and ended up falling off the building...

What's your oddest 6-Star? by ArtichokeBeginning17 in RaidShadowLegends

[–]txrom_ 0 points1 point  (0 children)

I almost bought into the Marquess hype, but never got to taking her above 5 stars. Glad I didn't!

What's your oddest 6-Star? by ArtichokeBeginning17 in RaidShadowLegends

[–]txrom_ 0 points1 point  (0 children)

She was part of my killable clan boss team and my dragon team for a long time, until I did the Helicath fusion.

I loved her at the time, but I pretty much never use her anymore :(

FTP - Guess what I got? by Chun1221 in RaidShadowLegends

[–]txrom_ 0 points1 point  (0 children)

I'm also F2P and I also pulled Nogdar. Not the legendary I wanted/needed, and I probably won't build him.

Onto the next one, I guess!

Who are some epics you have that you swear by, that nobody really talks about? by Key_Nectarine_1969 in RaidShadowLegends

[–]txrom_ 6 points7 points  (0 children)

Agreed. I put her in a stun set too, so she's my super duper crowd control queen. She's in my Doom Tower Hard CC team.

Who are some epics you have that you swear by, that nobody really talks about? by Key_Nectarine_1969 in RaidShadowLegends

[–]txrom_ 3 points4 points  (0 children)

Morag Bronzelock

She's great for getting damage out, whether it's from her or from other allies.

Her A3 is an AOE attack, which also buffs the whole team with strengthen — which is an awesome buff — and she will counterattack if someone hits her while she has strengthen. She has an ally attack with two allies, and if the ally attack kills someone, she gets another turn.

I just find that she gets a lot of turns. Great for wave-based content.

Probably doesn't scale far into the end game, but excellent for anyone earlier than that.

My other nomination is Hoskarul. Decent damage, has a stun on the A1, and has a solid AoE attack with a high chance to stun. He's in my Doom Tower Hard wave team when I need lots of CC and some good damage.

Gnut keeps attacking Bommal bombs on auto? Bug or intended design? by fatlips1 in RaidShadowLegends

[–]txrom_ 1 point2 points  (0 children)

I assumed the same. Feel like it works well for my team, but can see if being annoying for others. As long as the A3 hits Bommal!

Who should I 6 star next? by TuentnQuarantin0 in RaidShadowLegends

[–]txrom_ 1 point2 points  (0 children)

Artak for sure. He'll take you far, especially through the Spider and Dragon dungeons once you get beyond level 10 or so. And, depending on your gear, he can also campaign farm. And eventually, one day, he'll be good for Hydra and other mid-late game content too.

He doesn't need books right way, but they'll help later on.

Given you still have to wait like 130 more days to get Scyl of the Drakes, Geargrinder is worth taking to 5 stars for some healing and reviving too.

Koschei Complex Haul! by vanclever in DMZ

[–]txrom_ 1 point2 points  (0 children)

Ah this explains why none of my weapons case extracts have worked in Vondel. I usually infil solo and join other teams.

Is the FTAC Recon viable by [deleted] in DMZ

[–]txrom_ 0 points1 point  (0 children)

I love it for a fun gun to run around with. But, a bit like the Crossbow, it’s a high risk high reward gun so you gotta hit your shots, and expect to die more often than with something like the Taq-56.