This file contains hidden or 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
# Replace path | |
Dir.glob("/Users/ryan/dev/railsapp/**/*.slim") do |slim| | |
@html = slim.gsub(/\.slim\z/, '.erb') | |
`slimrb --erb --pretty #{slim} > #{@html}` | |
File.delete slim | |
puts "Made #{@html}" | |
end |
This file contains hidden or 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
// Background: I needed to get FinalSurge workouts into TrainingPeaks | |
// Requires: | |
// * TrainingPeaks Javascript from: https://github.com/pchalacis/trainerroad-to-trainingpeaks | |
// * TrainingPeaks Premium account to add workouts | |
// Usage: | |
// * Make sure as many weeks are visible via the "weeks" button in calendar mode | |
// ** https://log.finalsurge.com/Calendar.cshtml?v=ws&vw=16b&y=2018&m=1&d=24 | |
// * Run script in console | |
// * Use "pchalacis/trainerroad-to-trainingpeaks" instructions | |
// ** Set date to 2018-01-01 (as array is 0 based and will add the day to the day of the workout) |