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[];
}

Keybase proof

I hereby claim:

  • I am b264 on github.
  • I am b264 (https://keybase.io/b264) on keybase.
  • I have a public key whose fingerprint is C5D1 8378 FA64 2C9A 4A7D A405 891B E1F0 BED2 762A

To claim this, I am signing this object:

@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)