Archives

Types
Dates
  1. Note from 16 December 2022

    While we wait for browsers to implement the text-wrap: balance; #CSS property and value for text (pleeeeeease! 🙏), I may have created a silly — and probably sub-optimal — function to do it with HTML block elements:

    https://codepen.io/nhoizey/pen/mdjbrVx

    Tell me what you think!

    But why? Just because a colleague needed it, we could not find a solution in pure CSS, and I like challenges… 😅

  2. Note from 14 December 2022

    I needed a JavaScript way to verify if two arrays contain the same (all different) values.

    I then found a better solution for my use case, but it might be useful later, so here it is:

    const sameValues = (array1, array2) =>
      array1.length === array2.length &&
      array1.every((element) => array2.includes(element));

  3. Note from 14 December 2022

    It's pretty annoying to see the same toot repeatedly on #Mastodon because everyone is boosting it, even if it's legitimately awesome.

    Currently, a boost of a toot is only posted if at least 40 other toots have been posted since the previous boost of the same toot.

    There is a GitHub issue asking to allow the user to change this number, or set a duration instead:
    https://github.com/mastodon/mastodon/issues/18693

    Please vote!

  4. Filter by month to see more archives from year 2022.