Skip to content

Instantly share code, notes, and snippets.

View nathos's full-sized avatar

Nathan Henderson nathos

View GitHub Profile
@nathos
nathos / pirate-ize_automator.rb
Created September 19, 2009 08:44
Pirate-ize for Mac OS X Automator
input = STDIN.read
input.strip!
require 'rubygems'
if !Gem.available?("mdeering-booty")
puts "Please install the 'Booty' gem: http://github.com/mdeering/booty"
else
require 'booty'
puts Booty.call(input)
@nathos
nathos / wiki_trail.rb
Created March 16, 2009 03:16 — forked from TwP/wiki_trail.rb
WikiTrail - wiki-style backlinks for Webby
module WikiTrail
def wiki_trail( *args )
links = args.flatten.map do |name|
"> #{link_to_page_unless_current name} <"
end
links.join(" ")
end
end