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 Benchmark qw/timethese cmpthese/; | |
| use DateTime; | |
| use DateTime::TimeZone; | |
| use Time::Piece (); | |
| use Time::Piece::Plus (); | |
| my $tz = DateTime::TimeZone->new(name => 'Asia/Tokyo'); |
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
| escape ^t^t | |
| startup_message off | |
| vbell off | |
| msgminwait 0 | |
| autodetach on | |
| defscrollback 10000 | |
| defencoding utf8 | |
| cjkwidth on | |
| term xterm-256color |
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
| package MyApp::DB; | |
| use parent 'Teng'; | |
| ... | |
| sub handle_error { | |
| my $self = shift; | |
| my ($stmt, $bind, $reason) = @_; | |
| $bind = [map {ref $_ eq 'ARRAY' ? $_->[0] : $_} @$bind]; |
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
| using UnityEditor; | |
| using UnityEngine; | |
| using System.Collections; | |
| using System.IO; | |
| /// <summary> | |
| /// 新規フォルダ作成時に.gitkeepを自動作成 | |
| /// </summary> | |
| public class GitkeepMaker : AssetPostprocessor | |
| { |
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
| using UnityEngine; | |
| using UnityEditor; | |
| using System.Collections; | |
| public class BuildBatch : MonoBehaviour { | |
| // build iOS app | |
| private static void BuildiOS(){ | |
| Debug.Log("/////////// build start ///////////"); | |
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
| package MyWAF::Request; | |
| use strict; | |
| use warnings; | |
| use parent 'Plack::Request'; | |
| use Encode; | |
| use Hash::MultiValue; | |
| use URL::Encode; | |
| sub uri { |
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
| #/bin/sh | |
| NCPU=`getconf _NPROCESSORS_ONLN` | |
| WORKERS=$(expr $NCPU \* 5) | |
| exec plackup -E production -s Starlet --max-workers=$WORKERS |
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
| package MyApp::Validator; | |
| use 5.016; | |
| use warnings; | |
| use utf8; | |
| use parent 'Data::Validator'; | |
| use Try::Tiny; | |
| sub import { | |
| my $class = shift; |
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 feature 'say'; | |
| use AE; | |
| use AnyEvent::IRC::Server; | |
| use AnyEvent::IRC::Util; | |
| use Getopt::Long; | |
| use Yancha::Client; | |
| use LWP::UserAgent; | |
| use AnyEvent::IRC::Client; |