Pat Kira retweeted
🟣 CSS Quick Tip
:where() is a unique modern CSS selector because it is always zero specificity. That means we can use it to set sensible defaults that are overrideable.
The example demo'd can be overridden with ul {} or ol {}, no need to also include the attribute.
Pat Kira retweeted
The difference between `any` and `unknown` in #TypeScript:
any = “I don’t care”
unknown = “I don’t know”
Prefer `unknown` over `any`. Why? Because `unknown` requires narrowing the type before it can be used.
any ignores types. 👎
unknown requires type narrowing before use. 👍
Pat Kira retweeted
There's funding available for New Zealanders to attend nz.js(con); through our Diversity and Financial aid fund - apply now, the application process is really easy conference.javascript.org.nz…
Pat Kira retweeted
Our extended call for speakers for June's nz.js(con); ends THIS SUNDAY! In NZ? Get your proposals in ASAP! papercall.io/nz-js-con-2021 please RT for reach! 📄📣
Pat Kira retweeted
Native CSS Masonry layout in just one extra line of code? Yes, please. Here it is working with CSS Grid in @FirefoxNightly
More in https://teapawt.org/t.co/AJ2iFdm3px by @rachelandrew
Native CSS Masonry Layout In CSS Grid (Firefox Nightly)
There is now a specification for native CSS masonry layout, as part of the Grid Layout spec. To use masonry layout, one of your grid axes needs to have the value "masonry".
Leading-Trim: The Future of Digital Typesetting by Ethan Wang link.medium.com/bCi2x8Hw38
Pat Kira retweeted
How to figure out what ports are open on a machine when you don't have netstat or lsof: cat /proc/net/tcp and /proc/net/udp, first column is local information, value after the colon is port number in hex.
Pat Kira retweeted
Tip: Font size isn’t always the best way to emphasize text. Try font color and font weight instead. h/t @steveschoger
Pat Kira retweeted
Well I just yelled at a room full of white male executives who were blaming "the pipeline" for their company's lack of diversity and I feel very pleased with myself.
There was much swearing and banging on the table. They hit a fucking nerve.
Gender diversity pays off: A new Stanford study finds equitable hiring boosts companies' stock prices (via @BIAUS) businessinsider.com.au/new-s…



![:where(ul, ol):where([role="list"]) { margin: 0; padding: 0; list-style: none; }](https://pbs.twimg.com/media/FAoaGQPXEAYBV3Y.jpg?name=small&format=webp)









