Elixir GenServer used to monitor a GenEvent event handler
A* graph pathfinding in pure Elixir
A parallel stream implementation for Elixir
A simple code profiler for Elixir using eprof
| defmodule Gmail.Label do | |
| @moduledoc""" | |
| Labels are used to categorize messages and threads within the user's mailbox. | |
| """ | |
| alias __MODULE__ | |
| import Gmail.Base | |
| @doc """ |
| defmodule Room.Loader do | |
| use GenEvent | |
| require Logger | |
| def start_link(_args) do | |
| {:ok, pid} = GenEvent.start_link(name: :room_events) | |
| GenEvent.add_handler(:room_events, __MODULE__, []) | |
| {:ok, pid} | |
| end |
| Enum.reduce(data, %SomeStruct{}, fn({key, value}, some_struct) -> | |
| %{some_struct | (key |> Macro.underscore |> String.to_atom) => value} | |
| end) |
Elixir GenServer used to monitor a GenEvent event handler
A* graph pathfinding in pure Elixir
A parallel stream implementation for Elixir
A simple code profiler for Elixir using eprof
| test "updates a label", %{ | |
| label: label, | |
| label_name: label_name, | |
| access_token_rec: access_token_rec, | |
| expected_result: expected_result, | |
| bypass: bypass, | |
| label_id: label_id | |
| } do | |
| Bypass.expect bypass, fn conn -> | |
| {:ok, body, _} = Plug.Conn.read_body(conn) |
@HerringtonDarkholme I had forgotten about this issue. I had resolved it by doing exactly as you suggested, reading the docs ;)
For anyone else with this question, here is an example of a custom setup:
let g:neomake_typescript_tsc_maker = {
\ 'args': [
\ '-m', 'commonjs', '--noEmit', '--target', 'ES5', '--experimentalDecorators'
\ ],
\ 'errorformat':
| sudo apt-get update | |
| sudo apt-get install -y python-software-properties software-properties-common | |
| sudo add-apt-repository -y ppa:pi-rho/dev | |
| sudo apt-get update | |
| sudo apt-get install -y tmux=2.0-1~ppa1~t |
| defmodule MyApp do | |
| use Application | |
| def start(_type, _args) do | |
| import Supervisor.Spec, warn: false | |
| children = [ | |
| Plug.Adapters.Cowboy.child_spec(:http, MyApp.Router, [], [ | |
| dispatch: dispatch | |
| ]) |
| defmodule MyApp do | |
| use Application | |
| def start(_type, _args) do | |
| import Supervisor.Spec, warn: false | |
| children = [ | |
| Plug.Adapters.Cowboy.child_spec(:http, MyApp.Router, [], [ | |
| dispatch: dispatch | |
| ]) |
| # You will need fswatch installed (available in homebrew and friends) | |
| # The command below will run tests and wait until fswatch writes something. | |
| # The --stale flag will only run stale entries, it requires Elixir v1.3. | |
| fswatch lib/ test/ | MIX_ENV=test mix do test --stale, run --no-halt -e "IO.gets(:stdio, ''); IO.puts 'Restarting...'; :init.restart()" |