Skip to content

Instantly share code, notes, and snippets.

View wjbuys's full-sized avatar

Jacob Buys wjbuys

View GitHub Profile
@wjbuys
wjbuys / spec_helper.rb
Created November 4, 2010 20:41
Get the latest versions of RSpec2 and RR to play nice
require 'rspec'
require 'rr'
module RR
module Adapters
module Rspec
def self.included(mod)
RSpec.configuration.backtrace_clean_patterns.push(RR::Errors::BACKTRACE_IDENTIFIER)
end
end
@wjbuys
wjbuys / .irbrc
Created November 11, 2010 12:18
IRB config to include some cool command-line tools
IRB.conf[:AUTO_INDENT] = true
IRB.conf[:USE_READLINE] = true
require 'rubygems'
def suggest(lib)
begin
require lib
yield if block_given?
rescue LoadError
describe Template do
it "pulls out parameters from the template body" do
template = Template.new("Look at my template with {Adjective} many {Noun}!")
template.parameters.should == ["Adjective", "Noun"]
message = Message.new(template)
message.parameters.should == {
"Adjective" => nil,
"Noun" => nil
}
@wjbuys
wjbuys / keybase.md
Created June 6, 2015 20:53
I am who I am

Keybase proof

I hereby claim:

  • I am wjbuys on github.
  • I am wjbuys (https://keybase.io/wjbuys) on keybase.
  • I have a public key whose fingerprint is 926A 3953 4E28 759B 76D4 04EC B4F3 C551 86D6 D866

To claim this, I am signing this object:

@wjbuys
wjbuys / checklist.md
Last active October 20, 2020 19:42
SPM Recording Checklist

Recording checklist

(read through this article for a detailed explanation of the steps)

  • 🏠 room
    • minimal ambient noise
    • not standing close to hard surfaces (desks, walls, etc)
    • not standing in the exact center of the room
  • 🎙️ microphone
    • if you're using a multi-pattern mic like the Blue Yeti, make sure that it is in cardioid (directional) mode: cardioid
  • 📱 (smartphone only) know where the microphone is