This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this is a Ruby comment | |
def graph_node(n, parent=nil, depth=0) | |
#print n, " " | |
gn = @g.add_node(n.object_id.to_s, :label=>n.to_graphviz, :shape=>"Mrecord") | |
if parent | |
e = @g.add_edge(parent, gn) | |
end | |
if n == @current_pos_node | |
gn[:color] = "brown3" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
files=`find -type d -name "bundler-cache" -o -name "node_modules" -o -name "isopacks" -o -name ".npm" -o -name "plugin-cache" -o -name "build" -o -name ".build*"` | |
echo | |
#echo "========== bundler-cache $(#files[*])" | |
for file in $files | |
do | |
if [ -e $file ]; then # because if we delete "node_modules", subdirectories "node_modules" could have already been deleted | |
echo `du -sh --total "$file"` | |
sudo rm -drf "$file" | |
fi |