Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block saurabh-sp-tripathi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
saurabh-sp-tripathi /
Last active Jul 2, 2018
quick reference for a quick start of nodejs project
  • npm init
  • npm install mocha --save-dev
  • mpm install chai --save-dev
  • npm install should --save-dev

If web

  • npm install request --save-dev
var should = require("should");
var request = require("request");
var expect = require("chai").expect;
saurabh-sp-tripathi /
Last active Aug 2, 2018
Intellij shortcut keys
  • Search action/command : ctrl + shift + a
  • switch vim : alt + T => ctrl + alt + v
  • methods : ctrl+F12
  • goto line : ctrl + g
  • select and paste recent clipboard: ctrl+shift+v
  • back and forth curson ctrl + alt + <- or ->

Fresh set up

  • file{begin,end}  : `gg, G`
  •  line{begin, end} : `0, $`
  •               Undo: `u`
  •  Select,copy,paste: `Vyp` (weep) 
  •  Select,cut,paste: `Vdp` (we dip)
  •  show line number : `:set number` ; hid : `set nonumber`
  • move cursor previous pos: ``

#File explorer

  • :set wildmenu >> :set path+=** >> :find <tab>
saurabh-sp-tripathi /
Last active Jul 24, 2018
This gist contains list of reference of git commands or workflows
  • list branches (local i.e tracking and remote): git branch -vv
  • checkout: git checkout --track origin/abranch
  • Create remote branch
    //Create a new branch:
    git checkout -b feature_branch_name
    //Edit, add and commit your files. Push your branch to the remote repository:
    git push -u origin feature_branch_name
You can’t perform that action at this time.