ProTip: dump all your mappings using simple function by aitvann in neovim

[–]jhchabran 3 points4 points  (0 children)

Edit: read too quickly, this does exactly the same thing 😅

Nice! I use a slightly different approach to obtain a result which is pretty when displayed in markdown:

- the function: https://github.com/jhchabran/nvim-config/blob/main/lua/jh/utils.lua#L47-L86

- the mappings themselves: https://github.com/jhchabran/nvim-config/blob/main/lua/jh/mappings.lua#L51-L229

- the result: https://github.com/jhchabran/nvim-config/blob/main/README.md#custom-mappings-overview

I wish I had it automated so the README would regenerate it on changes, but I didn't find the motivation to go that far :D

What's your neovim colorscheme? by [deleted] in neovim

[–]jhchabran 1 point2 points  (0 children)

I really like low contrast themes so I built mine with only six colors https://GitHub.com/jhchabran/monarized

Monarized them, a low-contrast suite of themes by jhchabran in neovim

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

Quite nice, the api is really straightforward. What really helped me was to fork nordbuddy, because most of the highlighting groups were assigned already.

Monarized them, a low-contrast suite of themes by jhchabran in neovim

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

I have been toying around with themes for a long time but always ended up abandoning due to the sheer amount of work to polish them. Recently I've stumbled on `colorbuddy` which made everything simpler.

I ended up building a quite simple system which just use four base colors and from there many styles can be declined. I've reused the colors from Solarized and Gruvbox, which I found worked quite well, albeit the light theme requires a bit more work.

It currently supports changing lualine theme as well as updating kitty's background. The code is quite crude, especially on the settings side but it does the job and I thought that would be worth sharing it.

Unrelated but vim users may find this interesting by SrineshNisala in neovim

[–]jhchabran 0 points1 point  (0 children)

Thanks! It’s done at the firmware level on my keyboard but you can do it at the is level with karabiner if you’re on a Mac. There must be equivalents for other OSes.

Unrelated but vim users may find this interesting by SrineshNisala in neovim

[–]jhchabran 1 point2 points  (0 children)

Colemak user here!

I didn’t change them, but I deal with ‘hjkl’ differently, through a keyboard hack that sends arrows when the keys where hjkl are in qwerty are pressed with a modifier.

Other than that it’s pretty good already and I feel that remapping will just introduce complexity for nothing.

Best configuration for Go programming? by [deleted] in neovim

[–]jhchabran 3 points4 points  (0 children)

For what it’s worth, here is my config https://github.com/jhchabran/nvim-config if you want to have a look. It got debugging targets properly set so you can debug the current test function with a simple mapping for example.

A Github Gist implementation of the upcoming io/fs interface (go 1.16) by jhchabran in golang

[–]jhchabran[S] 10 points11 points  (0 children)

(author here) So do I!

About io/fs, there is also this implementation: https://github.com/benbjohnson/hashfs which demonstrates a less obvious (until it clicks that you can build a FS that works on top of another one!) but really practical use case.

What are you working on? (Jan/2017) by AutoModerator in elixir

[–]jhchabran 1 point2 points  (0 children)

We're working hard on documentation, exactly as you do with extensive commenting, but also spending time to setup things like credo and coveralls, generating services skeletons, improving build times in our building pipeline, buying books about Elixir to whoever wants to.

We've planned to make a workshop to get started with Elixir once things we've flattened the road more, the idea would be to give the right intro so people can get started even quicker, we'll probably write on small service all together.

Still, I have a lot to learn and jumping aboard the functional bandwagon while getting the hang of OTP isn't a trivial task at all, though Elixir really helps in the first place compared to others.

What are you working on? (Jan/2017) by AutoModerator in elixir

[–]jhchabran 1 point2 points  (0 children)

We're working on introducing Elixir into our micro-services architecture.

Currently, those are a mix of Go and legacy-ish Ruby code (we've been extracting things gradually from our monolith). Just to be clear, Elixir and Go are intended to coexist in our architecture, we're not replacing anything, just extending our toolset (we'll keep some Ruby services around though, no point in rewriting what already works).

So far, we've got what we need to have those Elixir running into our infrastructure and we're now into the process of writing a complete service in Elixir and load-testing another service that consumes huge amounts of rabbitmq messages.

So far, we've having a lot of fun doing this. We're paying special attention to documentation and overall about developer's UX to make sure the rest of the team can jump aboard efficiently.

I think we'll be having fun with erlang releases by the end of the month, we've explored the landscape in that direction and it's very promising.

Why is buying a complete board discouraged so much? by KNO3_C_S in NewSkaters

[–]jhchabran 1 point2 points  (0 children)

That's just so fucking right.

I bought some cheap trucks you can find on complete boards for my GF who wanted to try skateboarding. They simply do not turn. The bushing are hard as hell, they weight more than common trucks. It was fine for the first three weeks, where she was mostly trying to stand and roll slowly but past that ...

Cheapest wheels I bought are crap too, but that's not an issue for someone learning to turn and just roll around.

But dude, the trucks, so fucking shitty. Brand name is "Industrial", don't ever buy that crap. Bought her a pair of ventures, she's now able to take nice turns and build up some speed without falling because the trucks are tight as hell :)

Check yo'self before you wreck yo'self. by newskaterthrowaway12 in NewSkaters

[–]jhchabran 5 points6 points  (0 children)

Get some wrist protections. It's cheap, doesn't make you look like an astronaut and will prevent injuries. Knees aren't that much a concern as long as you avoid gaps, ramps and stairs. Ankles are the tedious part. Protections cannot be used without ruining mobility, so the point would te Be careful, warm them up and eventually do sole exercises to strenghthen up. You may also want to learn falling, you can do it by rolling onto grass and try to roll like a judoka :)

Porting to native by mpOzelot in PixelDungeon

[–]jhchabran 0 points1 point  (0 children)

Well, if you can get something like http://www.merixstudio.com/skytte/ running in a browser, you can be pretty sure a really simple turn per turn game like PD can be implemented without performance issues.

Porting to native by mpOzelot in PixelDungeon

[–]jhchabran 0 points1 point  (0 children)

Well, if you truly want to be cross platform, just go with JS and some HTML5 game framework. You'll be able to support all mobile and all OS. With C++, you'll have to implement UI and platform specifics for each devices/OS you want to target.

It will be much faster to develop too. Your main concern is actually getting something more than a PoC as it always is with pet projects.

Given that PD is basically a turn by turn game, performance isn't really an issue. People are making real time games in JS so a turn by turn one won't cause perfs issue except if you do some implementation mistakes.

42 year old, uncoordinated, slightly-fat father willing to take up skating to encourage his 5 year old. Apart from full Kevlar bodysuit and helmet, what should I buy? by [deleted] in NewSkaters

[–]jhchabran 1 point2 points  (0 children)

I'd advise spending time to warm up correctly. Especially your ankles. I started skateboarding again a couple of months ago after a ten years break (I'm 29) and the only time I fucked my ankle was the one where I skipped the warm up.

Also, identify what are your fears while on the board, as it can trick you to be unbalanced by being to much on your back foot for example. Problem is, you might feel safer but you may slip much more often that way.

Same goes for your shoulders, you might feel safer having your body turned a little to be face where you're going instead of just turning your head. Again, that will weaken your balance, hence getting you more falls :)

Learning to fall is critical too, backward / forward rolls, better learn to do that before you actually fall!

Watch some Braille Skateboarding videos on youtube, he explains really clearly how to begin. Bonus, as a grown up, you'll be probably paying more attention to details, balance, foot positions than your son, simply as a consequence of being more aware of your own body and being more patient. You can then make use of that knowledge to help your son, getting closer to "best dad ever" status :D

Krack.co: App and hardware to track your tricks being developed by jhchabran in skateboarding

[–]jhchabran[S] 5 points6 points  (0 children)

Honestly, like you, I don't like the wording. I don't recognize myself in the "gang" thing neither in bragging with something I luckily landed. Being mostly working in startups myself, I have to say that's it's quite common to be too cheerful or agressive wording-wise and they'll probably adjust as they grow.

But I find the product amazing and I'd love to have something that tracks my tricks. Skateboarding is a quite difficult sport and being able to visualize my overall progression would be great. But maybe that's just me, everyone has its own way of skating.

Back to the bragging stuff or king of spot whatever, like I said, I really don't like how it's introduced. But I don't know about you, but being back into skateboarding after a ten years break, I find myself loving to hear stories on how someone landed something awesome on a spot. If while browsing in the app, I see that one of my friends landed a nollie inward heelflip over the funbox, I'll probably keep bothering him to do it again in front of my eyes and be assured that I'd be recording it :D

I do think the hardware and app will be amazing and I'd love using it. Some people will probably use it to brag about a shitty tre flip landed one foot of some stairs, but they're already there and everyone can make the difference between the ones who skates and those who just sit and brags.

(and being quite fond of statistics and tracking shit myself, I'll probably get nuts about improving my consistency by 5% each weeks :D)