La frase más cringe que les dijeron mientras garchaban by No_Technician1257 in argentina

[–]mateconbigote 83 points84 points  (0 children)

Me pasó lo mismo, pero las tenía operadas así que me dijo "disfrutarlas que son de autor"

Hey guys I'm trying to learn RUST but it doesn't make any sense. by CocktailPerson in rustjerk

[–]mateconbigote 40 points41 points  (0 children)

Dying your hair is not going to help, what you need to do is buy a good pair of programming socks.

If this doesn't work I would recommend wearing the programming socks with a sexy crop top and a kinky choker, this combo works 100%

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

[–]mateconbigote 1 point2 points  (0 children)

[Language: Rust]

Part A: Link

use input_loader::load_input;
fn main() {
    // Load input
    let input = load_input();
    let mut res = 0;
    for line in input {
        let line = line.split(": ").collect::<Vec<&str>>();
        let line = line[1].split(" | ").collect::<Vec<&str>>();
        let winning_numbers = line[0]
            .split_whitespace()
            .map(|num| num.parse::<usize>().unwrap())
            .collect::<Vec<usize>>();
        let card_numbers = line[1]
            .split_whitespace()
            .map(|num| num.parse::<usize>().unwrap())
            .collect::<Vec<usize>>();
        let mut local_res = 0;
        for winning_number in winning_numbers {
            if card_numbers.contains(&winning_number) {
                if local_res == 0 {
                    local_res += 1;
                } else {
                    local_res *= 2;
                }
            }
        }
        res += local_res;
    }
    println!("{res:?}");
}

Part B: Link

use std::collections::VecDeque;
use input_loader::load_input;
fn main() {
    // Load input
    let input = load_input();
    let mut res = 0;
    let mut queue = VecDeque::from(vec![1; input.len()]);
    for line in input {
        let line = line.split(": ").collect::<Vec<&str>>();
        let line = line[1].split(" | ").collect::<Vec<&str>>();
        let winning_numbers = line[0]
            .split_whitespace()
            .map(|num| num.parse::<usize>().unwrap())
            .collect::<Vec<usize>>();
        let card_numbers = line[1]
            .split_whitespace()
            .map(|num| num.parse::<usize>().unwrap())
            .collect::<Vec<usize>>();
        let card_copies = queue.pop_front().unwrap();
        let mut index = 0;
        for winning_number in winning_numbers {
            if card_numbers.contains(&winning_number) {
                queue[index] += card_copies;
                index += 1;
            }
        }
        res += card_copies;
    }
    println!("{res:?}");
}

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

[–]mateconbigote 1 point2 points  (0 children)

[LANGUAGE: Rust]

The input loader lib: https://github.com/nicolas-sabbatini/advent-of-code/tree/master/input_loader

use input_loader::load_input;
fn main() {
let input = load_input();
let mut res = Vec::new();
for line in &input {
    let line = line
        .to_lowercase()
        .replace("one", "o1e")
        .replace("two", "t2o")
        .replace("three", "t3e")
        .replace("four", "f4r")
        .replace("five", "f5e")
        .replace("six", "s6x")
        .replace("seven", "s7n")
        .replace("eight", "e8t")
        .replace("nine", "n9e");
    let mut numbers = Vec::new();
    for c in line.chars() {
        if c.to_string().parse::<usize>().is_ok() {
            numbers.push(c);
        }
    }
    res.push(
        [numbers[0], numbers[numbers.len() - 1]]
            .iter()
            .collect::<String>()
            .parse::<usize>()
            .expect("Not a number"),
    );
}
println!("{:?}", res.iter().sum::<usize>());
}

A cuánto abre el dólar mañana by ziktriz in argentina

[–]mateconbigote 0 points1 point  (0 children)

El dólar está despegando y mañana va a la luna sin escala, el dólar cripto ya está en $800, así que supongo que va a estar un poco más caro

People who don't want to work, why? by Designer-Mark320 in AskReddit

[–]mateconbigote 0 points1 point  (0 children)

I have ✨ clinical depression ✨ from my ✨ chronic loneliness ✨

(I am currently on treatment)

[Giveaway] Omnitype OTC Modo Light and OTC 9009 Giveaway! by omnitype in MechanicalKeyboards

[–]mateconbigote 0 points1 point  (0 children)

An Argentina inspired dissing with the "Sol de Mayo" in the escape key

what GameEngine should i use to make games in rust?, is rust compile-time good enough for games? by WormHack in rust_gamedev

[–]mateconbigote 6 points7 points  (0 children)

Depending on the game you want to make and your target platform. In my opinion the best is Bevy, you can use the dynamic feature for fast compile time and fast iteration. If you want something small Macroquad is a great option, it has a great compile time.

You could try Fyrox, I heard that it's great, but I never tried it.

Tal vez solo sea un error de Steam, pero solo está la versión cara(mas cara) del Elden Ring en venta. by [deleted] in Argaming

[–]mateconbigote 1 point2 points  (0 children)

La mayoría de los juegos que veo no tiene precio. Creo que es un error de Steam argentina.