Skip to content

Instantly share code, notes, and snippets.

View happysahota's full-sized avatar

Harpreet Singh Sahota happysahota

View GitHub Profile
@happysahota
happysahota / pubSubDemo.js
Last active June 12, 2017 13:57
This is Demo for the PubSub design pattern
/*PubSub Pattern*/
var pubSub = {
events: [],
on: function(eventName, fn) {
this.events[eventName] = this.events[eventName] || [];
this.events[eventName].push(fn);
},
@happysahota
happysahota / README-Template.md
Created August 2, 2017 08:31 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites