Skip to content

Instantly share code, notes, and snippets.

View mattwynne's full-sized avatar

Matt Wynne mattwynne

View GitHub Profile
@mattwynne
mattwynne / -
Created February 14, 2014 13:15
bower_components/jquery
bower_components/jquery/.bower.json
bower_components/jquery/dist
bower_components/jquery/dist/jquery.js
bower_components/jquery/dist/jquery.min.js
bower_components/jquery/dist/jquery.min.map
bower_components/jquery/MIT-LICENSE.txt
bower_components/jquery/src
bower_components/jquery/src/ajax
bower_components/jquery/src/ajax/jsonp.js
@mattwynne
mattwynne / -
Created January 28, 2014 13:53
<?xml version="1.0" encoding="UTF-8"?>
<lists>
<list
path="https://svn.itclinical.com/svn/tools/trunk/iwrs/trunk">
@mattwynne
mattwynne / -
Created January 14, 2014 11:47
def expect(subject)
Expectation.new
end
class Expectation
def to(matcher)
end
end
def receive(message, &block)
@mattwynne
mattwynne / -
Created January 11, 2014 23:15
/Users/matt/.rubies/ruby-2.0.0-p353/bin/ruby -r./spec/coverage -S rspec ./spec/cucumber/core/ast/background_spec.rb ./spec/cucumber/core/ast/data_table_spec.rb ./spec/cucumber/core/ast/doc_string_spec.rb ./spec/cucumber/core/ast/examples_table_spec.rb ./spec/cucumber/core/ast/location_spec.rb ./spec/cucumber/core/ast/outline_step_spec.rb ./spec/cucumber/core/ast/step_spec.rb ./spec/cucumber/core/compiler_spec.rb ./spec/cucumber/core/gherkin/parser_spec.rb ./spec/cucumber/core/gherkin/writer_spec.rb ./spec/cucumber/core/test/case_spec.rb ./spec/cucumber/core/test/hook_compiler_spec.rb ./spec/cucumber/core/test/mapper_spec.rb ./spec/cucumber/core/test/mapping_spec.rb ./spec/cucumber/core/test/result_spec.rb ./spec/cucumber/core/test/runner_spec.rb ./spec/cucumber/core/test/step_spec.rb ./spec/cucumber/core/test/timer_spec.rb ./spec/cucumber/core_spec.rb ./spec/cucumber/initializer_spec.rb --color --warnings
.....................................................................F.........F......................F.F
@mattwynne
mattwynne / -
Created January 11, 2014 17:49
/opt/rubies/ruby-2.0.0-p0/bin/ruby -r./spec/coverage -S rspec ./spec/cucumber/core/ast/background_spec.rb ./spec/cucumber/core/ast/data_table_spec.rb ./spec/cucumber/core/ast/doc_string_spec.rb ./spec/cucumber/core/ast/examples_table_spec.rb ./spec/cucumber/core/ast/location_spec.rb ./spec/cucumber/core/ast/outline_step_spec.rb ./spec/cucumber/core/ast/step_spec.rb ./spec/cucumber/core/compiler_spec.rb ./spec/cucumber/core/gherkin/parser_spec.rb ./spec/cucumber/core/gherkin/writer_spec.rb ./spec/cucumber/core/test/case_spec.rb ./spec/cucumber/core/test/hook_compiler_spec.rb ./spec/cucumber/core/test/mapper_spec.rb ./spec/cucumber/core/test/mapping_spec.rb ./spec/cucumber/core/test/result_spec.rb ./spec/cucumber/core/test/runner_spec.rb ./spec/cucumber/core/test/step_spec.rb ./spec/cucumber/core/test/timer_spec.rb ./spec/cucumber/core_spec.rb ./spec/cucumber/initializer_spec.rb --color --warnings
..........................................................................................................FF.FFFFFF
@mattwynne
mattwynne / -
Created December 31, 2013 11:26
--- /etc/cups/cupsd.conf.default 2012-08-20 15:08:25.000000000 +0100
+++ /etc/cups/cupsd.conf 2013-12-25 12:58:12.345942926 +0000
@@ -1,5 +1,4 @@
#
-# "$Id: cupsd.conf.in 9407 2010-12-09 21:24:51Z mike $"
#
# Sample configuration file for the CUPS scheduler. See "man cupsd.conf" for a
# complete description of this file.
@@ -16,9 +15,7 @@
# Administrator user group...
@mattwynne
mattwynne / gist:7821742
Last active December 30, 2015 11:19
Error from selenium-webdriver 2.38.0 running on Windows 7 against Firefox 25.0.1 Happens at the end of a scenario when Capybara tries to reset the browser. Hangs for a long time then we get this error.
Net::ReadTimeout (Net::ReadTimeout)
C:/Ruby200/lib/ruby/2.0.0/net/protocol.rb:158:in `rescue in rbuf_fill'
C:/Ruby200/lib/ruby/2.0.0/net/protocol.rb:152:in `rbuf_fill'
C:/Ruby200/lib/ruby/2.0.0/net/protocol.rb:134:in `readuntil'
C:/Ruby200/lib/ruby/2.0.0/net/protocol.rb:144:in `readline'
C:/Ruby200/lib/ruby/2.0.0/net/http/response.rb:39:in `read_status_line'
C:/Ruby200/lib/ruby/2.0.0/net/http/response.rb:28:in `read_new'
C:/Ruby200/lib/ruby/2.0.0/net/http.rb:1406:in `block in transport_request'
C:/Ruby200/lib/ruby/2.0.0/net/http.rb:1403:in `catch'
C:/Ruby200/lib/ruby/2.0.0/net/http.rb:1403:in `transport_request'
@mattwynne
mattwynne / -
Created November 13, 2013 22:06
➤ cucumber -p wip features//docs/cli/execute_with_tag_filter.feature:68
Using the wip profile...
Feature: Tag logic
In order to conveniently run subsets of features
As a Cuker
I want to select features using logical AND/OR of tags
Background: # features//docs/cli/execute_with_tag_filter.feature:6
Given a file named "features/test.feature" with: # aruba-0.5.3/lib/aruba/cucumber.rb:19
"""
@mattwynne
mattwynne / composer.rb
Last active December 24, 2015 14:19 — forked from dchelimsky/composer.rb
require 'wrong/adapters/rspec'
require 'facets/proc/compose'
# (apply comp fns) in clojure
module Composer
def compose(lambdas)
lambdas.reduce(:*) || lambda {|x| x}
end
Commit = Struct.new(:repo, :sha, :comment, :stats) do
def refactoring?(previous_commit)
return :spec_files_unchanged if no_changes_to_specs
return :comment if refactoring_comment
return false if result.nil? || result.failed > 0 || result.total == 0
return :spec_results_unchanged if result == previous_commit.result
return false
end
def no_changes_to_specs