Skip to content

Instantly share code, notes, and snippets.

View PerStirpes's full-sized avatar
🥳
Party popper with a party hat

Matt Carl PerStirpes

🥳
Party popper with a party hat
View GitHub Profile
@PerStirpes
PerStirpes / Docker shell commands.sh
Created January 26, 2018 00:51 — forked from bahmutov/Docker shell commands.sh
A personal cheat sheet for running local Node project in a Docker container
# See list of docker virtual machines on the local box
$ docker-machine ls
NAME ACTIVE URL STATE URL SWARM DOCKER ERRORS
default * virtualbox Running tcp://192.168.99.100:2376 v1.9.1
# Note the host URL 192.168.99.100 - it will be used later!
# Build an image from current folder under given image name
$ docker build -t gleb/demo-app .

@kangax's ES6 quiz, explained

@kangax created a new interesting quiz, this time devoted to ES6 (aka ES2015). I found this quiz very interesting and quite hard (made myself 3 mistakes on first pass).

Here we go with the explanations:

Question 1:
(function(x, f = () => x) {