Search
How I Put the Scroll Percentage in the Browser Title Bar
12.5.2020
Some nice trickery from Knut Melvær.
Ultimately the trick boils down to figuring out how far you’ve scrolled on the page and changing the title to show it, like:
document.title = `${percent}% ${post.title}`
Knut’s trick assumes React and installing an additional library. I’m sure...
Turning a Fixed-Size Object into a Responsive Element
11.5.2020
I was in a situation recently where I wanted to show an iPhone on a website. I wanted users to be able to interact with an application demo on this “mock” phone, so it had to be rendered in CSS, not an image. I found a great library called marvelapp/devices.css. The library implemented the device...
prerender.js
9.5.2020
This is another player in the game of rendering the page of the link that you’re about to click on before you click it. It’s like getting a decent performance boost for extremely little effort.
Instant.page is another one, and I’ve been sufficiently convinced by its methodology...
Telegram’s TON OS to Go Open Source on GitHub Tomorrow
6.5.2020
While Telegram’s TON and GRAM are delayed, TON OS, an operating system for the TON blockchain, is going to be open sourced on GitHub on May 7
How to Create Custom WordPress Editor Blocks in 2020
6.5.2020
Peter Tasker on creating blocks right now:
It’s fairly straightforward these days to get set up with the WP CLI ‘scaffold’ command. This command will set up a WordPress theme or plugin with a ‘blocks’ folder that contains the PHP and base CSS and JavaScript required to create...
Playing With (Fake) Container Queries With watched-box & resizeasaurus
5.5.2020
Heydon’s <watched-box> is a damn fantastic tool. It’s a custom element that essentially does container queries by way of class names that get added to the box based on size breakpoints that are calculated with ResizeObserver. It’s like a cleaner version of what Philip...
React Integration Testing: Greater Coverage, Fewer Tests
1.5.2020
Integration tests are a natural fit for interactive websites, like ones you might build with React. They validate how a user interacts with your app without the overhead of end-to-end testing. 
This article follows an exercise that starts with a simple website, validates behavior with unit...
[David Baron’s] Thoughts on an implementable path forward for Container Queries
29.4.2020
That’s the title of a public post from David Baron, a Principal Engineer at Firefox, with thoughts toward container queries. I know a lot of people have been holding their breath waiting for David’s ideas, as he’s one of few uniquely qualified to understand the ins and outs...
Alpine.js: The JavaScript Framework That’s Used Like jQuery, Written Like Vue, and Inspired by TailwindCSS
29.4.2020
We have big JavaScript frameworks that tons of people already use and like, including React, Vue, Angular, and Svelte. Do we need another JavaScript library? Let’s take a look at Alpine.js and you can decide for yourself. Alpine.js is for developers who aren’t looking to build a single page...
Fake Code
21.4.2020
Here’s a fun little idea from Knut Synstad. You give it the URL of a GitHub Gist and it converts the Gist into grayscale rounded blobs (SVG) that sorta look like code if you squint. Maybe fun for interesting dynamic backgrounds or for whatever you might use code-looking stock art for.
It...
[článek] Vychází iPhone SE 2 a OnePlus 8, GitHub pro týmy je zdarma, COBOL stále jede
17.4.2020
[4 minuty čtení] Samsung otestoval 5G o rychlosti 8,6 Gb/s. Čína startuje produkci pokročilých pamětí. Nové serverové procesory AMD. Zprávy z IT, každý pátek na Lupě. Vždy v pátek připravuje reportér Jan Sedlák výběr zajímavých zpráv ze světa IT. Co se událo v tomto týdnu?
GitHub zlevnil a zároveň rozšířil možnosti bezplatného tarifu
15.4.2020
GitHub je nově k dispozici zdarma v (téměř) plné výbavě. To v praxi znamená, že můžete i v bezplatném tarifu zakládat soukromé repozitáře, na kterých se nyní může podílet neomezené množství vývojářů.
Tarif Free byl přitom doposud určený především veřejným projektům, jejichž kód si mohl
No-Class CSS Frameworks
13.4.2020
I linked up Water.css not long ago as an interesting sort of CSS framework. No classes. No <h2 class="is-title">. You just use semantic HTML and get styles. Is that going to “scale” very far? Probably not, but it sure is handy for styling things quickly, where — of course...
Continuous Deployments for WordPress Using GitHub Actions
6.4.2020
Continuous Integration (CI) workflows are considered a best practice these days. As in, you work with your version control system (Git), and as you do, CI is doing work for you like running tests, sending notifications, and deploying code. That last part is called Continuous Deployment (CD)....
Detect git Directory with Bash
2.4.2020
One interesting aspect of working at Mozilla is that Firefox lives in a mercurial repository while several other projects live on GitHub in a git repository. While most focus on either Firefox or another project, I switch between both, leaving me running git commands inside the mercurial repository...
Film Reels and Steel: Github Plans to Archive Bitcoin Code for 1,000 Years
1.4.2020
The Microsoft subsidiary, Github recently revealed the “Archive Program,” an initiative that aims to preserve open source technologies for 1,000 years. The newly launched effort plans to store snapshots of open source technology 250 meters underground on the Norwegian island...
Bitcoin Codebase Preserved for 1,000 Years in Archive Under Arctic Ice
1.4.2020
GitHub is to archive the Bitcoin codebase and store it under the Arctic permafrost for 1,000 years
GitHub Is Burying Bitcoin Code Inside an Arctic Mountain to Ride Out the Next 1,000 Years
1.4.2020
Deep inside a forsaken coal mine on the Norwegian island of Svalbard, the Bitcoin Core code repository will be kept on film reels and stored for centuries
Emergency Website Kit
27.3.2020
Here’s an outstanding idea from Max Böck. He’s created a boilerplate project for building websites that fit within a single HTTP request. This is extremely important for websites that contain critical information for public safety. As Max writes:
In cases of emergency, many organizations need...
5 Essential git Commands and Utilities
26.3.2020
For many of us, git and GitHub play a huge role in our development workflows. Whenever we have a tool that we need to use often, the more fine-tuned we can make that tool, the faster we can get things done. The following are five git commands or helpers that can make your developer life...