Skip to content

Instantly share code, notes, and snippets.

@robhicks
robhicks / app.js
Created November 22, 2017 16:26
Express gun livereload server
const express = require('express');
const Gun = require('gun');
const join = require('path').join;
const livereload = require('livereload');
const PORT = process.env.PORT || 8080;
const root = process.cwd();
const throng = require('throng');
const WORKERS = process.env.WEB_CONCURRENCY || 1;
function start() {
@praveenpuglia
praveenpuglia / shadow-dom.md
Last active March 28, 2024 15:06
Everything you need to know about Shadow DOM

I am moving this gist to a github repo so more people can contribute to it. Also, it makes it easier for me to version control.

Please go to - https://github.com/praveenpuglia/shadow-dom-in-depth for latest version of this document. Also, if you find the document useful, please shower your love, go ⭐️ it. :)

Shadow DOM

Heads Up! It's all about the V1 Spec.

In a nutshell, Shadow DOM enables local scoping for HTML & CSS.