Richard Scarrott

Frontend Web Developer, London

@richardscarrott

Escape RegExp special characters

JavaScript 461 1 issue needs help Updated Apr 17

@richardscarrott

Race Control is a standalone, open source F1TV client for Windows, written in C# on the .NET 5 platform.

C# 538 Updated Sep 16

@richardscarrott
richardscarrott pushed to master in richardscarrott/ok-computer a month ago
1 commit to master
@richardscarrott
richardscarrott pushed to master in richardscarrott/ok-computer a month ago
2 commits to master
@richardscarrott
richardscarrott merged a pull request in richardscarrott/ok-computer a month ago
Add peer, andPeers, nandPeers, orPeers, xorPeers and oxorPeers #1

Peer functions akin to joi object().and / object().or etc. e.g const validator = object({ A: and(or(nullish, string), orPeers('B')), B: and(or(nullish

+1,433 -82
@richardscarrott
richardscarrott pushed to peer-fns in richardscarrott/ok-computer a month ago
1 commit to peer-fns
@richardscarrott
richardscarrott opened a pull request in richardscarrott/ok-computer a month ago
Add peer, andPeers, nandPeers, orPeers, xorPeers and oxorPeers #1

Peer functions akin to joi object().and / object().or etc. e.g const validator = object({ A: and(or(nullish, string), orPeers('B')), B: and(or(nullish

+1,433 -82
@richardscarrott
richardscarrott created a branch in richardscarrott/ok-computer a month ago
@richardscarrott

For encoding and decoding base64url!

JavaScript 187 Updated Sep 3

@richardscarrott
richardscarrott pushed to master in richardscarrott/ok-computer a month ago
1 commit to master
@richardscarrott
richardscarrott pushed to master in richardscarrott/ok-computer a month ago
1 commit to master
@richardscarrott
richardscarrott created a branch in richardscarrott/ok-computer a month ago

Updated Aug 13

@richardscarrott
richardscarrott commented on microsoft/TypeScript#44075 a month ago

@SDAdham I experienced this in TS 3.9.7 where we have a load of static data defined in TS, e.g. enum Thing { Foo = 'Foo', Bar = 'Bar', // +100s of …

@richardscarrott
richardscarrott commented on omrilotan/isbot#155 2 months ago

@omrilotan thanks for looking into this! I like the idea of being able to 'spawn' child instances, reminds me of pino logger and seems like a good …

@richardscarrott
richardscarrott commented on stripe/stripe-node#1202 2 months ago

In the meantime, I've patched our stripe client with: Stripe.prototype.getClientUserAgent = cb => cb(`HACK: https://github.com/stripe/stripe-node/i…

@richardscarrott
richardscarrott opened an issue in omrilotan/isbot 2 months ago
Add ability to create multiple instances #153

Problem We have a handful of reasons to change the behaviour of our site based on whether the user is a bot. However, they have subtly different re…

@richardscarrott
richardscarrott opened an issue in stripe/stripe-node 2 months ago
Spawning process for every parallel request results in high CPU usage #1202

So this issue was raised a while back but there wasn't any reproduction steps which I guess is why it was closed. I was profiling our node server a…

@richardscarrott
richardscarrott commented on stripe/stripe-node#313 2 months ago

Scanning through the code it looks to still be an issue in the latest version stripe-node/lib/stripe.js Line 151 in c4fcc7f

@richardscarrott
richardscarrott commented on stripe/stripe-node#313 2 months ago

Hi @brandonl-stripe, I've just been profiling our node server and noticed a lot of CPU activity in the stripe SDK which I think is related to the f…

@richardscarrott
richardscarrott starred omrilotan/isbot 2 months ago

💻 JavaScript module that detects bots/crawlers/spiders via the user agent

JavaScript 360 1 issue needs help Updated Sep 14

@richardscarrott
richardscarrott commented on auth0/auth0-react#226 2 months ago

Hi @adamjmcgrath - surely calling a HoC anywhere within a component's render fn isn't a good idea?...React will see it as a new component on each r…

@richardscarrott
richardscarrott commented on ReactiveX/IxJS#305 2 months ago

@trxcllnt yes I think it does actually 👍

@richardscarrott
richardscarrott opened an issue in moment/luxon 2 months ago
DateTime.local().toISO() !== DateTime.utc().toISO() even when zone is UTC #992

Describe the bug In our node.js program the timezone is set to UTC: new Date(); // 2021-07-20T10:56:02.802Z We're therefore writing our code using D…

@richardscarrott

JSON schema validator

TypeScript 165 Updated Sep 2

@richardscarrott
richardscarrott commented on ReactiveX/IxJS#244 2 months ago

@felixfbecker is that flatMapConcurrent theory or something that could be used; I wonder if you could share an example?

@richardscarrott
richardscarrott commented on ReactiveX/IxJS#305 2 months ago

Ok figured out my issue, I had to explicitly import (and log to avoid the TS compiler just removing the import) ix/asynciterable/tonodestream: impo…

@richardscarrott
richardscarrott commented on ReactiveX/IxJS#305 2 months ago

@trxcllnt I'm struggling to get ix to play nicely with node streams, e.g. import { from } from 'ix/asynciterable'; import { fromNodeStream } from '…

@richardscarrott
richardscarrott pushed to master in richardscarrott/ok-computer 3 months ago
1 commit to master
@richardscarrott
richardscarrott pushed to master in richardscarrott/ok-computer 3 months ago
1 commit to master
@richardscarrott
richardscarrott pushed to master in richardscarrott/ok-computer 3 months ago
1 commit to master