hypertown

joined 2 years ago
MODERATOR OF
 

cross-posted from: https://lemmy.world/post/41297887

I really wanted a HTML live reload plugin that has statusline integration and does not depend on entire chromium to create a simple web server. I couldn't find anything I'd like so I've decided to make my own plugin. I was kinda afraid that implementing websockets in lua would be terrible task but it turns out I didn't need to, because SSE exists. HTTP is simple, watching for file changes as well so I got to work. Result: Very small (Less than 500 lines of code) plugin that launches in 0.1-0.2ms! (It's amazing what you can do when you don't need to load whole V8 from Chromium to serve a simple webpage. I also made support functions for statusline of two popular distors: NvChad and AstroNvim but you can also launch it from cmds if you prefer.

Since I'm kinda new to nvim & lua scripting I'd appreciate any feedback on what could be improved or just done better. For now I plan to add more features inspired vscode's live-server extension although it most likely won't be exact copy of that extension.

Link:

GitHub Repository

 

I really wanted a HTML live reload plugin that has statusline integration and does not depend on entire chromium to create a simple web server. I couldn't find anything I'd like so I've decided to make my own plugin. I was kinda afraid that implementing websockets in lua would be terrible task but it turns out I didn't need to, because SSE exists. HTTP is simple so, watching for file changes as well so I got to work. Result: Very small (Less than 500 lines of code) plugin that launches in 0.1-0.2ms! (It's amazing what you can do when you don't need to load whole V8 from Chromium to serve a simple webpage. I also made support functions for statusline of two popular distors: NvChad and AstroNvim but you can also launch it from cmds if you prefer.

Since I'm kinda new to nvim & lua scripting I'd appreciate any feedback on what could be improved or just done better. For now I plan to add more features inspired vscode's live-server extension although it most likely won't be exact copy of that extension.

Link:

GitHub Repository

 
 

Most instances now support video upload.

 
[–] hypertown@lemmy.world 0 points 1 year ago (1 children)

I don't know a single word in Chinese but I'm almost sure it will be easier than starting "from scratch".
Kanji are Chinese characters adapted to the Japanese language. Knowing Chinese meaning should make it easier to remember those as from what I heard 80% has the same meaning in both languages. Kanji also have two or more readings, onyomi and kunyomi where the former is based on original Chinese pronunciation.
The writing should also be easier because if you can write Chinese that means that you will only have to learn hiragana and katakana.
But why just not give it a try? You don't have to commit to it right away. Even learning a little should bring you a new context and look to another culture. Those hours definitely won't be wasted.

 
 
 
 
 
 
 
[–] hypertown@lemmy.world 0 points 2 years ago

That's why I really don't recommend Duolingo to anyone. It feels like they google translate solution. My favorite example against Duolingo: 「私はりんごです」 was translated to: "I'm an apple." Which technically isn't incorrect but it's ridiculous and they probably ment to put it like in an answer to a question. "What fruit do you like?" - "As for me an apple"

Btw why is there so much hiragana in this sentence? I understand they try to make it easy for beginners but seriously it's almost hard to read not to mention it can create bad habits.

view more: next ›