Skip to content

Instantly share code, notes, and snippets.

--- 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"
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
# -*- 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
use strict;
use Template::Semantic;
print Template::Semantic->process(
\*DATA, {
"ul.outer li" => [
{
span => "1",
"ul.inner li" => [
{ li => "1-1" },
<!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>
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;
#!/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");
#!/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)
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";
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% --