Skip to content

Instantly share code, notes, and snippets.

@bds
Created June 14, 2012 21:54
Show Gist options
  • Save bds/2933211 to your computer and use it in GitHub Desktop.
Save bds/2933211 to your computer and use it in GitHub Desktop.
Ruby copy string to OSX clipboard
IO.popen('pbcopy', 'r+') { |clipboard| clipboard.puts markdown.to_html }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment