Skip to content

Instantly share code, notes, and snippets.

@elcritch
Created June 25, 2020 19:23
Show Gist options
  • Save elcritch/c1825186974c2eb127d86b639f455722 to your computer and use it in GitHub Desktop.
Save elcritch/c1825186974c2eb127d86b639f455722 to your computer and use it in GitHub Desktop.
Byte String Pad
0x4A |> Integer.to_string(2) |> String.pad_leading(8, "0") |> String.pad_leading(10,"0x")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment