This file contains 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
# You can use it to build eflame graph. | |
# | |
# First: iex console should be started with `iex -S mix test /test/suite/feature_test.exs` | |
# | |
# I would be glad if you can help me with test compilation part from console | |
# so we don't have to autocompile the test with `mix test` | |
# | |
# Then in promtp you can enter to run the ex_unit test: | |
test_modules = [YourProject.Suite.FeatureTest] |
This file contains 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
%% @author kintull | |
%% @doc This module implements simple LIFO stack | |
%% To test the module compile it and run server:test() | |
-module(server). | |
-behavior(gen_server). | |
%%------------------------------ | |
%% API | |
%%------------------------------ | |
-export([start_link/0, pop_data/1, pick_data/1, |
This file contains 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
#!/bin/bash | |
#cp pre-commit .git/hooks/pre-commit | |
#chmod +x .git/hooks/pre-commit | |
filelist=`git diff HEAD --name-only --relative | grep -E '\.(c|h|cc|hh|cpp|erl|hrl|idl)$'` | |
abort='false' | |
for filename in $filelist | |
do | |
output=`git diff HEAD -- $filename | grep ^+[^+] | tr -d "\000-\011\013-\177" | tr -d '\n'` |