Sign in

Light

@maheshbansod.com
382 followers 1.2K following 323 posts

i love computers, science, math and understanding the world around us. maheshbansod.com

PostsRepliesMedia
Light @maheshbansod.com · 20/10/2025
view transitions and pre-fetching have been achieved internally
020
Light @maheshbansod.com · 12/09/2025
no Dexter episode to look forward to this weekend
010
Light @maheshbansod.com · 11/09/2025
NanoBanana pls
gemini repeatedly rejecting prompt to generate an image
020
Light @maheshbansod.com · 19/12/2024
My solution with Recursion + Caching #AdventOfCode 19p2
Rust code:
```
impl<'a> Solver<'a> {
    fn new(patterns: Vec<&'a str>) -> Self {
        Self {
            patterns,
            cache: HashMap::new(),
        }
    }
    fn solve(&mut self, design: &'a str) -> usize {
        if design.is_empty() {
            return 1;
        }
        self.cache.get(design).copied().unwrap_or_else(|| {
            let mut total_count = 0;
            for p in self
                .patterns
                .iter()
                .filter(|&p| design.starts_with(*p))
                .map(|p| p.to_string())
                .collect::<Vec<_>>()
            {
                let count = self.solve(&design[p.len()..]);
                total_count += count;
            }
            self.cache.insert(design, total_count);
            total_count
        })
    }
}

```
040
Light @maheshbansod.com · 17/12/2024
I just completed "Chronospatial Computer" - Day 17 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/17 1st part was fun - who doesn't love building toy interpreters. 2nd part was... interesting - i don't really know what's the "correct" way to go about it. i kinda smart-bruteforced it
Rust code snippet:
```rust
    let mut best_a_value = 0;
    let mut good_ending_a_values = vec![best_a_value];
    while let Some(fixed_c) = good_ending_a_values.pop() {
        for a in 0..8u64 {
            let a_value = (fixed_c << 3) | a;
            let mut runner =
                Runner::new(&[a_value, registers[1].1, registers[2].1], program.clone());
            runner.run();
            let output = runner.output;
            if output.len() <= program.len()
                && output
                    .iter()
                    .rev()
                    .enumerate()
                    .all(|(i, x)| *x as u8 == program[program.len() - i - 1])
            {
                best_a_value = a_value;
                good_ending_a_values.push(a_value)
            }
        }
    }
    println!("this? {best_a_value}");
```
260
Light @maheshbansod.com · 16/12/2024
This is nice! Mine's a mess compared to that lol
010
Light @maheshbansod.com · 15/12/2024
Seems it's working fine now! I've completed Jet Fuel Pricing - Advent of TypeScript 2024 adventofts.com/events/2024/15 #AdventOfTypeScript Here's my messy solution - at least it passes all the cases! 😃
130
Light @maheshbansod.com · 15/12/2024
All test cases passed. i'll consider Day 15 Advent of TS done ✅
100
Light @maheshbansod.com · 15/12/2024
I'm unable to submit a solution 😭 I'm already logged in @trash.supplies @techsavvytravvy.com attached RHS of the screen
left hand side of the screen showing my github profile picture at the top in a circle indicating i'm logged in, and a disabled button called "Login to Submit (open test cases)" at the bottom.
100
Light @maheshbansod.com · 14/12/2024
My BlueSky wrapped 2024 ^_^ Thanks, @srsholmes.com!
110
Light @maheshbansod.com · 14/12/2024
aoc day14p2 I just completed "Restroom Redoubt" - Day 14 - Advent of Code 2024 #AdventOfCode
050
Light @maheshbansod.com · 05/12/2024
nice!! it worked! thanks got it, will try it in the chrome app then.
010
Light @maheshbansod.com · 04/12/2024
I solved it twice where is the confetti ;-; idk what I'm doing wrong. btw do u manually check what went wrong? would be cool if it directly shows me at the end of the game 😅 great work btw! love a good sudoku
sudoku (probably solved) with no confetti
110
Light @maheshbansod.com · 15/11/2024
0307
Light @maheshbansod.com · 14/11/2024
Btw this shirt link redirects to a product not found page.
Text:
"
Your signature has been recorded. Thank you for your support!

Show your support in the real world with a "Free JavaScript" shirt. All proceeds go towards legal fees.
"
the "Free JavaScipt" part is a link
100
Light @maheshbansod.com · 14/11/2024
Sri Lanka blue skies from my recent vacation ^_^
Moon plains Nuwara Eliya Muda River Bentota
191
Light @maheshbansod.com · 13/11/2024
Exploring Sri Lanka was a mix of breathtaking views, water adventures, and rich history—think Ramayana legends and intricate Buddha temples. Loved Nuwara Eliya for its unique vibe. Friendly locals, and nice food. Amazing scenery, diverse weather, and affordable prices! #SriLanka #Travel
view from Moon plains, Nuwara EliyaSri Lankan fruitA monkey in Kandy, Sri LankaDaisies in Nuwara Eliya, Sri Lanka
010
Light @maheshbansod.com · 05/11/2024
literally me.
jyc.dev/at
Im a sleepy sloth connector
000