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 Parser do | |
@moduledoc """ | |
Sample parser for data from DBS. It is annoying that there isn't a csv from DBS bank | |
Sample data: | |
18 Mar 2019 GRAB *16236905-9-139 S$23.00 | |
18 Mar 2019 GRAB *2B3B63422351042EE S$10.00 | |
18 Mar 2019 GRAB *1391705-9-138 S$15.00 | |
19 Mar 2019 2C2P - ZARA.COM SG S$29.90 cr |
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
@mail_regex ~r/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/ | |
@username_regex ~r/^(?=.{8,20}$)(?![_.])(?!.*[_.]{2})[a-zA-Z0-9._]+(?<![_.])$/ |
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
# Configures the endpoint | |
config :example, Example.Endpoint, | |
... | |
pubsub: [name: Example.PubSub, adapter: Phoenix.PubSub.PG2], | |
... |
NewerOlder