elixir
Tags: computers
Conventions
- folders under
/lib/<application_name>
Projects
Prometheus Metrics
@counter
-> Adds a prometheus metric- https://hexdocs.pm/prometheus_ex/Prometheus.Metric.html
- Usage
- declare a counter with
@counter [name: :name, labels: [:label1, :label2], help: "#{__MODULE__} name"]
- increment a counter with
Counter.inc([name: :name, labels: [label1, label2]])
- declare a counter with
Platforms
exmagick
issues with Apple M1 chip:
asdf
Support
- Prebuild binary list https://bobs-list.kobrakai.de/elixir
ETS
- Concurrent table: https://www.openmymind.net/Learning-Elixir-ETS/
Trees - https://www.erlang.org/doc/man/gb_trees.html
Time Zones
- https://hexdocs.pm/timex/3.2.0/Timex.Timezone.html#content
- https://elixirforum.com/t/format-a-datetime-using-strftime-with-the-offset-calculated-in-the-hours/41811
- https://hexdocs.pm/elixir/main/DateTime.html#shift_zone!/3
- https://github.com/lau/tzdata
- https://github.com/mathieuprog/tz
Elixir Nodes
parser combinators
- https://hexdocs.pm/nimble_parsec/NimbleParsec.html
- https://github.com/dashbitco/nimble_options
- https://github.com/dashbitco/nimble_parsec/blob/master/examples/simple_language.exs