![Max ▷ Elixir Profile](https://pbs.twimg.com/profile_images/1647571302172205058/h4MaQqv4_x96.jpg)
Max ▷ Elixir
@elixirboy
Followers
602
Following
2K
Statuses
958
Have *you* fallen for @elixirlang yet? TIL's and reflections on Elixir. By @mxgrn
Kyiv/Himalayas
Joined April 2023
Apparently, there's already put_private for that:
LiveView pros, have you considered using Process.put/2 and Process.get/1 instead of socket assigns in those cases when that data wouldn't change during the lifetime of a LiveView? Example: I pass something in a session to a LV that I want to be accessible from its components.
0
0
1
@src_rip @TylerAYoung @snajper47 @ATimberlake Well, 'may' is the word I have an issue with here. Adding something like that signals that it's being used _somewhere_, while it's still there only for testing. A head-scratcher. Then, think of all the naming inconsistencies it'll introduce, as opposed to a clear convention.
1
0
2
TIL: You can define `fetch/2` in your struct-defining module and have it return anything you want for the `[]` operator: #ElixirLang
3
6
42
@barkerja_ Let's talk Telegram miniapps. I want to be able to open a miniapp to authorize with Google API (to be able to write to spreadsheets), and then somehow use that authorization to send requests to the API from my Telegram bot (in fact, from a server). Is it even doable?
0
0
0
@barkerja_ I need a TipTap editor extension that would allow pasting a URL over selected text such that it would turn the selected text into a link. Know what I'm talking about?
0
0
0
@barkerja_ Let's do the next step. The user enters a word (or expression) in Telegram. We need to call OpenAI API to identify, what language that expression is most probably in, then 1) reply to the user the detected language, 2) store the expression in the spreadsheets, as before.
0
0
0
@barkerja_ The User schema contains everything that's needed to have access to user's Google Spreadshits. Update my BotController such, that if the user sends 'test', a new line with text 'test' is added to a spreedsheet named 'test'.
0
0
0
@barkerja_ Yes, velocity is insane. I should have said "most of your *new* code", though. For now.
1
0
0
@atomkirk One example: what relevance does the absence of free will have when it comes to teaching children to live peaceful and happy lives, as opposed to harming others?
1
0
0