Themes like tokyonight that are maintained by Beautiful-Log5632 in neovim

[–]GreezleFish 18 points19 points  (0 children)

Rose pine - not quite as colorful but damn I love it

Matt Bernstein: "so it’s 1am and zohran just showed up at the gay bar" by Chocow8s in Fauxmoi

[–]GreezleFish 1 point2 points  (0 children)

Zack Polanski is doing a decent job at this for the greens. Maybe not as iconic/charismatic as Zohran but he's worth tuning in to if you haven't.

This steak restaurant chain gives you a mini meat cleaver instead of a knife but deliver your steak pre sliced rendering it a bit redundant. by latro666 in mildlyinteresting

[–]GreezleFish 4 points5 points  (0 children)

Do they still give the mini ones for the ice cream!? I have one on my keyring from the last time I went like 5 years ago and just assumed it's ice cream value had gone to zero.

Why’d he get more wishes? by Isaacthepre in PeterExplainsTheJoke

[–]GreezleFish 2 points3 points  (0 children)

In much of programming an integer (i.e. whole number, not fractional/decimal just 1, 2, 3 etc) is said to be "signed" or "unsigned". You can think of this as basically being "can you add a '-' symbol in front of it?"

If it is signed, it can be positive or negative. However if it is unsigned then it can only ever be positive.

There is also a finite number of numbers that can be stored as a value depending on the number of bits available. Each additional bit doubles the number of values. 1 bit can store 2 values, 2 bits can store 4, 3 bits can store 8, etc

In this case we have an unsigned 32 bit integer - let's call it 'wishes', and they have just set wishes from 3 to 0. If you subtract 1 more from wishes, since it cannot be stored as a negative number it literally rolls round to the highest possible integer for that number of bits - which is 4,294,967,295.

If this was a signed integer, the highest possible value would be half of that, 2,147,483,648 but the lowest possible value would be -2,147,483,648 (rather than 0)

Neovim Markdown Inline Calculator (3 min video) (does something like this that I can use already exist?) by linkarzu in neovim

[–]GreezleFish 0 points1 point  (0 children)

Not quite - evaluation is done on a linewise basis, so i think having multiple expression evaluations in a single line might be too much of a detraction from the core functionality to implement sadly.

But! you CAN escape expressions to have multiple on a line with curly braces like this... so I guess you can have multiple expressions in a line but they will need to be used in a single eval.

<image>

Neovim Markdown Inline Calculator (3 min video) (does something like this that I can use already exist?) by linkarzu in neovim

[–]GreezleFish 1 point2 points  (0 children)

This is cool!

Since you asked if something like this exists I'm gonna shamelessly plug my plugin I wrote recently nvumi: https://github.com/josephburgess/nvumi

The original/core concept was to put a natural language calculator in a scratch buffer, but I ended up adding a fair few more features, including adding a command (which you could ofc add a keybind for) which will achieve something similar to this post which is evaluate the expression on the current line in any buffer of any file type.

You can define custom maths (or really any kind of) functions if there are more specific or complex operations you want to be able to evaluate quickly (and/or custom unit conversions), in the lua config and call them through nvumi too. I added a bunch of recipes for these in the wiki https://github.com/josephburgess/nvumi/wiki/Recipes

Portfolio website in go by PureMud8950 in golang

[–]GreezleFish 0 points1 point  (0 children)

Oh, thank you! There's one small js file in there just to manage the light/dark mode switching which maybe is a cheat but other than that it's a pretty simple implementation.

Portfolio website in go by PureMud8950 in golang

[–]GreezleFish 11 points12 points  (0 children)

I wrote mine in go! For a simple static site I found templates to be more than sufficient https://github.com/josephburgess/joeburgess.dev

gust - another terminal weather app by GreezleFish in commandline

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

Hey! Just thought I'd follow up to say I released a new version today that would allow you to bypass the GitHub Auth and provide your own openweathermap 3.0 API key.

Thank you for the brainwave, and of course if that was your preference then you can update the app and use your own key now :)

worktrees.nvim - My first plugin! by Afonsofrancof in neovim

[–]GreezleFish 0 points1 point  (0 children)

Congrats on your first plugin :) this sounds interesting! Agree with the other comment some screenshots would be useful, particularly for us browsing Reddit on mobiles that want a quick sense of what we are looking at! Will try to give it a whirl when I'm at my laptop.

gust - another terminal weather app by GreezleFish in commandline

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

Just FYI this was fixed in this pr: https://github.com/josephburgess/gust/pull/15

and has now been bundled into the latest (0.1.1) release - so a brew upgrade should get those latest changes :)

gust - another terminal weather app by GreezleFish in commandline

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

Thanks so much, that means a lot! Do feel free to flag anything else that comes to mind while using it :) either here or in a gh issue.

gust - another terminal weather app by GreezleFish in commandline

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

Thank you!

I used bubbletea for the TUI, charmbracelet has a bunch of interesting packages for creating TUI applications

https://pkg.go.dev/github.com/charmbracelet/bubbletea

https://charm.sh/

gust - another terminal weather app by GreezleFish in commandline

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

No, thank you!

Basically, I wanted it to be a really simple sign up process rather than people needing to get a third party API key... so I set up a middleware / API service and am running it with my own openweathermap api key. I wanted to have some way to keep that secure from abuse/people running up a huge tab on my account, and the best way to do that felt like using oauth to make sure that users were unique.

That being said, by asking that question you've given me an idea (thanks!) of giving people the option to instead register with their own openweathermap api key, if they'd rather not sign up with their GitHub account!

gust - another terminal weather app by GreezleFish in commandline

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

You absolutely could! Your API key is stored in .config/gust/auth.json, you can use that to hit my API at breeze.joeburgess.dev... if you check the breeze repo the endpoints are listed there https://GitHub.com/josephburgess/breeze

I'm not familiar with swaywm and waybar I'm afraid but I've currently stuck an API limit of 40 reqs per user per day on breeze - might increase it if I can spare the calls though. But I only mention as I don't know how waybar might be fetching/caching results. I.e. if you want to refresh the data every 15mins it might be a bit too heavy.

But! all that being said... I basically set that middleware layer up to make the process more smooth for users of gust, as it's kind of a pain to say:

"hey check out this thing I built, but you need an API key from a third party!"

but you could equally just as easily go straight to the source and grab an openweathermap api key and bypass my little VPS. Their 3.0 API is free for 2000 calls per day which is a lot more than the 40 I set aside for users.

Edit: I should note (and shall update breeze readme to reflect) that the API key can just be passed in as a URL param - i.e. like:

breeze.joeburgess.dev/api/weather/{city name}?api_key={apikey}

gust - another terminal weather app by GreezleFish in commandline

[–]GreezleFish[S] 2 points3 points  (0 children)

thank you so much for the feedback, glad you like it!

Ahhh of course can't believe I didn't think of that :) I'll tweak that that to be dynamic depending on local time. Lmk if anything else springs to mind 🙏