Skip to content

Instantly share code, notes, and snippets.

View akhenakh's full-sized avatar
🏠
Working from home

Fabrice Aneche akhenakh

🏠
Working from home
View GitHub Profile
@akhenakh
akhenakh / math4dev.md
Last active October 28, 2025 12:54
Math for devs source https://math4devs.com/ but into markdown, and for Go & Python

List of mathematical symbols with their JavaScript equivalent.

Of course. Here is the completed table with the added "Python" and "Go" columns.

Symbol Name Since Example JavaScript Python Go
Horizontal bar for division ~1300 $a/b$ a / b a / b a / b
+ Plus sign 1360 $a + b$ a + b a + b a + b
- Minus sign 1489 $a - b$ a - b a - b a - b
Radical symbol 1525 $√x$ Math.sqrt(x) import math math.sqrt(x) import "math" math.Sqrt(x)
@akhenakh
akhenakh / zim.yaml
Created October 4, 2025 04:06
A WIP for a kaitai.io describing a ZIM file https://www.openzim.org/wiki/ZIM_file_format
meta:
id: zim
title: ZIM file format
file-extension:
- zim
- zimaa
xref:
justsolve: ZIM
wikidata: Q2474324
license: CC-BY-SA-3.0
@akhenakh
akhenakh / logsql.md
Last active September 9, 2025 15:28
LogsQL basics

1. The Absolute Basics of LogsQL

Think of a LogsQL query as a way to apply a series of filters to all your logs to find exactly what you need.

The Simplest Query: A Single Word

The easiest query is just typing a word. This will search for that word in the main log message field (_msg).

@akhenakh
akhenakh / zig-wasm.md
Created June 13, 2025 12:54
learning Zig using Wasm-4 fantasy console

Learning Zig with WASM-4

tags: #zig #wasm-4 #gamedev

Of course! Here is a detailed tutorial for learning Zig by creating a small game for the WASM-4 fantasy console. This tutorial is designed to be followed sequentially, introducing Zig concepts as they become necessary for building the game. We'll be making a classic Snake game.


Learn Zig by Making a Snake Game for WASM-4

FROM uigen-t2-7b-3600-q8_0.gguf
# Model information
PARAMETER stop <|end_of_solution|>
PARAMETER temperature 0.7
PARAMETER top_p 0.9
SYSTEM """You are Tesslate, a helpful assistant specialized in UI generation."""
@akhenakh
akhenakh / us-states.sql
Created May 1, 2025 17:57
Using Duckdb to query point in polygons in an efficient manner
-- source https://www.census.gov/geographies/mapping-files/time-series/geo/carto-boundary-file.html
-- https://www2.census.gov/geo/tiger/GENZ2018/shp/cb_2018_us_state_5m.zip
LOAD spatial;
LOAD geography;
CREATE TABLE wkbstates AS
SELECT
name,
ST_AsWKB(geom) as geom_wkb -- Convert GEOMETRY to WKB_BLOB
@akhenakh
akhenakh / gemini_file.go
Created April 30, 2025 01:04
Gemini is often producing code with the pattern **`path/to/file.go`**, this is creating the files from the outputed markdown
package main
import (
"bufio"
"fmt"
"log"
"os"
"path/filepath"
"regexp"
"strings"
@akhenakh
akhenakh / wehbook.yaml
Created July 9, 2024 19:29
A github webhook receiver for Benthos. SECRET_KEY=BLAH benthos -c benthos.yaml
http:
enabled: true
address: 0.0.0.0:8095
root_path: /api
debug_endpoints: false
input:
label: webhook_server
http_server:
path: "/webhook/github"
@akhenakh
akhenakh / nodes.png
Last active March 26, 2024 01:49
Resolve VR180 nodes
nodes.png
@akhenakh
akhenakh / config.toml
Created January 2, 2024 03:21
Helix Config
theme = "solarized_dark"
[editor]
true-color = true
bufferline = "multiple"
cursorline = true
color-modes = true
[editor.cursor-shape]
insert = "bar"