Last active
April 14, 2018 14:28
-
-
Save KamilLelonek/f62108c05b5aa22d8b63b95a34e5582a to your computer and use it in GitHub Desktop.
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
binary | |
|> :binary.bin_to_list() | |
|> Enum.map(fn byte -> | |
byte | |
|> Integer.to_string(2) | |
|> String.pad_leading(8, "0") | |
end) | |
|> Enum.join() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment