[-] Ategon@programming.dev 4 points 2 months ago

This or the discord is probably the best spot atm

Seems like that community was likely handled by an admin already since I can't find it

[-] Ategon@programming.dev 4 points 2 years ago* (last edited 2 years ago)

It still doesn't catch everything since there's users that don't vote comment or post

Adding in users who don't do any action would double it again (although not public info which people are visiting communities hence why its not part of it)

[-] Ategon@programming.dev 4 points 2 years ago* (last edited 2 years ago)

Ill be submitting some logos and another banner that im making in gimp later in the week

Edit: exams are pain, will do that before the end of the month

[-] Ategon@programming.dev 4 points 2 years ago* (last edited 2 years ago)

I dug through the code and turns out the post read table does store when its read (with number of comments when it was read stored in a person post aggregates table), it just only stores it for people from your instance so I cant get accurate numbers from all of lemmy (and why it seemed like there was a low amount)

[-] Ategon@programming.dev 4 points 2 years ago

[Rust] 11157/6740

use std::fs;

const m: [(&str, u32); 10] = [
    ("zero", 0),
    ("one", 1),
    ("two", 2),
    ("three", 3),
    ("four", 4),
    ("five", 5),
    ("six", 6),
    ("seven", 7),
    ("eight", 8),
    ("nine", 9)
];

fn main() {
    let s = fs::read_to_string("data/input.txt").unwrap();

    let mut u = 0;

    for l in s.lines() {
        let mut h = l.chars();
        let mut f = 0;
        let mut a = 0;

        for n in 0..l.len() {
            let u = h.next().unwrap();

            match u.is_numeric() {
                true => {
                    let v = u.to_digit(10).unwrap();
                    if f == 0 {
                        f = v;
                    }
                    a = v;
                },
                _ => {
                    for (t, v) in m {
                        if l[n..].starts_with(t) {
                            if f == 0 {
                                f = v;
                            }
                            a = v;
                        }
                    }
                },
            }
        }

        u += f * 10 + a;
    }

    println!("Sum: {}", u);
}

Link

[-] Ategon@programming.dev 4 points 2 years ago

added functionality for the two rules

  • getting all communities with a certain slug
  • exclude instance with domain X from above rule

was running into rate limits when trying to check every single linked instance so ive manually put in the larger ones for now

[-] Ategon@programming.dev 4 points 2 years ago

that only works for certain file types afaik. I know in 4.1 there was one time I messed with a files location and had to update manually, forget which file type it was though

[-] Ategon@programming.dev 4 points 2 years ago

Update: made !test@programming.dev and hid it from the feeds for an in-instance testing area

[-] Ategon@programming.dev 4 points 2 years ago

I added code block support to lemmy-ui so if 0.19 comes out before then yes

If not then no but I can try to figure out a solution

23
12
1

Upvote a comment to vote, you can reply on an option with more details

38
  1. Constraint Solving
  2. Deformable Mesh
  3. Wiggle bone
  4. WigglyAppendage2D
  5. Third person camera
  6. Auto Layout
  7. Panku Console
  8. Mirror
  9. RL Agents
  10. Inventory System
17
1
27
21
1
Guess the Language: #7 (programming.dev)
submitted 3 years ago* (last edited 3 years ago) by Ategon@programming.dev to c/trivia@programming.dev

Upvote a comment to vote. Answer revealed in ~ 12 hours

12
1
submitted 3 years ago* (last edited 3 years ago) by Ategon@programming.dev to c/polls@programming.dev
1
[-] Ategon@programming.dev 4 points 3 years ago

Created at !pwa@programming.dev

Weve also got a !lemmy_dev@programming.dev community in here that can be posted in

[-] Ategon@programming.dev 4 points 3 years ago* (last edited 3 years ago)

~~you can trigger one using !remindme and then the length at the start of a message~~

Edit: its offline temporarily so that I can comply with lemmy.world bot rules

[-] Ategon@programming.dev 4 points 3 years ago

If I run a poll for the community on what we should do what should the options be?

currently thinking

  1. move topic collection into a new community
  2. move general programming concepts into a new community
  3. keep both in this community
view more: โ€น prev next โ€บ

Ategon

0 post score
0 comment score
joined 3 years ago
MODERATOR OF