Skip to content

Instantly share code, notes, and snippets.

View clarete's full-sized avatar
🌴
On vacation

Lincoln Clarete clarete

🌴
On vacation
View GitHub Profile
// This is an extremely fun exercise and I could have probably
// used something way simpler than this. But I love parsing <3
// For this lil calculator, I used a few mutually recursive
// functions aided by two very simple operations (or, star). It
// is an extremely simplified version of how Parsing Expression
// Grammars (PEG) work.
// Here's how it'd read in plain PEG
// Expr <- _ Term

Goal

Tool for easily generating HTML assembled from a template off of org mode files

One API

The function `blorg-gen` takes a pattern that matches file names and apply a template to generate one HTML for each Org file yielded by the search.

Templating

@clarete
clarete / another-doc.org
Last active August 28, 2020 02:12
Proposal for blorg's API that's aware of HTTP endpoints

Just a file to be linked to

If you didn’t like it, you can go back To where you whence were

Github won’t render the link above properly, gotta see the raw content

package main
import (
"fmt"
"os"
"github.com/prometheus/prometheus/promql/parser"
)
func main() {