Skip to content

Instantly share code, notes, and snippets.

View tonini's full-sized avatar
💭
I may be slow to respond.

Samuel Tonini tonini

💭
I may be slow to respond.
View GitHub Profile
** (CaseClauseError) no case clause matching: {#PID<0.2.0>, 'ok'}
lib/elixir/lib/kernel/parallel_compiler.ex:53: Kernel.ParallelCompiler.spawn_compilers/3
diff --git a/lib/mix/test/fixtures/rebar_dep/apps/rebar_dep/ebin/rebar_dep.app b/lib/mix/test/fixtures/rebar_dep/apps/rebar_dep/ebin/rebar_dep.app
index 3c4ab7c..499e023 100644
--- a/lib/mix/test/fixtures/rebar_dep/apps/rebar_dep/ebin/rebar_dep.app
+++ b/lib/mix/test/fixtures/rebar_dep/apps/rebar_dep/ebin/rebar_dep.app
@@ -1 +1 @@
-{application,rebar_dep,[{registered,[]},{vsn,"0.1.0"},{modules,[rebar_dep]}]}.
+{application,rebar_dep,[{vsn,"0.1.0"},{modules,[rebar_dep]}]}.
/Users/tonini/.mix/rebar --version
rebar 2.1.0-pre R16B 20130708_152514 git 2.1.0-pre-140-g620c4b0
# -*- mode: snippet -*-
# name: it
# key: it
# --
it("$1", function() {
$0
});
# -*- mode: snippet -*-
# name: describe
# key: describe
# --
describe("$1", function() {
$0
});
13:24:52.420 [error] Error in process <0.55.0> with exit value: {#{'__exception__'=>true,'__struct__'=>'Elixir.RuntimeError',message=><<4 bytes>>},[{erlang,apply,2,[]}]}
@tonini
tonini / math.exs
Last active August 29, 2015 14:07
# Style 1
defmodule Math do
def double_each([]), do: []
def double_each([head|tail]) do
[head * 2 | double_each(tail)]
end
parent = self()
# Spawns an Elixir process (not an operating system one!)
spawn_link(fn ->
send parent, {:msg, "hello world"}
end)
# Block until the message is received
receive do
{:msg, contents} -> IO.puts contents
$ ../ex_doc/bin/ex_doc
Too few arguments.
Usage:
ex_doc PROJECT VERSION BEAMS [OPTIONS]
Examples:
ex_doc "Dynamo" "0.8.0" "_build/shared/lib/dynamo/ebin" -u "https://github.com/elixir-lang/dynamo"
def run(args, generator \\ &ExDoc.generate_docs/3) do
{opts, args, _} = OptionParser.parse(args,
aliases: [o: :output, f: :formatter, u: :source_url, r: :source_root,
m: :main, p: :homepage_url, c: :config])
[project, version, source_beam] = parse_args(args)
Code.prepend_path(source_beam)
opts =
opts