1 min read

What is Bloggoat?

by Vihan Bhargava

    Bloggoat separates into two words— **Blog** and **Goat**, which are essentially what this is… a blog. I’ll cover mostly programming, and other technical things I think are cool...

    Bloggoat separates into two words— Blog and Goat, which are essentially what this is… a blog. I’ll cover mostly programming, and other technical things I think are cool. This is a wordpress Ghost Gatsby blog so I’ve got a couple plugins running, first is MathJax KaTeX, meaning I can have fancy looking math (inline too\text{inline too}):

    sin(x)=0xn=1(1)nx2n(2n)!\sin(x) = \int_0^x \sum_{n=1}^{\infty} \frac{\left(-1\right)^nx^{2n}}{\left(2n\right)!}

    I’m also using highlight.js prism.js highlight.js for syntax highlighting, which I think looks very nice. It supports modern JS syntax too^[this was written before fetch existed.]:

    const {forEach, map} = [];
    
    document.querySelectorAll("*")::forEach(elem => {
        console.log(elem.style.backgroundColor);
    });
    
    async function GET(path) {
        return new Promise((y, n) => {
            let r = new XMLHttpRequest();
            r.onreadystatechange = () =>
                (r.readyState === 4 && r.status === 200
                  ? y : n)(r);
            r.open("GET", path);
            r.send
        });
    }