Skip to content

Instantly share code, notes, and snippets.

View ckarnell's full-sized avatar

Cohen Karnell ckarnell

  • https://trialspark.com/
  • New York City
View GitHub Profile
function sleepSort(numbers) {
const sorted = [];
return new Promise((resolve) => {
numbers.forEach(num => setTimeout(() => {
sorted.push(num);
// resolve promise when all numbers have been pushed.
if (sorted.length === numbers.length) {
resolve(sorted);

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: