-
Notifications
You must be signed in to change notification settings - Fork 33
scratch pad
Ian Ward edited this page Oct 2, 2013
·
9 revisions
["Name", "Session", "Score", "Completed"]
["Gilbert", "2013", 24, true]
["Alexa", "2013", 29, true]
["May", "2012B", 14, false]
["Deloise", "2012A", 19, true]
{"name": "Gilbert", "wins": [["straight", "7♣"], ["one pair", "10♥"]]}
{"name": "Alexa", "wins": [["two pair", "4♠"], ["two pair", "9♠"]]}
{"name": "May", "wins": []}
{"name": "Deloise", "wins": [["three of a kind", "5♣"]]}
alias jlpretty='python -c"import sys,json; [0 for s in sys.stdin
if sys.stdout.write(json.dumps(json.loads(s), sort_keys=True, indent=2,
ensure_ascii=False) + chr(10))]"'
cat winning_hands.jl | grep Gilbert | jlpretty
..
cat winning_hands.jl | grep Gilbert | jlpretty
{
"name": "Gilbert",
"wins": [
[
"straight",
"7♣"
],
[
"one pair",
"10♥"
]
]
}
{
"name": "Alexa",
"wins": [
[
"two pair",
"4♠"
],
[
"two pair",
"9♠"
]
]
}