HVAC Blog

Regram Later v1.6

First of all, I'd like to thanks 1200+ first users of Regram Later (Chrome Extension for Instagram repost with smart caption and automation) ­čÖé From now on, new updates will come with announcement blog posts like this so that you can see changes to each iteration and...

Generate random, unique string in JavaScript

Whether you need to generate a unique identifier for data key, object reference, url shortener, or duplication avoidance, a good random value generator library is a must-have. I recommend 4 libraries: uuid, short-uuid, nanoid, and crypto-random-string This is not...

Escape JavaScript Regex characters using Lodash

Sometimes you want to construct a Regular Expression object dynamically from a string instead of a literal regex. It's important to safely escape special characters in the string that is not intended to be regex syntax. Turned out, the swift army knife Lodash library...

Common text case conversion in JavaScript

change-case NPM package includes many text conversion methods for most common cases: camel case, capital case, constant case, dot case, header case, no case, param case, pascal case, path case, sentence case, and snake case. It's very easy to use, see example: const...

Find duplications in array using Lodash (JavaScript)

Lodash is my favorite JavaScript library that includes many useful data manipulation utilities in functional programming style. It can run in Node.js and browsers. The below snippet is an example of using 2 functions filter and includes to find duplications in an...

Get first line of multiline string using JavaScript Regex

Regular Expression can be used in the standard match function to extract the first line of a multiline string, e.g. content of a source file. "This is the first line.\n This is the second line.".match(/^.*$/m)[0]; // => "This is the first line." Explain:...

Refresh Cached Progressive Web App

Progressive Web App (PWA) is getting very popular these days in 2020 because it provides a greater web experience and responsiveness, especially for interactive application. Part of the power comes from various caching strategies which allow smoother experience during...

Regram Later v1.6

First of all, I'd like to thanks 1200+ first users of Regram Later (Chrome Extension for Instagram repost with smart caption and automation) ­čÖé From now on, new updates will come with announcement blog posts like this so that you can see changes to each iteration and...

Generate random, unique string in JavaScript

Whether you need to generate a unique identifier for data key, object reference, url shortener, or duplication avoidance, a good random value generator library is a must-have. I recommend 4 libraries: uuid, short-uuid, nanoid, and crypto-random-string This is not...

Escape JavaScript Regex characters using Lodash

Sometimes you want to construct a Regular Expression object dynamically from a string instead of a literal regex. It's important to safely escape special characters in the string that is not intended to be regex syntax. Turned out, the swift army knife Lodash library...

Subscribe!

Get Started

Mauris blandit aliquet elit, eget tincidunt nibh pulvinar a. Vestibulum ante ipsum primis in faucibus orci luc

(246) 462-3523

1235 Divi St. San Francisco, CA 39153