Search
Convert Fahrenheit to Celsius with JavaScript
26.10.2022
The United States is one of the last bodies that refuses to implement the Celsius temperature standard. Why? Because we’re arrogant and feel like we don’t need to change. With that said, if you code for users outside the US, it’s important to provide localized weather data...
Create a Thumbnail From a Video with ffmpeg
25.10.2022
Creating a thumbnail to represent a video is a frequent task when presenting media on a website. I previously created a shell script to create a preview video from a larger video, much like many adult sites provide. Let’s view how we can create a preview thumbnail from a video! Developers...
Detect System Theme Preference Change Using JavaScript
24.10.2022
JavaScript and CSS allow users to detect the user theme preference with CSS’ prefers-color-scheme media query. It’s standard these days to use that preference to show the dark or light theme on a given website. But what if the user changes their preference while using your app?...
Clean A Demon's Sex Toys In This Punk Slice-Of-Life Game
20.10.2022
Read more
How to Use Storage in Web Extensions
20.10.2022
Working on a web extension is an interesting experience — you get to taste web while working with special extension APIs. One such API is storage — the web extension flavor of persistence. Let’s explore how you can use session and local storage within your Manifest V3...
Manuel Matuzovic: max() Trickery
18.10.2022
By way of a post by Manuel Matuzović which is by way of a demo by Temani Afif.
.wrapper {
margin-inline: max(0px, ((100% - 64rem) / 2));
}
You’d be doing yourself a favor to read Manuel’s breakdown of …
Manuel Matuzovic: max() Trickery originally published on CSS-Tricks, which...
A Pure CSS Gallery Focus Effect with :not
13.10.2022
Oftentimes in the past, I needed to figure out how to add styles to all elements inside the container but not the hovered one.
Demo of the expected “fade-out” effect on siblings to let users “focus” on a particular element.…
A Pure CSS Gallery Focus Effect with :not...
Zahrajte si demo akce Destroy All Humans! 2: Reprobed
13.10.2022
Skip or Only Run a Test with JavaScript Mocha
10.10.2022
Whenever I start to feel anxiety about a big change I’m making, I start writing more unit tests. I’ll write down my fear and then write a test that attacks, and eventually relaxes, that fear. There are two actions that I’ve been frequently using with test writing: skipping all...
10 Steam Demos To Check Out During Next Fest
6.10.2022
It’s time once again for Steam Next Fest, a one-week period in which Valve’s gaming storefront becomes flooded with tantalizing demos for promising upcoming games. One major takeaway from this year’s event is that, yes, there are indeed a hell of a lot of awesome games on the horizon. And the best...
Determine Default App for File Type from Command Line
3.10.2022
One quality of life improvement any developer can make for themselves is ensuring different file types open in the app they’re most proficient in. If you know me, you know I prefer accomplishing as much as possible from the command line. The duti utility allows users to determine default file...
Nifty News: Enter the afterlife in style, Solana NFT game demo hits Epic store and more
30.9.2022
300 holders of the Spartan NFT will be able to spread their ashes at a 35-foot memorial to Spartan soldiers, to be built in Greece
Set Brave as Default Browser from Command Line
26.9.2022
I’ve been a huge fan of the Brave web browser for years. They’re crypto-friendly, provide native ad-blocking features, and even provide Tor integration. Whenever I set up new systems, I automate Brave as the default browser. You can use the following shell command to set Brave as...
CSS :autofill
22.9.2022
Autofilling HTML input elements is a frequent user action that can drastically improve user experience. Hell, we all autofill for our passwords and address information. But what control do we have when input elements have been autofilled? To add custom CSS styles to inputs whose contents have been...
Hacking CSS Animation State and Playback Time
6.9.2022
CSS-only Wolfenstein is a little project that I made a few weeks ago. It was an experiment with CSS 3D transformations and animations.
Inspired by the FPS demo and another Wolfenstein CodePen, I decided to build my own version. …
Hacking CSS Animation State and Playback Time originally...
Monitor Events and Function Calls via Console
29.8.2022
Despite having worked on the very complex Firefox for a number of years, I’ll always love plain old console.log debugging. Logging can provide an audit trail as events happen and text you can share with others. Did you know that chrome provides monitorEvents and monitor so that you can get...
CSS :out-of-range
22.8.2022
One aspect of web development I’ve always loathed was working with forms. Form elements have been traditionally difficult to style due to OS and browser differences, and validation can be a nightmare. Luckily the native HTML APIs added methods for improving the form validation situation. With...
git Force Push
19.8.2022
Rebasing is a frequent task for anyone using git. We sometimes use rebasing to branch our code from the last changes or even just to drop commits from a branch. Oftentimes when trying to push after a rebase, you’ll see something like the following: hint: Updates were rejected because the...
Awesome Demos Roundup #21
16.8.2022
A fresh roundup of the most interesting code experiments from the past couple of weeks
Chcete vyzkoušet akci Splatoon 3 ještě před vydáním? Připravte si demo
11.8.2022
Splatoon 3 je zejména multiplayerová akce, které se obejde bez krve. V bitvách sice potřebujete přesnou mušku, hlavní je ovšem přebarvovat herní plochu. Jednu z novinek trojky bude možné vyzkoušet koncem srpna, tedy ještě před vydáním hry