Skip to content

Instantly share code, notes, and snippets.

Enjoy life; Build relationships; Be grateful; Work less; Love more; Exercise

Gerry Shaw gshaw

Enjoy life; Build relationships; Be grateful; Work less; Love more; Exercise
View GitHub Profile
View CME Training


2020 (40 CME)

  • 2020-12-31 (20 CME) Search and Rescue - Weekly Training
  • 2021-03-11 (1 CME) Asthma 10-8
  • 2021-03-11 (1.5 CME) Heat Related Injuries
  • 2021-03-11 (1.5 CME) Inhalation Emergencies
  • 2021-03-11 (2 CME) Renal Failure and Dialysis Patients
  • 2021-03-12 (2 CME) Hazard Communications
gshaw / Gemfile
Created Jun 24, 2020 — forked from dhh/Gemfile
HEY's Gemfile
View Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
View upgrade_gems.rb
#!/env/bin ruby
require "fileutils"
def process(dir)
puts "Analyzing #{dir}"
puts "Finding outdated gems"
View console.txt
% php -f test.php
[{"id":"1ZMXWC94HM","status":"delivered","batch_id":null,"to_name":"Catalyst USA","to_address_1":"28522 KNICKERBOCKER RD","to_address_2":null,"to_city":"BAY VILLAGE","to_province_code":"OH","to_postal_code":"44140-1927","to_country_code":"US","to_phone":null,"return_name":"Catalyst Channel Marketing","return_address_1":"701 WHIRLPOOL ST","return_address_2":null,"return_city":"NIAGARA FALLS","return_province_code":"NY","return_postal_code":"14301-1037","return_country_code":"US","return_phone":"1-844-842-8777","package_contents":"documents","description":"Sales Report","value":"1.00","value_currency":"USD","order_id":null,"order_store":null,"package_type":"thick_envelope","size_unit":null,"size_x":0.0,"size_y":0.0,"size_z":0.0,"weight_unit":"lb","weight":1.0,"is_insured":true,"is_signature_requested":false,"postage_type":"usps_priority","carrier":"usps","carrier_tracking_code":"9405536895357014971047","tracking_url":"","ship_date":"2018-04-25"
gshaw / carrier_wave.rb
Created Aug 14, 2014
CarrierWave initialization file for testing with fixtures and support S3 in staging and production.
View carrier_wave.rb
# NullStorage provider for CarrierWave for use in tests. Doesn't actually
# upload or store files but allows test to pass as if files were stored and
# the use of fixtures.
class NullStorage
attr_reader :uploader
def initialize(uploader)
@uploader = uploader