Skip to content

Instantly share code, notes, and snippets.

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

Siddharth Roychoudhury siddrc

🏠
Working from home
View GitHub Profile
@siddrc
siddrc / mapexample.js
Created September 1, 2018 19:19
map-example
const map = {
"TCS" : "Tata Consultancy Services",
"SUN" : "Stanford University Networks"
}
function getCompanyName(abbr){
return map[abbr]
}
@siddrc
siddrc / PromisesAll.js
Created July 6, 2018 17:42
Promises All
const promise1 = Promise.resolve("This");
const promise2 = Promise.resolve("is");
const promise3 = Promise.resolve("my");
const promise4 = Promise.resolve("first");
const promise5 = Promise.resolve("day");
const promise6 = Promise.resolve("JavaScript");
Promise.all([promise1, promise2, promise3,promise4,promise5,promise6]).then(function(values) {
console.log(values.join(" "));
@siddrc
siddrc / MongoDB.MD
Last active June 10, 2018 07:22
An Intro to MongoDB

mongodb

Official Website

http://www.mongodb.com


Mongodb is a OODBMS, ie a object oriented database management system, where in data is stored in terms of objects instead of conventional rows. Mongodb is also being called as a No-SQL database because we do not use any SQL syntax Official Documentation is available at
@siddrc
siddrc / ExpressJS.MD
Last active June 10, 2018 05:57
Notes for ExpressJS

expressjs

What is Express JS? As per the official website, http://expressjs.com/ expressjs-2

ExpressJs is basically a light-weight web framework, allowing to build server side web applications, it has full capabilities to develop applications that can behave as a server side application or just use to make REST-API.

To begin with we start with

@siddrc
siddrc / Functions.MD
Last active May 18, 2018 21:03
What is a function

functions

A function in simple terms takes an input, does something and gives a output. In simple terms there is always some sort of action inside a function.

A function may or may not take arguements.

  1. If it takes one argument it's a monoadic function
  2. If it takes then it is called a two diadic function
  3. More than 2 then it is a polyadic function.
@siddrc
siddrc / TopicsWithNotesLink.md
Last active July 23, 2019 19:53
Upcoming topics

json

Introduction

JSON, stands for Javascript Object Notation. The way we define JSON is as follows

const jsonObject = {
     "key1" : function value1() {},
     "key2" : "value2",
 "key3" : true,
@siddrc
siddrc / var-let-const.MD
Last active May 13, 2018 07:06
ES6 using var-let-const

Introduction

es6

In learning ES6 the first we learn is to declaring variables. var-let-const-2

ES6 dictates the use of let and const in declaring variables. Out of all the developer videos and articles 3 simple rules emerge in using var-let-const

  1. var is totally discouraged in ES6 specification.