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
bootstrap-tooltip.js | |
bootstrap-popover.js | |
bootstrap-alert.js | |
bootstrap-button.js | |
bootstrap-carousel.js | |
bootstrap-collapse.js | |
bootstrap-dropdown.js | |
bootstrap-modal.js | |
bootstrap-scrollspy.js | |
bootstrap-tab.js |
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/env perl | |
use strict; | |
use warnings; | |
use 5.010; | |
use Mojo::DOM; | |
use HTML::TreeBuilder; | |
my $content = <<'EOF'; | |
<html> | |
<body> |
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/env perl | |
use strict; | |
use warnings; | |
use HTML::TreeBuilder; | |
use Mojo::DOM; | |
use Benchmark qw(:hireswallclock cmpthese); | |
use Template; |
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 -w | |
use strict; | |
use warnings; | |
use feature 'say'; | |
use Data::Dump; | |
my %total_bytes; | |
while (<>) { | |
my ($source,$destination,$bytes) = split; |
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 | |
# Usage: upgrade-cpan.pl 5.14.0 | sort -u | cpanm | |
use strict; | |
use File::Find::Rule; | |
use JSON; | |
my $old = shift; | |
my @files = File::Find::Rule->file->name('install.json')->in("$ENV{HOME}/perl5/perlbrew/perls/perl-$old/lib/site_perl/$old"); | |
for my $file (@files) { |
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
-- CREATE STANDARD TABLES FOR LawDB.db | |
CREATE TABLE Law ( | |
id integer primary key autoincrement, | |
content text not null, | |
lastdate date not null, | |
presc text | |
); | |
CREATE TABLE LawVersion ( | |
lawid integer references Law(id), |
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
################ schema.sql #################### | |
# CREATE TABLE Law ( | |
# id integer primary key, | |
# title text not null, | |
# lastdate date not null, | |
# auth text | |
# ); | |
# CREATE TABLE LawVersion ( | |
# lawid integer references Law(id), | |
# numid text primary key not null, |
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
use strict; | |
use warnings; | |
use File::Slurp; | |
use Image::WordCloud; | |
for my $file (<perl*.pod>) { | |
my $text = `pod2text $file`; | |
my $wc = Image::WordCloud->new(); | |
$wc->words($text); | |
my $gd = $wc->cloud(); | |
$file =~ s/od$/ng/; |