Skip to content

Instantly share code, notes, and snippets.

@tie-rack
Created June 8, 2010 15:30
Show Gist options
  • Save tie-rack/430195 to your computer and use it in GitHub Desktop.
Save tie-rack/430195 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'yaml'
begin
YAML.load(STDIN)
puts '<h1 style="color: green;">GOOD</h1>'
rescue Exception => e
puts '<h1 style="color: red;">BAD</h1>'
puts e.message
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment