βοΈ Elixir Tip #26 - Project Priv Dir βοΈ
You can conveniently package arbitrary files along with your libraries and applications using the priv dir and fetching the path using the Erlang standard library.

βοΈ Elixir Tip #26 - Project Priv Dir βοΈ
You can conveniently package arbitrary files along with your libraries and applications using the priv dir and fetching the path using the Erlang standard library.
Biggest laggard last Monday from "Mag 7" was AAPL π
See their current 30-day zero-benchmark Sharpe ratios. Will this trend continue today or will there be a reversal?
βοΈ Elixir Tip #25 - Balzing fast read only store βοΈ
Erlang comes with a special storage mechanism called persistent term. Think ETS but even faster! But only use it for reading data that never changes :).
Biggest Winner Last Friday from the "Mag 7" was $NVDA π
Will this trend continue today or will there be a reversal? See how Nvidia's returns compared with the remaining Mag 7 stocks.
βοΈ Elixir Tip #24 - Erlang phash2 βοΈ
Did you know that you can hash any term in and clamp it to an integer range? In other words, you can get a consistent integer value given any input. Useful for partitioning and retrieving data π.
How is the "Volume King" $NVDA doing? π
Nvidia continues to dominate trading volume and is one of the most closely watched names in the stock market. Hereβs a look at its latest candlestick action and key price moves traders are watching.
βοΈ Elixir Tip #23 - Custom Inspect βοΈ
If you are ever in need of custom debugging output when inspecting a struct, you can write your own Inspect protocol implementation with just a few lines of Elixir!
Same CEO two different companies: Is there a relation between $TSLA $SPCX?
Elon Musk is the CEO of Tesla and SpaceX. Is their performance related? How will that evolve in the future? Letβs see their current 15-, 20-, 30-, and 50-day stock return correlations.
βοΈ Elixir Tip #22 - Erlang math module βοΈ
If you are ever in need of some mathematical related functions don't reach for a 3rd party library until you take a look at the Erlang :math module!
Biggest mover last Tuesday from "Mag 7" was $AMZN with a percent change of -2.02% π
Seeing all the "Mag 7" 30-day standard deviations, which one seems the riskiest to you?
βοΈ Elixir Tip #21 - Simple stream data processing βοΈ
The Enum and Stream modules complement each other quite nicely and can be used for easy and effective data processing. Take a look at how you can stream process a CSV file!
Biggest laggard last Monday from "Mag 7" was NVDA π
See their current 30-day zero-benchmark Sharpe ratios. Will this trend continue today or will there be a reversal?
βοΈ Elixir Tip #20 - Using ETS for storage βοΈ
If you are dire need of some performance gains take a look at ETS! But be careful since the ETS table lasts only as long as its parent process.
Biggest Winner Last Friday from the "Mag 7" was $AMZN π
Will this trend continue today or will there be a reversal? See how Amazon's returns compared with the remaining Mag 7 stocks.
βοΈ Elixir Tip #19 - Enum.with_index βοΈ
Often times when iterating over an enumerable, it is useful to have the index of the item as well. Particularly useful when outputting lists in LiveView.
How is the "Volume King" $NVDA doing? π
Nvidia continues to dominate trading volume and is one of the most closely watched names in the stock market. Hereβs a look at its latest candlestick action and key price moves traders are watching.
βοΈ Elixir Tip #18 - Enum group_by βοΈ
The Enum module is a treasure trove of awesome functions. One of those function that I use often is Enum.group_by so that I can group related data together for later processing.
Same CEO two different companies: Is there a relation between $TSLA $SPCX?
Elon Musk is the CEO of Tesla and SpaceX. Is their performance related? How will that evolve in the future? Letβs see their current 15-, 20-, 30-, and 50-day stock return correlations.
βοΈ Elixir Tip #17 - Time unity conversion βοΈ
Often times you'll need to convert time durations from millisecond to second or vice versa. Before reaching for a library to do that, check out System.convert_time_unit/3!
Biggest mover last Tuesday from "Mag 7" was $TSLA with a percent change of 3.98% π
Seeing all the "Mag 7" 30-day standard deviations, which one seems the riskiest to you?