I hereby claim:
- I am dhoffmann on github.
- I am dhoffmann (https://keybase.io/dhoffmann) on keybase.
- I have a public key ASDuvR-hij3I1F_N6HmeXUmkt0uscpxfpfyr9-AKP24ZmQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# DROPKICK.SH | |
# | |
# Detect and Disconnect the DropCam and Withings devices some people are using to | |
# spy on guests in their home, especially in AirBnB rentals. Based on Glasshole.sh: | |
# | |
# http://julianoliver.com/output/log_2014-05-30_20-52 | |
# | |
# This script was named by Adam Harvey (http://ahprojects.com), who also |
function isOnScreen(el) { | |
var obj = el.get(0); | |
var bounds = obj.getBoundingClientRect(); | |
var half = bounds.height / 2; | |
var onScreen = ((bounds.top + half) < window.innerHeight) && ((bounds.bottom + half) > 0); | |
return onScreen; | |
} |
require "spec_helper" | |
describe "field_error_proc" do | |
describe "without an existing class" do | |
let(:view_proc) { ActionView::Base.field_error_proc } | |
let(:instance) { double } | |
let(:html_string) { '<label for="name">Name</label>' } | |
it "sets error class" do |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
# ALIASES FTW | |
alias ll='ls -Fla' | |
alias b='bundle' | |
alias be='bundle exec' | |
alias bed='bundle exec deploy' | |
alias bedable='bundle exec deployable' | |
alias silent-deploy='cap staging2 deploy:upload FILES=app/path/to/file/you/keep/changing.rb' | |
alias bepr='bundle exec pull-request' |