This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package csvutil_test | |
import ( | |
"bytes" | |
"encoding/csv" | |
"testing" | |
ebcsv "github.com/earthboundkid/csv/v2" | |
"github.com/gocarina/gocsv" | |
"github.com/jszwec/csvutil" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function secureRand(min, max) { | |
let range = max - min; | |
if (range < 2) { | |
return min; | |
} | |
let bits_needed = Math.ceil(Math.log2(range)); | |
if (bits_needed > 31) { | |
throw new Error("cannot generate numbers larger than 31 bits."); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Fork of gruber's tot.sh https://gist.github.com/gruber/b18d8b53385fa612713754799ed4d0a2 | |
# which is a fork of chockenberry's tot.sh https://gist.github.com/chockenberry/d33ef5b6e6da4a3e4aa9b07b093d3c23 | |
# | |
# WARNING some options have different & potentially destructive meaning, for example: | |
# -r gets the dot contents in original script, but this one REPLACES the dot contents | |
# and does use -p to get the dot contents | |
# |