Skip to content

Instantly share code, notes, and snippets.

View juergenhoetzel's full-sized avatar

Jürgen Hötzel juergenhoetzel

View GitHub Profile
ityonemo /
Last active September 26, 2023 05:32
Zig in 30 minutes
juergenhoetzel / utf16.go
Created December 8, 2018 09:43
Decode utf16 (little or big endian) to string
View utf16.go
package main
import (
func DecodeUtf16(b []byte, order binary.ByteOrder) (string, error) {
juergenhoetzel / window-rotate.el
Created December 1, 2011 11:01
Rotate windows to left
View window-rotate.el
(require 'cl)
(defun rotate-left (l) (append (cdr l) (list (car l))))
(defun rotate-windows ()
(let ((start-positions (rotate-left (mapcar 'window-start (window-list))))
(buffers (rotate-left (mapcar 'window-buffer (window-list)))))
(mapcar* (lambda (window buffer pos)
(set-window-buffer window buffer)
(set-window-start window pos))
juergenhoetzel / lein-swank.el
Created May 30, 2010 22:20
Launch a Leiningen Swank Process and connect
We couldn’t find that file to show.