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
--- browser.xul.orig 2009-05-08 23:29:02.000000000 +0900 | |
+++ browser.xul 2009-05-10 11:05:38.000000000 +0900 | |
@@ -1,26 +1,26 @@ | |
<?xml version="1.0"?> | |
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> | |
<popup id="contentAreaContextMenu"> | |
+ <menuseparator insertafter="placesMenu" /> | |
<menuitem | |
class="menuitem-iconic" | |
- insertbefore="context-bookmarklink" |
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
CPAN: Archive::Tar loaded ok (v1.52) | |
PerlIO-Util-0.70/ | |
PerlIO-Util-0.70/Changes | |
PerlIO-Util-0.70/dir.c | |
PerlIO-Util-0.70/example/ | |
PerlIO-Util-0.70/example/dir_bench.pl | |
PerlIO-Util-0.70/example/iocapture.pl | |
PerlIO-Util-0.70/example/ioname.pl | |
PerlIO-Util-0.70/example/piotac.pl | |
PerlIO-Util-0.70/example/piotee.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
# -*- mode:perl -*- | |
use strict; | |
use warnings; | |
use feature qw/ :5.10 /; | |
use File::Temp qw/ tempfile /; | |
use IO::File::WithPath; | |
my ($client) = grep { -e $_ } qw( | |
/usr/bin/emacsclient.emacs-snapshot | |
/Applications/Emacs.app/Contents/MacOS/bin/emacsclient |
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 Template::Semantic; | |
print Template::Semantic->process( | |
\*DATA, { | |
"ul.outer li" => [ | |
{ | |
span => "1", | |
"ul.inner li" => [ | |
{ li => "1-1" }, |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<ul class="outer"> | |
<li> | |
<span>1</span> | |
<ul class="inner"> | |
<li>1-1</li> | |
<li>1-2</li> | |
</ul> | |
</li> |
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 Imager; | |
my $img = Imager->new; | |
$img->read( file => shift ); | |
do { | |
my $transparent = Imager::Color->new( 0, 0, 0, 0 ); | |
my $img2 = $img->copy; |
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 CGI; | |
use CGI::Carp qw/ fatalsToBrowser /; | |
use Digest::MD5 qw( md5_hex ); | |
my $q = CGI->new(); | |
my $imagedata = $q->param("imagedata"); |
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 LWP::UserAgent; | |
use HTTP::Request::Common; | |
my $host = "fujiwara-mac"; | |
my $port = 9292; | |
my $file = shift; | |
my $in; | |
my $content = (open $in, "<", $file) |
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
package SwitchByLang; | |
use strict; | |
use nginx; | |
sub handler { | |
my $r = shift; | |
my $uri = $r->uri; | |
if ($uri =~ qr{^/(en|ja)/}) { | |
return DECLINED; | |
} | |
my $lang = "en"; |
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
5.010001 darwin at bench.pl line 22. | |
Template: 2.22 | |
Text::MicroTemplate: 0.11 | |
Text::ClearSilver: 0.10.5.1 | |
(warning: too few iterations for a reliable count) | |
Rate tt mt cs | |
tt 1481/s -- -57% -95% | |
mt 3472/s 134% -- -88% | |
cs 29412/s 1885% 747% -- |