Skip to content

Instantly share code, notes, and snippets.

View marcelovani's full-sized avatar

Marcelo Vani marcelovani

View GitHub Profile
@marcelovani
marcelovani / README.md
Created April 27, 2021 23:07 — forked from Maxattax97/README.md
List all Git repository objects by size.

List all Git repository objects by size

Summary

Bash script to:

  • Iterate all commits made within a Git repository.
  • List every object at each commit.
@marcelovani
marcelovani / hasValue.js
Created February 17, 2022 11:48
hasValue()
hasValue = function (value) {
if (typeof value === 'undefined') {
return false;
}
if (value === null) {
return false;
}
if (Object.prototype.hasOwnProperty.call(value, 'length') && value.length === 0) {