Skip to content

Instantly share code, notes, and snippets.

View ahorner's full-sized avatar

Andrew Horner ahorner

View GitHub Profile
@ahorner
ahorner / keybase.md
Last active November 30, 2015 17:12

Keybase proof

I hereby claim:

  • I am ahorner on github.
  • I am ahorner (https://keybase.io/ahorner) on keybase.
  • I have a public key whose fingerprint is CEB1 4533 B5A2 A0D4 3E34 4E96 752D 0B35 F83B 9C62

To claim this, I am signing this object:

@ahorner
ahorner / icheck.js.coffee
Last active December 29, 2015 01:49
A partial replacement for iCheck.js
$ = jQuery
$.fn.extend
iCheck: (options = {})->
settings =
checkboxClass: "icheck-checkbox"
radioClass: "icheck-radio"
checkedClass: "checked"
uncheckedClass: "unchecked"
disabledClass: "disabled"
require 'cape'
Cape do
mirror_rake_tasks :daemons do |recipes|
recipes.options[:roles] = :app
recipes.env['RAILS_ENV'] = lambda{ rails_env }
end
end
@ahorner
ahorner / deploy.rb
Last active December 15, 2015 15:38
RAKE = '/usr/bin/env ' +
'`' +
'/usr/bin/env bundle check >/dev/null 2>&1; ' +
'case $? in ' +
# Exit code 0: bundle is defined and installed
# Exit code 1: bundle is defined but not installed
'0|1 ) ' +
'echo bundle exec ' +
';; ' +
'esac' +