Skip to content

Instantly share code, notes, and snippets.

View tobidsn's full-sized avatar
💭
I may be slow to respond.

Tobi Muhamad tobidsn

💭
I may be slow to respond.
View GitHub Profile
@tobidsn
tobidsn / numberWithThousands.js
Created July 12, 2019 10:50 — forked from fjaguero/numberWithThousands.js
JS Regex: Adds thousands separator to a number.
View numberWithThousands.js
// Adds the thousands separator
function numberWithThousands(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ".");
}
@tobidsn
tobidsn / install-comodo-ssl-cert-for-nginx.rst
Created October 12, 2017 12:16 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.
View install-comodo-ssl-cert-for-nginx.rst