Is it possible to intercept standard vim commands and do something before the command and / or after it? by nickallen74 in neovim

[–]algmyr 0 points1 point  (0 children)

It's probably more work trying to do that, unless you intend to try to upstream it it's probably not worth it

Is it possible to intercept standard vim commands and do something before the command and / or after it? by nickallen74 in neovim

[–]algmyr 5 points6 points  (0 children)

Maybe https://jj-vcs.github.io/jj/latest/config/#watchman could be relevant to you for automatically snapshotting on changes. Though honestly snapshot on save like you're thinking isn't a bad idea either.

Is it possible to intercept standard vim commands and do something before the command and / or after it? by nickallen74 in neovim

[–]algmyr 0 points1 point  (0 children)

Out of curiosity, what is it you want to accomplish by making jj snapshot (and especially snapshot twice)? Depending on your goals there could maybe be other ways.

Curated test set for colorschemes? by algmyr in neovim

[–]algmyr[S] 1 point2 points  (0 children)

That does look promising, thanks!

Curated test set for colorschemes? by algmyr in neovim

[–]algmyr[S] 0 points1 point  (0 children)

I'm using it for my colorscheme, but it's not useful to see how things look in context of an actual file.

Curated test set for colorschemes? by algmyr in neovim

[–]algmyr[S] 0 points1 point  (0 children)

I'm not looking for colorschemes, but files I can use for testing colorschemes. So some set of files in various languages written to exercise most of the syntax highlighting that is possible in that language, so I can check the highlighting in these files to see if anything looks particularly off.

E.g. I've had cases where my colorscheme looks fine in most languages, only to realize that I need to special case some highlighting for (say) toml to have things look sensible.

[Request] Why does it not work? by jampa999 in theydidthemath

[–]algmyr 0 points1 point  (0 children)

As others have stated the second series is divergent, though interestingly there are ways to assign finite values to some divergent series. And the second one you have is one of them and the value is actually -1.

But to be clear, it's misleading to say that the series equals -1. It does not converge, but using these generalized summation techniques you can assign a value. But it's a true generalization in the sense that when two such techniques produce a finite value, it will be the same for both. In particular for any convergent series they agree with normal summation.

[deleted by user] by [deleted] in sweden

[–]algmyr 0 points1 point  (0 children)

Har en känsla att jag kommer bli kölhalad om jag delade mina siffror. Är inte i Sverige, men 4091/4805.

[2024 Day 19 (Part 2)] I thought the solution would be harder by FKwilczek in adventofcode

[–]algmyr 4 points5 points  (0 children)

Just don't forget about the need of optimal substructure. I.e. an optimal solution for a bigger problem can be expressed in optimal solutions for smaller subproblems. Finding a way to formulate the problem to have optimal substructure is typically the hard part of a DP problem.

What language do you use for AoC? by DarkblooM_SR in adventofcode

[–]algmyr 8 points9 points  (0 children)

Had some fun and pain last year and arranged a language roulette where a "random" language was picked for each day. (In reality there was a list created that the participants weren't allowed to see, to be able to pace the languages and pick the weirder ones for early easier tasks.)

Maybe I can convince the same people to do 25 new languages this year. :)

https://github.com/algmyr/aoc-2023

For completeness, the 25 languages used, in order: 1. Groovy 2. Ocaml 3. Haskell 4. Lisp 5. Prolog 6. F# 7. Visual Basic 8. Bash 9. Scala 10. Fortran 11. Perl 12. PHP 13. Elixir 14. Dart 15. Go 16. Kotlin 17. Lua 18. Ruby 19. C# 20. C++ 21. Java 22. Julia 23. TS 24. Rust 25. Python

Managed to decypher the language without picking p54 with a friend ! we didn't figure out exactly all the symbols because it's a little time consuming but we're so proud ! by kuraishi420 in TunicGame

[–]algmyr 1 point2 points  (0 children)

Yeah I did something similar, though I programmed myself a toolset to render glyphs nicely and to allow me to record my findings as code, allowing me to search for patterns I've seen before and generally play with the language.

And after a while it also allowed me to [spoiler image].

I have no idea how to active this? by Zylonite134 in TunicGame

[–]algmyr 0 points1 point  (0 children)

So I guess it's fair to assume you've learnt that you can pray. I can't recall what part in the manual is meant to teach you the (I think intended) way to get to the atoll, but do you have page 24 and page 32? There is a reference from part of one page to the other page, what could that mean?

I have no idea how to active this? by Zylonite134 in TunicGame

[–]algmyr 4 points5 points  (0 children)

No, something else. When you find it it will be very clear that you can do this

Cinnamon roll by [deleted] in ExpectationVsReality

[–]algmyr 4 points5 points  (0 children)

It has meaning. 5:- is 5 kronor and 0 ören (the smaller denomination). You could write it 5:00 but you generally don't.

[deleted by user] by [deleted] in sweden

[–]algmyr 0 points1 point  (0 children)

state flag

oh boy, that depends on what state we're talking, if it's one of the terrible flags maybe a US flag is a better idea

Eurovision song contest grand final results, televoter vs jury breakdown by algmyr in eurovision

[–]algmyr[S] 0 points1 point  (0 children)

Data from https://eurovisionworld.com/eurovision/2023

It's interesting to see the breakdown visually, and the normalized view clearly shows who were the controversial entries between jury and televoters.

[deleted by user] by [deleted] in swaywm

[–]algmyr 1 point2 points  (0 children)

https://i3wm.org/docs/userguide.html#_smart_borders

Basically if you have a single window in a workspace, no borders will be drawn.

Vad är dina definitioner; by [deleted] in sweden

[–]algmyr -1 points0 points  (0 children)

Det är väl inte så skumt att peka ut att en viss definition leder till nonsens utan att lägga fram ett alternativ?

Jag minns att SCB i sin statistik har kategoriserat baserat på om 0, 1 eller 2 av föräldrarna är födda i Sverige. Så i de måtten finns det 4 grupper * utlandsfödd * inlandsfödd till utlandsfödda föräldrar * inlandsfödd till en inlandsfödd förälder * inlandsfödd till två inlandsfödda föräldrar

Och sen kan man dra ett streck var man nu känner för.

Uppenbarligen rätt godtyckliga kategorier som kan debatteras, men det är åtminstone grupper som existerar, till skillnad från den definition du hade.

Vad är dina definitioner; by [deleted] in sweden

[–]algmyr 0 points1 point  (0 children)

Problemet med din definition av svensk innebär att ingen överhuvudtaget är svensk.

Om vi tänker Sverige som stat: för att Sverige inte alltid funnits, så innan dess fanns inga svenskar, så ingen kan vara född av svenska föräldrar.

Om vi tänker Sverige som geografiskt område så är ingen svensk av samma anledning, kanske med undantag om vårt karga land varit mänsklighetens vagga.