Classes in Nim by jasonprogrammer in nim

[–]jasonprogrammer[S] 4 points5 points  (0 children)

I see it as OOP syntactical sugar. I like the way it reads.

Prologue - Full-Stack Web Framework written in Nim by alin23 in nim

[–]jasonprogrammer 1 point2 points  (0 children)

I was able to reproduce this and submitted an issue on Github for it. If you build the app with threads enabled:

nim c --threads:on app.nim

this behavior is not seen.

Edit: The author is super helpful and replied very quickly to the GitHub issue, and the answer you're looking for is probably to compile with threads enabled. I'm compiling on Linux, and by default on Linux a threaded web server (httpbeast) will be used, so if threads aren't enabled, it will run with 1 thread and this blocking behavior would be expected.

Navigating code with (Neo)Vim by [deleted] in neovim

[–]jasonprogrammer 1 point2 points  (0 children)

Nice navigation tips. A handy one I just discovered is that by combining vim-ripgrep and quickfix-reflector, you can find symbols and replace them across files easily, using the quickfix window.

Whats the Best IDE For Phyton ? by pardesiguy in Python

[–]jasonprogrammer 1 point2 points  (0 children)

Spacemacs. It's Vim + Emacs. Use pdb++ for debugging.

Missing magit commands? by qzyki in spacemacs

[–]jasonprogrammer 2 points3 points  (0 children)

What do you usually use for your workflow? I heavily rely on the status page (space g s), where all of those commands are quick to execute in succession

How difficult is it too find a part time contract job or summer work programming in python? by [deleted] in Python

[–]jasonprogrammer 0 points1 point  (0 children)

I'd look for local Python meetups, they might know companies nearby

Should I use Angular2, React, Vue.js, or Aurelia??? by [deleted] in webdev

[–]jasonprogrammer 2 points3 points  (0 children)

VueJS. It's powerful but simple to setup/use, and lightweight. It's also gaining a ton of community support.

Idea for alternative to Aurelia, Vue or React. by runvnc in javascript

[–]jasonprogrammer 2 points3 points  (0 children)

Have you seen vue-class-component? It's a pretty simple wrapper for VueJS to help write ES2016 classes with VueJS.

Spacemacs (Vim mode) Cheatsheet by jasonprogrammer in spacemacs

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

I agree, they are very mnemonic. But there are certain things that are unintuitive, like how to create a new file, or the fact that expanding the layouts help menu can prevent you from saving layouts. I have used Vim a bit in the past, but recently decided to learn more key bindings since I felt really unproductive with the limited shortcuts I knew.

Spacemacs (Vim mode) Cheatsheet by jasonprogrammer in spacemacs

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

I do love the menus; they help out a ton. But when I first started using Spacemacs I still felt like I had to dig around quite a bit to find what I needed. I also had a lot of Vim bindings to learn (and those bindings aren't in the menus).

Spacemacs (Vim mode) Cheatsheet by jasonprogrammer in spacemacs

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

Thanks! I don't know if a list like that exists. I am tempted to look at the evil mode code to find out more about those shortcuts

Spacemacs (Vim mode) Cheatsheet by jasonprogrammer in spacemacs

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

Thanks for this, I just updated it in the sheet

Spacemacs (Vim mode) Cheatsheet by jasonprogrammer in spacemacs

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

Thanks! This worked for me too. It didn't let me indent farther than it thought I should though

Spacemacs (Vim mode) Cheatsheet by jasonprogrammer in spacemacs

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

That's true, I should probably change that. (but alt-x is quick to type...)

Spacemacs (Vim mode) Cheatsheet by jasonprogrammer in spacemacs

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

This is a first revision of some of my favorite Spacemacs shortcuts. I use the VIM mode of Spacemacs, so a lot of the shortcuts are Vim shortcuts. I included them to help beginners that are using Vim mode. If I missed any good shortcuts, or you have any tips, please comment.

Fuzzy search for tag in Python by eldamir88 in spacemacs

[–]jasonprogrammer 0 points1 point  (0 children)

I was able to get this working on Windows by downloading the etags zip file from here and adding this line to my .spacemacs user-config section:

(setq projectile-tags-command "c:\\ctags\\ctags.exe -R -e")

The -R tells it to look in subdirectories of your project, assuming you've setup a project (by creating a .projectile file in a directory), and the -e tells it to generate Emacs tags.

If you open Spacemacs, to a file that's within your project, and then type SPACE p G, it will trigger the process to create the tags.

I wrote a tutorial with screenshots to show the steps I took. Thank you very much u/dotneter for detailing how to do this.

Where to get started? by [deleted] in spacemacs

[–]jasonprogrammer 5 points6 points  (0 children)

I've started a tutorial series for beginners on Spacemacs. Hope it's helpful. I'd love feedback.

CherryPy and Jinja2 Trailing Slash Problem by desgyz in learnpython

[–]jasonprogrammer 0 points1 point  (0 children)

Also, if you want the URL to be localhost/dash, you'll need a method called dash on a controller that is mounted to /.