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
Time::Strptime: 0.01_1 | |
Time::Moment: 0.24 | |
POSIX::strptime: 0.10 | |
Time::Piece: 1.30 | |
DateTime: 1.20 | |
DateTime::TimeZone: 1.92 | |
DateTime::Locale: 0.46 |
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 5.14.0; | |
use DBIx::Sunny; | |
my $dbh = DBIx::Sunny->connect("dbi:mysql:database=test", "root", ""); | |
my ($database) = map s/^database=//r, grep /^database=/, DBIx::Sunny->parse_dsn($dbh->connect_info->[0]); | |
say $database |
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
$("#hoge").change(function() { | |
foo($(this).attr("data-i")); | |
}); |
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
bash-4.1# curl -L http://cpanmin.us | |
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> | |
<html><head> | |
<title>400 Bad Request</title> | |
</head><body> | |
<h1>Bad Request</h1> | |
<p>Your browser sent a request that this server could not understand.<br /> | |
</p> | |
</body></html> | |
bash-4.1# curl -vvvv -L http://cpanmin.us |
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
sub existsr (\%@) {## no critic | |
my $h = shift; | |
for my $k (@_) { | |
return !1 unless exists $h->{$k}; | |
$h = $h->{$k}; | |
} | |
return !!1; | |
} | |
my %h = ( |
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/env perl | |
use strict; | |
use warnings; | |
use utf8; | |
use 5.018002; | |
use autodie; | |
use Benchmark qw(:all); | |
use Router::Boom; | |
use Router::Boom::Method; | |
use Router::Simple; |
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 msgict"; | |
var Q = require('q'); | |
function task1 (msg) { | |
var d = Q.defer(); | |
setTimeout(function () { | |
d.resolve(msg); | |
}, 1000); | |
console.log("task1: " + msg); | |
return d.promise; |
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
[32795] START at lib/Workman/Server.pm line 35. | |
[32821] START ADMIN WORKER at lib/Workman/Server.pm line 85. | |
[32822] START JOB WORKER at lib/Workman/Server.pm line 63. | |
[32823] START JOB WORKER at lib/Workman/Server.pm line 63. | |
[32824] START JOB WORKER at lib/Workman/Server.pm line 63. | |
[32825] START JOB WORKER at lib/Workman/Server.pm line 63. | |
[32826] START JOB WORKER at lib/Workman/Server.pm line 63. | |
[32827] START JOB WORKER at lib/Workman/Server.pm line 63. | |
[32828] START JOB WORKER at lib/Workman/Server.pm line 63. | |
[32829] START JOB WORKER at lib/Workman/Server.pm line 63. |
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
#include <stdio.h> | |
#include <stdlib.h> // size_t | |
struct IntSlice { | |
int *ptr; | |
size_t len; | |
size_t cap; | |
}; | |
struct IntSlice newIntSlice (int *ptr, size_t start, size_t end, size_t cap) { |
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
class Object | |
alias_method :not, :! | |
end | |
p true.not.not.not |
OlderNewer