Skip to content

Instantly share code, notes, and snippets.

View yukiyan's full-sized avatar
🏠
Working from home

Yuki Wakayama yukiyan

🏠
Working from home
View GitHub Profile
@yukiyan
yukiyan / spec_helper.rb
Created June 7, 2016 06:40
CircleCIからカバレッジ見れる
if ENV['CIRCLE_ARTIFACTS']
require 'simplecov'
dir = File.join('..', '..', '..', ENV['CIRCLE_ARTIFACTS'], 'coverage')
SimpleCov.coverage_dir(dir)
end
@yukiyan
yukiyan / gist:63f9603abe6caf4aa969
Created June 7, 2015 16:54
コミットハッシュからPR番号割り出すやつ
git log e015e8e..master --merges --ancestry-path --reverse --oneline | head -n1 | awk '{print substr($5, 2)}'
{
"Seti_ClosedFolder_same": true,
"Seti_SB_bright": true,
"Seti_SB_med": true,
"Seti_no_bar_undertabs": true,
"Seti_sb_small_padding": true,
"Seti_sb_tree_small": true,
"Seti_tabs_small": true,
"auto_indent": true,
"color_scheme": "Packages/Seti_UI/Scheme/Seti_monokai.tmTheme",
@yukiyan
yukiyan / gist:683995a5f2f0a93bd590
Created March 17, 2015 16:27
splitして各々にヘッダ付ける
class StringEditor
def concat_header(file)
open(file, 'r+') do |f|
f.puts "header\n#{open(file).read}"
end
end
def split
system "split -a 1 -l 1 hoge.txt hogehoge_"
@yukiyan
yukiyan / gist:47c185edccc9d85abb70
Created February 23, 2015 15:36
Hashのkey(String)を全てシンボルにする。
options = options.inject({}) { |accu, (key, value)| accu[key.to_sym] = value; accu }