// 🔴 Error
var hasBarProperty = foo.hasOwnProperty("bar");
// 🟢 Correct
var hasBarProperty = Object.prototype.hasOwnProperty.call(foo, "bar");
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
#!/bin/sh | |
verlte() { | |
if [ "$1" = "$(echo -e "$1\n$2" | sort -V | head -n1)" ]; then | |
return 1 | |
else | |
return 0 | |
fi | |
} | |
OS= |
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
{ | |
//Enter current folder to ZSH | |
"terminal.integrated.env.windows": { | |
"CHERE_INVOKING": "1" | |
}, | |
"terminal.integrated.profiles.windows": { | |
"Cygwin": { | |
"env": { | |
"CHERE_INVOKING": "1" //(Not working) | |
}, |
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
import { AxiosResponse } from "axios"; | |
// the kind of data I expect from the AJAX request... | |
interface AuthData { | |
access_token?: string; | |
refresh_token?: string; | |
} | |
// ... a type dedicated to the Axios response... | |
type AuthResponse = AxiosResponse<AuthData>; |
🐞 🍀 🌻 🌼 ⚽ 🏀 🚩🎯 🏁 🏴 🚩 🪐
Weahter
⛅ ☔ 🌂 🌀 🌈 🌍 🌎 🌏 🏭 🏡 ⛪ 🕋 🎪 🎡 🏰 🌄 🌌 🌊 🗻 🌋
Sign
🛑 ⛔ 🚫 🚸 ⛽ 🚥 🚦 🚧 🚨 ⚡ 🚹 🚺 🚻 🚼 🛵 🚗 🚘 🚚 🚛 🚐 🚀
Things
💎 💍 🎀 🔔 ⏰ ⌚ ⌛ 🔑 🔏 🔐 🔒 🔓 🎨 💣 🧨 🎁 🎂 🎫 🎬 🧴 💊 🩸 💉
🩹 🧪 🧫 🔧 🔨 ⛏ 🪓 🧱 🧰 🧲 🪁 🧩 🧯
Tech
📷 📸 📱 📞 📢 📺 📻 💻 🎮 📀 💽 💿 💾 🔋 🔌
kubectl --namespace default get service
#NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
#kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 19h
#nginx-ingress-xxx LoadBalancer 10.102.23.116 <pending> 80:30199/TCP,443:30207/TCP 3m27s
#nginx-ingress-xxx-default-backend ClusterIP 10.100.69.157 <none> 80/TCP 3m27s
#Install Webmin on Centos 7
Reference [^ref]
cat <<EOF >> /etc/yum.repos.d/webmin.repo
[Webmin]
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
{ | |
"adobeScriptRunner.winPhotoshopExe": "C:/Program Files/Adobe/Adobe Photoshop 2020/Photoshop.exe", | |
"blockman.n03MaxDepth": 20, | |
"blockman.n05CustomColorOfDepth0": "none", | |
"blockman.n06CustomColorOfDepth1": "none", | |
"blockman.n07CustomColorOfDepth2": "none", | |
"blockman.n08CustomColorOfDepth3": "none", | |
"blockman.n09CustomColorOfDepth4": "none", | |
"blockman.n10CustomColorOfDepth5": "none", | |
"blockman.n11CustomColorOfDepth6": "none", |
NewerOlder