Git - Remote branch로 local branch 만들기
git pull git checkout -b remote_branch origin/remote_branch
Subl Terminal Command
title: SublimeText3 - terminal command 맵핑 layout: post comments: true category: [dev, sublimetext] — sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/bin ## El capitan 이상 sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin http://stackoverflow.com/questions/10892368/problems-using-subl-command-in-terminal-command-not-found-no-such-file-or http://stackoverflow.com/questions/32915464/sublime-symlink-disappeared-after-upgrading-to-el-capitan
생각좀 하고 살아라 - 야마다 아키오
뛰어난 아이디어는 지식이나 재능이 아니라 ‘왜?’에서 나온다.
Rspec - partial rendering 테스트 하기
view에서 유저일 때는 광고를 보여주지 않는 부분을 테스트. <%= render partial: "layouts/gdn_main_top" if not logged_in? %> controller.rspec describe 'Visitor access' do describe '#show' do render_views it 'shows gdn ads' do get :show, id: @category expect(response).to render_template(partial: "layouts/_gdn_main_top") end end end describe 'Use access' do before(:each) do log_in_as(create(:user)) end describe '#show' do render_views it 'shows gdn ads' do get :show, id: @category expect(response).not_to render_template(partial: "layouts/_gdn_main_top") end end end controller spec에서는 view를 rendering하지 않는다. render_views 를 통해...
markdown에서 한줄 띄어쓰기
Use two spaces or two backslashes. this is a test for line breaks\\ in a paragraph will produce <p>this is a<br /> test for line breaks<br /> in a paragraph</p> kramdown issue