Skip to content

Instantly share code, notes, and snippets.

View juergenhoetzel's full-sized avatar
🎯
Focusing

Jürgen Hötzel juergenhoetzel

🎯
Focusing
View GitHub Profile
@ityonemo
ityonemo / test.md
Last active September 26, 2023 05:32
Zig in 30 minutes
View test.md
@juergenhoetzel
juergenhoetzel / utf16.go
Created December 8, 2018 09:43
Decode utf16 (little or big endian) to string
View utf16.go
package main
import (
"bytes"
"encoding/binary"
"fmt"
"unicode/utf16"
)
func DecodeUtf16(b []byte, order binary.ByteOrder) (string, error) {
@juergenhoetzel
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))
(window-list)
@juergenhoetzel
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.