nmk retweeted
Today I learned that you can pass a version-file option to the erlef/setup-beam GitHub action to get the Elixir and OTP version in your pipeline from a file, e.g. a .tool-versions.
I previously wrote my own custom pipeline step for this.
#myelixirstatus

ALT An example of a GitHub Actions workflow configuration for a job named 'test.' The workflow includes two steps: the first checks out the repository's code using 'actions/checkout@v4,' and the second sets up the BEAM environment using 'erlef/setup-beam@v1,' specifying the BEAM version from a '.tool-versions' file with strict versioning.
It has always bothered me that updating dependencies is done with `mix deps.update` and checking for outdated dependencies is done with `mix hex.outdated`. Mix aliases to the rescue. #myelixirstatus
154
nmk retweeted
An update to my timezones video, now with less round trips. #myelixirstatus
youtu.be/fvuT5fqbSm8
Thanks to @nmk for the tip.
Replying to @DNAutics
If you need the timezone on all sockets and want to avoid hooks and events, you can also pass the timezone as a socket param (in `new LiveSocket()` and it will be available in all live views in the connect params.
> And at the time probably had the best css support out there.
No surprise there. Prince was created by the creator of CSS himself - Håkon Wium Lie. :-)
31
Also, my charlist+recursion based solution for day 1 is three times faster than the string one. 🤷♂️
1
74
If you are doing #AdventOfCode in Elixir do yourself a favour and use the starter graciously provided by @mitchhanberg. And input downloader, test harness and even benchmarks! github.com/mhanberg/advent-o…
#MyElixirStatus
Replying to @germsvel
There is also `mix test --failed` to run all failing tests from the last run. And `mix test --stale` to run all tests which have changed since the last run (either directly or through module dependencies).
1
3
90
Replying to @DNAutics
This is what I have been using for a few months now and it has worked great.
16
Replying to @peregrine @TylerAYoung
Would you also write a separate User.just_id() type for use in specs?
13
Replying to @TheJMoore
Monospaced fonts often look very out of place in interfaces like this. Some quality fonts support tabular numbers, e.g. Inter - rsms.me/inter/#features/tnum Not sure about Overpass though. Enable in CSS with font-variant-numeric: tabular-nums;
2
Replying to @mattoflambda
Selling high-end road bike, lightly used. :-) Now look for
Vittorio Brumotti on YouTube.




