Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save citizen428/109576 to your computer and use it in GitHub Desktop.
Save citizen428/109576 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
src = STDIN.read.gsub('<', '&lt;').gsub('"', '\"')
`echo "[code ruby]\n#{src}\n[/code]\n" | pbcopy `
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment