Skip to content

Instantly share code, notes, and snippets.

Bethany bsoule

View GitHub Profile
@bsoule
bsoule / dabblet.css
Created Dec 22, 2014 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
body {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
margin: 0px;
text-align: center;
}
@bsoule
bsoule / spec_helper.rb
Created Nov 18, 2014
Today Stripe dropped support for SSLv3 protocol. We're using an older version of PhantomJS in our specs, which defaults to sslv3, so this broke a swath of the Beeminder test suite. Here's the fix for anyone else with PhantomJS tests that wants to force not-sslv3.
View spec_helper.rb
require 'capybara/poltergeist'
Capybara.register_driver :poltergeist do |app|
Capybara::Poltergeist::Driver.new(app, :inspector => true, :js_errors => true, :phantomjs_options => ['--ssl-protocol=tlsv1'])
end
@bsoule
bsoule / gmail_count.rb
Created Sep 22, 2012
Count the number of read messages in your gmail inbox
View gmail_count.rb
require 'util'
require 'lib/imap_patch'
## gmail zero game (from Gemfile)
# gem 'gmail', '= 0.4.0',
# :git => 'https://github.com/nu7hatch/gmail.git',
# :branch => 'master'
class GmailCount
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.