Skip to content

Instantly share code, notes, and snippets.

View Mexidense's full-sized avatar
📗
"Stay hungry. Stay foolish"

Salvador Briones Mexidense

📗
"Stay hungry. Stay foolish"
View GitHub Profile
⭐️ feat: add beta sequence (new feature)
🛠 fix: remove broken confirmation message (bug fix)
♻️ refactor: share logic between 4d3d3d3 and flarhgunnstow (refactoring production code)
🌈 style: convert tabs to spaces (formatting, missing semi colons, etc; no code change)
🔍 test: ensure Tayne retains clothing (adding missing tests, refactoring tests; no production code change)
😒 chore: add Oyster build script (updating grunt tasks etc; no production code change)
📝 docs: explain hat wobble (changes to documentation)
Sources:
https://seesparkbox.com/foundry/semantic_commit_messages
@rajinwonderland
rajinwonderland / memorySizeOf.js
Created March 4, 2020 01:06
Calculate Memory Size of a JS Object
function memorySizeOf(obj) {
var bytes = 0;
function sizeOf(obj) {
if (obj !== null && obj !== undefined) {
switch (typeof obj) {
case "number":
bytes += 8;
break;
case "string":