View irc.go
// My small, family IRC server
// This file won't compile by itself because it's only one file from
// my larger family server (movie hosting, Asterisk dialplan, Git
// hosting, personal assistant, etc).
// Users authenticate via NICK and PASS. The USER is interpreted as a
// "device" name. That allows each user to connect from multiple
// devices simultaneously while still appearing as only one nick in
// channels. Each nick-device combo has a queue of messages which
View read-race.go
package main
// "go run -race read-race.go"
import (
func main() {
View sample.txt
Sampling process 43655 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling swipl (pid 43655) every 1 millisecond
Process: swipl [43655]
Path: /Users/michael/lib/swipl-7.3.34/bin/x86_64-darwin15.6.0/swipl
Load Address: 0x101c2e000
Identifier: swipl
Version: 0
Code Type: X86-64
Parent Process: bash [41679]
View tmux.conf
# main: window where I spend most of my time
tmux rename-window main
# shells: window where spare shells live (see C-n and C-p)
new-window -d
rename-window -t 2 shells
split-window -d -t shells
split-window -d -t shells
View collatz.eve
# Collatz Conjecture
## Description
The Collatz Conjecture deals with an integer #`n` and the #`steps` it takes to reach 1.
View hello.ama
use("", Io); # See Note_use
main(W) {
Io.printf(W, "Hello, world!\n");
### Note_use:
`use/2` is a macro that expands into
View append.go
package prolog
%% append(list,list,list)
%% append(+,+,+) is semidet.
%% append(+,+,-) is det.
%% append(+,-,+) is semidet.
%% append(+,-,-) is det.
%% append(-,+,+) is multi.
%% append(-,+,-) is multi.
:- module(currency, [ atom_currency/2
, codes_currency/2
, currency//1
:- use_module(library(clpfd)).
:- use_module(library(dcg/basics), [integer//1]).
:- use_module(library(delay)).
:- use_module(library(error)).
View base32-padding.go
package main
import (
func main() {
data := "2246b2egzcc3ktvvoklo5cvzh4"