Skip to content

Instantly share code, notes, and snippets.

View git-santosh's full-sized avatar
🎯
Focusing

santosh git-santosh

🎯
Focusing
View GitHub Profile
@git-santosh
git-santosh / 0.md
Created March 15, 2019 11:06 — forked from max-mapper/0.md
JS hoisting by example

JavaScript function hoisting by example

Below are many examples of function hoisting behavior in JavaScript. Ones marked as works successfuly print 'hi!' without errors.

To play around with these examples (recommended) clone them with git and execute them with e.g. node a.js

Notes on hoisting

(I may be using incorrect terms below, please forgive me)

@git-santosh
git-santosh / media-query.css
Created January 24, 2019 07:13 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@git-santosh
git-santosh / aggregation_lookup.md
Created May 10, 2018 14:39 — forked from bertrandmartel/aggregation_lookup.md
MongoDB $lookup aggregation example

MongoDB $lookup aggregation

SO link

db.votes.aggregate([{
    $lookup: {
        from: "users",
        localField: "createdBy",
        foreignField: "_id",
@git-santosh
git-santosh / README.md
Created January 1, 2018 07:29 — forked from hofmannsven/README.md
My simply Git Cheatsheet