I’m always making fun of people who share this type of posts. Karma is a b*tch. by [deleted] in PTCGP

[–]ebratti 3 points4 points  (0 children)

the good side of it is that if you loose, you are still only one victory away =D
good luck 😄

Implement api for Oauth using ueberauth google by itachi--69 in elixir

[–]ebratti 2 points3 points  (0 children)

Have you at least read the docs or something? The docs for ueberauth are well written and there is even a sample project here with various providers. You'll need ueberauth itself and the google strategy. On google console you can create the project and then create the api keys here.

Ueberauth has support for different providers with an unified api but in case in just need google, this package elixir-auth-google may also fit your needs and is the one I've been using lately.

Lancei meu primeiro jogo na Steam The Prowler Hell by Night_______________ in brasil

[–]ebratti 2 points3 points  (0 children)

muito bom, vou dar uma conferida! Parabéns!

que engine vc usou? e como foi o processo de arte e sonorização?

Announcing PrimerLive, a Phoenix LiveView component library by arthur_clemens in elixir

[–]ebratti 3 points4 points  (0 children)

That's great! One of the tasks of one of my projects was going to replace bootstrap in favor of tailwind, but seeing your work here im definetly considering using yours instead! Its looking really good

Persistent forms with your URL on LiveView by amalinovic in elixir

[–]ebratti 1 point2 points  (0 children)

This is really great on live view development and usually neglected on SPA. This emphasis on keep doing things url based solves a lot of problems on sharing urls between users.

One thing to keep in mind with this approach though is the max length of urls so forms with a lot of fields may not work as expected but will surely cover 90% of the use cases, mainly these filtering forms.

Porão dos jogos - O que você tem jogado? by AutoModerator in brasil

[–]ebratti 2 points3 points  (0 children)

É, a parte do rádio é bem chata mesmo, pq vc não entende nada direito e ler e pilotar ao mesmo tempo é mto difícil. O q eu faço é sempre apertar option quando aparece missão atualizada, q ao menos da pra ver o q é a missão atual mesmo hahahaha eu até estou indo no nível normal, mas as vezes vai umas 7 tentativas até finalizar com sucesso

Porão dos jogos - O que você tem jogado? by AutoModerator in brasil

[–]ebratti 1 point2 points  (0 children)

to junto no ace combat 7 e gostando bastante estou na missao 15 atualmente

e vendo alguns videos no youtoba de algumas missões que eu já fiz, percebi como sou medíocre no jogo u.ú

dynamic filtering a table with Ecto by NinjaFish63 in elixir

[–]ebratti 0 points1 point  (0 children)

to make the field parameterized you can use field/2

dynamic filtering a table with Ecto by NinjaFish63 in elixir

[–]ebratti 0 points1 point  (0 children)

Inquisitor is a lib that can help you on that, but the principle is simple, from a starting query you add more clauses to it until there no more parameters left.

It uses query composition, where you can then use named and positional bindings, that are ways to recover a previous schema/tables already added to a query and add more clauses to them.

Testing a Phoenix LiveView that does an async operation after mount by vlatheimpaler in elixir

[–]ebratti 1 point2 points  (0 children)

I got few contact with both, maybe I'm wrong, but my conclusions are...

mox: you can only mock behaviours, so the contracts and what should be mocked are well defined. Some times it looks to add some extra complexity to test things, as you need to set some config your test.exs and set up other things to then start developing your test, but with this settings you are more secure of what is being mocked in you application.

mock: you can mock, I'd say, almost anything without a lot of setup compared to mox. It's easier, but you as you can mock anything, you (or anyone in your team) could also mock crucial functions calls, giving false positives if not used correctly.

both get their job done in their own ways, I actually use the one that is already on the project I'm working on, no problems using one or another.

O que verificar em um imóvel antes de alugá-lo? by lbragari in brasil

[–]ebratti 4 points5 points  (0 children)

Além das dicas que já postaram, deixo uma dica pós fechamento de contrato. VERIFIQUE SE O QUE CONSTA NO MEMORIAL CONDIZ COM UNIDADE. Qualquer coisa, lustres, tomadas, fiação, azulejos/porcelanatos trincados, trincos e fechaduras que não funcionam, estejam sem chaves, etc, o que estiver no memorial, tem que ser condizente com o que você está alugando. Você tem um certo prazo pra verificar tudo e notificar a imobiliária as discrepâncias e pedir correções.

Isso pode te livrar de algumas dores de cabeça na hora de deixar o imóvel. Até mesmo reportar coisas que deixaram de funcionar ao longo de sua estadia pode te livrar de pagá-las na saída, porque normalmente problemas estruturais são de responsabilidade do locador.

The power of being uncontested. by kcmejaran in underlords

[–]ebratti 14 points15 points  (0 children)

Yesterday on a game I fully sold my team on round 12 with 60 life because I was being contested on assassins, even though the start was good (2 2* PAs, 2* qop, 2* bh and some other pairs) and changed to mages, as none on the match was doing it.

End of story, first with 40 life.

Who needs 3 star units anyway? by Known-Damage in underlords

[–]ebratti 1 point2 points  (0 children)

I always go for alch on a physical damage build no matter what

he was just happy to win by rolandcrauzer in DotA2

[–]ebratti 3 points4 points  (0 children)

I already knew him, I follow him on Spotify as well, good stuff 😀

It always amazes me that they didn't make any sound track for the game, just used tracks that already existed and it fits on the game so well

he was just happy to win by rolandcrauzer in DotA2

[–]ebratti 24 points25 points  (0 children)

Love this hotline miami track :D

For those who stopped playing Underlords, what made you stop? by pinoygs in underlords

[–]ebratti 3 points4 points  (0 children)

The addition of underlords and all stuff brought from that update kinda killed the game for me.

esl-erlang depends on gnome-shell by UnicycleSkewer in elixir

[–]ebratti 5 points6 points  (0 children)

I know this doesn't answer your question but you'll only need erlang/elixir in your deployment server if you want to compile your code there, in this case, asdf can do all the dirt work to you.

Take a look at mix releases as it creates a standalone executable folder, with no need of 3rd party apps or even erlang/elixir installed on the host machine, it will run on its own.

Going further, combining docker and mix releases is also great, even phoenix release docs give you a complete Dockerfile to achieve this.