43 karma · joined April 24, 2022
"coolvalue" thisisthevar set
or if you use the `variables` vocab, alternately: "coolvalue" set: thisisthevar
and lexical variables are set with "coolvalue" :> thisisthevarBecause I love to practice and demonstrate Factor, this is working code for that example:
"f1.txt" "f2.txt" [ utf8 file-lines [ string>number ] map ] bi@ vdotSome time ago I trialed a bunch of classless CSS projects, paired with Hugo using the "classless-blog" theme, and these were my top picks, out of order:
- holiday: https://holidaycss.js.org/
- bamboo: https://rilwis.github.io/bamboo/demo/index.html
- fieber: https://fieber.hack.re/
- pico classless: https://picocss.com/docs/classless
- yorha: https://metakirby5.github.io/yorha/
- simple: https://simplecss.org/
- water: https://watercss.kognise.dev/
- bolt: https://boltcss.com/
- Lissom.CSS: https://lissomware.github.io/css/
All of them except yorha have light/dark modes, and all of them except yorha are IMO too light by default in light mode.
2. Implicitly chain everything all the time!
In Factor, you might do it as:
reverse [ sq ] [ even? ] map-filter [ . ] each
Or with a little less optimizing: reverse [ sq ] map [ even? ] filter [ . ] each
The least obvious thing is that the period is the pretty-print function.You asked what adlist was blocking assets on a site of yours, and I don't think it's an adlist, but a general rule against loading scripts from other domains. Here's what the log looks like: https://cdn.imgchest.com/files/w7pjcgqn387.png
- semi-extended
- extended
- extra-extended
- ultra-extended
I think by default the extended variant is included in most builds anyway, if you want to try it.
FWIW here's a sample of my usual build's extended variant: https://cdn.imgchest.com/files/b49zcjd53oy.png
I have my own builds -- not based on AH's glyph choices, but also chosen to minimize glyph ambiguity.
I'll mention another great legible monospace project: 0xProto
---
Build: https://github.com/AndydeCleyre/archbuilder_iosevka/releases...
Screenshot Mono: https://cdn.imgchest.com/files/k46acrxl297.png
Screenshot Mono with syntax highlighting: https://cdn.imgchest.com/files/l4nec9d8lm4.png
Screenshot Proportional: https://cdn.imgchest.com/files/6yxkce8p6a7.png
0xProto: https://github.com/0xType/0xProto
I got used to a "recent" alias (Zsh):
if (( $+commands[eza] )) {
alias recent="eza --binary --octal-permissions --no-permissions --git -snew --icons=always"
} else {
alias recent="ls -rt"
}What it might look like in a pyproject.toml:
[tool.taskipy.tasks]
fmt = "nox -s fmt"
lock = "nox -s lock"
install = "if [ $VIRTUAL_ENV ]; then pip install -r local-requirements.txt; else printf '%s\n' 'Please activate a venv first'; return 1; fi"
test = "nox -s test test_without_toml typecheck -p 3.12"
docs = "nox -s render_readme render_api_docs"
For file generation tasks (the kind of stuff make is good at), I've been using Tup more and more. But recent versions aren't always packaged for distros, so I'm hoping it gets an asdf/mise plugin.https://atlassian.design/components/pragmatic-drag-and-drop/...
: find-gcd ( nums -- gcd )
[ infimum ] [ supremum ] bi gcd nip ;
: max-wealth ( accounts -- n )
[ sum ] map-supremum ;
: which-max-wealth ( accounts -- i )
[ sum ] supremum-by* drop ;
primes-uptoSome good practice problems can be found on Advent of Code, Codewars, and the Perl Weekly Challenge.
Also Discord was like "yeah you may have your Discord credentials, but we need you to check your email before you can log in again anyway." So I lost my Discord account, too.
But I started using this new thing called Skiff and . . . Oh.
yaml-get -p '.tags[has_child(amd)][parent()].name' machines.json
That can replace rcl query --output=raw machines.json '[
for m in input:
if m.get("tags", []).contains("amd"):
m.name
]'Again, it's a great project, but I wanted something similar that is a language-agnostic format specification, so moved on to using NestedText wherever I can.
No character needs escaping.
Two YAML-light style projects are StrictYAML (a Python library), and NestedText (an alternative spec with only string, list, and dict).