Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Three Command Line Utilities

Three Command Line Utilities

Rapid Fire Tech Talk presenting GNU Parallel, data_hacks, and pygmentize

Kevin Marsh

August 09, 2013
Tweet

More Decks by Kevin Marsh

Other Decks in Technology

Transcript

  1. I have a file like... foo<TAB>bar baz<TAB>quux I want to

    run commands like... cmd -o bar -i foo cmd -o quux -i baz $ parallel -a file.tsv --colsep '\t' cmd -o {2} -i {1}
  2. # A presenter (view / view model / presentation model)

    is an object # that encapsulates logic for a particular template. # # It's often instantiated with one or more domain objects and # it's goal is to minimize/remove logic from templates. It holds # a reference to current view context in order to use rails helper methods # # See: http://martinfowler.com/eaaDev/PresentationModel.html class Presenter attr_reader :view_context def initialize(attributes = {}, options = {}) @view_context = options.fetch(:view_context) { ViewContext.current } @attributes = attributes end def method_missing(name, *args, &block) if @attributes.has_key?(name) @attributes[name] else super end end end