Richard Scarrott

Frontend Web Developer, London

@richardscarrott
richardscarrott pushed to master in richardscarrott/ok-computer a day ago
1 commit to master
@richardscarrott
richardscarrott pushed to master in richardscarrott/ok-computer a day ago
1 commit to master
@richardscarrott
richardscarrott created a branch in richardscarrott/ok-computer a day ago
@richardscarrott
richardscarrott commented on issue microsoft/TypeScript#44075 a day 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 pull request omrilotan/isbot#155 6 days 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 issue stripe/stripe-node#1202 8 days 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 8 days 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 9 days 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 issue stripe/stripe-node#313 9 days 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 issue stripe/stripe-node#313 9 days 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 13 days ago

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

JavaScript 340 1 issue needs help Updated Aug 4

@richardscarrott
richardscarrott commented on issue auth0/auth0-react#226 15 days 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 issue ReactiveX/IxJS#305 15 days ago

@trxcllnt yes I think it does actually 👍

@richardscarrott
richardscarrott opened an issue in moment/luxon 16 days 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 41 Updated Jul 19

@richardscarrott
richardscarrott commented on issue ReactiveX/IxJS#244 20 days ago

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

@richardscarrott
richardscarrott commented on issue ReactiveX/IxJS#305 20 days 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 issue ReactiveX/IxJS#305 20 days 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 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 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 pushed to master in richardscarrott/ok-computer a month ago
2 commits to master
@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 2a9e4cf
    Accept a predicate intead of a validator in 'when'
  • @richardscarrott a61e86e
    Improve README
@richardscarrott

Map object keys and values into a new object

JavaScript 105 1 issue needs help Updated Jul 29

@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 2 months ago
1 commit to master
@richardscarrott
richardscarrott created a branch in richardscarrott/ok-computer 2 months ago
@richardscarrott
richardscarrott created a repository richardscarrott/ok-computer 2 months ago

λ "Functions all the way down" data validation for JavaScript and TypeScript.

Updated Aug 4