Skip to content

Instantly share code, notes, and snippets.

View karthickvkumar's full-sized avatar
🎯
Focusing

Karthick Kumar karthickvkumar

🎯
Focusing
View GitHub Profile
@karthickvkumar
karthickvkumar / certificate.cnf
Created April 18, 2023 16:33 — forked from arundhaj/certificate.cnf
Using Angular CLI and self-signed SSL Certificate to serve over HTTPS in localhost
[req]
default_bits = 2048
prompt = no
default_md = sha256
x509_extensions = v3_req
distinguished_name = dn
[dn]
C = IN
ST = India
@karthickvkumar
karthickvkumar / memorySizeOfObject.js
Created April 4, 2017 07:25
calculate memory size of javascript object, it is not a accurate value!
function memorySizeOf(obj) {
var bytes = 0;
function sizeOf(obj) {
if(obj !== null && obj !== undefined) {
switch(typeof obj) {
case 'number':
bytes += 8;
break;
case 'string':