lionel-rowe

lionel-rowe @lionelrowe

Joined:
May 19, 2019

lionel-rowe
articles - 14 total

NodeJS `Buffer` is cool

function displayBufferContents(buf) { const byteString = Array.from(new Uint8Array(buf.buffer),...

Learn More 7 0Mar 16 '23

Easily and safely escape HTML in one line

x => Object.assign(document.createElement('div'), { textContent: x }).innerHTML Enter...

Learn More 9 0Apr 14 '22

How to create a null-filled array without [], comma, or the word “Array”

const praiseBeToCthulhu = (len) => { const obj = { a: '"' } obj.b = '' const...

Learn More 6 0Jan 5 '22

`Proxy` all of the things! Part 1: Counters

To celebrate the long-overdue death of Internet Explorer, I'm writing a series of articles on a...

Learn More 3 1Aug 26 '21

What makes a package useless, or "When should I reinvent the wheel"?

This is a response to a couple of comments in the discussion below this article: ...

Learn More 21 8Aug 23 '21

Gotchas when converting strings to arrays in JS

This is a response to @antoomartini 's awesome article here, where she describes 4 ways to turn a...

Learn More 7 1Aug 18 '21

Include HTML-in-HTML: an iteration

Inspired by @fjones 's comment on this article: Include HTML...

Learn More 15 5Aug 9 '21

Let's build... a retro text art generator!

Text art, often called "ASCII art", is a way of displaying images in a text-only medium. You've...

Learn More 23 0Jul 14 '21

Rotten Tomatoes 🍅 star rating system ⭐ with Web Components 🎆

On Rotten Tomatoes, a film can be rated either "fresh" or "rotten". Here's how to build a star rating...

Learn More 29 2Jul 7 '21

How to view the raw markdown of a dev.to post

Sometimes on dev.to, you might come across an article that uses some interesting markdown or liquid...

Learn More 18 3Feb 15 '21

FizzBuzz Lightyear: to `Infinity` and beyond!

Perhaps the most famous of all coding interview questions is FizzBuzz. For the uninitiated, the algor...

Learn More 6 0Feb 12 '21

Reverse a ‮string‬: revisited

[...'‮!dlrow ,olleH'].slice(1).reverse().join('') Enter fullscreen mode Exit fulls...

Learn More 8 1Feb 8 '21

Generating custom fallback avatars with React, Gravatar, and JSS

Gravatar, or Globally Recognized Avatar, is a free service from WordPress that allows users to associ...

Learn More 6 0Feb 1 '21

Introducing fancy-regex - JS/TS regexes with whitespace, comments, and interpolation!

Regexes in JavaScript are a fantastic tool for matching text, manipulating strings, performing valida...

Learn More 13 5Jan 27 '21