This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{erl_opts, [debug_info, | |
{src_dirs, | |
[ | |
"src", | |
"src/client", | |
"src/compat", | |
"src/core", | |
"src/network", | |
"src/server" | |
]}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service | |
cpg | |
kvs | |
mad | |
uuid_erl | |
gpb | |
yamerl | |
db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
active | |
amqp_client | |
cowboy | |
cpg | |
craterl | |
db | |
dynamic_compile | |
eper | |
eredis | |
erlang_term |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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"}]}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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"}]} | |
] | |
}]}. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#{a=<<"a">> | |
,b=1}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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]), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on c_src.mk from erlang.mk by Loïc Hoguin <[email protected]> | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Hello do | |
def hello() do | |
IO.puts "good" | |
end | |
def hello(opts \\ []) do | |
IO.puts "hello" | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[date, "T", time, "", | |
{module, [ | |
" mod=", | |
module], ""}, | |
" ", message, EOL] |