Skip to content

Instantly share code, notes, and snippets.


santosh suryawanshi git-santosh

Block or report user

Report or block git-santosh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
git-santosh / date.css
Last active Jul 11, 2019
How to calculate date and time difference in Java
View date.css
pre[class*=language-] {
padding: 1rem 0 1rem 1rem!important;
margin-top: 0;
margin-bottom: 1rem;
border: 1px solid #d1d1e8;
background-color: #f7f7f9;
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.