Skip to content

Instantly share code, notes, and snippets.

@sam1vp
sam1vp / index.html
Last active December 10, 2015 22:08
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<style>
#chart svg {
height: 400px;
}
@sam1vp
sam1vp / rspec-syntax-cheat-sheet.rb
Created December 21, 2011 19:35 — forked from dnagir/rspec-syntax-cheat-sheet.rb
RSpec 2 syntax cheat sheet by example
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below)
module Player
describe MovieList, "with optional description" do
it "is pending example, so that you can write ones quickly"
it "is already working example that we want to suspend from failing temporarily" do
pending("working on another feature that temporarily breaks this one")