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
Observable.just("hisaichi5518@gmail.com").flatMap(new Function<String, ObservableSource<String>>() { | |
@Override | |
public ObservableSource<String> apply(String s) throws Exception { | |
// return Observable.concat(validateEmail(s), validateNonNull(s)); | |
return Observable.zip(validateEmail(s), validateNonNull(s), new BiFunction<String, String, String>() { | |
@Override | |
public String apply(String s, String s2) throws Exception { |
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; | |
sub hoge { | |
my $test = {}; | |
return { | |
hoge => fuga() # ここに,がない | |
%{$test}, | |
} | |
} |
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 Time::Moment; | |
use DateTime; | |
use DateTime::Tiny; | |
use Time::Piece (); | |
use Time::Piece::Plus (); | |
use Benchmark qw(:all); | |
use DateTime::TimeZone; | |
my $time_zone = DateTime::TimeZone->new(name => "Asia/Tokyo"); |
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
# -*- encoding: utf-8 -*- | |
require 'cinch' | |
require 'tumblr_client' | |
bot = Cinch::Bot.new do | |
configure do |c| | |
c.server = "irc.server" | |
c.port = 5000 | |
c.password = 'secret' | |
c.channels = ["#tumbirc"] |
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 Data::Dumper; | |
use Data::Dummy; | |
my %hash = ( | |
id => dummy_int([1..100]), | |
name => dummy_str(["あ".."ん"]), | |
name_long => dummy_str(["あ".."ん"], size => 50), | |
); | |
my @array = ( | |
dummy_int([1..100]), |
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 utf8; | |
use 5.10.1; | |
package Parent { | |
use Mouse; | |
no Mouse; |
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 utf8; | |
use 5.10.1; | |
package Parent { | |
use Mouse; | |
no Mouse; |
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 utf8; | |
use Plack::Util; | |
use Encode; | |
use AnyEvent; | |
use AnyEvent::HTTP (); | |
$AnyEvent::HTTP::MAX_PER_HOST = 20; |
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
Review review = Yummy.create(Review.class); | |
review.getComment(); //=> "lkjashldkjaspdiqwekjnd091824lknf09234kjhsf" | |
review.getId(); //=> 2 |
NewerOlder