Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 1.19 KB

File metadata and controls

46 lines (37 loc) · 1.19 KB
layout page
title Cool Stuff
permalink /stuff/

Spotlighted Projects

[Try it in the browser!]({% post_url 2025-12-13-Ants %})

![Ants]({{ site.baseurl }}/images/stuff/ants.png){: width="60%"}

[Try it in the browser!]({% post_url 2023-09-15-GameOfLife %})

![Game of Life]({{ site.baseurl }}/images/stuff/gol.png){: width="60%"}

[Read about it!]({% post_url 2023-02-26-macrofrick %})

macro_rules! frick {
    ( $( $code:tt )* ) => {
        let mut mem: [u8; 30_000] = [0; 30_000];
        let mut ptr = 0;
        $(
            instr!(mem ptr $code);
        )*
    };

[Read about it!]({% post_url 2021-07-11-Puffin %})

// recursively computes factorial of n
fact = fn(n) {
    if (n < 2) {
        return 1;
    }

    return n * fact(n - 1);
};

// Take a number from stdin, and compute the factorial
print(fact(input_num("Factorial: ")));