git.shiar.nl
/
minime.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
6599b3b743dc20f8bb50a63dd4f9b7671ec8d31f
[minime.git]
/
termimg
1
#!/bin/sh
2
convert -compress none -resize 66x23 - pgm:- |
3
perl -e '
4
<> eq "P2\n" or die "ascii pgm input required\n";
5
<>; <>; # ignore depth, dimensions
6
7
my @ch = split //, " .oO@";
8
while (<>) {
9
print $ch[ $_ * @ch >> 8 ] for /\d+/g;
10
print $/;
11
}
12
'