Skip to content

Instantly share code, notes, and snippets.

@mdsaleemj
mdsaleemj / app.js
Created March 12, 2017 12:55 — forked from kadishmal/app.js
Simple Node.js server which responds in chunked transfer encoding
var http = require('http');
http.createServer(function (request, response) {
response.setHeader('Content-Type', 'text/html; charset=UTF-8');
response.setHeader('Transfer-Encoding', 'chunked');
var html =
'<!DOCTYPE html>' +
'<html lang="en">' +
'<head>' +
@mdsaleemj
mdsaleemj / 01-intro.md
Created November 4, 2015 09:03 — forked from dwayne/01-intro.md
My notes from the book "ng-book: The Complete Book on AngularJS by Ari Lerner".

Introduction

Author: Ari Lerner.

AngularJS offers a single framework that can be used to build dynamic, client-centric applications. It provides:

  • Module support
  • DOM manipulation
  • Animations
  • Templating
@mdsaleemj
mdsaleemj / prototypes.js
Last active September 11, 2015 13:47 — forked from torgeir/prototypes.js
javascript's __proto__ and prototype explained
/**
* __proto__ and prototype
* - the __proto__ property the instance's 'parent' up the prototype chain
* - the prototype property refers what new instances of the type will have their __proto__ set to, i.e. what will be the new instance's 'parent' up the prototype chain
*/
/* Given */
function Object () {}
Object.prototype = {
__proto__: null
@mdsaleemj
mdsaleemj / modules.md
Last active August 29, 2015 14:27 — forked from aubinlrx/modules.md
Node modules