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://web.dev/optimize-lcp/ | |
const LCP_SUB_PARTS = [ | |
'Time to first byte', | |
'Resource load delay', | |
'Resource load time', | |
'Element render delay', | |
]; | |
new PerformanceObserver((list) => { |
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
# On a Mac: /Users/<username>/.oh-my-zsh/custom/themes | |
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
local emojis=("👋" "🤡" "🦄" "🤙" "🐼" "😊" "🔥" "⚡" "😎" "🌎") | |
local selectedEmoji=${emojis[$[1+($RANDOM%${#emojis[@]})]]} | |
local today=$(date +%m.%d) | |
# local ipCountry=`curl -s ip-api.com/json | python -c "import sys, json; print json.load(sys.stdin)['country']"` | |
# local country=$emoji_flags[${ipCountry}] | |
# } | |
case $today in | |
"01.01") |