Skip to content

Instantly share code, notes, and snippets.

Stephen Caudill voxdolo

View GitHub Profile
@voxdolo
voxdolo / convert
Created May 17, 2014
Parse the CSV output from MTGO v3 client and rewrite it in a format that's compatible with the Decked Builder collection converter here: http://www.mtgo-stats.com/convert_coll/em
View convert
#! /usr/bin/env ruby
# This ruby script parses the CSV output from MTGO v3 client and rewrites it in
# a format that's compatible with the Decked Builder collection converter here:
#
# http://www.mtgo-stats.com/convert_coll/em
#
# If you're not sure how to export a CSV from the v3 client, see the
# instructions here:
#
@voxdolo
voxdolo / error
Created Jun 24, 2014
Error inside vim when opening a test file with a running nrepl
View error
Error detected while processing function <SNR>47_path..<SNR>47_connect:
line 10:
E117: Unknown function: fireplace#register_port_file
E15: Invalid expression: empty(portfile) ? {} : fireplace#register_port_file(portfile, b:leiningen_root)
Error detected while processing FileType Auto commands for "clojure":
E714: List required
Error detected while processing function <SNR>47_projectionist_detect..<SNR>47_path
..<SNR>47_connect:
line 10:
E117: Unknown function: fireplace#register_port_file
View gist:87e2219664a0b5c4ebc6

Tested with Mac OSX Mavericks on a late 2011 MBP

My testing approach has been to erase a partition and install fresh Mavericks onto it. Run the scripts, tweak and then tear down and reinstall on the partition.

Some general thoughts:

  • if bork doesn't stop for errors, it should probably aggregate them and output post-flight
  • output can be very noisy if running scripts comingled (maybe I shouldn't be doing that though)
  • confused about what ok destination does in conjunction with ok symlink
    • at least on my system, it doesn't set where the symlink should end up and I've
View keybase.md

Keybase proof

I hereby claim:

  • I am voxdolo on github.
  • I am voxdolo (https://keybase.io/voxdolo) on keybase.
  • I have a public key whose fingerprint is 7026 C29F 4CAC 793C 418E D5C4 1E99 9E4B B9CA 1402

To claim this, I am signing this object:

View packages.el
(defvar me-packages
'(cider clojure-mode)
"List of all packages to install and/or initialize. Built-in packages
which require an initialization must be listed explicitly in the list.")
(defvar me-excluded-packages '()
"List of packages to exclude.")
(defun me/init-package-me ()
"Staging ground for my configurations for other layers"
@voxdolo
voxdolo / .screenrc
Created Oct 16, 2008
My screenrc. liberally infuenced by _why's.
View .screenrc
escape "^Ll"
setenv LC_CTYPE en_US.UTF-8
defutf8 on
autodetach on
crlf off
deflogin off
hardcopy_append on
startup_message off
@voxdolo
voxdolo / report_improved.rb
Created Jun 16, 2009
First pass at a more Ruby-like Report class from the example in Design Patterns in Ruby, Chapter 3 [for hashrocket bookclub]
View report_improved.rb
class Report
attr_accessor :preamble, :before, :after, :prologue
def initialize
@subject = 'Monthly Report'
@content = ['Things are going', 'Really, really good!']
end
def generate
[:preamble,:head,:body,:prologue].map do |meth|
send(meth)
end.compact.join("\n")
@voxdolo
voxdolo / spec_helper.rb
Created Sep 22, 2009
necessary configurations for using RSpec with Webrat for integration tests
View spec_helper.rb
require 'webrat'
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
Webrat.configure do |config|
config.mode = :rails
config.open_error_files = false # optional, but keeps me sane
end
Spec::Runner.configure do |config|
@voxdolo
voxdolo / gibbon.rb
Created Oct 10, 2009
Gibbon is a monkey patch to provide Given/When/Then templates for RSpec and Webrat integration tests
View gibbon.rb
module Spec::DSL::Main
alias :Feature :describe
def Story(description)
@description_args.push("\n#{description}\n")
end
end
module Spec::Example::ExampleGroupMethods
def executes(scope=:all, &blk)
before(scope, &blk)
View Interesting shows in SF during RubyConf
Röyksoppp, 11/19 - The Regency Ballroom (http://www.coasttocoasttickets.com/buy/san_francisco_ca.htm?pid=1176889)
Anti Pop Consortium, 11/20 - Mojito (http://www.sunsetpromotions.net/events/57845/Antipop-Consortium--Mojito)
DJ Nu Mark, 11/21 - The Mighty (http://www.sfstation.com/dj-nu-mark-e739571)
Cunning Lynguists and Pep Love, 11/21 - (http://www.ticketmaster.com/Cunninlynguists-Plus-Pep-Love-tickets/artist/1367539)
Dethklok and Mastodon, 11/21 - San Jose State University Event Center (http://www.livenation.com/edp/eventId/412063)
You can’t perform that action at this time.