Skip to content

Instantly share code, notes, and snippets.

@the42
the42 / init.el
Created August 28, 2024 11:29
Emacs config
;; Temporary to mitigate https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68668
;; (setopt native-comp-enable-subr-trampolines nil)
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
;; Comment/uncomment this line to enable MELPA Stable if desired. See `package-archive-priorities`
;; and `package-pinned-packages`. Most users will not need or want to do this.
;;(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
(package-initialize)
@the42
the42 / shared.ledger
Created December 6, 2017 21:25
Ledger shared expenses
= /^Expenses:Housing/ & %/shared/
[Share:Housing] 1
[Share:Person:Johann] -0.5
[Share:Person:Bettina] -0.5
= /^Person:/
[Share:$account] -1
[Share] 1
; = /Expenses:Housing/ & %/shared/
@the42
the42 / .block
Last active March 12, 2019 22:00 — forked from mbostock/.block
Zoomable Circle Packing
license: gpl-3.0
height: 960
@the42
the42 / gist:1956518
Created March 2, 2012 07:34
GZip encoding for GO V1 using custom responsewriter
package main
import (
"compress/gzip"
"io"
"net/http"
"strings"
)
type gzipResponseWriter struct {