Daily Shaarli
September 9, 2024
Outline:
Using a BKTree data structure to identify and correct typos
Writing the Business Logic to Perform Typo Corrections
Pulling from Redis and caching it with lazy_static!
Identifying english words (among others, BKTree Search for Non-Dictionary Words)
C'est une bonne chose. Après un an quand même...
bytecodealliance/cargo-component: A Cargo subcommand for creating WebAssembly components based on the component model proposal.
Webassembly components that can be reused in other programs 😲
The component standard is defined on https://github.com/WebAssembly/component-model/
Use cases for :has
:
.card:has(button:focus-visible)
.xy-pad:has(.handle:active), .xy-pad:has(.handle:focus-visible)
- We can use :has as a sort of global event listener:
html:has([data-disable-document-scroll="true"])
- JS-free darkmode:
body:has(#dark-mode-toggle:checked)
p:has(+ figure)
: with :has, we can style one element based on another element in a totally different container! See the cool code playground that highlights
:has
can be powerful to replace JS with HTML semantics.
73% of the Web Platform Tests passes on Servo.
EN | DE | FR | Meaning |
---|---|---|---|
rent | mieten / eine Miete | louer / une location | use |
rent out / a rental | vermieten / eine Vermietung | louer, mettre en location / une location | consume |
leasing /a lease | Leasing / ein Leasing | louer en leasing, louer à bail / une location en leasing, à bail | consume with services or fixed terms |