Keyboard shortcuts

/ or ⌘/Ctrl K
Find a note
j / k
Next / previous section or linked note
h / l
Collapse or go to parent / expand or enter
e or Alt-click
Read a linked note here
o
Open focused note on its own
g g / G
First / last section or linked note
g h / g a
Home / all notes
g b / g t
Backlinks / table of contents
t
Cycle System, Light, Dark
? / Esc
Show / close this reference

Search: ↑/↓ or Ctrl N/P, Enter to open. Shortcuts pause while typing.

elixir [d669100c]

Tags: computers

1. GenStage

GenStage (github.com/elixir-lang/gen_stage) acts similarly to genevent, although provides a different set of primitives

2. Conventions

  • folders under /lib/<application_name>

3. Projects

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

6. exmagick issues with Apple M1 chip:

7. asdf Support

8. ETS

9. Trees - www.erlang.org/doc/man/gb_trees.html

10. Time Zones

11. Benchmarking

12. Monitoring for elixir [9bfbc347]

13. Elixir Nodes

14. parser combinators

15. Streams

16. schedulers

17. Liveview [ca2a6625]

18. Connection Pool (DBPool)

19. Leetcode stuff

  • Enum.frequencies
  • destructuring and iterating with []
  • Enum.split_with
  • String.codepoints/String.graphemes
  • hd and tl for manipulating a list
  • you can hash a list directly for a map!

20. Meetups

21. Libraries