Daily Shaarli

All links of one day in a single page.

December 12, 2020

L’homme qui hululait à l’oreille des formulaires – 24 jours de web

Sur la bonne utilisation des formulaires

A few words on Git. – Hadi Hariri

And I agree too, git sucks as UX.
I am the first one to be the git workflow breaker.

Du responsive sans media queries | Putain de code

Combiner flexbox, min-width ou flex-basis et overflow: hidden.

Concevoir des formulaires inclusifs – 24 jours de web
githooks - Hooks used by Git - File Formats | ManKier
Des boutons appelants la même fonction avec des arguments différents grâce à functools.partial() - Dorian Fevrier's blog

Sur l'utilisation de functools.partial

How to Make an Area Chart With CSS | CSS-Tricks

Wow ! Charts are only created with HTML and CSS, making them very efficient

The Function - David Beazley - YouTube

Without comment, the code explains itself.
About functions in python and how they can be used, called, callback, *args, **kwargs and more.

How To Use Bash Parameter Substitution Like A Pro - nixCraft
command meaning
${parameter:-defaultValue} Get default shell variables value
${parameter:=defaultValue} Set default shell variables value
${parameter:?"Error Message"} Display an error message if parameter is not set
${#var} Find the length of the string
${var%pattern} Remove from shortest rear (end) pattern
${var%%pattern} Remove from longest rear (end) pattern
${var:num1:num2} Substring
${var#pattern} Remove from shortest front pattern
${var##pattern} Remove from longest front pattern
${var/pattern/string} Find and replace (only replace first occurrence)
${var//pattern/string} Find and replace all occurrences
${!prefix*} Expands to the names of variables whose names begin with prefix.
${var,} Convert first character to lowercase.
${var,pattern} Convert only if the pattern match
${var,,} Convert all characters to lowercase.
${var,,pattern} Convert only if the pattern match
${var^} Convert first character to uppercase.
${var^pattern} Convert only if pattern match
${var^^} Convert all character to uppercase.}
${var^^pattern} Convert only if pattern match