Skip to content

Instantly share code, notes, and snippets.

Ryan Baumann ryanfb

Block or report user

Report or block ryanfb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ryanfb
ryanfb / fusion-tables-migration.md
Created Nov 26, 2019
Fusion Tables Migration Alternatives
View fusion-tables-migration.md
  • Datasette on Heroku
  • Heroku Postgres
  • Google Bigtable - $.65/hr
  • Google BigQuery - $5/TB of queried data, $.02/GB/mo stored
  • Google Cloud Datastore - 1GB free, .18GB/month above
  • Google Cloud Firestore - similar to Datastore
  • Google Sheets
  • Google Cloud SQL (MySQL/PostgreSQL)
  • AWS DynamoDB - NoSQL, 25GB free, $0.25/1M read request units
  • AWS Athena - costs per TB scanned, reads data from S3 buckets
View pdftogt.rb
#!/usr/bin/env ruby
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8
require 'nokogiri'
pdf_filename = ARGV[0]
xml_filename = File.basename(pdf_filename,'.pdf') + '.xml'
@ryanfb
ryanfb / ancientgreekspeak.rb
Last active May 9, 2019
Ruby script for transliterating Ancient Greek to Apple phonemes for text-to-speech synthesis - updates at https://github.com/ryanfb/ancientgreekspeak/
View ancientgreekspeak.rb
#!/usr/bin/env ruby
require 'i18n'
Encoding.default_external = Encoding::UTF_8
# Usage: Takes Unicode Polytonic Greek on STDIN or as arguments, outputs
# phonetic pronunciation on STDOUT designed to be piped into the Mac `say` command.
# e.g.:
# echo 'ἄγω ἄξω ἤγαγον ἦχα ἤγμαι ἤχθην' | ./ancientgreekspeak.rb | say
@ryanfb
ryanfb / test_a1.txt
Last active Aug 10, 2018
dhSegment MicroPasts train/val/test split
View test_a1.txt
DSC_0484.png
IMG_0989.jpg
IMG_6717.jpg
IMG_1511.jpg
IMG_7308.jpg
IMG_1344.jpg
IMG_3407.jpg
IMG_3661.jpg
IMG_8855.jpg
IMG_3205.jpg
View geocollider-lightning.md

Geocollider

Ryan Baumann

Duke Collaboratory for Classics Computing

@ryanfb

@ryanfb
ryanfb / georgeblood.m3u
Last active Aug 10, 2017
An M3U playlist of items in the Internet Archive 78rpm collection: https://archive.org/details/georgeblood
View georgeblood.m3u
This file has been truncated, but you can view the full file.
https://archive.org/download/78_.-tam-za-vahom-2.-horicka-zelena_andrej-gellert_gbia0001742a/!.%20Tam%20Za%20Vahom;%202.%20Horicka%20Zelena%20-%20Andrej%20Gellert.mp3
https://archive.org/download/78_1-a-dew-drop-2-rain-song_elizabeth-wheeler-sherman-gilchrist-smith_gbia0013545a/(1)%20A%20Dew%20Drop;%20(2)%20Rain%20Song%20-%20Elizabeth%20Wheeler.mp3
https://archive.org/download/78_...must-suffer-for-the-one-mistake-i-made_peppermint-harris_gbia0001396b/...Must%20Suffer%20(For%20The%20One%20Mistake%20I%20Made)%20-%20Peppermint%20Harris.mp3
https://archive.org/download/78_-and-mimi_art-lund-kennedy-simon-johnny-thompson_gbia0012786b/-And%20Mimi%20-%20Art%20Lund%20-%20Kennedy%20-%20Simon%20-%20Johnny%20Thompson.mp3
https://archive.org/download/78_-tramp-along-the-highway_nelson-eddy-nathaniel-shilkret-and-orchestra-rida-johnson_gbia0011035b/…%20Tramp%20Along%20the%20Highway%20-%20Nelson%20Eddy%20-%20Nathaniel%20Shilkret%20and%20Orchestra.mp3
@ryanfb
ryanfb / midi_synthesis.md
Created Feb 24, 2017
MIDI Synthesis / DeepBach notes
View midi_synthesis.md
@ryanfb
ryanfb / hdhomerun-screenshot.rb
Created Oct 1, 2016
Screenshot a random channel from your HDHomeRun device
View hdhomerun-screenshot.rb
#!/usr/bin/env ruby
require 'net/http'
require 'json'
# hdhomerun device ASDF found at 10.0.1.1
hdhomerun_discover = `hdhomerun_config discover | head -1`
hdhomerun_ip = hdhomerun_discover.split(' ').last
lineup = JSON.parse(Net::HTTP.get(URI("http://#{hdhomerun_ip}/lineup.json")))
@ryanfb
ryanfb / pleiades-country-filtering.md
Last active Sep 26, 2016
Quick-and-Dirty Filtering of Pleiades Places by Modern Country with GDAL ogr2ogr
View pleiades-country-filtering.md

In this tutorial, I'll give a quick way to filter Pleiades places to those contained within a modern country's borders.

Install GDAL with brew install gdal (on a Mac) or download GDAL binaries for your platform.

Download a modern country's shapefile (for this example, Bulgaria) from GADM: http://www.gadm.org/country

Download the latest Pleiades KMZ data dump. Unzip to KML with unzip pleiades-latest.kmz.

Use the top-level administrative boundary for Bulgaria to clip the resulting tmp/doc.kml file and save the result as GeoJSON:

@ryanfb
ryanfb / deepmask.md
Last active Apr 4, 2018
DeepMask / SharpMask training notes
View deepmask.md

About

These are my public, unorganized notes on stumbling blocks I've run across setting up DeepMask / SharpMask for training: https://github.com/facebookresearch/deepmask

NNProject_DeepMask

An alternative (non-Facebook, Python instead of Torch) open-source implementation of DeepMask was previously available here: https://github.com/abbypa/NNProject_DeepMask

Before the Facebook code was released, I started some work on Dockerizing this implementation which may also help others use it: https://github.com/ryanfb/NNProject_DeepMask/blob/docker_experimental/Dockerfile

You can’t perform that action at this time.