September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -8,10 +8,11 @@ defmodule Box do
|
|||
end)
|
||||
|> Enum.with_index
|
||||
|> Enum.map(fn {s, i} -> {i+1, String.capitalize(s)} end)
|
||||
|> Map.new
|
||||
end
|
||||
|
||||
def compass do
|
||||
header = Enum.into(head, Map.new)
|
||||
header = head()
|
||||
angles = Enum.map(0..32, fn i -> i * 11.25 + elem({0, 5.62, -5.62}, rem(i, 3)) end)
|
||||
Enum.each(angles, fn degrees ->
|
||||
index = rem(round(32 * degrees / 360), 32) + 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue