Skip to content

Instantly share code, notes, and snippets.

View scotthelm's full-sized avatar

Scott Helm scotthelm

View GitHub Profile
@johnallen3d
johnallen3d / Dockerfile
Last active October 8, 2021 12:56
Basic Kedro + Docker Setup
FROM python:3.8.11-buster as builder
ENV PROJECT_NAME project-name
ENV PROJECT_PATH src/${PROJECT_NAME}
COPY requirements.txt /tmp/requirements.txt
RUN \
pip install -r /tmp/requirements.txt && \
rm -f /tmp/requirements.txt
@domenic
domenic / promises.md
Last active March 31, 2024 14:07
You're Missing the Point of Promises

This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.

You're Missing the Point of Promises

Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:

getTweetsFor("domenic", function (err, results) {
 // the rest of your code goes here.
@olistik
olistik / gist:2627011
Last active August 12, 2021 06:39
Ubuntu 12.10 setup (rbenv/RVM, Janus, PostgreSQL)

Ubuntu 12.10 setup (rbenv/RVM, Janus, PostgreSQL)

Basic pre-requisites

  • Some utilities:
sudo apt-get install vim tmux git curl
  • Copy/paste from the command line: