222 private links
The implicit association is not recognized by at least two assistive technologies
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)
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.
HTML mit custom components to load partial templates.
CSS with imports is max two level deeps: one main that has all the imports. Variables, selector nesting and vendor prefixing are now fine.
Design token with https://open-props.style/
Javascript can be imported with <script src="" type="module">
tags.
le géoblocage d'un serveur public est totalement contraire à l'esprit d'internet et c'est préjudiciable aux internautes.
Since Rust 1.65:
let Some(user) = get_user() else {
return Err("No user".into());
};
The option can also be handled with .ok_or()
if it's recoverable.
The last solution is to use the match
statement.
Tips and guideline about writing your own API in rust.
It's all paragraphs at the end :)
A testing service against an HTTP/1.1 implementation
Also called german strings. This is a great data structure that explains how handling strings can be diverse.
- dialog: I use it regularly ✅
- picture: I only use images ⚠️
- data: It can be useful instead of spans 💡
- output: I never saw it ❓
- details/summary: I use it regularly ✅
I will read it someday :)
Called "impl Trait type"
an arena is a way to store your data somewhere without directly going through the system allocator. If you have a lot of small objects which you don’t mind to deallocate together instead of individually, this can be a lot faster. You could use a Vec for this. However, if you store data in a vec its address might change all the time.