Skip to content

Instantly share code, notes, and snippets.

View Valarissa's full-sized avatar

Lauren Voswinkel Valarissa

  • Fastly
  • Sausalito, CA, USA
View GitHub Profile
@Valarissa
Valarissa / pay_history.md
Created April 29, 2015 15:20
Pay Discussion History

...

Labor Unions & Worker's Rights

During the 1890's we saw the rise of a period of time known as the Progressive Era. There was a social consciousness surrounding everything from environmental concerns to worker's rights, from women's suffrage, to the rise of communism and socialism. People were concerned about the well-being of society as a whole, with the understanding that if we protect and help the least among us, the rest will benefit as well. This wasn't without horrifying racism and sexism which were still very much alive and well, which I could write an entirely different article on that hypocrisy, but not right now. Muckrakers, who were writers and journalists working undercover, typically, wrote scathing treatises

@Valarissa
Valarissa / stub_fail.rb
Created November 21, 2012 16:20
How to make your stubs bleed over into other files...
## BAD
shared_examples_for 'NetSuite_BaseRequest' do
before(:each) do
@obj.stub(:endpoint => "http://test.test.com")
@obj.stub(:send_request) do |arg| # We're not testing requests being sent...
arg # Return the request that was to be sent.
end
end
@Valarissa
Valarissa / gist:3782511
Created September 25, 2012 15:12 — forked from binarycleric/gist:3782510
Git branch in prompt
function parse_git_branch {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "("${ref#refs/heads/}") "
}
green='\[\e[32;1m\]'
blue='\[\e[34;1m\]'
red='\[\e[31;1m\]'
nocolour='\[\e[0m\]'
user="\u"
# 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")