I hereby claim:
- I am diskshima on github.
- I am diskshima (https://keybase.io/diskshima) on keybase.
- I have a public key ASBYl3gH3ynqwnM2aGYVpo0BcHhv6A7JTpVtYJj3zgMUNgo
To claim this, I am signing this object:
# A Ruby implementation to confirm when assignments happen. | |
# Inspired by https://ericlippert.com/2019/01/18/indexer-error-cases/ | |
# Prints | |
# A | |
# B | |
# C | |
# catch | |
def a |
source 'https://rubygems.org' | |
gem 'mackerel-client' |
I hereby claim:
To claim this, I am signing this object:
#! /usr/bin/env ruby | |
str = 'I, [2014-09-04T05:17:29.385333 #19220] INFO -- : Parameters: {"users"=>{"profile_url"=>"https://example.com/users/123", "status"=>"1"}}' | |
matches = /[DIWE], \[([0-9\-T:\.]+).* Parameters: ({.*)/.match(str) | |
matches.to_a.each_with_index do |m, index| | |
puts "#{index}: #{m}" | |
end |
#!/usr/bin/env ruby | |
# | |
# oauth2_tester.rb | |
# Copyright (C) 2015 Daisuke Shimamoto <shimamoto@lifeistech.co.jp> | |
# | |
# Distributed under terms of the MIT license. | |
# | |
# Usage: ruby oauth2_tester.rb AUTHORIZATION_URL APP_ID APP_SECRET SCOPE |
#! /usr/bin/env ruby | |
# Please run the below command first. | |
# gem install git uri-ssh_git launchy | |
require 'git' | |
require 'uri/ssh_git' | |
require 'launchy' | |
dir = '.' |
#! /usr/bin/env bash | |
for f in $(find . -type f -iname '*.css.scss'); do | |
renamed=$(echo "${f}" | sed 's/.css.scss$/.scss/g') | |
cmd="git mv ${f} ${renamed}" | |
echo $cmd | |
eval $cmd | |
done |
<% unless @member.name.present? %> | |
名無しの権兵衛 | |
<% end %> |
class Person < ActiveRecord::Base | |
validates :name, presence: true | |
end |
@font-face { | |
font-family: "88ttf"; | |
src: url("/fonts/88ttf.ttf") format('truetype'); | |
} |