Skip to content

Instantly share code, notes, and snippets.

@photonxp
Created April 27, 2014 05:57
Show Gist options
  • Save photonxp/ff8946acf122584466d8 to your computer and use it in GitHub Desktop.
Save photonxp/ff8946acf122584466d8 to your computer and use it in GitHub Desktop.
cool stuff
get python dependency graph
install snake food
sudo apt-get install snakefood
http://furius.ca/snakefood/
install graphviz
sudo apt-get install graphviz
http://www.graphviz.org/
sfood dependency_test/ | sfood-graph | dot -Tps
install ps2pdf and ghostscript
sudo apt-get install ghostscript
man ps2pdf
http://www.pc-freak.net/blog/how-to-convert-postscript-files-to-pdf-on-debian-gnu-linux-with-ps2pdf/
sfood dependency_test/ | sfood-graph | dot -Tps | ps2pdf - t2.pdf
get gnome pdf reader:
sudo apt-get install evince
http://wiki.debian.org/PDF
get xargf script:
http://furius.ca/pubcode/pub/conf/bin/xargf
http://furius.ca/pubcode/
sfood dependency_test/ | sfood-graph | dot -Tps | ps2pdf - | xargf evince
a.py from b import b1
b.py from a import a1
c.py from a import a1
d.py from b import b1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment