Skip to content

Instantly share code, notes, and snippets.

Avatar

Erik Hazzard erikhazzard

View GitHub Profile
View gist:374f2b7fe004213594d6917e0e8d4fa5
module.exports.routeGetScreenshot = async function routeGetScreenshot (req, res) {
/**
* [GET] [/util/og/:roomId] This will return an image of a screen of
* the /util/og/:roomId endpoint
*/
// set the cache header to a more generous time, since this is used for share links and
// we don't want to be calling this 100k's time in a short period. Whatever this value is
// set to, it will returned a cached screenshot for that time period (in seconds). The trade
// off here is screenshot freshness with scale. NOTE: Most services cache OG images on their
@erikhazzard
erikhazzard / .block
Last active August 17, 2017 07:56
voronoi+boids-5-minimal-light
View .block
license: mit
View colors.itermcolors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.18311651051044464</real>
@erikhazzard
erikhazzard / .block
Created January 6, 2017 07:16
Poisson-Disc Voronoi
View .block
license: gpl-3.0
@erikhazzard
erikhazzard / .block
Last active November 17, 2016 21:25
voronoi+boids-combined-delaunay-4-mesh
View .block
license: mit
@erikhazzard
erikhazzard / .block
Created November 17, 2016 21:23
voronoi+boids-combined-delaunay-3
View .block
license: mit
@erikhazzard
erikhazzard / .block
Created November 17, 2016 21:14
voronoi+boids-delaunay-2-mesh
View .block
license: mit
@erikhazzard
erikhazzard / .block
Created November 17, 2016 21:08
voronoi+boids-delaunay-1
View .block
license: mit
@erikhazzard
erikhazzard / .block
Last active November 17, 2016 20:04
voronoi+boids-5a-minimal-shadow
View .block
license: mit
@erikhazzard
erikhazzard / .block
Last active November 17, 2016 20:05
voronoi+boids-6-minimal-blur
View .block
license: mit