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
defmodule OppositeMath do | |
@moduledoc """ | |
This module helps with oppositting nested math formuals like 2 + 5 * 4 + 6 => 2 - 5 / 4 - 6 for sake of learning elixir macros | |
""" | |
@doc """ | |
This macro opposites all math symbols in a formula | |
## Examples | |
iex> OppositeMath.opposite 1+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
defmodule ZigorProxy.BitConverter do | |
@moduledoc """ | |
This module handles standard binary operations. | |
Converting binaries to and from general data types. | |
""" | |
require Logger | |
@doc """ | |
Converts binary of 4 bytes into an signed integer. |
NewerOlder