View gist:6dc038159b2b30b53387
{erl_opts, [debug_info,
{src_dirs,
[
"src",
"src/client",
"src/compat",
"src/core",
"src/network",
"src/server"
]},
View gist:286fefacc28ccc334c9d
active
amqp_client
cowboy
cpg
craterl
db
dynamic_compile
eper
eredis
erlang_term
View gist:8135f58949e7a3144bf7
{deps, [
{eleveldb, {git, "https://github.com/basho/eleveldb.git", {branch, "master"}}}
]}.
{overrides,
[{override, eleveldb, [
{pre_hooks, [{compile, "c_src/build_deps.sh get-deps"},
{compile, "c_src/build_deps.sh"}]},
{post_hooks, [{clean, "c_src/build_deps.sh clean"}]},
View gist:bda9eca71d86835a3103
{overrides,
[{override, eleveldb, [
{pre_hooks, [{compile, "c_src/build_deps.sh get-deps"},
{compile, "c_src/build_deps.sh"}]},
{post_hooks, [{clean, "c_src/build_deps.sh clean"}]}
]
}]}.
View gist:a2bd3535ffb27a987580
-module(terrible).
-export([main/0]).
-export([run/1, process_state/1]).
main() ->
proc_lib:spawn_link(?MODULE, run, [hello]),
proc_lib:spawn_link(?MODULE, run, [goodbye]),
View gist:e93fb9fdef2725f94665
# Based on c_src.mk from erlang.mk by Loïc Hoguin <essen@ninenines.eu>
PROJECT ?= $(notdir $(CURDIR))
PROJECT := $(strip $(PROJECT))
ERTS_INCLUDE_DIR ?= $(shell erl -noshell -s init stop -eval "io:format(\"~s/erts-~s/include/\", [code:root_dir(), erlang:system_info(version)]).")
ERL_INTERFACE_INCLUDE_DIR ?= $(shell erl -noshell -s init stop -eval "io:format(\"~s\", [code:lib_dir(erl_interface, include)]).")
ERL_INTERFACE_LIB_DIR ?= $(shell erl -noshell -s init stop -eval "io:format(\"~s\", [code:lib_dir(erl_interface, lib)]).")
C_SRC_DIR = $(CURDIR)/c_src
View gist:41f777e3ea33458fe19c
defmodule Hello do
def hello() do
IO.puts "good"
end
def hello(opts \\ []) do
IO.puts "hello"
end
end
View gist:2f4b44f6e314f037e9e2
[date, "T", time, "",
{module, [
" mod=",
module], ""},
" ", message, EOL]