I set out to create a quick visual to summarize Flexbox when I run into these moments of pause in the future. I like to think of it as a little diagram (flow chart? decision tree-ish thing?) that is a cheatsheet…based on cheatsheets. (That’s only an extract, shown above) Flexbox Cheatsheet Cheatsheet →
Tag Archives: link
Axiomatic CSS and Lobotomized Owls
Heydon Pickering: Despite its irreverent name and precarious form, the lobotomized owl selector is no mere thought experiment for me. It is the result of ongoing experimentation into automating the layout of flow content. The owl selector is an “axiomatic” selector with a voracious purview. As such, many will be hesitant to use it, and …
The end of apps as we know it
The idea of having a screen full of icons, representing independent apps, that need to be opened to experience them, is making less and less sense. The idea that these apps sit in the background, pushing content into a central experience, is making more and more sense. That central experience may be something that looks …
Vertical centering is impossible in CSS lol!
JS Bin Great JSBin by Jake Archibald, showcasing 4 ways to vertically center elements in CSS. Technique 2 has my preference: .technique-2 { position: absolute; height: auto; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); } The great thing about CSS transforms is that the percentages are referenced to the element’s width/height
You suck at technical interviews
You are bad at giving technical interviews. Yes, you. You’re looking for the wrong skills, hiring the wrong people, and actively screwing yourself and your company. Without changing anything about your applicant pool, you can hire different people and your company will do better and you will enjoy your job more. A must read for …
PerfMap: front-end performance heatmap
A bookmarklet to create a front-end performance heatmap of resources loaded in the browser using the Resource Timing API. Wait for a page to fully load and then click the bookmarklet to overlay a performance heatmap. A browser with support for the Resource Timing API is required. PerfMap: front-end performance heatmap →
PHP Null Coalesce Operator
In PHP7 the coalesce operator – ?? – will be introduced. It acts as a bit of syntactic sugar for the common case of needing to use a ternary in conjunction with isset(). The null coalesce operator returns its first operand if it exists and is not NULL; otherwise it returns its second operand. That …
What Will It Take to Run a 2-hour Marathon?
The current world record of 2:02:57, set by Kenyan Dennis Kimetto this year in Berlin, works out to 4:41.5 per mile; a sub-two would require less than 4:35 per mile. Will a human ever run that fast? Some fascinating number-crunching, and some great conclusions/predictions too. What Will It Take to Run a 2-hour Marathon? →
Ionic Box
How to Use SVG Patterns
<svg> <defs> <pattern id="basicPattern" x="10" y="10" width="40" height="40" patternUnits="userSpaceOnUse"> <circle cx="20" cy="20" r="20” fill= "#64bee3" /> </pattern> </defs> <rect x="10" y="10" width="200" height="200" stroke= "#333333" stroke-width="2" fill="url(#basicPattern)" /> </svg> SVG patterns provide for very unique design opportunities. We are essentially defining a canvas within a target shape or text, which is then repeated (or tiled) …