Skip to content

Instantly share code, notes, and snippets.

@alexdunae
Last active August 29, 2015 14:00
Show Gist options
  • Save alexdunae/11055219 to your computer and use it in GitHub Desktop.
Save alexdunae/11055219 to your computer and use it in GitHub Desktop.
require 'irb/completion'
begin
require 'rubygems'
require 'brice/init'
rescue LoadError => e
$stderr.puts e
end
begin
require 'awesome_print'
rescue LoadError => e
$stderr.puts e
end
def copy(str)
IO.popen('pbcopy', 'w') { |f| f << str.to_s }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment