Skip to content

Instantly share code, notes, and snippets.

View vipulbhj's full-sized avatar
🏠
Working from home

Vipul vipulbhj

🏠
Working from home
View GitHub Profile
@petelacey
petelacey / Dockerfile
Last active April 22, 2024 00:56
Docker Compose setup for Elixir, Phoenix, and Postgres
FROM elixir:latest
# Install debian packages
RUN apt-get update && \
apt-get install --yes build-essential inotify-tools postgresql-client git && \
apt-get clean
ADD . /app
# Install Phoenix packages
@sebmarkbage
sebmarkbage / Infrastructure.js
Last active May 2, 2024 03:11
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);
}