This file contains 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
options = options.inject({}) { |accu, (key, value)| accu[key.to_sym] = value; accu } |
This file contains 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
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_" |
This file contains 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
{ | |
"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", |
This file contains 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
git log e015e8e..master --merges --ancestry-path --reverse --oneline | head -n1 | awk '{print substr($5, 2)}' |
This file contains 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
if ENV['CIRCLE_ARTIFACTS'] | |
require 'simplecov' | |
dir = File.join('..', '..', '..', ENV['CIRCLE_ARTIFACTS'], 'coverage') | |
SimpleCov.coverage_dir(dir) | |
end |
This file contains 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
FROM fluent/fluentd:v0.12.26-onbuild | |
USER root | |
RUN apk --update add build-base ruby-dev | |
USER fluent | |
RUN gem install \ | |
fluent-plugin-bigquery \ | |
fluent-plugin-typecast \ | |
fluent-plugin-parser &&\ | |
fluent-gem install bigdecimal |
This file contains 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
tap 'caskroom/cask' | |
tap 'homebrew/bundle' | |
tap 'homebrew/completions' | |
tap 'homebrew/core' | |
brew 'direnv' | |
brew 'git' | |
brew 'ghq' | |
brew 'go' | |
brew 'heroku' | |
brew 'hub' |
This file contains 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
for_each>: | |
year: ["2015", "2016"] | |
month: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"] | |
_do: | |
+monthly_repeat: | |
_export: | |
year_month: "${year}-${month}" | |
start_of_month: "${moment(year_month).startOf('month').format('YYYY-MM-DD')}" | |
end_of_month: "${moment(start_of_month).endOf('month').format('DD')}" |
This file contains 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
cp ~/Library/Preferences/org.pqrs.Karabiner.plist ~/Dropbox/Apps/karabiner | |
cp ~/Library/Application\ Support/Karabiner/private.xml ~/Dropbox/Apps/karabiner | |
ln -sf ~/Dropbox/Apps/karabiner/org.pqrs.Karabiner.plist ~/Library/Preferences/org.pqrs.Karabiner.plist | |
ln -sf ~/Dropbox/Apps/karabiner/private.xml ~/Library/Application\ Support/Karabiner/private.xml |
OlderNewer