Skip to content

Instantly share code, notes, and snippets.

View cabe56's full-sized avatar

Jose Varela cabe56

  • Cuanto
  • Panama City, Panama
View GitHub Profile
@cabe56
cabe56 / introrx.md
Created April 27, 2021 05:06 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@cabe56
cabe56 / adams-heroku-values.md
Last active December 14, 2020 01:15 — forked from adamwiggins/adams-heroku-values.md
My Heroku values

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Throw things away

@cabe56
cabe56 / local_storage_size.js
Last active August 29, 2015 14:25 — forked from diegocasmo/local_storage_size.js
Calculates localStorage key and total size occupied by data in MB
function sizeInMB(string) {
return (string.length * 2) / (1024 * 1024);
}
function addKeySizeToTotal(runningTotal, key) {
// Used as Array.reduce callback
return sizeInMB(localStorage[key]) + runningTotal;
}
function logLocalStorageKeySize(key) {