Skip to content

Instantly share code, notes, and snippets.

View jimlyndon's full-sized avatar

Jim Lyndon jimlyndon

View GitHub Profile
@jimlyndon
jimlyndon / protips.js
Created February 4, 2016 19:11 — forked from nolanlawson/protips.js
Promise protips - stuff I wish I had known when I started with Promises
// Promise.all is good for executing many promises at once
Promise.all([
promise1,
promise2
]);
// Promise.resolve is good for wrapping synchronous code
Promise.resolve().then(function () {
if (somethingIsNotRight()) {
throw new Error("I will be rejected asynchronously!");
@jimlyndon
jimlyndon / tmux-cheatsheet.markdown
Created August 26, 2017 03:54 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@jimlyndon
jimlyndon / curl.md
Created October 25, 2017 20:24 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.