348 private links
- 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.
Resources for the python programming language
ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i input.mp4 -vf scale_vaapi=1920:-1 -codec:v vp8_vaapi -b:v 2M output.webmTransition a CSS grid row from 0 to 1fr to get an accordion working :D
An Advantage is the text is already rendered for screen readers.
A guide on how to write a custom HTML parser. There is a lot of stuff at stake.
A nice explanation of vite
I totally agree with it: I find composition a killer feature as it keeps the API of the component open.
Wow I didn't think about it. It seems practical!
With a list with data-index attributes such as <li class="searchable" data-index="newtoncronintorphy.dorothea@gmail.com(121)644-5577">
and the snippet:
<script type="text/javascript">
var searchStyle = document.getElementById('search_style');
document.getElementById('search').addEventListener('input', function() {
if (!this.value) {
searchStyle.innerHTML = "";
return;
}
// look ma, no indexOf!
searchStyle.innerHTML = ".searchable:not([data-index*=\"" + this.value.toLowerCase() + "\"]) { display: none; }";
// beware of css injections!
});
</script>How complex can an URL be, and malicious URL formats that are still valid.
A simple CSS code to check bot messages on social media (mastodon).
Simple JSON files can be used to generate a functional website :D
Basique mais efficace: le if qui vérifie que la donnée est correct
Une guard clause est un retour prématuré (ou early return) placé en haut de votre méthode, qui empêche votre code d’être exécuté si ce n'est pas nécessaire, en fonction de conditions que vous spécifiez. La plupart du temps ces conditions servent à vérifier le type de donnée reçu dans la méthode.
Another detailed article about it: https://anthonygharvey.com/guard-clauses-vs-nested-conditionals