Skip to content

Instantly share code, notes, and snippets.

View gvrooyen's full-sized avatar

G-J van Rooyen gvrooyen

View GitHub Profile
@gvrooyen
gvrooyen / injections.scm
Created December 16, 2023 14:12
Treesitter injection for Embedded ML (eml) in OCaml files quoting HTML for the Dream framework
(quoted_extension
(attribute_id) @_attid (#eq? @_attid "eml")
((quoted_string_content) @injection.content
(#set! injection.language "html"))
)

Keybase proof

I hereby claim:

  • I am gvrooyen on github.
  • I am gvrooyen (https://keybase.io/gvrooyen) on keybase.
  • I have a public key ASCR_GlQXEndVWDrcKLen-zckiqMikh_-2hwjaBNjqBtJgo

To claim this, I am signing this object:

@gvrooyen
gvrooyen / lib.rs
Created February 13, 2019 05:02
The Incremental Sieve of Eratosthenes in Rust
use std::collections::HashMap;
use std::cell::RefCell;
struct Sieve {
counter: u64,
composites: Box<HashMap<u64, RefCell<Vec<u64>>>>,
}
impl Sieve {
fn new() -> Sieve {
@gvrooyen
gvrooyen / gist:bf7a1bbb3cb5dc0d3fd0e073177559d2
Created November 9, 2017 19:14
BlockStack verification
Verifying my Blockstack ID is secured with the address 16xufJKikfCSj8Yq9p4wCU8wVZTwQEYKEA https://explorer.blockstack.org/address/16xufJKikfCSj8Yq9p4wCU8wVZTwQEYKEA