Last active
August 29, 2015 14:07
Revisions
-
marshluca revised this gist
Oct 22, 2014 . 2 changed files with 26 additions and 17 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,17 +0,0 @@ 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ #!/usr/bin/env ruby require 'date' def open_video(file) file = file.gsub(/\s/, '\\ ') puts "opening #{file}" `open #{file} -n /Applications/MPlayerX.app` end if ARGV.empty? date = Date.today else date = ARGV.first end source_folder = "/Users/lucas/Documents/VSee/#{date}" abort "#{source_folder} doesn't exist!" unless Dir.exist? source_folder Dir.glob("#{source_folder}/*.mkv") do |file| open_video file unless file.include? 'continued' end # ./standup # ./standup 2014-10-22 -
marshluca renamed this gist
Oct 22, 2014 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -12,4 +12,6 @@ def open_video(file) unless file.include? 'continued' open_video file end end # ./run 2014-10-22 -
marshluca created this gist
Oct 22, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ #!/usr/bin/env ruby def open_video(file) file = file.gsub(/\s/, '\\ ') puts "opening #{file}" `open #{file} -n /Applications/MPlayerX.app` end path = "/Users/lucas/Documents/VSee/#{ARGV[0]}/*.mkv" Dir.glob(path) do |file| unless file.include? 'continued' open_video file end end