Skip to content

Instantly share code, notes, and snippets.

@grav
grav / fennel.lua
Last active August 2, 2023 08:41
Fennel as a Lua library
-- This file was compiled via instructions from https://github.com/bakpakin/Fennel#to-build-fennel-from-source
-- It was slightly modified by adding a line break to a specific line that was more than
-- 4096 characters (containing a dictionary), to be able to process it with Lua itself
package.preload["fennel.repl"] = package.preload["fennel.repl"] or function(...)
local utils = require("fennel.utils")
local parser = require("fennel.parser")
local compiler = require("fennel.compiler")
local specials = require("fennel.specials")
local view = require("fennel.view")
@grav
grav / blink.v
Last active November 5, 2023 10:11
Blink for ICE40 in Verilog
[0,[0,0,109,32]]
[1,[4,0,109,32]]
[2,[8,0,109,32]]
[3,[12,0,109,32]]
[4,[16,0,109,32]]
[5,[20,0,109,32]]
[6,[24,0,109,32]]
[7,[28,0,109,32]]
[8,[32,0,109,32]]
[9,[36,0,109,32]]
@grav
grav / python.md
Created March 7, 2026 20:24
Quick Guide: Python Development with uv

Quick Guide: Python Development with uv

This guide covers the essentials of using uv for modern Python development. The workflow is organized from simple scripts to full project management.

1. Installation

uv installs as a standalone binary.

# MacOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
@grav
grav / chromium-linux-arm64.md
Created March 7, 2026 22:10
Building Chromium on Linux ARM64

Building Chromium on Linux (Arch Linux / ARM64)

This guide documents the process for building Chromium on an Arch Linux system, specifically addressing challenges with depot_tools and architecture mismatches on ARM64.

Prerequisites

  • OS: Arch Linux (ARM64)
  • Disk Space: >100GB (SSD recommended)
  • RAM: >8GB (16GB+ recommended)
  • Tools: git, python3