Skip to content

Instantly share code, notes, and snippets.

@rmg
rmg / 0_reuse_code.js
Created February 6, 2014 21:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@rmg
rmg / adapter_test.rb
Last active December 18, 2015 20:58 — forked from jodosha/adapter_test.rb
require 'test_helper'
shared_examples_for 'An Adapter' do
describe '#read' do
before do
@adapter.write(@key = 'whiskey', @value = "Jameson's")
end
it 'reads a given key' do
@adapter.read(@key).must_equal(@value)