Introducing tweetus-deletus 🐦🪄💀 - a tool to automate deleting your tweets, through the browser (3 mins read).
Announcing the release of tweetus-deletus, a tool to delete all your tweets, driven through the browser with Playwright.
Introducing tweetus-deletus 🐦🪄💀 - a tool to automate deleting your tweets, through the browser (3 mins read).
Announcing the release of tweetus-deletus, a tool to delete all your tweets, driven through the browser with Playwright.
Reusing a browser session with Playwright (1 mins read).
How to re-use your existing browser sessions with Playwright.
Demo of two of Javascript's sharp edges. GitHub Gist: instantly share code, notes, and snippets.
Fun JS bug of the day introduced by a linting change, that lost me a good amount of time trying to work out what was going wrong:
- const tokenSet = await client.oauthCallback(redirect, params, { code_verifier });
+ const tokenSet = await client.oauthCallback(redirect, params, { codeVerifier })
Silently changed the meaning of the code here, and needed to be fixed with:
- const tokenSet = await client.oauthCallback(redirect, params, { codeVerifier }).catch((err) => {
+ const tokenSet = await client.oauthCallback(redirect, params, { code_verifier: codeVerifier }).catch((err) => {
Funnily enough, I've had this lead to dangerous logging in the past, but didn't spot this at first. That'll teach me!
Build, Validate, Route, Authenticate and Mock using OpenAPI - GitHub - anttiviljami/openapi-backend: Build, Validate, Route, Authenticate and Mock using OpenAPI
If you are working on a large JS project run $> npx unimported It will tell you what dependencies are not being used in your code. In my case I found 5 npm modules and over 20 React components that were no longer part of the UI 🤯Jorge 💻 (@ja_codes)Tue, 10 May 2022 11:00 +0000
Getting node-canvas to run on AWS Lambda (3 mins read).
Some common issues that occur when using node-canvas on AWS Lambda, and how to solve them.
PSA: number inputs have a `.valueAsNumber` property that you may find handy
Steve Sewell (@Steve8708)Thu, 31 Mar 2022 22:06 +0000
In which JavaScript, which you'd think has enough enemies already, risks incurring the wrath of Pope Gregory XIII
Post details
Swift understands this. JS does not. -12219296400 is the timestamp 1 hour before the beginning of October 15, 1582 (UTC). That means it should be October 4, 23:00 hours, because of the skipped days. JS gives back October 14, 1582. A day that did not exist.BJ Homer (@bjhomer)Fri, 04 Mar 2022 19:14 GMT
mcc (@mcclure111)Fri, 04 Mar 2022 20:36 GMT
Swift understands this. JS does not. -12219296400 is the timestamp 1 hour before the beginning of October 15, 1582 (UTC). That means it should be October 4, 23:00 hours, because of the skipped days. JS gives back October 14, 1582. A day that did not exist.BJ Homer (@bjhomer)Fri, 04 Mar 2022 19:14 GMT
JavaScript solved the mistery.
Vitto Rivabella 🥑 (@VittoStack)Thu, 20 Jan 2022 11:31 GMT
Library authors: Please ship .mjs instead of .esm.js or /esm/index.js Thank you 😇Anthony Fu (@antfu7)Thu, 30 Dec 2021 06:24 GMT
Announcing a new package: @jamietanna/spectral-test-harness
(1 mins read).
Announcing a new NPM package for easier testing of Spectral API linting.
Test Driven Development for Your Spectral Rules, using Jest (7 mins read).
How to write unit tests for Spectral API linting, in a test-driven development fashion.
JS Devs: Would not be caught dead using PHP Also JS Devs: Furiously reinventing PHP since 2013swyx (@swyx)Mon, 22 Nov 2021 23:19 GMT
A very interesting attack - having tested a few editors with colleagues, none of us could've caught it without spotting that there's a slightly wider character in a couple of places!
rails is a good framework. we shouldn’t abandon it bc a man can’t apologize. wait until you hear about the guy who created javascript.
raven (@_raven_io)Fri, 30 Apr 2021 20:25 +0000
wat
pro-democracy extremist (@agentdero)Thu, 14 Jan 2021 19:49 GMT
Developer: I don't need type checking. Also developer: it('should throw an error when passed a string', () => {Mark Dalgleish (@markdalgleish)Wed, 16 Dec 2020 22:42 GMT
Unit Testing Auth0 Rules (8 mins read).
How to write unit tests for your Auth0 Rules, without running it on an Auth0 tenant.
javascript why u do dis? 😶
Kap 💃 (@kapehe_ok)Wed, 20 May 2020 17:04 +0000
This is a brilliant talk about the quirks of JavaScript, from a number of years ago.
Although it's fun to hate on JavaScript, it can also be seen about other languages.
Definitely worth a watch if you've never seen it before, or are working with JavaScript and want to have to think very hard about what the language does.
FOSDEM 2019 (31 mins read).
Recapping my time at the Free and Open Source Developers Europe Meeting conference in Brussels.
TYKJS Middleware Gotcha When Base 64 Decoding Data (3 mins read).
How to workaround the Failed to base64 decode: illegal base64 data at input byte
error when trying to use b64dec
in TYKJS middleware.
Unit Testing Your TYK (TYKJS) Middleware (6 mins read).
Writing unit tests (in this case using Jasmine) for the TYK API Gateway's JavaScript middleware functionality.
You're currently viewing page 1 of 1, of 36 posts.