Skip to content

Instantly share code, notes, and snippets.

View evanmoran's full-sized avatar

Evan Moran evanmoran

View GitHub Profile
@szktty
szktty / clockwork-base32.md
Last active March 4, 2024 04:35
Clockwork Base32: A variant of Base32 inspired by Crockford's Base32
@leolara
leolara / publisher.go
Last active April 29, 2023 04:30
Example in Go of how to close a channel written by several goroutines
// Package gochannels example of how to close a channel written by several goroutines
package gochannels
import (
"math/big"
"sync"
)
// Publisher write sequences of big.Int into a channel
type Publisher struct {
@evanmoran
evanmoran / fast-gh-pages
Last active December 12, 2015 08:49
Create github pages in a natural way by making gh-pages a submodule of master
# Create gh-pages branch
git checkout --orphan gh-pages
# Remove all files from the old working tree
git clean -fdx
# Create initial index.html file
echo "My github page" > index.html
# Turn off jekyll
@coldnebo
coldnebo / Default (Linux).sublime-keymap
Created August 10, 2011 23:20
simple scripts to prettify your xml and json in sublime text 2
[
{ "keys": ["ctrl+shift+x"], "command": "tidy_xml" },
{ "keys": ["ctrl+shift+j"], "command": "prettify_json" }
]