Skip to content

Instantly share code, notes, and snippets.

View ChristophP's full-sized avatar

ChristophP

View GitHub Profile
rg --files-with-matches 'foo' | xargs -L 1 -o vim -c '%s/foo/bar/gc'
@ChristophP
ChristophP / WASM_WASI_Notes.md
Last active July 14, 2022 14:15
Stuff I've learned about WASM and WASI

WASM and WASI Notes

Web Assembly can make use of OS capabilities with the Web Assembly System Interface. It allows calls to OS functionality like clock, fs, network etc.

Spec

  • WASM is the fourth W3C web standard next to HTML, CSS and JS
  • WASI is an additional spec that standardizes how Web Assembly can do more than just run in a sandboxed environment but interact with system resources.

Ecosystem

@ChristophP
ChristophP / Effects.elm
Created January 4, 2023 15:46
Example of the effects pattern in Elm
port module Effects exposing (Effect(..), toCmd)
import Api
import Browser.Dom as Dom
import Browser.Navigation as Nav
import Date exposing (Date)
import Json.Encode as JE
import Task

Lazyvim cheat sheet

Navigation

  • <leader>-e open tree
  • <leader>-f find file by name
  • <leader>-/ find text

Commenting