Skip to content

Instantly share code, notes, and snippets.

@mdsaleemj
mdsaleemj / modules.md
Last active August 29, 2015 14:27 — forked from aubinlrx/modules.md
Node modules
@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 / Install_Oracle_JDK_in_Ubuntu_12.04
Created October 14, 2015 13:29
Installing JDK in Ubuntu 12.04
Hi,
I wanted to install the Oracle JDK in my ubuntu which already contains OpenJDK. Oracle doesn't official supports any repoistory
for ubuntu.
There are two possible ways now
1. Download and install JDK/JRE from Oracle manually.
2. Use PPA(Personal Package Archives) - This is not official and maintained by community and people say it as insecure.
So , for time being i chose to install via PPA
@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

#####Messaging System or Queues#####

This concept is especially useful in web applications where it's impossible to handle a complex task during a short HTTP request window. Reference about different queueing tools : http://queues.io/


#####Key Value Database####


##Running ES6 javascript code in NodeJS envrionment.

  1. Try to install babel-cli

npm install --save-dev babel-cli npm install --save-dev babel-preset-es2015

@mdsaleemj
mdsaleemj / sorting-algorithms.md
Last active December 27, 2016 10:57
sorting-algorithms
SELECTION SORT - BASIC SORTING (WITHOUT OPTIMIZATION)

for(i=0;i<array.length;i++) {
    //assume i to be  index value of smallest value
    var minIndex = i;
    //loop through the rest of element and find the index of smallest element
    for(j=i+1;j<array.length;j++){
      if(array[j] < array[minIndex]){
 minIndex = j;
@mdsaleemj
mdsaleemj / Software-Development-Principles.md
Last active February 25, 2017 17:55
Software Development Priniciples

The purpose of this gist is to know more about the software developing principles in general. This intention is to explore and know more about software development from industry leaders like Martin Flowers, Robrt Martin(aka UncleBob ) and many .

In addition to that , learning and practising programming and desing skill with emphasis on necessary programming styles like OOP and FP needs to be encouraged.
This guide is started as rough draft and will serve to contain information about resources , leaders to follow, topics under software development.

##Software Development

@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 / front-end-development.md
Last active October 26, 2017 07:03
Front End development

Hi, This is my place to gather any ideas/concepts/resources related to frontend development. Right now , front dev is vast and there lot of things for different types of front end projects .

BEST Resources is : FrontEnd Master - gitbook (also pdf available in drive). This book gives nice overview of overall front-end Engineering and describes lot of different disciplines with in front end dev.

#####NOTE##### This guide needs to constantly maintained and refined and grouped in different sections for better understanding. Also, refer to git where lot of resources available for front dev and related curricula.