Skip to content

Instantly share code, notes, and snippets.

View rhalukongor's full-sized avatar

R. Haluk Öngör rhalukongor

  • Zalando SE
  • Berlin
View GitHub Profile
@rhalukongor
rhalukongor / example.ex
Last active August 29, 2015 14:22
Dynamic supervision example
defmodule SomeModule do
def start(host, options) do
# We are assuming MainSup has been already started somewhere
# (ideally in a supervision tree).
{:ok, child_pid} = SomeSup.attach_to(MainSup, host, options)
end
end
defmodule SomeSup do
use Supervisor
@rhalukongor
rhalukongor / .spacemacs
Last active September 14, 2017 10:12
Use ESLint from project folder
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory