How to flatten arrays in JavaScript with flat() and flatMap(): the depth argument, Infinity, empty slots, arrays of objects and the map + filter trick.
Latest in C, Swift, JavaScript, Node.js and CSS
author · site-
JavaScript flat() and flatMap(): Flatten Arrays
-
AI answers link to the exact sentence. Your site can too
AI answers link straight to the sentence they quote.
-
RustyBox v0.4.0: Zero-Alloc O(log N) Dispatch, 8.24x HW SHA-2, 6.64x Grep & RFC 10008 Agent Search
Inside RustyBox v0.4.0: replacing 399 startup heap allocations with compile-time sorted dispatch tables, bypassing StdoutLock's LineWriter for 1,631 MB/s grep and 1,317 MB/s SHA-256, cutting rustybox-core release size by 6.4%, and serving RFC 10008 HTTP QUERY search.
-
Mapping the Wind with Planes
The Flights in the Air Right Now map from Tailodds displays two things: the live positions of aircraft flying over the United States and the wind conditions at cruising altitude.
-
How to Authenticate a GitHub Copilot SDK Service as a GitHub App with the Copilot Requests Permission
Run the GitHub Copilot SDK from a backend service with no signed-in user: create a GitHub App with the read-only Copilot Requests organization permission, mint a one-hour ghs_ installation token, pass it through gitHubToken with useLoggedInUser false, and rotate it before it…
-
Tensile by Horology
Tensile by Horology, a 64k intro for the PC by the three members of Horology, computer science students at ETH Zurich, released at Revision 2013 in Saarbrücken (29 March to 1 April 2013) and second of six in the PC 64k intro competition with 1,019 points, behind Turtles all the…
-
Fix: TimeZoneNotFoundException: The time zone ID was not found on the local computer (.NET on Linux and Docker)
On Linux, FindSystemTimeZoneById reads /usr/share/zoneinfo.
-
Skimmers que pasan por debajo de la CSP con WebRTC
Puedes tener la valla del huerto perfecta, alta, sin huecos y con una puerta que sólo abres tú, y aun así un día encontrarte las zanahorias mordisqueadas.
-
Las skills de Convex y lo que le contaban al agente a tus espaldas
El cuco no hace nido: pone el huevo en el de otro pájaro, y el carricero, que no sospecha nada, lo empolla y alimenta a la cría como si fuera suya.
-
Agent Framework PyPI 1.26.1 and 1.26.2 Were Malicious, and the GitHub Repo Is Offline
Two unauthorized agent-framework releases on PyPI ran a credential stealer from a .pth file on every Python start.
-
datasette-charts 0.4a0
Release: datasette-charts 0.4a0
-
@js@bsd.cafe it doesn't not :)...
@js@bsd.cafe it doesn't not :)
-
@js@bsd.cafe # halt -p...
@js@bsd.cafe # halt -p
-
Functional Programming in TypeScript
Functional programming offers powerful tools for building robust, maintainable software, and Software Development as a whole has moved more and more towards employing a functional style in its programs—yet comprehensive guides for normal work in real-world applications are…
-
MacAdmins.news: Home for the Holidays
The MacAdmins.news Thanksgiving issue is packed with articles, security news, and updates.
-
Why My Local Dashboard Has a Publisher, a Frontend, and an API
I wanted a dashboard I could leave running on a big TV.
-
O is for Oooops!
Mind yourselves over there, this one is backing-up a bit!
-
Claudine
Don’t hate me because I’m beautiful.
-
-
-
Concrete Problems, ten years on
A tour of AI safety, hung on Amodei et al. (2016): what the paper asked, what became of it, and what it left out.
-
-
Fluid Type Scales
How to get rid of almost all of the breakpoints in CSS.
-
Why Land Value Tax Would Not Work
Land Value Tax is very popular in smarter political circles.
-
Linear Regression with Closed-Form Training via QR Decomposition and a Back-Substitution Solve Method with C#
Late one Saturday night, I decided to slightly refactor one of my C# language implementations of linear regression with closed-form training, specifically training with QR Householder decomposition and a back-substitution solve method.
-
b0rk: Notes on using a single-person Mastodon server
On my reading list: [Wayback/Archive] Notes on using a single-person Mastodon server Via [Wayback/Archive] Julia Evans on Twitter: “some notes on running a single-person Mastodon server” –jeroen
-
Skills, Slash Commands, Subagents: When I Use Which in Claude Code
I used to cram everything into custom slash commands.
-
M is for More Model Marquees!
Bit of a Picasa-clearer, and although most of them are from the stash, some aren't, and some got forgotten while blogging previously.
-
Cool Link: The web is losing its personality
Ahmad goes over the reasons why every commercial website looks the same now, and gives amazing tips on how to make them stand out in a sea of sameness.
-
Day 56: Headscale – Your Own Tailscale Control Plane in Docker – 7 Days of Docker
Tailscale solved peer-to-peer networking so well that most people stopped thinking about it.
RSS for this view · OPML of the feeds with posts in this view (up to 567 feeds)