Advertisement ยท 728 ร— 90

Posts by Netto

I wrote this right after listening to @thinkingelixir.com ๐Ÿ˜†

1 year ago 1 0 0 0

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

1 year ago 1 0 1 0
Preview
Syntax highlighting for curly brackets on heex by nettinho ยท Pull Request #28 ยท phoenixframework/vscode-phoenix I've forked this repo to get syntax highlight working with the newly added curly brackets syntax. I'm not sure if this is the way to submit a possible contribution, and it definitely needs ...

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...

1 year ago 0 0 0 0

Hello. I'm also an Elixir dev

1 year ago 2 0 0 0
Post image

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

1 year ago 9 1 0 0
Post image

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)

1 year ago 2 0 0 0
Phoenix LiveView 1.0.0 is here! - Phoenix Blog LiveView 1.0 is out!

phoenixframework.org/blog/phoenix...
What a masterpiece blog post to celebrate LiveView 1.0.0!

1 year ago 0 0 0 0

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.

1 year ago 1 0 2 0
Advertisement

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.

1 year ago 0 0 1 0

Do you mean without the `<.live_component` ?

1 year ago 0 0 1 0

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.

1 year ago 0 0 1 0

Very cool!

1 year ago 0 0 0 0
Post image

AoC 2024 - Day 3

Looks like we are getting the [easy day / harded day] pattern xD.

#ElixirLang #AdventOfCode

1 year ago 2 0 1 0
Post image

Day 2
#ElixirLang #AoC2024

1 year ago 2 0 0 0
Post image

And so it begins! =D

1 year ago 1 0 0 0

Thanks for pointing that out. I just merged a commit that fixes the issue you were encountering.

1 year ago 0 0 0 0

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

1 year ago 1 0 0 0
Video

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

1 year ago 1 0 1 0
Advertisement
Post image

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

1 year ago 3 0 1 0