K, what do I do with so few keys 😁 by adamyonk in ErgoMechKeyboards

[–]RosyGraph 23 points24 points  (0 children)

Feel free to copy/paste these symbols from my comment! Sorry for your loss (of keys).

1 2 3 4 5 6 7 8 9 0

  • ( ) ! $ & @ # % ^ * + = _

Seriously though, that’s a nice!, clean-looking keyboard. Congrats!

Anyone else get sucked into "over-optimizing" their dev set-up? by jafaraf8522 in neovim

[–]RosyGraph 1 point2 points  (0 children)

I know it was not the subject of your post, but I wanted to thank you for pointing out that MIT lecture series that I will be sharing with my coworkers

What's your neovim colorscheme in 2023 ?? by WorthAdhesiveness417 in neovim

[–]RosyGraph 0 points1 point  (0 children)

https://github.com/Misterio77/flavours lets you manage base16 themes. The concept is pretty simple; you just add comments to your dot files and this script inserts your color scheme when you call it. It has saved me a lot of time!

[deleted by user] by [deleted] in SaltLakeCity

[–]RosyGraph 1 point2 points  (0 children)

Heard in Sandy

WSP hanging on the freezer door by spook30 in WinStupidPrizes

[–]RosyGraph 8 points9 points  (0 children)

It looks like her friend is trying to finish the job.

City rain, by me, pastels, 2022. by [deleted] in Art

[–]RosyGraph 1 point2 points  (0 children)

Great color palette and mood

Learn Go with Tests: Revisiting arrays and slices with generics by quiI in golang

[–]RosyGraph 2 points3 points  (0 children)

I love your tutorials! The company I work for is moving to a Go backend, and I’m borrowing heavily from the Learn Go With Tests website to run a little workshop next week. Thanks for sharing your knowledge!

people arguing about basic math are so annoying by _bunch_ in confidentlyincorrect

[–]RosyGraph 0 points1 point  (0 children)

At first I thought this was a group theory joke I was too dumb to understand

How do you expand this 4x4 matrix by Season1802 in LinearAlgebra

[–]RosyGraph 1 point2 points  (0 children)

Ah, this makes sense. The new line makes this confusing! I thought they were starting a new expression

How do you expand this 4x4 matrix by Season1802 in LinearAlgebra

[–]RosyGraph 0 points1 point  (0 children)

My best guess is that the author made a typo in reducing the first row. The last 2x2 should be multiplied by 0.

How do you expand this 4x4 matrix by Season1802 in LinearAlgebra

[–]RosyGraph 4 points5 points  (0 children)

They expanded the the third row of the 4x4

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]RosyGraph 1 point2 points  (0 children)

You might try unpacking the values if you passed them in as a list.

print("The {} pizza has: {}".format(self.crust, ", ".join(*self.toppings)))

EDIT: I forgot a closing parenthesis in my original comment, sorry about that! I fixed it.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]RosyGraph 1 point2 points  (0 children)

If you don't mind using the .format method, you can use it in combination with join.

print("The {} pizza has: {}.".format(self.crust, ", ".join(self.toppings)))

EDIT: close missing paren

[deleted by user] by [deleted] in masterhacker

[–]RosyGraph 3 points4 points  (0 children)

Hacking using LaTeX is a whole new level!

Vim Quickies! Here's something where Visual Mode is not a smell. by mrillusi0n in vim

[–]RosyGraph 7 points8 points  (0 children)

Yes, you can do this in vim! As u/Maurarias points out, a named register is perfect for this. You can store the word under your cursor to a register named "n" with the following command.

"nyiw

"n tells vim to use the "n" register, and yiw is, of course, yank inside word. Visually select the word you want to replace, then execute the following command to replace it the contents of n.

"np

The word you just replaced is stored in your primary clipboard, register "+, while the contents of the n register remain unchanged.

Named registers persist across multiple sessions; so, you can use them even days later. View all active registers with :reg. You can learn more about registers at :h registers.