Category: javascript

Calculate distance between pins on a map using Javascript

In this tutorial we'll be using the haversine formula to calculate the distance between pins on a map (such as Google Maps) in metres.

Read article

Strip code blocks from markdown

Learn how to strip code blocks from markdown using Javascript. Useful for RSS feeds and when you need more control over your markdown output.

Read article

How to use Sentry with Fastify

How to use Sentry with the Fastify Node.js framework including environments and releases to get the most from your Sentry dashboard.

Read article

Automatic PDF downloads in all browsers

Downloading a PDF automatically (such as when clicking a submit button on a form) is tricky and especially so when it needs to work in Internet Explorer.

Read article