Source: Flex Cheatsheet
Author: Andreas Plahn
Web Design Trends In 2021
Coolest 25+ Web Design Trends In 2021, that’ll rock the world😎 by ThemeSelection
Download Medium on the App Store or Play Store
Set Prettier as default formatter in WebStorm
Source: Prettier—WebStorm
Centering in CSS
Examples of RxJS Patterns: Efficiency and Performance
RxJS Patterns: Efficiency and Performance by Giancarlo Buomprisco
5 Common Mistakes with RxJS
5 Common Mistakes with RxJS by Giancarlo Buomprisco
https://medium.com/bitsrc/5-common-mistakes-with-rxjs-1b09d4c19387
10 Must-Read Books for Software Engineers
Ten modern layouts in one line of CSS
This post highlights a few powerful lines of CSS that do some serious heavy lifting and help you build robust modern layouts.
web.dev/one-line-layouts/
c# – LINQ’s Distinct() on a particular property
EDIT: This is now part of MoreLINQ.
What you need is a “distinct-by” effectively. I don’t believe it’s part of LINQ as it stands, although it’s fairly easy to write:
public static class EnumerableExtensions { public static IEnumerable<TSource> DistinctBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector) { HashSet<TKey> seenKeys = new HashSet<TKey>(); foreach (TSource element in source) { if (seenKeys.Add(keySelector(element))) { yield return element; } } } }
Source: c# – LINQ’s Distinct() on a particular property – Stack Overflow
white-space | CSS-Tricks
Here is a table to understand the behaviors of all the different values for property white-space:
New lines | Spaces and tabs | Text wrapping | |
---|---|---|---|
normal | Collapse | Collapse | Wrap |
pre | Preserve | Preserve | No wrap |
nowrap | Collapse | Collapse | No wrap |
pre-wrap | Preserve | Preserve | Wrap |
pre-line | Preserve | Collapse | Wrap |
Source: white-space | CSS-Tricks