// ๐ด Error
var hasBarProperty = foo.hasOwnProperty("bar");
// ๐ข Correct
var hasBarProperty = Object.prototype.hasOwnProperty.call(foo, "bar");
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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"title": "Air-Verse Air configuration schema", | |
"description": "Schema for Air-Verse Air live-reload tool configuration files", | |
"type": "object", | |
"$defs": { | |
"colorEnum": { | |
"oneOf": [ | |
{ | |
"type": "string", |
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
{ | |
"login": "nhahv", | |
"name": "Hoร ng Nhรฃ", | |
"avatar_url": "https://avatars.githubusercontent.com/u/4364929?v=4" | |
} |
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
#!/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 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
{ | |
//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 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 { 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
NewerOlder