(answer here)
(answer here)
(answer here)
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/jlozovei/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
{ | |
"auto_format_on_save": true, | |
"auto_format_on_save_excludes": [ | |
"*/node_modules/*", | |
"*.json", | |
"*.md", | |
"*.html", | |
"*.min*" | |
], | |
"prettier_options": { |
# run a single spec with jest | |
# -- replace <spec> with the spec's name (i.e. Button) | |
jest -t='<describeString> <itString>' | |
npm run test -- -t '<describeString> <itString>' | |
# run a single spec using file path | |
# -- replace <path> with the file's path (i.e. src/tests/test.js) | |
jest <path> | |
# clear cache |
# Get codebase total lines (all files) | |
git ls-files | xargs wc -l | |
# Get codebase total lines (ignore files with extension) | |
git ls-files -- . ':!:*.md' | xargs wc -l | |
# Get codebase total lines (files matching a extension) | |
git ls-files -- '*.js' | xargs wc -l | |
# Get total lines of a codebase, by user |
$screens: ( | |
'hd': 1280px; // 1280 x 720 | |
'fullhd': 1920px; // 1920 x 1080 | |
'2k': 2048px; // 2048 x 1080 | |
'4k': 3840px; // 3840 x 2160 | |
'8k': 7680px; // 7680 x 4320 | |
'10k': 10240px; // 10240 x 4320 | |
); | |
$viewports: ( |
function elementOffset(element) { | |
const rect = element.getBoundingClientRect(); | |
const scrollLeft = window.pageXOffset || document.documentElement.scrollLeft; | |
const scrollTop = window.pageYOffset || document.documentElement.scrollTop; | |
return { | |
top: rect.top + scrollTop, | |
left: rect.left + scrollLeft | |
}; |
# replace <filename> with your JS file name | |
npx -p @babel/core -p @babel/node babel-node --presets @babel/preset-env <filename>.js |
/** | |
* Get video ID from YouTube URL | |
*/ | |
function get_id_from_youtube($url) { | |
parse_str(parse_url($url, PHP_URL_QUERY), $querystring); | |
return $querystring['v']; | |
} |
Visual data
Daily routines of famous creative people https://podio.com/site/creative-routines
Timeless songs https://pudding.cool/2017/03/timeless/index.html
New York Skyline - National Geographic https://www.nationalgeographic.com/new-york-city-skyline-tallest-midtown-manhattan/