Skip to content

Instantly share code, notes, and snippets.

View moss's full-sized avatar

Moss Collum moss

  • Luminoso
  • Boston, MA
View GitHub Profile
@moss
moss / counts.py
Created December 3, 2017 21:55
Script to tabulate total counts by party from the Virginia House of Delegates election
import json
from collections import Counter
with open('results.json') as f:
results = json.load(f)
class Race:
def __init__(self, details):
self.details = details
@moss
moss / exr.rb
Created August 11, 2013 19:24
#!/Users/moss/.rvm/rubies/ruby-1.9.2-p320/bin/ruby
class Runner
def initialize basepath, executor = ExecutionService.new
@basepath = basepath
@executor = executor
@cmds_term = TmuxSession.new '0', executor
@test_term = TmuxSession.new '1', executor
end
# The configuration I'm currently using for my Rails projects at home.
# init git first so that plugins will work as submodules.
git :init
# plugins
plugin 'time_travel',
:git => "git://github.com/notahat/time_travel.git",
:submodule => true