Re:PG's essays, ranked "Google-style"
by RiderOfGiraffes on Thursday December 16, 2010 @12:28PM
(#2012809)
Here's a stripped down version of the "LayoutGraph" script. In essence, layout the graph 100 times and score each attempt according to the size of the biggest box. Save the attempt in a file with a name that has the score in it, then pick off the best. That way I can compare attempts with each other while it runs.
[ Parent
| on HN ]
A small tip for the for loops:
for n in {9..0}; do echo $n ; done
or for n in $(seq 9 -1 0); do echo $n ; done
Re:PG's essays, ranked "Google-style"
by RiderOfGiraffes on Friday December 17, 2010 @08:29AM
(#2016116)
Cool - thanks. I did actually know that, but I never got around to changing it to the more efficient version, and it's nice to be reminded.