qubyte-codes
kloi
qubyte-codes | kloi | |
---|---|---|
3 | 1 | |
8 | 2 | |
- | - | |
9.8 | 0.0 | |
5 days ago | about 3 years ago | |
JavaScript | JavaScript | |
GNU Affero General Public License v3.0 | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
qubyte-codes
-
Ask HN: Share Your Personal Site
https://qubyte.codes
I blog about things which interest me (mostly JS and creative code related), but also take Japanese language notes as I learn. Also part of the 250KB club!
It's built with my own hand-rolled static site generator, and I'm pretty proud of it's capabilities now. I've got a bunch of indieweb features integrated into it. I have no sense of style though!
Source: https://github.com/qubyte/qubyte-codes
-
Math Rendering Is Wrong
I use server rendered SVG with mathjax as part of my static site generator. To try to make it as accessible as possible I add a title element with an ID to each SVG and use an aria-labelledby attribute to connect the two [1] (a sample for the interested, scroll about half way down [2]). The title content is the unrendered LaTeX source.
I'm very interested in the notion of using HTML and CSS rendering though! Many thanks to the author for pointing out this functionality.
[1]: https://github.com/qubyte/qubyte-codes/blob/main/lib/render....
-
Using ES Modules (ESM) in Node.js: A Practical Guide (Part 1)
Another static site builder author here. I found some of the same awkwardness in recreating __dirname, but after some massaging found it only remains when path.join is also used (which can't work with a file URL and can't be simply replaced with URL construction because the existing path is lost). I went the whole hog and completely replaced all CJS in my own code, and it's working well. Luckily I avoided issues with third party modules breaking.
PR with the changes: https://github.com/qubyte/qubyte-codes/pull/323
kloi
-
Using ES Modules (ESM) in Node.js: A Practical Guide (Part 1)
I've started using ESM in a static website builder too [1]. It works, kinda.
Problems that I encountered:
To get `__dirname`, you have to do an awkward workaround using path and url [3].
For npm modules that implement a path e.g. `@lib/method`, the import of this currently isn't allowed in node without a flag.
For ESM incompatible modules, a createRequire [2] function is available to get the old `require` syntax.
For import statements, the cache cannot be deleted yet [4].
Overall, I'm please to see that nodejs will soon be ESM compatible. All changes that have been made look reasonable and useful to me.
1: https://github.com/TimDaub/kloi
2: https://nodejs.org/api/module.html#module_module_createrequi...
3: https://stackoverflow.com/questions/46745014/alternative-for...
4: https://github.com/nodejs/modules/issues/307
What are some alternatives?
top-bun - 🍞 Flour Water Salt Yeast HTML CSS JS
beeline-nodejs - Legacy instrumentation for node.js applications with Honeycomb
slightknack.dev - Source code for my website/blog. Custom Zola theme over GH Pages.
2022-portfolio
xenodium - Config files for my GitHub profile.
ethanmick.com - Personal website, portfolio, and teaching area to help anyone become a better software engineer.
latex2mathml - Pure Python library for LaTeX to MathML conversion
react-simple-terminal - A very simplistic react terminal
bret.io - 🤦🏼♂️ Professional website
web2js - Convert TeX's pascal to javascript
manuel.kiessling.net - The Hugo-based code from which https://manuel.kiessling.net is generated.
discount - My C implementation of John Gruber's Markdown markup language