Skip to content

Instantly share code, notes, and snippets.

View ampacs's full-sized avatar

André Santiago ampacs

  • Hilversum, The Netherlands
  • 16:33 (UTC +02:00)
View GitHub Profile
@sug0
sug0 / union.go
Last active March 14, 2024 07:10
Go 1.18 tagged union types!
// no, this is not that useful
package main
import (
"fmt"
"unsafe"
)
type Kind[T any] struct{}
@Tyrael
Tyrael / revert-newline.sh
Created November 14, 2011 14:09
svn revert files in current directory having newline changes only
svn st|grep ^M|awk '{cmd = "svn diff -x --ignore-eol-style "$2;if ((cmd | getline result) <= 0) system("svn revert "$2);}'