• 166 Posts
  • 2.1K Comments
Joined 1 year ago
cake
Cake day: June 2nd, 2024

help-circle

  • bleistift2@sopuli.xyztoProgrammer Humor@programming.devThis is literally me
    link
    fedilink
    English
    arrow-up
    91
    arrow-down
    2
    ·
    19 hours ago
    1. Rename every file from *.js to *.ts
    2. Set the compiler options
      {
        "checkJs": false,
        "allowJs": true,
        "noEmitOnError": false, // so the compiler compiles code it can’t prove right yet. Reset this after you’re done migrating
      }
      
    3. Install type packages for dependencies that don’t bring type information out of the box, for instance
      npm i -D @types/d3
      
    4. Add // @ts-nocheck to the beginning of every file.
    5. Go through your project file by file, remove the comment from (4) and add types until the errors are gone. And probably fix some errors along the way.

    Abbreviated from “TypeScript Cookbook” by Stefan Baumgartner.


  • bleistift2@sopuli.xyztoScience Memes@mander.xyzchicken mcnugget theorem
    link
    fedilink
    English
    arrow-up
    16
    ·
    edit-2
    17 hours ago

    Thank god this image has a grand total of 20 pixels.

    Ambidextrous Sofa

    In mathematics, the moving sofa problem or sofa problem is a two-dimensional idealization of real-life furniture-moving problems and asks for the rigid two-dimensional shape of the largest area that can be maneuvered through an L-shaped planar region with legs of unit width.

    A variant of the sofa problem asks the shape of the largest area that can go around both left and right 90-degree corners in a corridor of unit width (where the left and right corners are spaced sufficiently far apart that one is fully negotiated before the other is encountered).

    Cantor’s Leaky Tent

    In topology, a branch of mathematics, the Knaster–Kuratowski fan […] is a specific connected topological space with the property that the removal of a single point makes it totally disconnected. It is also known as Cantor’s leaky tent […].

    Sexy Prime

    In number theory, sexy primes are prime numbers that differ from each other by 6.

    Chicken McNugget Theorem

    In mathematics, the coin problem […] is a mathematical problem that asks for the largest monetary amount that cannot be obtained using only coins of specified denominations. For example, the largest amount that cannot be obtained using only coins of 3 and 5 units is 7 units.

    […]

    One special case of the coin problem is sometimes also referred to as the McNugget numbers. […] A McNugget number is the total number of McDonald’s Chicken McNuggets in any number of boxes. In the United Kingdom, the original boxes (prior to the introduction of the Happy Meal–sized nugget boxes) were of 6, 9, and 20 nuggets.

    According to Schur’s theorem, since 6, 9, and 20 are (setwise) relatively prime, any sufficiently large integer can be expressed as a (non-negative, integer) linear combination of these three. Therefore, there exists a largest non–McNugget number, and all integers larger than it are McNugget numbers.

    Ugly Duckling Theorem

    The ugly duckling theorem is an argument showing that classification is not really possible without some sort of bias. More particularly, it assumes finitely many properties combinable by logical connectives, and finitely many objects; it asserts that any two different objects share the same number of (extensional) properties. The theorem is named after Hans Christian Andersen’s 1843 story “The Ugly Duckling”, because it shows that a duckling is just as similar to a swan as two swans are to each other.
















  • No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.
    No problem! I can just kill the process in the…shit.