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 ruby | |
# Usage: | |
# Save this to a file invoice.rb, and set the values from L#185 on to your needs. | |
# Then run | |
# $ ruby invoice.rb | |
require 'bundler/inline' | |
require "date" |
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
# A quick and dirty script to match a bunch of before and after photos of locations. The location of each | |
# photo is matched by reading timestamps out of a GPX file and finding the closest point in | |
# the track (time wise) to the time the photo was taken. | |
# It then groups the photos based on a distance in meters threshold (LocalityGrouper distance parameter). | |
# The more accurate your GPS and the more frequent your point entries in the GPX track, the | |
# better this will work. | |
# | |
# This script assumes your photos have different dates for the before and after. If this isn't | |
# the case, you'll need to change the logic used for calculating grouped_photos | |
# |
OlderNewer