Search
Array.prototype.at
8.11.2021
Working with arrays is an essential skill in any programming language, especially JavaScript, as we continue to rely on external data APIs. JavaScript has added methods like find and `findIndex recently, but one syntax I love from languages like Python is retrieving values by negative indexes. When...
Favicons: How to Make Sure Browsers Only Download the SVG Version
5.11.2021
Šime Vidas DM’d me the other day about this thread from subzey on Twitter. My HTML for favicons was like this:
<!-- Warning! Typo! --<link rel="icon" href="/favicon.ico" size="any"<link rel="icon" href="/favicon.svg" type="image/svg+xml"
The attribute size is a typo there...
Smartbch Defi Universe Expands — Dozens of SEP20 Tokens, $12.8M Total Value Locked in Dex Platforms
4.11.2021
On April 1, Bitcoin.com News published an in-depth report on the Smart Bitcoin Cash (Smartbch) protocol and its compatibility with Ethereum’s EVM and Web3 API before any Smartbch projects were seen in the wild. Seven months later, Smartbch has matured a great deal and metrics indicate that...
Coinbase Lets Customers Borrow up to $1 Million Using Bitcoin as Collateral
3.11.2021
The Nasdaq-listed crypto exchange Coinbase is now letting customers borrow up to $1 million using bitcoin as collateral. The company charges 8% APR but there is no credit check. The exchange said that the bitcoin used as collateral “remains safely held by Coinbase,” emphasizing...
Proxying Third-Party JavaScript as First-Party JavaScript (and the Potential Effect on Analytics)
2.11.2021
First, check out how incredibly easy it is to write a Cloudflare Worker to proxy another URL:
addEventListener("fetch", (event) ={
event.respondWith(
fetch("https://css-tricks.com")
);
});
It doesn’t have any error handling or anything, but hey, it works:
Now imagine how …
The...
New Bitcoin hash rate highs remove any trace of China mining ban
28.10.2021
China's exit from Bitcoin mining is now all but unnoticeable as network fundamentals take care of their own recovery
Can Include (a Certain HTML element within another Certain HTML Element)
22.10.2021
A single-serving website from Alexander Vishnyakov for testing if it’s valid to put any particular HTML element within another type of HTML element. Kinda neat to have a quick reference for this.
Some combinations feel fairly obvious: can you put …
The post Can Include (a Certain HTML...
Three-Digit Browser Versions in March 2022
19.10.2021
This isn’t supposed to be any sort of decision-making based on browser User-Agent Strings. But, ya know, collectively, we do make those decisions.
Karl Dubost notes that there is a significant change coming to them, notably moving the version …
The post Three-Digit Browser Versions...
Epic welcomes blockchain games but don't expect any Fortnite NFTs
18.10.2021
Epic Games is open to blockchain game developers, but the company has no NFT plans
Valve Bans Games Built on Blockchain, NFTs, and Cryptocurrencies From Steam Gaming Platform
17.10.2021
This past week, Valve, the parent company of the video game digital distribution service Steam updated its distribution onboarding guidelines. According to the newly updated rules, the company is banning any “applications built on blockchain technology that issue or allow exchange...
President of Mexico Denies Having Interest in Adopting Bitcoin as Legal Tender
17.10.2021
The President of Mexico, Andres Manuel Lopez Obrador, denied having any interest in adopting cryptocurrencies as legal tender in the country. The statements, offered in a press conference in the National Palace this week, also confirmed that the Mexican government will keep dealing with...
Expandable Sections Within a CSS Grid
15.10.2021
I love CSS Grid. I love how, with just a few lines of code, we can achieve fully responsive grid layouts, often without any media queries at all. I’m quite comfortable wrangling CSS Grid to produce interesting layouts, while keeping …
The post Expandable Sections Within a CSS Grid appeared...
G7 Finance Ministers and Bankers Adopt Guidelines for Central Bank Digital Currencies
15.10.2021
Any digital currency issued by a central bank must support financial and monetary stability, finance leaders from G7 member states have insisted. State-issued coins should also ensure privacy, transparency, and data protection, the officials stated. The forum adopted 13 public policy principles...
Bored Ape Yacht Club Records $542 Million in Lifetime Sales — BAYC Creators to Launch Token in Q1 2022
9.10.2021
Non-fungible token (NFT) assets have been extremely popular in 2021 and it doesn’t seem like the NFT hype is going away any time soon. A number of NFT collections have propelled the industry to new heights with enormous sales, outpacing some of the most popular auctions selling physical...
Crypto Exchange Binance Terminates Some Services in South Africa After Warning by Regulator
9.10.2021
Binance has announced that it is terminating some services in South Africa to comply with regulations. This move followed a warning issued by the South African financial regulator that Binance Group was not authorized to give any financial advice or render any intermediary services in the country....
Jekyll doesn’t do components? Liar!
8.10.2021
I like the pushback from Katie Kodes here. I’ve said in the past that I don’t think server-side languages haven’t quite nailed “building in components” as well as JavaScript has, but hey, this is a good point:
1. Any basic
…
The post Jekyll doesn’t...
Conditional Border Radius In CSS
5.10.2021
Ahmad Shadeed documents a bonafide CSS trick from the Facebook CSS codebase. The idea is that when an element is the full width of the viewport, it doesn’t have any border-radius. But otherwise, it has 8px of border-radius. …
The post Conditional Border Radius In CSS appeared first...
ct.css — Performance Hints via Injected Stylesheet Alone
5.10.2021
This is some bonafide CSS trickery from Harry that gives you some generic performance advice based on what it sees in your <head> element.
First, it’s possible to make a <style> block visible like any other element by changing the …
The post ct.css — Performance Hints...
Donald Trump on Crypto: ‘I Don’t Want Other Currencies Coming Out and Hurting the Dollar’
4.10.2021
Former U.S. President Donald Trump has commented on the growing popularity of cryptocurrencies and the crypto crackdown by the Chinese government. He reiterated his anti-crypto stance: “I don’t want to have other currencies coming out and hurting or demeaning the dollar in...
Solana Gets More Investments Than Ethereum, Crypto Jobs Booming + More News
30.9.2021
re.com/media/38553636/cryptocompare_damr_2021_09.pdf">data. Bitcoin (BTC)-based products saw the highest level of inflows out of any asset, averaging USD 31.2m per week. This was followed by