Skip to content

Instantly share code, notes, and snippets.

@axgle
Created November 5, 2009 03:50
Show Gist options
  • Save axgle/226690 to your computer and use it in GitHub Desktop.
Save axgle/226690 to your computer and use it in GitHub Desktop.
require 'erb'
d=DATA.read
d=ERB.new(d).result
`echo "#{d}"|dot -Tjpg -o a.jpg`
exec "firefox a.jpg"
__END__
digraph G{
a->{<%=(1..10).to_a.join(';')%>}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment