Skip to content

Instantly share code, notes, and snippets.

@suguanYang
suguanYang / Infrastructure.js
Created March 13, 2022 12:43 — forked from sebmarkbage/Infrastructure.js
SynchronousAsync.js
let cache = new Map();
let pending = new Map();
function fetchTextSync(url) {
if (cache.has(url)) {
return cache.get(url);
}
if (pending.has(url)) {
throw pending.get(url);
}
@suguanYang
suguanYang / postgres-brew.md
Created October 12, 2019 07:46 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update