Skip to content

Instantly share code, notes, and snippets.

View derekr's full-sized avatar
💭
Chillin'

Derek Reynolds derekr

💭
Chillin'
View GitHub Profile
# api service
# I typically start with a clean base image that doesn't have any
# transient dependencies, but in your case you'd still want pnpm etc
# but i don't want any unecessary node_modules or build artifacts
# that aren't helpful at runtime so a clean filesystem is helpful.
FROM node:18-alpine as api
WORKDIR /app
# Then I only want runtime files for the specific target.
@derekr
derekr / Dockerfile
Created November 24, 2021 20:53
Build Postgres 13 with Postgis 3
FROM postgres:13
LABEL maintainer="PostGIS Project - https://postgis.net"
ENV POSTGIS_MAJOR 3
ENV POSTGIS_VERSION 3.1.4+dfsg-3.pgdg110+1
RUN apt-get update \
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
&& apt-get install -y --no-install-recommends \
@derekr
derekr / machine.js
Created October 17, 2019 18:58
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@derekr
derekr / SketchSystems.spec
Last active July 15, 2019 20:53
App Store Review Prompt
App Store Review Prompt
App Launch*
new app version? -> Promptable Session
not been prompted? -> Promptable Session
has been prompted? -> No Prompt Session
No Prompt Session
close app -> App Launch
# Promptable Cycle is per session (app launch to app close)
@derekr
derekr / SketchSystems.spec
Last active July 15, 2019 18:34
App Store Review Prompt
App Store Review Prompt
App Launch*
new app version? -> Promptable Cycle
has been prompted? -> No Prompt Cycle
No Prompt Cycle
Promptable Cycle
Discover
tap listing -> Prompt For Review?
.app-title {
color: red;
}
@derekr
derekr / medium-article.md
Last active October 4, 2016 15:18
What it's like to build a web project in 2016

Hey I want to build a site; fetch some data and renders it in to a filterable list. Could I use jQuery for that?

Yeah sounds simple enough. You could even ditch jQuery and use native DOM APIs. They've come a long way in the past few years.

Chill.

BarOurcq - https://foursquare.com/v/barourcq/4b7d76ecf964a5202cc02fe3
Rad little bar off of the canal. May fav spot probably.

Le Perchoir - https://foursquare.com/v/le-perchoir/5183f149498eff6233941d44
Hipster roof top scene w/ good cocktails and great views of the city

Balls - https://foursquare.com/v/balls/52c4387a498e83a98531634a
First restaurant I went to there, quaint and chill w/ sold food and staff (treated us well as tourists)

Pop In - https://foursquare.com/v/pop-in/4adcda05f964a520753221e3