Skip to content

Instantly share code, notes, and snippets.

View milothiesen's full-sized avatar
💓

Milo Thiesen milothiesen

💓
View GitHub Profile
# Define the unique method that removes duplicates
#!/usr/bin/ruby
require 'digest/md5'
library_path = ARGV[0]
hash = {}
Dir.glob(library_path + "/**/*", File::FNM_DOTMATCH).each do |filename|
@milothiesen
milothiesen / export.sh
Created February 22, 2016 04:36 — forked from jeffrafter/export.sh
Exporting XML from Final Cut Pro using Apple Script
#!/bin/sh
# 'Enable access for assistive devices' must be selected in Universal Access preferences.
osascript -e "
try
tell application \"Final Cut Pro\" to activate
delay 0.5
tell application \"System Events\"
@milothiesen
milothiesen / BnUf-1.rb
Created February 16, 2016 21:27 — forked from anonymous/BnUf-1.rb
https://repl.it/BnUf/1 created by anonymous
names = ["Jill Bauerle", "Iris Lee", "Gregory Raml", "Maile Thiesen", "Jane Levenson", "Rebecca Morgan"]
sorted_names = names.sort_by{ |name| name.split(" ").reverse.join.upcase }
puts sorted_names