Skip to content

Instantly share code, notes, and snippets.

View jg-made's full-sized avatar
💭
chaotic neutral

James Gough jg-made

💭
chaotic neutral
View GitHub Profile
#===========
#Local dev
#===========
# https://github.com/c0b/docker-elixir/wiki/use-observer
FROM elixir:1.10
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt update
RUN apt install -y git nodejs inotify-tools
;; "DOCKER/TRAMP STUFF"
;; "Open Dockerfile files in dockerfile mode by default"
(add-to-list 'auto-mode-alist '("Dockerfile\\'" . dockerfile-mode))
;; "Get SPC-f-f `/docker:' docker tramp to autocomplete names"
(setq docker-tramp-use-names t)
;; fix tramp hanging on alpine containers as per https://github.com/emacs-pe/docker-tramp.el
(require 'docker-tramp-compat)
Eventsourcing = fully building an object by merging (in order) all of its past events.
{k_ij, v_ij}
i = event order index
j = object root scope index
i = 0 -> initiating event, keys are unique ref to object
initiate + update state + remove item =
e0 + e1 + e2 =
@jg-made
jg-made / test_multimax.py
Last active November 19, 2018 09:14
extended multimax tests
import unittest
from multimax import multimax, MultiMaxException
class MultiMaxTests(unittest.TestCase):
"""Tests for multimax."""

Keybase proof

I hereby claim:

  • I am jg-made on github.
  • I am jg_made (https://keybase.io/jg_made) on keybase.
  • I have a public key ASC4VcQLMnmq2xCF0XB9jCN2B5ZKTcJlmXCZu6olKPxvFgo

To claim this, I am signing this object: