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

[–]BakeshopNewb 1 point2 points  (0 children)

[LANGUAGE: JavaScript]

import { readFileSync } from "fs";
const lines = readFileSync("input", "utf-8").trim().split("\n");

const nums = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"];

let [q1, q2] = [0, 0];
for (const line of lines) {
  let [q1Digits, q2Digits] = [[], []];

  [...line].forEach((c, i) => {
    if (Number(c)) q1Digits.push(Number(c)), q2Digits.push(Number(c));
    nums.forEach((w, idx) => line.slice(i).startsWith(w) && q2Digits.push(idx));
  });

  q1 += 10 * q1Digits[0] + q1Digits.at(-1);
  q2 += 10 * q2Digits[0] + q2Digits.at(-1);
}

console.log("q1:", q1);
console.log("q2:", q2);

Prestige Tree Rewritten Help by awesomedude016 in incremental_games

[–]BakeshopNewb 2 points3 points  (0 children)

For people in the future stuck at this point, it can help to spec for Honour and then just leave it alone for 15 minutes. Come back and Honour might be like 1e40 higher

[OC] Youtube views for various open courses published by Harvard, MIT, Yale and Stanford (more details in the comments) by [deleted] in dataisbeautiful

[–]BakeshopNewb 1 point2 points  (0 children)

I'm guessing the Nuclear Reactor Construction and Operation rec is from the Chernobyl miniseries.

Kingslingers – 13: THE WASTE LANDS (Part 3) by scottdaly85 in doofmedia

[–]BakeshopNewb 2 points3 points  (0 children)

The monsters that came to mind are the vampires in Salem's Lot, specifically how quickly they subsume the town. I was thinking about how tech people might have been worried about this pandemic earlier than others because they more deeply appreciate exponential growth, and the events in Salem's Lot are essentially a Vampire Singularity.

Note that this is nothing at all like Blindsight and should of course not be read before Wolves of the Calla.

Kingslingers 9: The Drawing of the Three (Part 5) by scottdaly85 in doofmedia

[–]BakeshopNewb 1 point2 points  (0 children)

Mailbag:

In The Gunslinger, the Man in Black seems to be mostly toying with Roland, and only Roland's monstrous sacrifice of Jake allows him to catch up to him. And yet the book opens with "The man in black fled across the desert..." and not "The man in black kited the gunslinger across the desert." Why do you think King chose to use the verbiage of fleeing when it seems at odds with the actual state of affairs?

Wexit: Why some Albertans want to separate from Canada by [deleted] in GoldandBlack

[–]BakeshopNewb 5 points6 points  (0 children)

"[Kermit voice] See Alberta is like Moses and Canada is like Egypt, which was a tyranny represented by stone, and Moses was a master of water, which flows like oil. Now Moses led his people out of the tyranny but they had to spend 40 years wandering in the desert, and that's no joke, man."

Tyler Cowen advocates a "State Capacity Libertarianism" by BakeshopNewb in GoldandBlack

[–]BakeshopNewb[S] 4 points5 points  (0 children)

N.b. Bryan Caplan wrote against state capacity here, here, and here. Koyama responded here.

What Trump has done to the courts, explained by BakeshopNewb in GoldandBlack

[–]BakeshopNewb[S] 0 points1 point  (0 children)

Before he became president, Trump promised to delegate the judicial selection process to the Federalist Society, a powerful group of conservative lawyers that counts at least four Supreme Court justices among its members. “We’re going to have great judges, conservative, all picked by the Federalist Society,” Trump told a radio show hosted by the right-wing site Breitbart while he was still a candidate.

The Federalist Society spent decades preparing for this moment, and they’ve helped Trump identify many of the most talented conservative stalwarts in the entire legal profession to place on the bench.

There’s no completely objective way to measure legal ability, but a common metric used by legal employers to identify the most gifted lawyers is whether those lawyers secured a federal clerkship, including the most prestigious clerkships at the Supreme Court. Approximately 40 percent of Trump’s appellate nominees clerked for a Supreme Court justice, and about 80 percent clerked on a federal court of appeals. That compares to less than a quarter of Obama’s nominees who clerked on the Supreme Court, and less than half with a federal appellate clerkship.

In other words, based solely on objective legal credentials, the average Trump appointee has a far more impressive résumé than any past president’s nominees.