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
import time | |
def stopwatch(self, wrapped): | |
def _wrapper(*args, **kwargs): | |
tic = time.time() | |
result = wrapped(*args, **kwargs) | |
toc = time.time() | |
doc = str(wrapped.__doc__).split("\n")[0] | |
print("[%s] %f[sec]" % (doc, toc - tic)) | |
return result |
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 utf8; | |
use feature qw/say/; | |
use Imager; | |
use Imager::AnimeFace; | |
use Getopt::Long; |
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 python | |
# -*- coding: utf-8 -*- | |
import sys | |
import os | |
import time | |
import subprocess | |
from threading import Thread | |
import signal |
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 strict; | |
use warnings; | |
use utf8; | |
use 5.014; | |
{ | |
package MyApp::Dispatcher; | |
sub name { return 'Hogehoge' } | |
} |
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 strict; | |
use warnings; | |
use utf8; | |
use 5.014; | |
{ | |
package MyApp::Dispatcher; | |
sub name { return 'Hogehoge' } | |
} |
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 strict; | |
use warnings; | |
use utf8; | |
use 5.014; | |
{ | |
package MyApp::Dispatcher; | |
sub name { return 'Hogehoge' } | |
} |
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
--- .maltsconfig 2012-10-22 04:46:19.000000000 +0900 | |
+++ .maltsconfig.new 2012-10-22 05:14:17.000000000 +0900 | |
@@ -13,5 +13,10 @@ | |
module_camelized_path => qr/root/, | |
module_camelized_name => qr/root/, | |
}, | |
+ database => { | |
+ files => [ | |
+ 'lib/Natchan/DB.pm' |
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 utf8; | |
use DDP; | |
my @keys = qw/zero one two three four five six seven eight nine ten/; | |
my %numeral_to_number = (); | |
for my $value (0..10) { |
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 utf8; | |
use DDP; | |
use 5.012; | |
use Test::More; | |
my @numerals = qw/zero one two three four five six seven eight nine ten/; |
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 utf8; | |
use DDP; | |
use 5.012; | |
use Benchmark qw/:all/; | |
my @numerals = qw/zero one two three four five six seven eight nine ten/; |
OlderNewer