Introduction In data science and machine learning, cosine similarity is a measure that calculates the cosine of the angle between two …
Javascript
How to Implement Token Bucket Rate Limiting In NestJS
Rate limiting is a crucial aspect of building scalable and secure web applications. It helps prevent abuse and ensures the fair usage of …
How to parse VIN numbers using TypeScript
In this blog post, we'll create a simple TypeScript module for parsing Vehicle Identification Numbers (VINs). VIN is a unique 17-character …
How to Build a Key Generator with TypeScript
Today, we're going to build a license key generator. This flexible generator will allow you to create keys of varying lengths and segment …
Ten TypeScript Tricks for Writing Super Clean Code
In this post, I am going to go over a few TypeScript features that will make your code cleaner and strongly typed. You might already be …
Why You Should Be Using globalThis Instead of Window In Your Javascript Code
I hate to be "that guy" that publishes a blog post and says, "Stop using X" and "Why you should be using X instead", but after a recent …
Where Did All The TypeScript Haters Go?
TypeScript is a statically-typed superset of JavaScript introduced by Microsoft in 2012. It's a language that some developers love to hate, …
Creating a Secure Password Generator Using TypeScript
Password generation is something you're hopefully using a password manager for these days. However, you might not be aware that modern …
Sentiment Analysis Using TypeScript Without Dependencies
Sentiment analysis is usually a task that requires a specialised dataset and machine-learning techniques to implement properly. However, I …