Skip to content

Instantly share code, notes, and snippets.

View aereal's full-sized avatar

aereal aereal

View GitHub Profile
Process: NvimServer [69569]
Path: /Applications/VimR.app/Contents/Frameworks/NvimView.framework/Versions/A/PlugIns/NvimServer
Identifier: NvimServer
Version: 0
Code Type: X86-64 (Native)
Parent Process: VimR [69568]
Responsible: NvimServer [69569]
User ID: 501
Date/Time: 2018-01-19 12:53:57.386 +0900
#!/usr/bin/env ruby
HOUR = 1
def jikyu(work_time_per_month: , nenshu: )
gekkyu = nenshu / 12.0
gekkyu / work_time_per_month
end
[
@aereal
aereal / Gemfile
Last active December 8, 2017 13:59
validates against environment variables
source 'https://rubygems.org'
gem 'json-schema'
#!/usr/bin/env perl
use strict;
use warnings;
use DateTime::Format::W3CDTF;
use DateTime;
use Test::More;
{
my $days = get_days(
#!/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;
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);
@aereal
aereal / gist:2802359
Created May 27, 2012 06:03
Guardfile for Rails with Factory Girl
guard 'rspec', version: 2, cli: File.read('.rspec').each_line.map(&:strip).join(' '), all_after_pass: false, all_on_start: false do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
# Rails example
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
✘╹◡╹✘ < /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;
@aereal
aereal / inc.t
Created December 21, 2016 07:24
use strict;
use warnings;
use Test::More;
ok not exists $INC{'URI.pm'};
(sub {
local %INC = %INC;
require URI;
ok exists $INC{'URI.pm'};
{
"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,