This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'active_support/time' | |
require 'active_support/testing/time_helpers' | |
require 'rspec/expectations' | |
include ActiveSupport::Testing::TimeHelpers | |
include RSpec::Matchers | |
class Person < Struct.new(:birthday) | |
def age | |
Date.today.year - birthday.year | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pics at https://twitter.com/josh_cheek/status/681062928980783104 | |
# Gif at https://twitter.com/josh_cheek/status/686465757476065280 | |
# Based on https://www.youtube.com/watch?v=QAja2jp1VjE | |
require 'chunky_png' | |
require 'matrix' | |
include Math | |
def white | |
ChunkyPNG::Color.rgb(255, 255, 255) | |
end |
OlderNewer