This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git diff-tree -r --name-only 5410a6d 10de24d | tr '\n' ' ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = document.querySelectorAll('*'); | |
for (var i = 0; i < a.length; i++) { | |
var n = a[i]; | |
n.setAttribute('contenteditable', true); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Gives all elements that have been refactored a green outline | |
[class*="rf-"] { | |
outline: 5px solid green; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.documentElement.className += ('ontouchstart' in window || navigator.maxTouchPoints)? ' touch' : ' click'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let products = | |
Array.from(document.querySelectorAll('.product')); | |
products | |
.filter(product => parseFloat(product.innerHTML) < 10) | |
.forEach(product => product.style.color = 'red'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netstat -an | grep "\.80" | grep LISTEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://sunaku.github.io/tmux-24bit-color.html#usage | |
tmux set-option -ga terminal-overrides ",xterm-256color:Tc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function update(progress) { | |
// Update the state of the world for the elapsed time since last render | |
} | |
function draw() { | |
// Draw the state of the world | |
} | |
function loop(timestamp) { | |
var progress = timestamp - lastRender |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function update(progress) { | |
// Update the state of the world for the elapsed time since last render | |
} | |
function draw() { | |
// Draw the state of the world | |
} | |
function loop(timestamp) { | |
var progress = timestamp - lastRender |