Skip to content

Instantly share code, notes, and snippets.

bsoule / index.html
Last active Mar 22, 2019
object error event
View index.html
<!DOCTYPE html>
<title>test object svg reload</title>
let beeurl = ""
let noturl = ""
let svgurl = ""
function updateSVG(url) {
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 / 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|, :inspector => true, :js_errors => true, :phantomjs_options => ['--ssl-protocol=tlsv1'])
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 => '',
# :branch => 'master'
class GmailCount