Skip to content

Instantly share code, notes, and snippets.

View trestrantham's full-sized avatar

Tres Trantham trestrantham

View GitHub Profile

Keybase proof

I hereby claim:

  • I am trestrantham on github.
  • I am tres (https://keybase.io/tres) on keybase.
  • I have a public key whose fingerprint is 9F3C 8FFA B677 9B84 9670 3326 AACE D5DA E82B E29A

To claim this, I am signing this object:

@trestrantham
trestrantham / parse_video.rb
Last active August 29, 2015 13:56
Parse video by scene change
require "csv"
require "streamio-ffmpeg"
require "interactor"
require "command"
require "bigdecimal"
require "bigdecimal/util"
module Video
class DetectScenes
include Interactor
@trestrantham
trestrantham / gist:8187727
Last active January 1, 2016 18:59
Adding a before filter to module instance methods
# All Walkman commands require the Player to be running so
# let's raise an error if it's not
class Walkman
module Commands
def self.included(base)
base.extend ClassMethods
base.instance_methods(false).each do |method_name|
base.add_player_check(method_name)
end