• Stars
    star
    16
  • Rank 1,311,288 (Top 26 %)
  • Language
    Elixir
  • License
    MIT License
  • Created over 9 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Luhn algorithm in Elixir

Luhn algorithm in Elixir

hex.pm version hex.pm daily downloads hex.pm weekly downloads hex.pm downloads Build Status

Validate Luhn number.

Installation

# mix.exs
defp deps do
  [
    {:luhn, "~> 0.3.0"}
  ]
end

and fetch

$ mix deps.get

How to use

# validate number
Luhn.valid? "378282246310005"
# => true

# Integer type number
Luhn.valid? 378282246310005
# => true

Benchmarking

$ MIX_ENV=bench mix deps.get
$ MIX_ENV=bench mix compile
$ mix bench

Author

Takayuki Matsubara (@ma2ge on twitter)

LICENSE

MIT

More Repositories

1

power_assert_ex

Power Assert in Elixir. Shows evaluation results each expression.
Elixir
212
star
2

bundle-star

Star github repositories automatically when you bundle installing
Ruby
53
star
3

breadcrumble

A breadcrumbs plugin for Ruby on Rails.
Ruby
39
star
4

chrono_logger

A lock-free logger with timebased file rotation.
Ruby
30
star
5

breadcrumble_ex

Elixir lang port of Breadcrumble
Elixir
25
star
6

faraday-encoding

A Faraday Middleware sets body encoding when specified by server.
Ruby
25
star
7

mix-star

Elixir Mix task to starring GitHub repository with `mix deps.get`ting dependent library
Elixir
12
star
8

ltsvex

LTSV parser implementation in Elixir
Elixir
10
star
9

qiita_ex

Qiita API v2 Interface for Elixir
Elixir
7
star
10

gimei_ex

Elixir
7
star
11

isucon4-qual-phoenix

Elixir
6
star
12

octoparts-rb

Ruby client for the Octoparts API
Ruby
6
star
13

netrcex

Reads netrc files implemented in Elixir
Elixir
4
star
14

a4nt

A4nt is a simple announcements plugin for Ruby on Rails.
Ruby
2
star
15

canonical_url-rails

URL canonicalization for Rails.
Ruby
2
star
16

gem-star

Star github repository automatically when you gem install.
Ruby
2
star
17

qiita-ex

Qiita API sample code
Elixir
2
star
18

yesod-sample

yesod sample application
Haskell
2
star
19

syncdeckjs

synchronize slide with deck.js
JavaScript
2
star
20

breadcrumble_demo

breadcrumble demo application
Ruby
2
star
21

groovy_meta

test groovy metaprogramming
Groovy
1
star
22

ma2gedev.github.com

my page
JavaScript
1
star
23

power_assert_sample

Power Assert sample test code in Elixir
Elixir
1
star
24

ruby-behaviour-checker

Check ruby code behaviour with browser.
Ruby
1
star
25

t5

template to face technical debt
Ruby
1
star
26

doctestex

doctest sample code on Elixir
Elixir
1
star
27

graphql_sample

GraphQL Sample application for Elixir
Elixir
1
star
28

rails4beta_on_heroku

rails 4.0 beta run on heroku
Ruby
1
star
29

fakeb

social bookmark application like hatena bookmark
Ruby
1
star
30

graphql-samples

GraphQL implementation samples
Elixir
1
star
31

md2deckjs

convert markdown file to deck.js slide
1
star
32

tecotbot

@tecotbot code. https://twitter.com/#!/tecotbot
Ruby
1
star
33

jsp2erb

convert jsp into erb
Ruby
1
star
34

advent-of-code

My solutions for Advent of Code
Rust
1
star
35

pebbles-orz

A joke gem to define aliases
Ruby
1
star