Skip to content

Instantly share code, notes, and snippets.

View ciiay's full-sized avatar

Yi Cai ciiay

View GitHub Profile
@iam-veeramalla
iam-veeramalla / kubernetes versioning in go.mod
Created February 4, 2021 10:03
Update Kubernetes version in go.mod
#!/bin/sh
set -euo pipefail
VERSION=${1#"v"}
if [ -z "$VERSION" ]; then
echo "Must specify version!"
exit 1
fi
MODS=($(
curl -sS https://raw.githubusercontent.com/kubernetes/kubernetes/v${VERSION}/go.mod |
@zeusdeux
zeusdeux / ES5vsES6.js
Last active September 6, 2023 15:03
ES5 inheritance vs ES6 inheritance
/* ES6/ES2015 classes */
class A {
constructor() {
this.a = 10
}
print() {
console.log(this.a, this.b)
}
}