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
use JQueryPresentationHelper; | |
my $title = title q{$.presentation}; | |
top qq{ | |
# $title | |
Takeshi Takatsudo (<mailto:takazudo\@gmail.com>) | |
}; |
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 Plack::App::Directory::ImageView; | |
use parent qw(Plack::App::Directory); | |
sub serve_path { | |
my($self, $env, $dir, $fullpath) = @_; | |
my $ret = $self->SUPER::serve_path($env, $dir, $fullpath); | |
return $ret if (ref($ret->[2]) eq 'Plack::Util::IOWithPath'); | |
$ret->[2][0] =~ s!</head>!<script type="text/javascript" src="http://swfobject.googlecode.com/svn/trunk/swfobject/swfobject.js"></script>\n</head>!g; | |
$ret->[2][0] =~ s!<a href='(.+?)'>(.+?)\.(gif|png|jpe?g)</a>!<a href='\1'><img src='\1' /></a><br />\2\.\3!g; |
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 Plack::App::Directory::ImageView; | |
use parent qw(Plack::App::Directory); | |
sub serve_path { | |
my($self, $env, $dir, $fullpath) = @_; | |
my $ret = $self->SUPER::serve_path($env, $dir, $fullpath); | |
return $ret if (ref($ret->[2]) eq 'Plack::Util::IOWithPath'); | |
$ret->[2][0] =~ s/<a href='(.+?)'>(.+?)\.(gif|png|jpe?g)<\/a>/<a href='\1'><img src='\1' \/><\/a><br \/>\2\.\3/g; | |
$ret; |
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
use Parallel::Benchmark; | |
use Test::mysqld; | |
my $mysqld = Test::mysqld->new( | |
my_cnf => { | |
'skip-networking' => '', | |
}, | |
); | |
{ |
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
use Parallel::Benchmark; | |
use Test::mysqld; | |
my $mysqld = Test::mysqld->new( | |
my_cnf => { | |
'skip-networking' => '', | |
}, | |
); | |
{ |
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
use Parallel::Benchmark; | |
use Test::mysqld; | |
my $mysqld = Test::mysqld->new( | |
my_cnf => { | |
'skip-networking' => '', | |
}, | |
); | |
{ |
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
use Parallel::Benchmark; | |
use Test::mysqld; | |
my $mysqld = Test::mysqld->new( | |
my_cnf => { | |
'skip-networking' => '', | |
}, | |
); | |
{ |
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
use Parallel::Benchmark; | |
use Test::mysqld; | |
my $mysqld = Test::mysqld->new( | |
my_cnf => { | |
'skip-networking' => '', | |
}, | |
); | |
{ |
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
use Parallel::Benchmark; | |
use Test::mysqld; | |
my $mysqld = Test::mysqld->new( | |
my_cnf => { | |
'skip-networking' => '', | |
}, | |
); | |
{ |
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 Scope; | |
sub new { | |
my $class = shift; | |
my $hash = { v => 0 }; | |
$hash->{r} = "$hash"; | |
return bless $hash, $class; | |
} | |
sub txn { |