elixir [d669100c]
Tags: computers
1. GenStage
1. GenStage
GenStage (github.com/elixir-lang/gen_stage) acts similarly to genevent, although provides a different set of primitives
2. Conventions
2. Conventions
- folders under
/lib/<application_name>
3. Projects
3. Projects
4. Prometheus Metrics
4. Prometheus Metrics
-
@counter-> Adds a prometheus metric- 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]])
-
5. Platforms
5. Platforms
6. exmagick issues with Apple M1 chip:
6. exmagick issues with Apple M1 chip:
7. asdf Support
7. asdf Support
- Prebuild binary list bobs-list.kobrakai.de/elixir
8. ETS
8. ETS
- Concurrent table: www.openmymind.net/Learning-Elixir-ETS/
9. Trees - www.erlang.org/doc/man/gb_trees.html
9. Trees - www.erlang.org/doc/man/gb_trees.html
11. Benchmarking
11. Benchmarking
13. Elixir Nodes
13. Elixir Nodes
15. Streams
15. Streams
17. Liveview [ca2a6625]
17. Liveview [ca2a6625]
18. Connection Pool (DBPool)
18. Connection Pool (DBPool)
19. Leetcode stuff
19. Leetcode stuff
- Enum.frequencies
- destructuring and iterating with []
- Enum.split_with
- String.codepoints/String.graphemes
hdandtlfor manipulating a list- you can hash a list directly for a map!