Skip to content

Instantly share code, notes, and snippets.


santosh suryawanshi git-santosh

View GitHub Profile
git-santosh /
Created Mar 15, 2019 — forked from maxogden/
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 / media-query.css
Created Jan 24, 2019 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
##Device = Desktops
##Screen = 1281px to higher resolution desktops
@media (min-width: 1281px) {
git-santosh /
Created May 10, 2018 — forked from bertrandmartel/
MongoDB $lookup aggregation example

MongoDB $lookup aggregation

SO link

    $lookup: {
        from: "users",
        localField: "createdBy",
        foreignField: "_id",
You can’t perform that action at this time.