Skip to content

Instantly share code, notes, and snippets.

@dmcinnes
dmcinnes / # macvim - 2018-03-28_09-37-08.txt
Created March 28, 2018 16:42
macvim on macOS 10.13.3 - Homebrew build logs
Homebrew build logs for macvim on macOS 10.13.3
Build date: 2018-03-28 09:37:08
@dmcinnes
dmcinnes / keybase.md
Created April 11, 2016 18:16
keybase.md

Keybase proof

I hereby claim:

  • I am dmcinnes on github.
  • I am dmcinnes (https://keybase.io/dmcinnes) on keybase.
  • I have a public key ASCxMpYC3ghMdnCRiIP8C2EuhXhHbCf4x8wKnpHFmQ-_HAo

To claim this, I am signing this object:

@dmcinnes
dmcinnes / running example
Created April 25, 2011 17:36
Rspec Stubbing corner case
~/tmp $ ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
~/tmp $ spec -v
rspec 1.3.2
~/tmp $ spec test.rb
..F
1)
NoMethodError in 'TestClass fails after the stub'
undefined method `foo' for #<TestClass:0x00000101180158>
#!/usr/bin/env ruby
git_bundles = [
"git://github.com/astashov/vim-ruby-debugger.git",
"git://github.com/msanders/snipmate.vim.git",
"git://github.com/scrooloose/nerdtree.git",
"git://github.com/timcharper/textile.vim.git",
"git://github.com/tpope/vim-cucumber.git",
"git://github.com/tpope/vim-fugitive.git",
"git://github.com/tpope/vim-git.git",
class FSM
def initialize
@states = {}
end
def state(name, &block)
s = State.new
s.instance_eval(&block)
@states[name] = s