Skip to content

Instantly share code, notes, and snippets.

@barisbalic
Created December 2, 2015 15:40
Show Gist options
  • Save barisbalic/4be05987f8e464d07634 to your computer and use it in GitHub Desktop.
Save barisbalic/4be05987f8e464d07634 to your computer and use it in GitHub Desktop.
Zip files erlang/elixir
iex(9)> files = [{'test.zip', "ABCBED"}]
[{'test.zip', "ABCBED"}]
iex(10)> :zip.create('mem', files, [:memory])
{:ok,
{'mem',
<<80, 75, ...>>}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment