Skip to content

Instantly share code, notes, and snippets.

import AsyncRetry from "async-retry";
AsyncRetry(() => "foo", { maxTimeout: 1, retries: 5 });
@BendingBender
BendingBender / update_vscodium_m1.sh
Last active December 25, 2021 12:07
Script to update VSCodium native build for a Mac M1
#!/usr/bin/env bash
set -euo pipefail
INSTALLED_APP=/Applications/VSCodium.app
TMP_DIR=$(mktemp -d)
GITHUB_RELEASES_JSON="${TMP_DIR}/github-releases.json"
LATEST_RELEASE_ZIPBALL="${TMP_DIR}/vscodium.zip"
EXTRACTED_APP="${TMP_DIR}/vscodium/VSCode-darwin-arm64/VSCodium.app"
cleanup() {
@BendingBender
BendingBender / elm.json
Created July 11, 2019 12:44
SSCCE for "I ran into something that bypassed the normal error reporting process" error in 0.19.1-alpha
{
"type": "application",
"source-directories": [
"src",
"src-gen"
],
"elm-version": "0.19.1",
"dependencies": {
"direct": {
"elm/browser": "1.0.1",