Skip to content

Instantly share code, notes, and snippets.

brew install colima
brew install docker
brew install kubectl
brew install tfswitch
@clarencedglee
clarencedglee / settled.js
Last active February 13, 2020 11:05
Something like Promise.settled which is not yet in TypeScript
// USAGE
// take some promises
const promises = [
Promise.resolve("200"),
Promise.resolve("201"),
Promise.reject("500"),
Promise.reject("400")
];
@clarencedglee
clarencedglee / ionic-webpack.config.js
Last active January 16, 2018 14:59
Configuring ionic build to
var webpack = require('webpack');
const config = require('@ionic/app-scripts/config/webpack.config.js')
// Here we override the dev and prod configs
// by adding .[chunkhash] to the output filename
//
// If the code for the chunk changes, so will the filename
// and browser will use the new chunk instead of the cached chunk
//
// Note that main.js and vendor.js will also become