I hereby claim:
- I am samgrover on github.
- I am samgrover (https://keybase.io/samgrover) on keybase.
- I have a public key whose fingerprint is 2008 F779 4918 080E 6AD2 30A9 D111 6E50 B1C1 A165
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Playground - noun: a place where people can play | |
enum Rank: Int { | |
case Ace = 1 | |
case Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten | |
case Jack, Queen, King | |
func description() -> String { | |
switch self { | |
case .Ace: | |
return "ace" |
#!/usr/bin/env python | |
# Parse the Swarm/Foursquare exported data and create entries in Day One using their command line tool. | |
# Day One command line tool available at: http://dayoneapp.com/support/CLI | |
import sys | |
import json | |
import requests | |
import subprocess | |
import time |
#!/usr/bin/env python | |
# A helper script to convert a CSV files of my books read into Markdown for website. | |
# Usage: | |
# books.py <books.csv exported from Books.numbers> | |
import sys | |
import csv | |
from datetime import datetime |
#!/usr/bin/env python | |
# Fetch current kittens available for adoption and notify if there are new ones. | |
import sys | |
import requests | |
import logging | |
import re | |
import json | |
from datetime import datetime |
#!/usr/bin/env python | |
# A helper script to convert an Apple News URL on the clipboard into | |
# its corresponding canonical URL and put that on the clipboard. | |
import pasteboard | |
import requests | |
import re | |
pb = pasteboard.Pasteboard() |
#!/usr/bin/env python | |
# Script to go along with the blog post at: https://samgrover.com/2022/12/29/playing-with-the.html | |
import pandas as pd | |
FOLDER = '<folder where the dataset lives>' | |
name_basics_file = FOLDER + '/name.basics.tsv' | |
title_ratings_file = FOLDER + '/title.ratings.tsv' | |
title_crew_file = FOLDER + '/title.crew.tsv' |
import OSLog | |
/// Pi Delivery (https://pi.delivery) provides an API to get any value of pi up to 100 trillion. | |
/// This iterator provides those values from a starting index `start`up to the ending index `start + limit`. | |
/// | |
/// Usage Example: | |
/// for try await value in Piterator(start: start, step: step, limit: limit) { | |
/// ... | |
/// } |