I wrote this right after listening to @thinkingelixir.com ๐
Posts by Netto
My current assigned task is to update all our services Elixir versions. I just feel that by the time I finish it up, 1.18 will be released ๐ซ
We have no news on that, right?
#elixirlang
I love the curly bracket, specially with the auto formatter. But I noticed the VS Code syntax highlighting got messed up.
I forked the vscode-phoenix and built locally a package that works for me.
I also made PR, but I don't know if it is the way to go for contributions.
github.com/phoenixframe...
Hello. I'm also an Elixir dev
Advent of Code - Day 4 - Part 2
In part 2, the first thing that came in to mind was a sliding window, much like a CNN.
It turned out to be very simple to check for the 4 possible configurations of X-MAS
#ElixirLang #AdventOfCode
Advent of Code - Day 4 - Part 1
Instead of searching in all directions, I scan for XMAS normally and rotate the matrix (including diagonally xD)
Just did. It does work! You can also do a generic:
```
def call(assigns) do
~H"""
<.live_component module={__MODULE__} {assigns}/>
"""
end
```
Maybe you can put that in your `MyAppWeb.live_component\0` and have it available for all your components.
The same thought came to my mind when creating some entity dropdown selectors. xD I'd guess that <.live_component is necessary to manage the life cycle, since the component needs to be mounted and stuff. Still wonder if there could be a syntax sugar to make it transparent.
Do you mean without the `<.live_component` ?
I saw a couple of nice alternatives. One from @binarymuse.net using NimbleParsec, a library for text-based parser combinators. And @bcardarella.bsky.social did it directly with Elixir's binary pattern matching.
Very cool!
AoC 2024 - Day 3
Looks like we are getting the [easy day / harded day] pattern xD.
#ElixirLang #AdventOfCode
Day 2
#ElixirLang #AoC2024
And so it begins! =D
Thanks for pointing that out. I just merged a commit that fixes the issue you were encountering.
If you are playing the chess tournment in Madrid, you can check out the results of the rounds and the teams lineups on chessmate.es
If not, you can also enter to check a simple Liveview app. Anyway I just love seeing fly.io Grafana metrics going up and down ๐
#ElixirLang
To use it you only need to install the dependency and select the "Smart Advent of Code" option in the Smart Cell'ss dropdown. You will have a code editor below, to develop your solution. You can also toggle if you want to run it with the example input and/or your actual input from AoC
It's almost that time of the year where I enthusiastically set up my Advent of Code livebook, just hoping I'll complete more days than the previous year! ๐
Here is a SmartCell I made to have the puzzle into the livebook itself, if you want to give it a try.
github.com/nettinho/smaoc
#ElixirLang