257 private links
Implement a default builder pattern. It looks efficient.
A french guide on the rust language. It is not complete as the official documentation but provides a good start with lot's of the rust's features.
Another personal blog :)
Succinct but more detailed than a cheat sheet.
A nice explanation of python.
EDIT 2023-05-19: I will read it when I will use the language seriously again.
How to rotate items to test every day
Play the game by using API calls to deliver frets across the galaxy. One funny thing is the amount UIs users have built to get a grasp on the data :D
A text with a dynamic size depending of the container width:
.container {
container-type: inline-size;
}
.fluid-type {
font-size: clamp(1rem, 4cqi, 3rem);
}
Strategy 2: Grow From a Base Font Size with calc()
font-size: calc(var(--font-size-base) + var(--font-size-fluid, 3cqi));
An upper-bound size can be set with min
if needed.
Strategy 3: Generate Styles Using a Type Scale Ratio
A great maturation of Vue 3!
The reason behind Atomic CSS
UnoCSS is an engine instead of a framework because there are no core utilities - all the functionalities are provided via presets or inline configurations.
- la page est moins lourde,
- mes outils restent selon mes besoins
- je suis le premier utilisateur de mes outils, et donc ajouter les fonctionnalités dont j'ai besoin
Découvrir en même temps comment faire, etc...
I missed that! For a possible undefined authorId in a create payload:
data: {
title: "New Post with undefined authorId",
author: authorId && { connect: { id: authorId } }
}
A simple program for calculating sunrise, sunset and related times, which can be integrated with cron to trigger other programs to run when these events occur
This is god damn cool!
It may be useful to retrieve the favicon of a website :)
A tuple: type PersonProps = [string, number]
A variadic tuple: type Foo<T extends unknown[]> = [string, ...T, number];
A variadic tuple with 2 types:
type Bar<
T extends unknown[],
U extends unknown[]
> = [...T, string, ...U];
Create README files fast. The tool seems limited though as it has only templates. It is still better than nothing.