Skip to content

Instantly share code, notes, and snippets.

View marcreynolds's full-sized avatar

Marc Reynolds marcreynolds

  • Doximity
  • New Mexico
View GitHub Profile
require "benchmark/ips"
puts "when the key is in the hash"
Benchmark.ips do |x|
h = { foo: :bar }
x.report("dig with single parameter") do
h.dig(:foo)
end

Keybase proof

I hereby claim:

  • I am marcreynolds on github.
  • I am marcreynolds (https://keybase.io/marcreynolds) on keybase.
  • I have a public key ASD1hyiOM0M6KqkjD5tqpTUiL44ukZjuZmey6b6X7iykNwo

To claim this, I am signing this object:

@marcreynolds
marcreynolds / google-meet-spacebar.user.js
Last active June 15, 2020 07:32
Google Meet/Hangouts Push-to-Talk
// ==UserScript==
// @name Google Push to Talk
// @namespace http://tampermonkey.net/
// @version 0.5
// @description Hold down the spacebar to unmute the mic in Google Meet; tapping the spacebar toggles mute.
// @author Marc Reynolds (github.com/marcreynolds)
// @match https://meet.google.com/*
// @updateUrl https://gist.github.com/marcreynolds/6c629eaf8bfe87986ebe90ebea7daf85/raw/google-meet-spacebar.user.js
// @grant none
// ==/UserScript==