Skip to content

Instantly share code, notes, and snippets.

@ggreenleaf
ggreenleaf / .env.example
Last active June 30, 2022 12:30
SqlServer and azureite blob emulator docker compose with volumes
SQLSERVER_SA_PASSWORD=%%placeholder%%
SQLSERVER_DATA_PATH=/path/to/some/local/dir/data
SQLSERVER_LOG_PATH=/path/to/some/local/dir/log
SQLSERVER_SECRETS_PATH=/path/to/some/local/dir/secret
AZURITE_DATA_PATH=/path/to/some/local/dir/azurite
MIGRATION_CONNECTION_STRING=%%Placeholder%%
@rafaeljesus
rafaeljesus / bb.js
Created December 4, 2015 13:28 — forked from stephantabor/bb.js
Bluebird .each vs .mapSeries vs .map
var Promise = require('bluebird');
var funcs = Promise.resolve([500, 100, 400, 200].map((n) => makeWait(n)));
funcs
.each(iterator) // logs: 500, 100, 400, 200
.then(console.log) // logs: [ [Function], [Function], [Function], [Function] ]
funcs
.mapSeries(iterator) // logs: 500, 100, 400, 200
@staltz
staltz / introrx.md
Last active April 25, 2024 04:18
The introduction to Reactive Programming you've been missing