Skip to content

Instantly share code, notes, and snippets.

View cschiewek's full-sized avatar
⚙️

Curtis Schiewek cschiewek

⚙️
  • Frame.io @ Adobe
  • Sudbury, ON, Canada
  • 00:18 (UTC -04:00)
View GitHub Profile
list = for item <- items do
{item.id, item.name}
end

Keybase proof

I hereby claim:

  • I am cschiewek on github.
  • I am cschiewek (https://keybase.io/cschiewek) on keybase.
  • I have a public key whose fingerprint is AD1C F15E F339 C41A 81CF A4CE F108 2AB5 4C6A 7E52

To claim this, I am signing this object:

#app/inputs/collection_check_boxes_input.rb
class CollectionCheckBoxesInput < SimpleForm::Inputs::CollectionCheckBoxesInput
def item_wrapper_class
"checkbox-inline"
end
end
@cschiewek
cschiewek / gist:5406033
Last active December 16, 2015 08:29
Send a handled error to newrelic in ruby
begin
raise 'example'
rescue Exception => exception
::NewRelic::Agent.notice_error(exception) if defined?(::NewRelic)
end
@cschiewek
cschiewek / gist:2828493
Created May 29, 2012 13:52 — forked from kaznum/gist:2435951
ruby-debug with ruby-1.9.3-p194 for servers
# Install with:
# bash < <(curl -L https://raw.github.com/gist/2435951)
#
# Reference: http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug
echo "Installing ruby-debug with ruby-1.9.3-p194 ..."
curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem