Full documentation here
Also, 1024 is too little!
via w3schools
This allow an SPFx webpart to be aware of screen 'avail' width in order to render based on available space in scenarios where this isn't fully controlled via CSS (ex. displaying a carousel in smaller screens rather than a Hero WebPart - this is similar to OOB behaviour for Hero WebPart)
via TypeScript docs
via VeniVidiVici
via StackOverflow
Split-Path -Path (Get-Location) -Leaf
via MDN
via MDN
Years are easy, months are 0 based numbers so are days - neither holds the names of months/days so that will need to be added as well.
via Fluent UI docs
This is how you can find the semantic slots to use for your theme - very useful when trying to assess how a certain slot behaves in different theme variations
via StackOverflow
For bonus points, make sure your custom PowerShell cmdlets all use the same prefix (I use func, see below)
export default class myWP extends React.Component<IMYWPProps, IMYWPState> {
private readonly classConstant = "this is how to use class constants";
...
}