Skip to content

Instantly share code, notes, and snippets.

View jGRUBBS's full-sized avatar

Justin Grubbs jGRUBBS

  • King & Partners
  • St. Simons Island, GA
View GitHub Profile
@jGRUBBS
jGRUBBS / README.md
Last active September 4, 2017 05:05 — forked from bullshit/README.md
LIRC patch instruction/how-to for USB Infrared Toy from Dangerous Prototypes

LIRC patch instruction/how-to for USB Infrared Toy from Dangerous Prototypes

This is a instruction to patch the usb infrared toy driver into lirc sources. Most of the work is done by Peter Kooiman

Requirements

@jGRUBBS
jGRUBBS / intersect_with_matcher.rb
Created May 6, 2016 20:18 — forked from jherdman/intersect_with_matcher.rb
An RSpec matcher to check for intersection between two enumerables
Spec::Matchers.define :intersect_with do |challenge_range|
# Check to see if any elements exist in the intersection
match do |current_range|
[current_range.to_a & challenge_range.to_a].flatten.any?
end
failure_message_for_should do |current_range|
"#{current_range.inspect} doesn't overlap with #{challenge_range.inspect}"
end