167 private links
A field could have 0 or more string items.
Two or more items, the field is an array.
One item the field is set to a single string.
Zero items, the field i not set at all.
Avoid that: pass an array and call it a day
Everything should be written in #Rust
, but not everything deserves it.And that’s when I reach for #Go
And in the end I get paid to write #JavaScript
and #PHP
a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing applications
Josh Comeau writes excellent blog posts about programming topic. This one is also great!
Simply good
Country flag code to unicode emoji flag
function getFlagEmoji(countryCode) {
const codePoints = countryCode
.toUpperCase()
.split('')
.map(char => 127397 + char.charCodeAt());
return String.fromCodePoint(...codePoints);
}
Simple projects that are handy to learn HTML, CSS and Javascript
Insert a code snippet in one line as a bookmark:
javascript: (() => {
// Code here
})();
For example:
- Find a "Jobs", "Careers" or "Hiring" link in the page, and click it.
- Find all email addresses on the current page, and display them in an alert.
These are not limited with permissions, so we should only execute code we checked.
A way to work with indexedDB in the browser.
They are different. HTML attributes are set on the HTML tags, whereas DOM properties are set in JS on the HTMLElement.
This post highlights the differences.
Rights management in JS
The UnJS project is getting bigger and has now multiple .
The major advantage of UnJS is they are independent of a platform such as NodeJS, Deno, Bun, etc...
They simply rely on ECMAScript.
A small JavaScript library to create and animate annotations on a web page.
Nice. With a bit of interactivity, the user can highlights everything.
How to link webmentions.io messages, likeCount, replyCount and reportCount to a personal blog with a few JS lines.
Crazy how much MB of JS are needed