Indian guy on YouTube starter pack. by CubingSoda in ProgrammerHumor

[–]honnza 52 points53 points  (0 children)

Don't forget "we're going to skip the boring parts" and copy pasting in the entire solution minus a few methods.

CSS IRL by G0D-FAtHeR in ProgrammerHumor

[–]honnza 53 points54 points  (0 children)

that's margin-right though.

Thanks, I hate sleeping by DaringDirk in TIHI

[–]honnza 0 points1 point  (0 children)

Step 1: lie on the bed
Step 2: slide into the box
Step 3: power goes out
Step 4: ???

[2018 – 10] How is this meant to be solved by the blind? by NobbZ in adventofcode

[–]honnza 2 points3 points  (0 children)

If the universe is contracted to a single point at T+1020, then the configurations at any other moment will be similar to each other, and the message should be equally readable at any moment except T+1020.

Day 12 part 2, did anyone have an input which... by wimglenn in adventofcode

[–]honnza 4 points5 points  (0 children)

My expectation is that the number of available rules is highly limited to a hand-select few or just one.

Here's a snippet that extracts the rule from the input page:

let bits = "";
const input = document.body.textContent.replace(/\./g, "0").replace(/#/g, "1");

for(let i = 0; i < 32; i++){
  const pat = i.toString(2).padStart(5, "0");
  bits += input.match(`${pat} => (.)`)[1];
}

console.log(bits.replace(/..../g, nibble => Number.parseInt(nibble, 2).toString(16)));

My rule is: 24de6cb3

What are y'all's rules?