- TypeScript and C
- NGINX, Kubernetes, Nodejs, MongoDB, MySQL
- Vue, React
- Webdev, compilers and IDEs, IoT and wearables, gamedev, etc
nginx supports ip transparency but network setup is complex
simpler way: use proxy_protocol between load balancer nginx and backend nginx!
nginx supports ip transparency but network setup is complex
simpler way: use proxy_protocol between load balancer nginx and backend nginx!
I am actually quite proud I was able to solve it. Saw a guy on Twitch who streams leetcode challenges for 24 days in a row and he couldn't solve it 🤯
I used #typescript.
I am actually quite proud I was able to solve it. Saw a guy on Twitch who streams leetcode challenges for 24 days in a row and he couldn't solve it 🤯
I used #typescript.
I regularly forget how to make it work with modules, so here's the reminder 😉
Btw: `declare global` is also super useful 😎
I regularly forget how to make it work with modules, so here's the reminder 😉
Btw: `declare global` is also super useful 😎
Doing a big ass migration from using #Typescript Compiler API to a faster and more compact js parser (kataw) in TS2C.
Doing a big ass migration from using #Typescript Compiler API to a faster and more compact js parser (kataw) in TS2C.
And I guess because I was programming in Perl a lot in beginning of 2000s, the language didn't have ANY keywords 😅
Everything was special symbols 😇
And I guess because I was programming in Perl a lot in beginning of 2000s, the language didn't have ANY keywords 😅
Everything was special symbols 😇
But ts2c has to get them right, and so do I 😎
But ts2c has to get them right, and so do I 😎
It's my most active year since 2019!
- CloudPebble Portable - a Web IDE for retro programming :) Powered by redbean web server
- ts2c - TypeScript to C transpiler
- pascal-lsp - a fault-tolerant Pascal parser
github.com/andrei-markeev
It's my most active year since 2019!
- CloudPebble Portable - a Web IDE for retro programming :) Powered by redbean web server
- ts2c - TypeScript to C transpiler
- pascal-lsp - a fault-tolerant Pascal parser
github.com/andrei-markeev
I only needed a cable (lost mine somewhere), but turned out cables are all sold from US, expensive shipping and a long wait. It was easier (and almost same price) to buy a whole piece [with cable] from EU 😂
I only needed a cable (lost mine somewhere), but turned out cables are all sold from US, expensive shipping and a long wait. It was easier (and almost same price) to buy a whole piece [with cable] from EU 😂
1️⃣ Flats out the en-US json, leaving only filename nodes, and inverts values with keys => textMap
2️⃣ Goes through each file, grabs the text with simple regexps, translates if the text is found in the textMap
3/3
1️⃣ Flats out the en-US json, leaving only filename nodes, and inverts values with keys => textMap
2️⃣ Goes through each file, grabs the text with simple regexps, translates if the text is found in the textMap
3/3
🟢 compile-time translation
🟢 manually crafted json, split into context blocks by filename, with added structure where necessary
✨ structure and sensible ids help translators
✨ your original html files (for English) remain completely functional without any compilation step!
2/3
🟢 compile-time translation
🟢 manually crafted json, split into context blocks by filename, with added structure where necessary
✨ structure and sensible ids help translators
✨ your original html files (for English) remain completely functional without any compilation step!
2/3
Avoid:
⛔ translation identifiers (i.e. `$t("my_company_name")` - because you want to see the text in context
⛔ wrapping all translatable texts in a certain syntax: it is a hassle and adds compile step
1/3
Avoid:
⛔ translation identifiers (i.e. `$t("my_company_name")` - because you want to see the text in context
⛔ wrapping all translatable texts in a certain syntax: it is a hassle and adds compile step
1/3
I've just got it running on localhost. And already did some fixes to my "Notes 365 for Pebble" app 😎
I've just got it running on localhost. And already did some fixes to my "Notes 365 for Pebble" app 😎
And, I am not joking, Pebble feels MUCH better than the latest Apple Watch. UI is much better, notifications are better, watch is lighter, battery life longer
And, I am not joking, Pebble feels MUCH better than the latest Apple Watch. UI is much better, notifications are better, watch is lighter, battery life longer
Myself, I've been writing simple custom localization engines for my frontends.
Is it hard? Well, the plugin for inlining translations is 25 lines of code 🤷♂️ and no magic strings ⬇️
Myself, I've been writing simple custom localization engines for my frontends.
Is it hard? Well, the plugin for inlining translations is 25 lines of code 🤷♂️ and no magic strings ⬇️
It's not hard at all.
First, install nginx.
💻 Mac users: `brew install nginx`
🖥️ Windows users: download and unpack archive as described in the docs: nginx.org/en/docs/wind...
1/2
It's not hard at all.
First, install nginx.
💻 Mac users: `brew install nginx`
🖥️ Windows users: download and unpack archive as described in the docs: nginx.org/en/docs/wind...
1/2