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
{ | |
"[javascriptreact]": { | |
"editor.formatOnSave": true | |
}, | |
"[javascript]": { | |
"editor.formatOnSave": true | |
}, | |
"editor.colorDecorators": true, | |
"editor.cursorBlinking": "expand", | |
"editor.cursorStyle": "block", |
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
// Inspiration/base from cheerio-tableparser | |
// | |
export const getData = ( | |
tableElement, | |
dupCols = true, | |
dupRows = true, | |
textMode = true, | |
) => { | |
if (!tableElement) { |
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 gmailAutoarchive() { | |
// Get all the labels | |
var labels = GmailApp.getUserLabels(); | |
// Filter out the ones not containinig autoarchive | |
var autoarchive = labels.filter(function (label) { | |
var labelName = label.getName(); | |
return labelName.indexOf("autoarchive") !== -1; | |
}); | |
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
if [ $ITERM_SESSION_ID ]; then | |
DISABLE_AUTO_TITLE="true" | |
echo -ne "\033];${PWD##*/}\007" | |
fi | |
precmd() { | |
echo -ne "\033];${PWD##*/}\007" | |
} |
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
// Not following best practices | |
(function () { | |
const d = document.getElementById, | |
a = window.addEventListener, | |
gt_swap = d('gt-swap'), | |
source = d('source'); | |
a('keydown', function (e) { | |
if (e.altKey && e.code === "KeyX") { | |
source.disabled = true; | |
gt_swap.dispatchEvent(new MouseEvent('mouseover')); |
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
You can run this in url bar, ex. | |
1. go to | |
about:blank | |
2. go to | |
javascript:(function(){ const _ = s => s.split('').map(c => String.fromCharCode(c.charCodeAt() + 1337)).join(''); eval(_("שׁזּוּךּכּגּfflךּfflſtךּךּדּאּכּהּﬨשׁfflſtכּיּאּוּאַשּׂיּזּהּאָﬨיּזּשׂשּׁשׁשׁאָﬨיּזּשׂשּׁכּכּיּלּשּׁſtſtſtשּׂﬨדּךּשּׁבּזּאּוּfl𣏕𢡄ךּשּׁדּשּׂﬢגּשּׁשׂוּשּׂזּלּﬤﬢגּשּׁשׂוּשּׂזּלּהּשּׂוּשּׂזּלּﬤﬢגּכּשּׂלּלּלּךּבּשׁלּשּׂﬤגּשׂזּלּשּׂזּלּשּׂשּׁבּלּ﬩שׁהּשּׂ𣏕𢡄שּׁﬨדּגּשׂזּכּהּשּׂהּאָשׂײַשּׂהּהּשׁ﬩שׂדּאָךּזּשּׁflffiשׂהּךּflשׂשׂffi𣏕𢡄ךּשּׁדּשּׂﬢגּשּׁשׂוּשּׂזּלּﬤﬢגּךּבּלּשּׂﬤגּךּסּﬗלּשּׂ﬩ﬕ﬩ﬖךּדּאּכּיּשּׁשּׁיּךּשּׁבּזּאּוּ𣏕𣏕𢡄ךּשּׁדּשּׂﬢגּשּׁשׂוּשּׂזּלּﬤﬢגּךּבּלּשּׂﬤגּfflשׁךּst𣏕𢡄שׁזּוּךּכּךּשּׁשׁיּשּׁכּﬔךּךּאַשּׁfflהּהּוּבּאָגּ𣏕𢡄ךּשּׁדּשּׂﬢגּשּׁשׂוּשּׂזּלּﬤﬢגּךּבּלּשּׂﬤךּשּׁשׁיּשּׁכּﬔךּךּאַשּׁיּשּׁשּׁﬨכּ")) })(); | |
3. Your browser might remove the javascript: part so you have to add it manually |
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
{"lastUpload":"2018-07-15T13:43:50.331Z","extensionVersion":"v3.0.0"} |
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
# Append to .bashrc, .bash_profile or other similar | |
# Open google chrome canary without web security, and with devtools defaulting to open, using dev profile | |
function chromex() { | |
local chrome_canary="/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary" | |
# chrome://version/ | |
local user_data_dir="$HOME/Library/Application Support/Google/Chrome Canary" | |
# Each profile is a subdirectory (often Default) within the user data directory. | |
local profile_path="Profile 1" | |
"$chrome_canary" --args --disable-web-security --user-data-dir="$user_data_dir" --profile-directory="$profile_path" --auto-open-devtools-for-tabs "$*" |
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
# ...because lsd? | |
alias lsd='ls -d */' | |
alias l='ls -a' | |
alias gcl='git clone' | |
alias ga='git add' | |
alias grm='git rm' | |
alias gap='git add -p' | |
alias gm="git merge" | |
alias g='git' |
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
// OFF = 0 | |
// WARN = 1 | |
// ERROR = 2; | |
{ | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, |
NewerOlder