Skip to content

Instantly share code, notes, and snippets.

View Toxiapo's full-sized avatar
🎯
Focusing

Jiayong Toxiapo

🎯
Focusing
View GitHub Profile
@Toxiapo
Toxiapo / monitorTextNode.js
Created May 15, 2020 13:56
Monitor Text node change
var textNode = document.querySelector("$SELECTOR");
textNode.addEventListener("DOMCharacterDataModified", action, false);
function action(evt) {
if($CONDITION) {
window.open("http://www.google.com", "test" ,"modal=yes");
window.focus();
textNode.removeEventListener("DOMCharacterDataModified", action, false);
}
@Toxiapo
Toxiapo / tmux-cheatsheet.markdown
Created February 26, 2021 21:34 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname