Skip to content

Instantly share code, notes, and snippets.

View jfirebaugh's full-sized avatar

John Firebaugh jfirebaugh

View GitHub Profile
My traceroute [v0.85]
Johns-MacBook-Air.local (0.0.0.0) Fri Feb 14 13:46:24 2014
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. 10.0.1.1 0.0% 142 2.1 3.0 0.9 210.5 17.5
2. mosca-lan207.gw.monkeybrains.net 0.0% 142 5.3 14.2 3.5 204.2 21.0
3. grillo.grillo-mosca-10GB.core.monkeybrains.net 0.7% 142 5.3 7.6 4.1 135.5 12.1
4. kiwi.kiwi-grillo-10GB.core.monkeybrains.net
Feature: NPM notifies me when my dependencies are out of date
In order to avoid accidentally running the tests against out of
date dependencies, npm should notify me when I try to do so.
Scenario:
Given I have a package.json that declares a dependency on foo@1.0
And I have run `npm install` and installed foo@1.0
And my coworker updates package.json to depend on foo@1.1
When I pull that change and run `npm test`
Then I should get an error
@jfirebaugh
jfirebaugh / README.md
Last active August 29, 2015 14:09 — forked from tmcw/README.md

Crashes in Chrome Version 38.0.2125.104

@jfirebaugh
jfirebaugh / index.js
Created November 14, 2014 00:22
Test for Transferable support in Web Workers
if (typeof window !== 'undefined') {
(function() {
var worker = new Worker("index.js"),
buffer = new ArrayBuffer(10);
try {
worker.postMessage({buffer: buffer}, [buffer]);
console.log('postMessage with array transfer', buffer.byteLength);
return;
} catch (e) {
In file included from /Users/john/Development/mapbox-gl-native/src/mbgl/util/worker.cpp:1:
In file included from src/mbgl/util/worker.hpp:5:
In file included from src/mbgl/util/thread.hpp:4:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/future:366:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/system_error:223:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:3476:13: error: no matching function for call to '__invoke'
__invoke(_VSTD::declval<_Fp>(), _VSTD::declval<_Args>()...)
^~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:3484:11: note: in instantiation of template class 'std::__1::__invokable_imp<(lambda at /Users/john/Development/mapbox-gl-native/src/mbgl/util/worker.cpp:38:28),
diff --git a/lib/sequel/plugins/nested_attributes.rb b/lib/sequel/plugins/nested_attributes.rb
index d04176f..b0b3107 100644
--- a/lib/sequel/plugins/nested_attributes.rb
+++ b/lib/sequel/plugins/nested_attributes.rb
@@ -91,6 +91,7 @@ module Sequel
send(reflection[:name]) << obj
after_save_hook{send(reflection.add_method, obj)}
else
+ associations[reflection[:name]] = obj
# Don't need to validate the object twice if :validate association option is not false
undefined method `add_examples' for #<Cucumber::Ast::Scenario:0x8a6465> (NoMethodError)
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/cucumber-0.8.4/bin/../lib/cucumber/parser/gherkin_builder.rb:82:in `examples'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/gherkin-2.1.1-java/lib/gherkin/formatter/filter_formatter.rb:143:in `replay_events!'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/gherkin-2.1.1-java/lib/gherkin/formatter/filter_formatter.rb:142:in `each'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/gherkin-2.1.1-java/lib/gherkin/formatter/filter_formatter.rb:142:in `replay_events!'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/gherkin-2.1.1-java/lib/gherkin/formatter/filter_formatter.rb:131:in `replay!'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/gherkin-2.1.1-java/lib/gherkin/formatter/filter_formatter.rb:40:in `scenario'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/gherkin-2.1.1-java/lib/gherkin/formatter/tag_count_formatter.rb:1
Feature: Invoking steps
Scenario: Invoking steps
When I invoke steps
From 6ff2d333271b104de652603ce8049c80ccb08141 Mon Sep 17 00:00:00 2001
From: John Firebaugh <john_firebaugh@bigfix.com>
Date: Mon, 23 Aug 2010 14:28:16 -0700
Subject: [PATCH] Prefer persisted? to new_record?, so any ActiveModel-compliant object can be used.
---
lib/formtastic.rb | 10 +++++++---
spec/commit_button_spec.rb | 39 ++++++++++++++++++++++++++++++++++++++-
2 files changed, 45 insertions(+), 4 deletions(-)
<html>
<head>
<style>v\:oval { behavior:url(#default#VML); display:inline-block }</style>
<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$(document).submit(function () {});
$('oval').click();
})