Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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