This file contains hidden or 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 total(){ | |
return [...document.querySelectorAll("td.text-right")].reduce((a,b) => { | |
return a + parseFloat( b.innerText.replace(/[,$]/g, "")) | |
}, 0) | |
} |
This file contains hidden or 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
{ | |
"id": 37675163, | |
"channel": "airbnb", | |
"channel_id": 37675163, | |
"channel_id_secondary": null, | |
"channel_url": "https://www.airbnb.com/rooms/37675163", | |
"title": "\u2b50WASHINGTON Suite \u2b50Free Parking, Major Attractions", | |
"currency": "USD", | |
"can_price": true, | |
"categories_1": [], |
This file contains hidden or 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.querySelectorAll('.flash-warn').forEach(a => a.remove()) |
This file contains hidden or 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
const video = () => document.querySelector('video'); | |
document.querySelector('progress').style.opacity = 0.35; | |
const codes = { | |
space: 32, | |
j: 74, | |
k: 75, | |
l: 76, | |
}; |
This file contains hidden or 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
www.youtube.com##.ytp-button.ytp-fullerscreen-edu-button | |
www.youtube.com##.ytp-fullerscreen-edu-chevron | |
www.youtube.com##.ytp-fullerscreen-edu-text | |
www.youtube.com##.ytp-button.ytp-fullerscreen-edu-button | |
www.youtube.com##.ytp-cards-button | |
www.youtube.com##.ytp-ce-element | |
www.youtube.com##.ytp-ce-element | |
www.youtube.com##.ytp-ce-element | |
This file contains hidden or 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
const video = () => document.querySelector("video") | |
const codes = { | |
space: 32, | |
j: 74, | |
k: 75, | |
l: 76, | |
} | |
document.addEventListener("keydown", e => { |
This file contains hidden or 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://github.com/gpakosz/.tmux | |
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license, | |
# without any warranty. | |
# Copyright 2012— Gregory Pakosz (@gpakosz). | |
# -- navigation ---------------------------------------------------------------- | |
# if you're running tmux within iTerm2 | |
# - and tmux is 1.9 or 1.9a | |
# - and iTerm2 is configured to let option key act as +Esc |
This file contains hidden or 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
# cat << EOF > /dev/null | |
# https://github.com/gpakosz/.tmux | |
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license, | |
# without any warranty. | |
# Copyright 2012— Gregory Pakosz (@gpakosz). | |
# /!\ do not edit this file | |
# instead, override settings in ~/.tmux.conf.local, see README.md | |
# -- general ------------------------------------------------------------------- |
This file contains hidden or 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
import EventEmitter from "events" | |
import fs from "fs" | |
class WithTime extends EventEmitter { | |
execute(asyncFunc, ...args) { | |
console.time("execute") | |
asyncFund(...args, (err, data) => { | |
if (err) return this.emit("error", err) | |
this.emit("data", data) | |
console.timeEnd("execute") | |
this.emit("end") |
This file contains hidden or 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
export N_PREFIX="$HOME/n"; [[ :$PATH: == *":$N_PREFIX/bin:"* ]] || PATH+=":$N_PREFIX/bin" |