Skip to content

Instantly share code, notes, and snippets.

@shobhitsharma
shobhitsharma / main.7bede629.css
Created July 13, 2018 14:48
main.7bede629.css
#about-you .AboutYou {
position: relative;
line-height: 1.428571429;
font-size: 14px;
font-weight: 300;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
@shobhitsharma
shobhitsharma / vendors~main.edc294cf.js
Created July 13, 2018 09:49
vendors~main.edc294cf.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[function(e,t,n){"use strict";n.d(t,"x",function(){return i}),n.d(t,"e",function(){return a}),n.d(t,"b",function(){return l}),n.d(t,"a",function(){return c}),n.d(t,"c",function(){return s}),n.d(t,"d",function(){return f}),n.d(t,"r",function(){return d}),n.d(t,"u",function(){return p}),n.d(t,"o",function(){return h}),n.d(t,"h",function(){return m}),n.d(t,"q",function(){return g}),n.d(t,"v",function(){return b}),n.d(t,"w",function(){return w}),n.d(t,"f",function(){return k}),n.d(t,"l",function(){return E}),n.d(t,"g",function(){return x}),n.d(t,"m",function(){return C}),n.d(t,"j",function(){return S}),n.d(t,"y",function(){return T}),n.d(t,"t",function(){return P}),n.d(t,"s",function(){return N}),n.d(t,"n",function(){return j}),n.d(t,"z",function(){return R}),n.d(t,"p",function(){return A}),n.d(t,"k",function(){return U}),n.d(t,"A",function(){return I}),n.d(t,"i",function(){return M});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n
@shobhitsharma
shobhitsharma / main.edc294cf.js
Created July 13, 2018 09:49
main.edc294cf.js
!function(e){function t(t){for(var r,o,a=t[0],s=t[1],c=t[2],i=0,l=[];i<a.length;i++)o=a[i],j[o]&&l.push(j[o][0]),j[o]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);for(I&&I(t);l.length;)l.shift()();return D.push.apply(D,c||[]),n()}function n(){for(var e,t=0;t<D.length;t++){for(var n=D[t],r=!0,o=1;o<n.length;o++){var a=n[o];0!==j[a]&&(r=!1)}r&&(D.splice(t--,1),e=T(T.s=n[0]))}return e}var r=window.webpackHotUpdate;window.webpackHotUpdate=function(e,t){!function(e,t){if(b[e]&&E[e]){for(var n in E[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(_[n]=t[n]);0==--y&&0===v&&P()}}(e,t),r&&r(e,t)};var o,a=!0,s="edc294cf11c1a742ad03",c=1e4,i={},l=[],d=[],u=[],p="idle";function f(e){p=e;for(var t=0;t<u.length;t++)u[t].call(null,e)}var m,_,h,y=0,v=0,g={},E={},b={};function O(e){return+e+""===e?+e:e}function w(e){if("idle"!==p)throw new Error("check() is only allowed in idle status");return a=e,f("check"),(t=c,t=t||1e4,new Promise(function(e,n){if("undefined"==typeof XMLHttpRequest)return n(new Er
@shobhitsharma
shobhitsharma / main.edc294cf.css
Created July 13, 2018 09:49
main.edc294cf.css
#about-you .AboutYou {
position: relative;
line-height: 1.428571429;
font-size: 14px;
font-weight: 300;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
@shobhitsharma
shobhitsharma / aboutyou.min.css
Created July 12, 2018 18:03
aboutyou.min.css
/*! minireset.css v0.0.2 | MIT License | github.com/jgthms/minireset.css */
/* stylelint-disable */
{
/* HTML5 display-role reset for older browsers */ }
html,
body,
p,
ol,
ul,
li,
@shobhitsharma
shobhitsharma / num-to-bin.js
Created July 1, 2018 18:30
Number to Binary in Javascript
function numberToBinary(num) {
return Math.abs(num).toString(2);
}

Virtual DOM and diffing algorithm

There was a [great article][1] about how react implements it's virtual DOM. There are some really interesting ideas in there but they are deeply buried in the implementation of the React framework.

However, it's possible to implement just the virtual DOM and diff algorithm on it's own as a set of independent modules.

@shobhitsharma
shobhitsharma / jekyll.nginxconf
Created June 2, 2018 15:44 — forked from rickharrison/jekyll.nginxconf
Nginx server config with clean URLs for Jekyll.
server {
listen 80;
server_name www.yourdomain.com;
return 301 $scheme://yourdomain.com$request_uri;
}
server {
listen 80;
root /var/www/yourdomain.com;
@shobhitsharma
shobhitsharma / nginxproxy.md
Created February 20, 2018 21:41 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@shobhitsharma
shobhitsharma / vue-cheatsheet.js
Created February 6, 2018 10:43
vue-cheatsheet.js
/* *******************************************************************************************
* GLOBAL CONFIG
* Vue.config is an object containing Vue’s global configurations.
* You can modify its properties listed below before bootstrapping your application.
* https://vuejs.org/v2/api/#Global-Config
* ******************************************************************************************* */
// Configure whether to allow vue-devtools inspection
Vue.config.devtools = true