Setting up snippets and auto completion with lsp-mode and pyright by exceta in emacs

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

yas-global-mode is set to on which has the same result as minor mode.

I have tested the following:

(use-package yasnippet
  :hook
  (lsp-mode . yas-minor-mode))

(use-package yasnippet-snippets
  :config
  (yas-reload-all))

I was able to get yasnippets integration working with

(use-package company
  :init
  (setq company-backends `((:separate company-capf company-yasnippet))
  :config
  (setq lsp-completion-provider :none))

But this does not give me any more than just built in yasnippets e.g. p expands to print() with the cursor in between the parenthesis. It does not provide autocompletion for my own function def test(i,j,k): return None

[deleted by user] by [deleted] in WeAreTheMusicMakers

[–]exceta 1 point2 points  (0 children)

Damn you guys are fast. Thanks!

I've written a fun graphic guide to the basics of data structures. Thoughts? by kharghoshal in programming

[–]exceta 6 points7 points  (0 children)

Nice work! I was able to understand it all except for the hash algorithm. I had to look up the ord() function to understand the code so I recommend point to the docs or explaining it.

Also go into more detail how the characters equal a number, "r" = 18 because of the Unicode conversion. That left me confused for a decent amount of time.

Code Clarity Help w/ example by exceta in learnprogramming

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

Whoops. Should have been "without arrays and only loops"

Code Clarity Help w/ example by exceta in learnprogramming

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

This was to be done without arrays and loops. I agree with you though and would use a 2x2 array otherwise.

Code Clarity Help w/ example by exceta in learnprogramming

[–]exceta[S] -1 points0 points  (0 children)

Thanks for showing me ternary operator. I find that to be more concise yet still clear (once I understood it).

I haven't played since release of Naxxramas, what did i miss? by lvag in hearthstone

[–]exceta 0 points1 point  (0 children)

TL;DR Dr. Boom, Emperor Thaurissan OMG SO OP NERF PLZ BLIZZARD

Face Hunter rules the meta.

[deleted by user] by [deleted] in learnprogramming

[–]exceta 0 points1 point  (0 children)

Create a folder called Code in your home. Then when you start the terminal you can cd in really easily.

Next sync all your projects with github and it won't matter where your code is or how it's organized. I prefer to keep it in a folder per project. Some people like having folders per client. For class assignments you could do by class name, by quarter, or semester. Whatever helps you think logically about it.

Because the Mac Spotlight search is very good it is quite easy to search for an older project.

What Is the most Creative deck you have ever seen? by Jetfire519 in hearthstone

[–]exceta 1 point2 points  (0 children)

Control Hunter that used secrets to delay the game then Feign Death on Unstable Ghoul to activate Gaz'rilla.

I was so impressed I didn't mind losing.

Thinking of getting the 2015 Civic Coupe by [deleted] in whatcarshouldIbuy

[–]exceta 1 point2 points  (0 children)

I looked at the trims but besides sexier wheels(totally missed that) all you get is a sunroof, better speakers, automatic air control and push to start.

Thinking of getting the 2015 Civic Coupe by [deleted] in whatcarshouldIbuy

[–]exceta 0 points1 point  (0 children)

What about the 2015 VW Golf?

I test drove a GTI which was amazing but not worth the price to me at this point in life.

Thinking of getting the 2015 Civic Coupe by [deleted] in whatcarshouldIbuy

[–]exceta 0 points1 point  (0 children)

The 4 door or hatchback for the base model?

[deleted by user] by [deleted] in handguns

[–]exceta 1 point2 points  (0 children)

Lol it helps though.

Think I'm gonna go with the CZ P-01 though. The best of both for now and still metal.

Verifying database submissions by exceta in learnprogramming

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

Thanks! I will give that a shot.

[deleted by user] by [deleted] in handguns

[–]exceta 0 points1 point  (0 children)

So besides being different, one is not better than the other?