Skip to content

Instantly share code, notes, and snippets.

View jordanholliday's full-sized avatar
👌
real good

Jordan Holliday jordanholliday

👌
real good
View GitHub Profile
export const ODDS_MAP: {
[K: number]: {
[T: number]: number
}
} = {
1: {
1: 0.5,
2: 0.534,
3: 0.6,
4: 0.699,
@jordanholliday
jordanholliday / cat-file-to-json.txt
Last active July 10, 2019 16:14
Cat text file to json
$ brew install jq
$ var=$(cat filename.txt)
$ jq -n --arg v "$var" '{"foo": $v}' > filename.json