Richard Scarrott

Frontend Web Developer, London

@richardscarrott
richardscarrott pushed to master in richardscarrott/test-snippets 5 days ago
1 commit to master
  • @richardscarrott 47155e7
    Rename bypass-global-player-nag to bypass-global-player-nag.js
@richardscarrott
richardscarrott pushed to master in richardscarrott/test-snippets 5 days ago
1 commit to master
  • @richardscarrott 84695be
    Create bypass-global-player-nag
@richardscarrott

Hi @michaelsafyan Looks like I said I've not got a reduced test case unfortunately. We were using postgraphile at the time but I expect it'd be eas…

@richardscarrott

Ok I've managed to hack in a fix (see line 143 in the codepen -- https://codepen.io/riscarrott/pen/zYdvpYm) Basically I was right to say it's relat…

@richardscarrott

Funnily enough it can be reproduced on the first example on the react-autosuggest homepage: Focus on basic input Click on suggestion container border

@richardscarrott
richardscarrott opened an issue in moroshko/react-autosuggest 13 days ago
Cannot tab out of input after closing suggestions #831

I have a close button inside the suggestions container which, onMouseDown blurs the input in order to close the suggestions. It however breaks the …

@richardscarrott

WAI-ARIA compliant React autosuggest component

JavaScript 5.7k 10 issues need help Updated Oct 12

@richardscarrott

You can customize the suggestions container (add a footer / header etc.) using renderSuggestionsContainerProp

@richardscarrott
richardscarrott pushed to master in richardscarrott/test-snippets 16 days ago
1 commit to master
  • @richardscarrott cebdeb8
    Update parade-us-shipping-address.js
@richardscarrott
richardscarrott pushed to master in richardscarrott/test-snippets 16 days ago
1 commit to master
  • @richardscarrott f0469f7
    Update parade-us-shipping-address.js
@richardscarrott
richardscarrott pushed to master in richardscarrott/test-snippets 20 days ago
1 commit to master
@richardscarrott

An efficient combinatorics library for JavaScript utilizing ES2015 generators.

JavaScript 61 Updated Feb 13

@richardscarrott

Escape RegExp special characters

JavaScript 473 1 issue needs help Updated Apr 17

@richardscarrott
richardscarrott starred robvdpol/RaceControl 2 months ago

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

C# 605 Updated Oct 27

@richardscarrott
richardscarrott pushed to master in richardscarrott/ok-computer 2 months ago
1 commit to master
@richardscarrott
richardscarrott pushed to master in richardscarrott/ok-computer 3 months ago
2 commits to master
@richardscarrott
richardscarrott merged a pull request in richardscarrott/ok-computer 3 months 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 3 months ago
1 commit to peer-fns
@richardscarrott
richardscarrott opened a pull request in richardscarrott/ok-computer 3 months 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 3 months ago
@richardscarrott

For encoding and decoding base64url!

JavaScript 189 Updated Sep 3

@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 created a branch in richardscarrott/ok-computer 3 months ago

Updated Aug 13

@richardscarrott
richardscarrott commented on microsoft/TypeScript#44075 3 months 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 3 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 3 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 3 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 3 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 3 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