Search
Bulletproof flag components
29.1.2021
A clever use of CSS grid from Jay Freestone to accomplish a particular variation of the media object design pattern (where the image is centered with the title) without any magic numbers anything that isn’t flexible and resiliant.
The trick …
The post Bulletproof flag components...
Where Brooklyn At? Spike Lee Gets His Own Funko Pop Figurine, Cementing His Creative Genius on the Culture
25.1.2021
Spike Lee Funko Pop | $9 | TargetRead more
Hat-trick hero: Empty stadiums get blockchain and soccer to play together
24.1.2021
Soccer clubs are now resorting to blockchain and crypto for fan engagement, tokenization and even new signings, with the potential for many more use cases
Breath Of The Wild Player Snipes Guardian From Over 1,400 Meters Away
11.1.2021
Although The Legend of Zelda: Breath of the Wild came out almost four years ago, folks continue to pull off incredible feats in the game. Case in point: this player nailing a Guardian with an arrow from over 1,400 meters away.Read more
Here's a Little Magic Trick: Get a $25 Xbox Gift Card for $21
6.1.2021
$25 Xbox Gift Card | $21 | Eneba | Use code XBOX20OFFRead more
A Calendar in Three Lines of CSS
24.12.2020
This article has no byline and is on a website that is even more weirdly specific than this one is, but I appreciate the trick here. A seven-column grid makes for a calendar layout pretty quick. You can let the days (grid items) fall onto it naturally, except kick the first day over to the correct...
Return a Default Value with Promises Using catch
23.12.2020
Last week I tweeted all of you looking for your best JavaScript Array and Promise tricks, and as always, it didn’t disappoint — I learned quite a bit! Today’s JavaScript Promise trick is brought to you by Claudio Semeraro: how to use catch to set a default value instead of...
Break a forEach Loop with JavaScript
22.12.2020
I’ve written a number of blog posts about JavaScript tricks: Promise tricks, type conversion tricks, spread tricks, and a host of other JavaScript tricks. I recently ran into another JavaScript trick that blew my mind: how to break a forEach loop. To break the forEach loop at any point,...
It's Okay To Love 'Bad' Art
15.12.2020
The further I get from my childhood, the closer I come to articulating what I miss about it. Through the confusing fog of nostalgia, it’s easy to mix up what you thought you loved, with what you actually loved. I don’t miss being a kid—I’m both taller and funnier as an adult—but I do covet...
‘Bypass’ Attack in Coldcard Bitcoin Wallet Could Trick Users Into Sending Incorrect Funds
25.11.2020
Bitcoin hardware wallet Coldcard is fixing a flaw that could trick users into sending bitcoin on mainnet when they meant to use its testnet
Use a Submit Button Outside of !
24.11.2020
Have you ever felt like you’ve been a professional developer or designer forever, and somehow not known something basic, and borderline hate yourself? That’s me with a trick that was introduced to me by Miguel Piedrafita: 🔥 You can submit forms from a button outside of the form...
console.log({ myVariable });
19.11.2020
I think this might be my most popular tweet of all time, but I’m not sure how to verify that these days. I’ll restate this neat little trick here because blogging is cool and fun.
I used to do this a lot while debugging JavaScript:
console.log("myVariable: ", myVariable);
But now I...
Node isConnected
13.11.2020
Every so often I discover a property in JavaScript objects that I didn’t know existed, oftentimes using another trick to accomplish the same functionality. One such property I just learned about was isConnected, a node property that attached to a context (i.e. document). Here’s how...
Libraries for SVG Drawing Animations
11.11.2020
In 2013, Jake Archibald introduced this cool trick of animating an SVG path to look like it’s drawing itself. It’s 2020 now, and the trick is still popular. I’ve seen it on a lot of websites I’ve visited recently. I, too, feature an animated SVG loader on my website using one of the libraries I’ll...
The Cleanest Trick for Autogrowing Textareas
11.11.2020
Earlier this year I wrote a bit about autogrowing textareas and inputs. The idea was to make a <textarea> more like a <div> so it expands in height as much as it needs to in order to contain the current value. It’s almost weird there isn’t a simple native solution...
This page is a truly naked, brutalist html quine.
4.11.2020
Here’s a fun page coming from secretGeek.net. You don’t normally think “fun” with brutalist minimalism but the CSS trickery that makes it work on this page is certainly that.
The HTML is literally displayed on the page as tags. So, in a sense, the HTML is both the page...
GIFS and prefers-reduced-motion
3.11.2020
The <picture> element has a trick it can do where it shows different image formats in different situations. If all you are interested in is formats for the sake of performance, maybe you’d do:
<picture<source srcset="img/waterfall.avif" type="image/avif"<source...
‘I got Bitcoin!’ — trick-or-treaters rewarded with crypto
1.11.2020
One crypto user gave away at least $400 in Bitcoin gift cards to Canadian children over Halloween
The CSS Custom Property Toggle Trick
29.10.2020
Back in July 2020, I got an email from James0x57 (I always try to refer to people by their name, but I think I get the sense they prefer to go by screen name) that says:
The entire world of branching conditional logic and bulk feature toggling for custom CSS properties is possible and only exists...
Yearn Finance doppelganger scam tries to trick visitors out of their keys
22.10.2020
Scam websites posing as famous crypto projects ask for private keys so they can steal users' funds