Skip to content

Instantly share code, notes, and snippets.

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

huangwenwei.com wenweih

🏠
Working from home
View GitHub Profile
@wenweih
wenweih / gist:b124236cb9bc876c67837e703fbc14ac
Created September 18, 2016 16:28 — forked from alex-zige/gist:5795358
Rails Rspec API Testing Notes

Rails Rspec APIs Testing Notes

Folders Structure

  spec
  |--- apis #do not put into controllers folder. 
        |--- your_api_test_spec.rb  
  |--- controllers
  |--- models
  |--- factories
 |--- views
@wenweih
wenweih / vim_cheatsheet.md
Created November 23, 2016 02:38 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@wenweih
wenweih / Gemfile
Created December 29, 2016 16:50 — forked from adamrobbie/Gemfile
Rails Endless pagination
gem 'will_paginate'