Skip to content

Instantly share code, notes, and snippets.

View roblillack's full-sized avatar
🚲

Robert Lillack roblillack

🚲
View GitHub Profile
@roblillack
roblillack / keybase.md
Created November 3, 2019 14:03
keybase.md

Keybase proof

I hereby claim:

  • I am roblillack on github.
  • I am roblillack (https://keybase.io/roblillack) on keybase.
  • I have a public key ASCPk9xy_epQSowIQiUomsHLixnG8PdIG2OxvDxkEAcHEAo

To claim this, I am signing this object:

@roblillack
roblillack / tcx_adjust_time.rb
Created November 6, 2014 08:30
Ruby script to adjust timestamps in Garmin Training Center XML files (TCX)
#!/usr/bin/env ruby
require 'time'
require 'rexml/document'
DELTA = -(24 * 3600 * 7 - 7 * 3600)
raw = IO.read(ARGV[0])
doc = REXML::Document.new(raw)
id_written = false
doc.elements.each('//Activity/Lap') do |lap|