Skip to content

Instantly share code, notes, and snippets.

@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.

@squarism
squarism / iterm2.md
Last active May 6, 2024 22:59
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
jQuery(document).ready(function($) {
/**
* Demo Section : Mettre en avant ses alternatives textuelles sur les devices tactiles.
**/
$("a[data-toggle='tooltip'], img[data-toggle='tooltip']").on("click",function(){
if(!$('.tooltip').hasClass('in')){ //Si l'info-bulle n'est pas visible.
$(this).tooltip("show");
return false; // Empecher le navigateur d'ouvrir la destination du lien.