I hereby claim:
- I am jsonkenl on github.
- I am jsonkenl (https://keybase.io/jsonkenl) on keybase.
- I have a public key ASBqu3ctMltC2WH2Ns6MdSesYeD91OTlu1pY89pN0WZSiwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common | |
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev | |
#Optional: so vim can be uninstalled again via `dpkg -r vim` | |
sudo apt-get install checkinstall | |
sudo rm -rf /usr/local/share/vim /usr/bin/vim | |
cd ~ |
def multi_extract(path, index \\ nil, timer \\ false) do | |
case is_nil(index) do | |
true -> | |
case Unzip.validate_path_all_indexes(path) do | |
{:ok, indexes} -> | |
{pids, times} = Enum.reduce(indexes, {[], []}, fn index, {pids, times} -> | |
case multi_extract(path, index, timer) do | |
{:ok, pid, time} -> {pids ++ [pid], times ++ [time]} | |
{:ok, pid} -> {pids ++ [pid], times} | |
{:error, reason} -> {pids ++ [{:error, reason}], times} |