Skip to content

Instantly share code, notes, and snippets.

View cowens's full-sized avatar

Chas. J. Owens IV cowens

  • Martinsburg, WV
View GitHub Profile
package main
import (
b "bufio"
f "fmt"
l "log"
"os"
r "regexp"
"strconv"
)
package main
import (
"bufio"
"fmt"
"log"
"os"
"strconv"
)
# OS specific changes
# macOS specific commands
if-shell "[[ $(uname) == 'Darwin' ]]" {
# makes pbcopy work from the commandline
set-option -g default-command "reattach-to-user-namespace -l bash"
}
# prefix+t brings up a useless clock, make it look nice
set-option -w -g clock-mode-style 24
#!/usr/bin/perl
use strict;
use warnings;
open my $co2, "+>", "/dev/io8log" or die "$!";
my $message = pack "C*", 0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80;
my $ret = ioctl $co2, 0xC0094806, $message;
package main
import (
"fmt"
"math/rand"
)
type Deck struct {
order []int
names []string
riffled 1 times
1 ideal 1.08% min 0.00% max 4.96%
2 ideal 2.15% min 0.00% max 4.38%
3 ideal 3.23% min 0.00% max 6.58%
4 ideal 4.30% min 0.00% max 8.76%
5 ideal 5.38% min 0.00% max 10.93%
6 ideal 6.45% min 0.00% max 13.11%
7 ideal 7.53% min 0.00% max 21.75%
8 ideal 8.60% min 0.00% max 34.90%
9 ideal 9.68% min 0.00% max 40.06%