Skip to content

Instantly share code, notes, and snippets.

@b264
b264 / Dictionary.ts
Created May 30, 2017 04:58 — forked from xperiments/Dictionary.ts
Typescript Dictionary
//http://stackoverflow.com/questions/15877362/declare-and-initialize-a-dictionary-in-typescript
interface IDictionary {
add(key: string, value: any): void;
remove(key: string): void;
containsKey(key: string): bool;
keys(): string[];
values(): any[];
}
@b264
b264 / mrr.rb
Last active August 29, 2015 14:25 — forked from siong1987/mrr.rb
Stripe MRR Calculation
require 'stripe'
require 'ostruct'
# modified from: https://gist.github.com/jacobpatton/a68d228bf2414852d862
#
# puts Stripe::Mrr.new(api_key: 'api_key').mrr
#
module Stripe
class Mrr
attr_reader :api_key
@b264
b264 / capybara.md
Last active August 29, 2015 14:10 — forked from steveclarke/capybara.md

Capybara

save_and_open_page

Matchers

have_button(locator)