Skip to content

Instantly share code, notes, and snippets.

@adrusi
Created May 15, 2011 19:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save adrusi/973473 to your computer and use it in GitHub Desktop.
Save adrusi/973473 to your computer and use it in GitHub Desktop.
TextMate command to open a markdown document in hashify.me
#!/usr/bin/env ruby
require "base64"
data = STDIN.read
%x[open http://hashify.me/#{Base64.encode64(data)}]
=begin
+-[ COMMAND SETTINGS ]------------+
| Save: nothing |
| Input: entire document |
| Output: discard |
+---------------------------------+
=end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment