PHPNews

React v16.3.0: New Lifecycle Events and Context API

React 16.3.0 just got released. Next to being able to forward refs and some changes to the lifecycle events it also sports a new Context API which I’ve written about before . Even though the introductory blogpost over at the React blog is very detailed, the video below – covering the new Context API – forms a …

Continue reading »

Written by Bram.us - - Aggregated on Thursday March 29, 2018


Instagram Terminal Feed

Forget about that Instagram for Windows 95 , and go for the real deal: Instagram on the CLI: Sometimes checking your instagram during work is kind of strange, so why not check your instagram inside your terminal? OK… I know checking this during work is still strange… To be honest, I did this just for pure …

Continue reading »

Written by Bram.us - - Aggregated on Thursday March 29, 2018


How CSS’s display: contents; works

You might know that display: contents; does what it states it does: it only shows an element’s contents, just as if you were to remove the opening and closing tag. But what about the element’s attributes? What about the bound JavaScript events? What about … ? Ire Aderinokun digs deeper. How display: contents; …

Continue reading »

Written by Bram.us - - Aggregated on Wednesday March 28, 2018


Using the new Async Clipboard API

Shipping with Chrome 66 is an implementation of the new Async Clipboard API . Its asynchronous nature makes it the preferred way – over document.execCommand – to perform copy-paste operations in the browser. // Write Text to the Clipboard (e.g. copy) navigator.clipboard.writeText('Text to be copied') .then(() …

Continue reading »

Written by Bram.us - - Aggregated on Sunday March 25, 2018


The Making of ”Welcome Home” by Spike Jonze

I really enjoyed Apple’s “Welcome Home” ad for the HomePod, directed by Spike Jonze: Over at AdWeek there’s a behind the scenes video available showing how they made it: jwplayer('jwplayer_3eSfZjs9_R2CNEBk3_div').setup({"playlist":"https:\/\/content.jwplatform.com\/feeds\/3eSfZjs9.json","ph":2}); In …

Continue reading »

Written by Bram.us - - Aggregated on Thursday March 22, 2018


The Broccoli Tree: A Parable

Patrik Svedberg had been taking photos of a particular and unique tree which he named “The Broccoli Tree”. He posted the photos on an Instagram account dedicated to the tree. And then one day, he noticed something was wrong with the tree. This video by Seth Radley tells the story. To share something is to risk …

Continue reading »

Written by Bram.us - - Aggregated on Thursday March 22, 2018


Convert SVG to JSX with SVGR

Ooh, this one’s handy. Paste in (no drag and drop unfortunately) the contents of an SVG file and out comes the JSX code for immediate use within your React project. SVGR also simplifies your SVG using SVGO (which is also the driving force behind SVGOMG ) SVGR : The SVG to JSX transformer →

Continue reading »

Written by Bram.us - - Aggregated on Thursday March 22, 2018


Subsetting web fonts with glyphhanger

glyphhanger is a great tool to work with web fonts, developed by the folks at Filament Group. It serves two goals: It shows what unicode-ranges are used on a web page: # local and remote URLs $ glyphhanger ./test.html $ glyphhanger https://example.com # output characters instead of Unicode code points $ …

Continue reading »

Written by Bram.us - - Aggregated on Thursday March 22, 2018


A New View of the Moon

Wylie Overstreet and Alex Gorosh took a telescope around the streets of LA and invited people to look at the Moon through it. Watching people’s reactions to seeing such a closeup view of the Moon with their own eyes, perhaps for the first time, is really amazing. (via Kottke )

Continue reading »

Written by Bram.us - - Aggregated on Tuesday March 20, 2018