Skip to content

Instantly share code, notes, and snippets.

View nick-brown's full-sized avatar

Nick Brown nick-brown

View GitHub Profile
@nick-brown
nick-brown / elixir_notes.md
Created June 28, 2021 02:54 — forked from fschuindt/elixir_notes.md
My personal study notes on Elixir. It's basically a resume of http://elixir-lang.org/getting-started/ (Almost everything is copied). Still working on it!
@nick-brown
nick-brown / docker.md
Created June 18, 2018 23:14
Dockery Master Notes

Basics

  • engine/server (daemon)

    • docker version or docker info
  • Image: application we want to run

    • hub.docker.com (default image registry)
  • Container: the instance of that image running as a process

    • many containers can run off of the same image
function subMatches(string, subs) {
return []
.concat.apply([], subs.map(sub => matchIndexes(string, sub)))
.reduce((acc, idx) => {
acc[idx] = true;
return acc;
}, Array.from(string).fill(false));
}
function matchIndexes(string, sub, startIndex=0, matches=[]) {
@nick-brown
nick-brown / event-loop.md
Created February 20, 2017 04:03 — forked from jesstelford/event-loop.md
What is the JS Event Loop and Call Stack?

Regular Event Loop

This shows the execution order given JavaScript's Call Stack, Event Loop, and any asynchronous APIs provided in the JS execution environment (in this example; Web APIs in a Browser environment)


Given the code