Skip to content

Instantly share code, notes, and snippets.

View req.t
#!/usr/bin/env perl
use strict;
use warnings;
use HTTP::Message::PSGI qw(req_to_psgi);
use HTTP::Request;
use Plack::Request;
use Test::More;
use URI;
View return-value.t
use strict;
use warnings;
use utf8;
BEGIN {
local $Return::Value::NO_CLUCK = 1;
require Return::Value;
}
use Test::Deep qw(cmp_deeply isa bool str methods);
View gist:8e961897b90f1def56b831750b1e8e14
✘╹◡╹✘ < /usr/libexec/path_helper
PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/aereal/bin:/Users/aereal/devel/bin:/Users/aereal/.mysqlenv/bin:/Users/aereal/.mysqlenv/shims:/Users/aereal/.pyenv/shims:/Users/aereal/.rbenv/shims:/Users/aereal/.plenv/shims:/Users/aereal/.ndenv/bin:/Users/aereal/.ndenv/shims:/usr/local/opt/coreutils/libexec/gnubin"; export PATH;
View inc.t
use strict;
use warnings;
use Test::More;
ok not exists $INC{'URI.pm'};
(sub {
local %INC = %INC;
require URI;
ok exists $INC{'URI.pm'};
View .textlintrc
{
"filters": {},
"rules": {
"ja-no-abusage": true,
"ja-no-redundant-expression": true,
"max-kanji-continuous-len": true,
"no-double-negative-ja": true,
"no-doubled-conjunctive-particle-ga": true,
"no-doubled-joshi": true,
"no-dropping-the-ra": true,
View nishino_kana.md
  • キミ (14)
  • ・ (12)
  • がんばれる (12)
  • あなた (9)
  • モード (7)
  • ふたり (7)
  • たび (7)
  • 前 (6)
  • 重ねる (6)
  • 今日 (6)
View hi.md

早見沙織さん ♨️

View format_scala_case_class.rb
#!/usr/bin/env ruby
class Machine
INDENT = ' '
def initialize
@indent_level = 0
end
def incr_indent(n = 1)
@aereal
aereal / uri-regexp
Created Jun 1, 2016
ruby -ruri -e 'puts URI.regexp'
View uri-regexp
(?x-mi:
([a-zA-Z][\-+.a-zA-Z\d]*): (?# 1: scheme)
(?:
((?:[\-_.!~*'()a-zA-Z\d;?:@&=+$,]|%[a-fA-F\d]{2})(?:[\-_.!~*'()a-zA-Z\d;\/?:@&=+$,\[\]]|%[a-fA-F\d]{2})*) (?# 2: opaque)
|
(?:(?:
\/\/(?:
(?:(?:((?:[\-_.!~*'()a-zA-Z\d;:&=+$,]|%[a-fA-F\d]{2})*)@)? (?# 3: userinfo)
(?:((?:(?:[a-zA-Z0-9\-.]|%\h\h)+|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|\[(?:(?:[a-fA-F\d]{1,4}:)*(?:[a-fA-F\d]{1,4}|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})|(?:(?:[a-fA-F\d]{1,4}:)*[a-fA-F\d]{1,4})?::(?:(?:[a-fA-F\d]{1,4}:)*(?:[a-fA-F\d]{1,4}|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}))?)\]))(?::(\d*))?))? (?# 4: host, 5: port)
|