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
| #!/bin/zsh | |
| rm -rf cover_db | |
| make realclean | |
| perl Makefile.PL | |
| HARNESS_PERL_SWITCHES=-MDevel::Cover=+ignore,inc,-coverage,statement,branch,condition,path,subroutine make test | |
| cover | |
| open cover_db/coverage.html |
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
| #!/bin/sh | |
| rm -rf nytprof | |
| rm nytprof.out | |
| perl -d:NYTProf -S ./tools/profile.pl . | |
| nytprofhtml | |
| open ./nytprof/index.html |
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/perl | |
| use strict; | |
| use Web::Scraper; | |
| use URI; | |
| my $uri = URI->new("http://dann.g.hatena.ne.jp/keywordlist"); | |
| my $scraper = scraper { | |
| process '//div[@class="refererlist"]/ul/li/a', 'keywords[]' => { | |
| name => 'TEXT', | |
| url => '@href', |
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 perl | |
| use strict; | |
| use warnings; | |
| use WebService::Simple; | |
| use Digest::MD5 qw(md5_hex); | |
| use Path::Class qw(dir); | |
| use Perl6::Say; | |
| use HTTP::Async; | |
| use HTTP::Request; | |
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
| package WWW::HatenaKeyword; | |
| use MooseX::Method; | |
| use Moose; | |
| use WWW::HatenaLogin; | |
| use Web::Scraper; | |
| use Data::Dumper; | |
| use JSON::Syck 'Load'; | |
| our $VERSION = '0.01'; | |
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
| my @results = (); | |
| while ( my ($response, $id) = $async->wait_for_next_response ) { | |
| warn "Getting $id"; | |
| push @results, +{ id => $id, content => $self->parser->parse( $response->content) }; | |
| } | |
| my @sorted_results = sort { $a->{"id"} cmp $b->{"id"} } @results; |
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 perl | |
| use strict; | |
| use warnings; | |
| use Mac::iTunes; | |
| use File::Find::Rule; | |
| use Path::Class; | |
| use Cwd; | |
| use Perl6::Say; | |
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 perl | |
| use strict; | |
| use warnings; | |
| use Web::Scraper; | |
| use HTTP::Async; | |
| use HTTP::Request; | |
| use Path::Class; | |
| use LWP::UserAgent; | |
| use Perl6::Say; |
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 perl | |
| use strict; | |
| use warnings; | |
| use Web::Scraper; | |
| use HTTP::Async; | |
| use HTTP::Request; | |
| use Path::Class; | |
| use LWP::UserAgent; | |
| use Perl6::Say; |
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
| makeSearchCommand({ | |
| name: "cpan", | |
| url: "http://search.cpan.org/search?q={QUERY}&mode=module", | |
| icon: "http://search.cpan.org/favicon.icon", | |
| description: "Searches <a href=\"http://search.cpan.org/\">CPAN</a> for your words.", | |
| preview: function(pblock, directObject){ | |
| var searchTerm = directObject.text; | |
| var pTemplate = "Searches <b>${query}</b> from <a href=\"http://search.cpan.org/\">CPAN</a>."; | |
| var pData = {query: searchTerm}; | |
| pblock.innerHTML = CmdUtils.renderTemplate(pTemplate, pData); |
OlderNewer