exiftool -progress -overwrite_original -iso=160 <filenames>
This file contains 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 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' |
This file contains 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 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() |
This file contains 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 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 |
This file contains 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 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 |
This file contains 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 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 |
This file contains 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
// 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" |
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: