Skip to content

Instantly share code, notes, and snippets.

View jareds's full-sized avatar

Jared Stofflett jareds

  • Detroit
View GitHub Profile
@jareds
jareds / README.md
Last active November 8, 2024 03:00 — forked from kentcdodds/README.md
Book Stitcher. Combine multiple mp3 files into a single MP3 file with metadata (for chapters etc.). It's great for audiobooks.

Book Stitcher

This is just something I hacked together to create an audiobook file out of CD audio files (complete with chapter marking metadata!)

Works great when used in combination with https://github.com/kentcdodds/podcastify-dir

npx https://gist.github.com/kentcdodds/e07f9106c63cc13a75adb0157700eb5b ./path-to-sorted-mp3s
@jareds
jareds / yahoo.groovy
Created September 19, 2015 23:38
Get Yahoo daily fantasy football into csv format. Running this script will create a file called salarys.csv in the directory the script is run from. Any existing salarys.csv will be overwritten.
import groovy.json.JsonSlurper
jsonSlurper = new JsonSlurper()
data= jsonSlurper.parse(new URL("""https://dfyql-ro.sports.yahoo.com/v2/external/playersFeed/nfl"""))
csv=new File("salarys.csv")
csv.write("name,position,team,game,fppg,salary\n")
data.players.result.each {
csv.append("""${it.name},${it.position},${it.team},${it.awayTeam} at ${it.homeTeam} ${it.gameStartTime.replaceAll(",","")}, ${it.fppg},${it.salary}\n""")
}
@jareds
jareds / gistAccessibility
Created February 5, 2014 20:20
This is a test to see if creating a Gist is accessible if you are blind.
This is a test to see if creating a gist is accessible with Jaws for Windows and Firefox. According to the following comment it is not.
https://news.ycombinator.com/item?id=7185771
It looks like I am able to do this. While the text edit field does not read with my screen reader it is possible to paste text into it. This is not ideal but it is usable with a bit of work.