Skip to content

Instantly share code, notes, and snippets.

View angelagabereau's full-sized avatar

Angela Gabereau angelagabereau

View GitHub Profile
@tiagoamaro
tiagoamaro / hash_with_indifferent_access_benchmark.rb
Last active September 2, 2024 15:36
ActiveSupport's HashWithIndifferentAccess access benchmark vs common Ruby Hash
#####################
# Ruby Version: 2.1.6
#####################
# gem 'activesupport', '=3.2.22'
# gem 'activesupport', '=4.2.5'
# gem 'activesupport', '=7.2.1'
require 'active_support/all'
require 'benchmark/ips'
@simlun
simlun / raspi-monitor
Last active June 9, 2024 15:15
Script to enable and disable the HDMI signal of the Raspberry PI
#!/bin/bash -e
# /usr/local/sbin/raspi-monitor
# Script to enable and disable the HDMI signal of the Raspberry PI
# Inspiration: http://www.raspberrypi.org/forums/viewtopic.php?t=16472&p=176258
CMD="$1"
function on {
/opt/vc/bin/tvservice --preferred
@staltz
staltz / introrx.md
Last active September 20, 2024 10:10
The introduction to Reactive Programming you've been missing