Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
🚀
This server has been upgraded to GitLab release
15.7
.
🚀
Open sidebar
grains
grains-web
Commits
bfba927a
Commit
bfba927a
authored
May 17, 2017
by
Jens-Christian Fischer
Browse files
Added forgotten type.ex file
parent
94a5be46
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/grains/type.ex
0 → 100644
View file @
bfba927a
defmodule
Grains
.
Type
do
@nr_types
4
def
select_type
(
uuid
)
do
{
i
,
_
}
=
Integer
.
parse
(
uuid
,
16
)
Integer
.
mod
(
i
,
@nr_types
)
end
end
mix.exs
View file @
bfba927a
...
...
@@ -3,7 +3,7 @@ defmodule Grains.Mixfile do
def
project
do
[
app:
:grains
,
version:
"0.0.6
3
"
,
version:
"0.0.6
4
"
,
elixir:
"~> 1.2"
,
elixirc_paths:
elixirc_paths
(
Mix
.
env
),
compilers:
[
:phoenix
,
:gettext
]
++
Mix
.
compilers
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment