Skip to content

Instantly share code, notes, and snippets.

@masa-nakano
masa-nakano / file0.txt
Last active July 18, 2019 00:32
rubocopのConventionからexpand_path、__FILE__、__dir__を理解する ref: https://qiita.com/msy-naka/items/43c70e470a63f82b53a7
$ bundle exec rubocop
〜省略〜
spec/rails_helper.rb:4:14: C: Style/ExpandPathArguments: Use expand_path('../config/environment', __dir__) instead of expand_path('../../config/environment', __FILE__).
require File.expand_path('../../config/environment', __FILE__)
^^^^^^^^^^^
〜省略〜
@masa-nakano
masa-nakano / my_tips.md
Last active June 6, 2017 08:33
my tips

Tips

Git

コミットをまとめる

ex)コミット:A1(コメント1) - A2(コメント2)

1.リベース(rebase -i)する