Skip to content

Instantly share code, notes, and snippets.

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

Kushagra Agarwal kushsolitary

🏠
Working from home
View GitHub Profile
@kushsolitary
kushsolitary / inkpen.md
Created June 18, 2013 16:20
Created using Inkpen - http://inkpen.in
@kushsolitary
kushsolitary / inkpen.md
Created June 18, 2013 16:18
Created using Inkpen - http://inkpen.in
@kushsolitary
kushsolitary / inkpen.md
Created June 18, 2013 16:18
Created using Inkpen - http://inkpen.in

Implementing Github OAuth in NodeJS / ExpressJS Application

znxbcmbxcmz

Few months ago, Rishabh posted about implementing Twitter OAuth in your NodeJS / ExpressJS app using the Node-oauth library. However, for implementing Github OAuth, you wont need any extra library to make it work. Although, you can use one (more about it later) to make your work easy. Please note that you can use the techniques described here in any app because the method of implementation is same. So lets get started.

Add your application to Github

@kushsolitary
kushsolitary / inkpen.md
Created June 2, 2013 15:14
Created using Inkpen - http://inkpen.in

Hello, world.

@kushsolitary
kushsolitary / inkpen.md
Created June 2, 2013 12:56
Created using Inkpen - http://inkpen.in

print lively

lively = [x for x in print_deck if PRINT_BOOL == True]

class LiveStrong:

def __init__(self, class_var):
    self.data = []
    self.object = {}
@kushsolitary
kushsolitary / inkpen.md
Created June 2, 2013 08:21
Created using Inkpen - http://inkpen.in

Keyboard Shorcuts

Here are some keyboard shortcuts thatll make your work easy (You can replace Ctrl by Cmd in the shortcuts if you are on OS X):

  • Ctrl+S to save/update.
  • Ctrl+M to preview (and again to hide it).r
  • Alt+O to open the sidebar.
  • Alt+D to delete the current write-up.
  • Alt+E to edit the current write-up (if you are on the view page).
@kushsolitary
kushsolitary / inkpen.md
Created June 2, 2013 08:21
Created using Inkpen - http://inkpen.in

Keyboard Shorcuts

Here are some keyboard shortcuts thatll make your work easy (You can replace Ctrl by Cmd in the shortcuts if you are on OS X):

  • Ctrl+S to save/update.
  • Ctrl+M to preview (and again to hide it).r
  • Alt+O to open the sidebar.
  • Alt+D to delete the current write-up.
  • Alt+E to edit the current write-up (if you are on the view page).
@kushsolitary
kushsolitary / inkpen.md
Created June 2, 2013 08:12
Created using Inkpen - http://inkpen.in

Keyboard Shorcuts

Here are some keyboard shortcuts thatll make your work easy (You can replace Ctrl by Cmd in the shortcuts if you are on OS X):

  • Ctrl+S to save/update.
  • Ctrl+M to preview (and again to hide it).r
  • Alt+O to open the sidebar.
  • Alt+D to delete the current write-up.
  • Alt+E to edit the current write-up (if you are on the view page).
@kushsolitary
kushsolitary / inkpen.md
Created June 2, 2013 08:02
Created using Inkpen - http://inkpen.in

Keyboard Shorcuts

Here are some keyboard shortcuts thatll make your work easy (You can replace Ctrl by Cmd in the shortcuts if you are on OS X):

  • Ctrl+S to save/update.
  • Ctrl+M to preview (and again to hide it).r
  • Alt+O to open the sidebar.
  • Alt+D to delete the current write-up.
  • Alt+E to edit the current write-up (if you are on the view page).
@kushsolitary
kushsolitary / inkpen.md
Created June 2, 2013 08:02
Created using Inkpen - http://inkpen.in

Keyboard Shorcuts

Here are some keyboard shortcuts thatll make your work easy (You can replace Ctrl by Cmd in the shortcuts if you are on OS X):

  • Ctrl+S to save/update.
  • Ctrl+M to preview (and again to hide it).r
  • Alt+O to open the sidebar.
  • Alt+D to delete the current write-up.
  • Alt+E to edit the current write-up (if you are on the view page).