View check-mesa-diff.pl
This file contains 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/perl | |
use strict; | |
use warnings; | |
use Term::ANSIColor; | |
local $Term::ANSIColor::AUTOLOCAL = 1; | |
my $fname = $ARGV[0]; | |
if(not defined $fname) { |
View bin-to-c.c
This file contains 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
#include <stdio.h> | |
int main(int argc, char **argv) | |
{ | |
FILE *fp; | |
int cur, c, prevc; | |
if(argc < 2) { | |
fprintf(stderr, "You should provide a filename.\n"); | |
return 1; |
View cubemap-dump-in-order.pl
This file contains 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/perl | |
use strict; | |
use warnings; | |
use IPC::System::Simple qw(capture); | |
my %cubefaces = ( | |
astc10_rgba => ["astc10-rgba.cube1", "astc10-rgba.cube2", "astc10-rgba.cube3", "astc10-rgba.cube4", "astc10-rgba.cube5", "astc10-rgba.cube6"], | |
astc10_srgba => ["astc10-srgba.cube1", "astc10-srgba.cube2", "astc10-srgba.cube3", "astc10-srgba.cube4", "astc10-srgba.cube5", "astc10-srgba.cube6"], |
View uncompressed.pl
This file contains 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/perl | |
use strict; | |
use warnings; | |
my $string = "unsigned char pixels[] = {"; | |
my %facecolors = ( | |
a => "255, 0, 0", | |
b => "0, 0, 255", |
View side-by-side-diff.pl
This file contains 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/perl | |
use strict; | |
use warnings; | |
use File::Copy qw(copy); | |
#use X11::Protocol; | |
my $fname = $ARGV[0]; | |
if(not defined $fname) { | |
die "No input\n"; | |
} |
View minandmax.pl
This file contains 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/perl | |
use strict; | |
use warnings; | |
use POSIX; | |
use List::Util qw[min max]; | |
my $fname = $ARGV[0]; | |
if(not defined $fname) { | |
die "You must set the vectors filename.\n"; |
View ext_snippets.pl
This file contains 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/perl | |
use strict; | |
use warnings; | |
use Getopt::Long; | |
my $dir; | |
my $extname; | |
my $help; |
View thumbs.pl
This file contains 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/perl | |
use strict; | |
use File::Path qw(rmtree); | |
use File::Copy; | |
use File::MimeInfo; | |
use Image::Magick; | |
my @files; |
View greeklish.pl
This file contains 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/perl | |
use strict; | |
use Encode; | |
use File::Copy; | |
my $dir; | |
my @files; | |
my $file; | |
my $initfile; |
View toc.pl
This file contains 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/perl | |
use strict; | |
use warnings; | |
use diagnostics; | |
use Getopt::Long; | |
my $dir = ".", my $help; | |
GetOptions("d=s" => \$dir, |
OlderNewer