Skip to content

Instantly share code, notes, and snippets.

View matt-de-young's full-sized avatar

Matt de Young matt-de-young

  • Ivy
  • Bavaria, DE
View GitHub Profile
@matt-de-young
matt-de-young / index.js
Created September 8, 2023 12:29
Express Streaming Example
const express = require('express')
const PORT = 8000;
const app = express()
async function sleep(ms) {
// return await for better async stack trace support in case of errors.
return await new Promise(resolve => setTimeout(resolve, ms));
}
@matt-de-young
matt-de-young / matt.zsh-theme
Created December 5, 2018 15:36
Z shell theme
if [[ "$TERM" =~ 256color ]]; then
function RGBcolor {
# converts from 6 x 6 x 6 RGB color cube to xterm-256
echo "16 + $1 * 36 + $2 * 6 + $3" | bc
}
DEFAULT_COLOR="%F{$(RGBcolor 5 5 5)}"
USER_COLOR="%F{$(RGBcolor 5 2 0)}"
DIR_COLOR="%F{$(RGBcolor 1 4 5)}"
GIT_BRANCH_COLOR="%F{$(RGBcolor 5 5 1)}"

Keybase proof

I hereby claim:

  • I am mattgeiger on github.
  • I am mattgeiger (https://keybase.io/mattgeiger) on keybase.
  • I have a public key ASB6bPYREq4Bvr1vO1C2pWkXEy1e_hrL04APBLJLjuUz9go

To claim this, I am signing this object: