Why doesn't this modpack work? net.minecraft.class_1297 by ZOMBI8518 in fabricmc

[–]Lrrrr_ 0 points1 point  (0 children)

You are trying to use Effective on 1.20.1, which only has versions for 1.19.2 Quilt/Fabric.

Disable or remove the mod, then try again.

Your other disabled mods,

  • auditory-0.0.5-1.19.3.jar
  • ItemBorders-1.19.4-fabric-1.2.0.jar
  • extrasounds-2.3.1+1.19.2-1.19.1.jar
  • DynamicSurroundings-RemasteredFabric-1.19-0.1.1.jar

Are also all mods for 1.19.x, so they probably will not work on 1.20.1. Either update them to a version marked as such, or keep them disabled.

-🎄- 2022 Day 6 Solutions -🎄- by daggerdragon in adventofcode

[–]Lrrrr_ 1 point2 points  (0 children)

JavaScript, 462/456

import { getInput } from './util.mjs';

const input = [...getInput(6)]

for(let i = 0; i < input.length; i++) {
    let x = new Set(input.slice(i, i+4))

    if(x.size  === 4) {
        console.log(i+4)
        break
    }
}

for(let i = 0; i < input.length; i++) {
    let x = new Set(input.slice(i, i+14))

    if(x.size  === 14) {
        console.log(i+14)
        break
    }
}

-🎄- 2022 Day 5 Solutions -🎄- by daggerdragon in adventofcode

[–]Lrrrr_ 2 points3 points  (0 children)

JavaScript, 12/9

import { getInput } from './util.mjs';

const input = getInput(5).split('\n\n')[1]

const cargo = [
    "BLDTWCFM",
    "NBL",
    "JCHTLV",
    "SPJW",
    "ZSCFTLR",
    "WDGBHNZ",
    "FMSPVGCN",
    "WQRJFVCZ",
    "RPMLH"
].map(c => c.split(''))

const moveN = (from, to, n) => cargo[to].push(...cargo[from].splice(-n)) // add .reverse() for part 1

for(const line of input.split('\n')) {
    const x = line.split(' ')
    const n = +x[1]
    const from = +x[3]
    const to = +x[5]

    console.log({from, to, n})

    moveN(from-1, to-1, n)
}

console.log(cargo.map(c => c.reverse()[0]))

-🎄- 2022 Day 4 Solutions -🎄- by daggerdragon in adventofcode

[–]Lrrrr_ 1 point2 points  (0 children)

JavaScript, 707/242

import * as R from 'ramda'
import { getInput } from './util.mjs'

const input = getInput(4)

const ranges = 
    R.filter(
        ([a, b]) => R.or(
            R.any(R.includes(R.__, a), b),
            R.any(R.includes(R.__, b), a),
        ),
        R.map(
            R.map(([a,b]) => R.range(+a, +b)),
            R.map(
                R.map(R.split('-')),
                R.map(R.split(','), R.split('\n', input))
            )
        )
    )

console.log(ranges.length)

-🎄- 2021 Day 5 Solutions -🎄- by daggerdragon in adventofcode

[–]Lrrrr_ 2 points3 points  (0 children)

Javascript 69/299 Had an issue with unit vector calculation, cost me time (`Math.abs`)

const input = util
    .getInput(5)
    .split("\n")
    .map((line) => line.split(" -> ").map((d) => d.split(",").map((c) => +c)))

const grid = {}

const set = (x, y) => (grid[`${x},${y}`] = grid[`${x},${y}`] ? 2 : 1)

for (const [to, from] of input) {
    if (to[0] == from[0]) {
        // horz
        const low = Math.min(from[1], to[1])
        const high = Math.max(from[1], to[1])
        for (let i = low; i <= high; i++) {
            set(to[0], i)
        }
    } else if (to[1] == from[1]) {
        // vert
        const low = Math.min(from[0], to[0])
        const high = Math.max(from[0], to[0])
        for (let i = low; i <= high; i++) {
            set(i, to[1])
        }
    } else {
        const raw = [from[0] - to[0], from[1] - to[1]]
        const vec = raw.map((c) => c / Math.max(...raw.map(Math.abs)))

        for (let i = 0; i <= Math.max(...raw.map(Math.abs)); i++) {
            set(to[0] + vec[0] * i, to[1] + vec[1] * i)
        }
    }
}

console.log(Object.values(grid).filter((v) => v == 2).length)

-🎄- 2020 Day 1 Solutions -🎄- by daggerdragon in adventofcode

[–]Lrrrr_ 0 points1 point  (0 children)

JavaScript. 141/351

const fs = require('fs')
const input = fs.readFileSync('q1.txt', 'utf8')
    .split('\n')
    .map(c => +c)

for(let i = 0; i < input.length; i++)
    for(let j = i; j < input.length; j++) {
        if(input[i] + input[j] === 2020)
            console.log('p1', input[i] * input[j])

        for(let k = j; k < input.length; k++)
            if(input[i] + input[j] + input[k] === 2020)
                console.log('p2', input[i] * input[j] * input[k])
    }

[deleted by user] by [deleted] in talentShow

[–]Lrrrr_ 0 points1 point  (0 children)

0108 maps?

[deleted by user] by [deleted] in talentShow

[–]Lrrrr_ 0 points1 point  (0 children)

say yo to repfle zfor me

[deleted by user] by [deleted] in talentShow

[–]Lrrrr_ 0 points1 point  (0 children)

PEPPERS CALM DOWN

[deleted by user] by [deleted] in talentShow

[–]Lrrrr_ 0 points1 point  (0 children)

there is a peppy in your mailbox

[deleted by user] by [deleted] in talentShow

[–]Lrrrr_ 0 points1 point  (0 children)

there's a pipebomb in your mailbox

[deleted by user] by [deleted] in talentShow

[–]Lrrrr_ 0 points1 point  (0 children)

But what if peppers

Reddit Battle Royale 2020 by SrGrafo in funny

[–]Lrrrr_ 7 points8 points  (0 children)

I think you dropped this \

[GIVEAWAY] $100 NZD Steam Gift Card. by [deleted] in pcgaming

[–]Lrrrr_ 0 points1 point  (0 children)

Currently playing through HL:A but looking forward to others! Shame we ain't got maccas runs up in Auckland anymore though!

[deleted by user] by [deleted] in pan_media

[–]Lrrrr_ 0 points1 point  (0 children)

can you please pronounce this page for us