Also, the total size of Hakyll code is 500 LOC (without the comments), which supports my guess that Haskell isn't necessarily good for such task.
(And that doesn't take the Hakyll library itself into account!)
Phew, rewrote my static site generation into Python... (currently it's done by Hakyll)
750 lines of code, but lots of it are horrible compatibility hacks to ensure the output matches exactly to Hakyll's. Now I can switch and do the pleasant bit: removing the code 🎉
Also it's already multithreaded, so clean build takes 10 seconds instead of 80!
Whose Gene is it Anyway - Genetic Design Live Stream https://youtu.be/ZiWnygcYsiQ
This guy's channel is really cool! So maybe you'll enjoy the live stream too.
Finished another post, an argument against using 'dumb' config formats (e.g. YAML/JSON) and for using real programming languages instead. This realization has relieved me from lots of frustration!
Also lots of related links about configuration languages!
This link is a great source of vanilla, no-framework code snippets for doing manipulations on the DOM. Wish I had found it earlier when I just started messing with JS!
One of the best physics resources (wiki!) I've seen.
Main idea is that it presents stuff in three levels: intuitive, concrete and abstract. So you can elaborate or just skim through depending on your current knowledge. Also often elaborates why is a certain concept interesting.
Wish there were more wikis like that for other sciences!
Work from home means Monday roast 😋 #theGalley
Apple just killed Offline Web Apps while purporting to protect your privacy: why that’s A Bad Thing and why you should care
Found some cool stuff https://0oo.li
I'm still trying to figure out what exactly is this website, but it's weird in a good way, so belongs here!
Currently I'm using Hakyll for my blog, and while I'm comfortable with Haskell, tend to spend more time that I want bending Hakyll into doing what I want.
I only want:
- simple HTML templating, but with ability to inject stuff with code
- dependencies (to refresh pages on update styles/transclusions/for index pages/etc)
- multiprocess build for indepentent pages
I think I just want something like make, but nicer and safer. We'll see :)
I've gone through most of static site generators written in Python on https://staticsitegenerators.net , and so far it seems that I'll have to write my own 🙀
physical health, COVID-19
If you're socially distancing and missing your gym, it's a good time to try bodyweight exercise. https://www.reddit.com/r/bodyweightfitness
The world is your gym :)
You can even buy a 'power tower', so you can do pull ups/dips/leg raises, etc.
It doesn't take much space, I have one in my studio flat and highly recommend. Something like this: https://www.argos.co.uk/product/7594038
I think reasons are:
- plaintext means you can fix anything you don't like after the export, even if it's hacky and hardcoded. You can fix 90% of stuff with sed/grep/regexes without having to parse syntax
- you can embed HTML/CSS as a last resort or for fine tuning
Good news are both of these points apply to markdown too!
Extra nice thing about org-mode is org-babel (code blocks). So you can embed bits of code, include results in the output; and even generate org-mode with code!
I can't get enough how fucking cool is #orgmode. With some manual fiddling (mostly to get around old github's org-mode rendeder bugs), I've mirrored the blog post as the readme file!
There is so much overlap, and now I don't have to maintain two files; also people can choose if they want to read it on github, or on my blog.
ugh, I meant "Human Programming Interface"!
Also getting more and more used to org-mode transclusions.
Using code to generate org-mode works really great and allows for great flexibitily!
I'll also reuse large parts of the blog post for the github readme (or vice versa), that way people could choose where they'd like to read it and I won't have to duplicate content!
Trapped in meatspace. Trying to break out.
Revel in the marvels of the universe. We are a collective of forward-thinking individuals who strive to better ourselves and our surroundings through constant creation. We express ourselves through music, art, games, and writing. We also put great value in play. A warm welcome to any like-minded people who feel these ideals resonate with them. Check out our Patreon to see our donations.