Sirve para indicar peligro. No sobrecargar una web con el color rojo, molesta y distrae al usuario.
Más amigable que el rojo. Se utiliza mucho para los CTA (Call To Action) -> Botones de interacción con el usuario, para llamar la atención.
const DEFAULT_IONIC_DB = '_ionicstorage'; | |
const DEFAULT_IONIC_TABLE = '_ionickv'; | |
let db; | |
function setupIndexedDb() { | |
return new Promise((resolve, reject) => { | |
if (!indexedDB) { | |
return reject(new Error('indexedDB not suported')); | |
} | |
if (db) { | |
return resolve(db); |
{ | |
"env": { | |
"browser": true, | |
"commonjs": true, | |
"es6": true, // "es2021": true, | |
"node": true | |
}, | |
"extends": "eslint:recommended", | |
"parserOptions": { | |
"ecmaVersion": 12, |
/* | |
Ejecutar un array de promesas en modo cascada | |
Promise.all([]) no serviría en este caso ya que las lanza todas a la vez | |
*/ | |
const arrayPromesas = []; | |
const resolverCascada = async () => { | |
await arrayPromesas.reduce(async (promise, foo) => { | |
await promise; | |
// Hacer lo que sea necseario hacer con 'foo' |
// PRO TIP: Crear HTML Element + asignar valores en una sola linea | |
// Varias ejecuciones (metodo antiguo) | |
const script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.src = './script.js'; | |
document.body.appendChild(script); | |
// Una sola ejecucion (metodo PRO 😎) | |
document.body.appendChild( |
/** | |
* @typedef Ejemplo2 | |
* @property {number} prop11 | |
*/ | |
/** | |
* @typedef Ejemplo | |
* @property {string} prop1 | |
* @property {number} prop2 | |
* @property {boolean} prop3 |
{ | |
"sync.gist": "d0d359643c5ddfac9325790a88e5293d", | |
"sync.autoDownload": true, | |
"sync.autoUpload": false, | |
"sync.forceDownload": false, | |
"sync.quietSync": true, | |
"sync.removeExtensions": true, | |
"sync.syncExtensions": true, | |
"editor.multiCursorModifier": "ctrlCmd", | |
"editor.formatOnPaste": true, |
# Mi bash_profile | |
HOST_NAME=Guille | |
source ~/.nvm/nvm.sh | |
nvm use stable | |
shopt -s autocd | |
shopt -s histappend | |
export PATH=$PATH:$HOME/bin |
{ | |
"Ansi 3 Color": { | |
"Green Component": 0.73333334922790527, | |
"Blue Component": 0, | |
"Red Component": 0.73333334922790527 | |
}, | |
"Tags": [], | |
"Ansi 12 Color": { | |
"Green Component": 0.3333333432674408, | |
"Blue Component": 1, |
# Quitar la aceleracion del raton del MAC: http://triq.net/mac/mouse-acceleration | |
# Para tener accesible el panel de preferencias se puede acceder desde: Macintosh HD > Biblioteca > PreferencePanes (o desde codigo > cd /Library/PreferencePanes/) | |
xcode-select --install | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew update | |
brew cask install iterm2 | |
# update iterm2 settings: https://gist.github.com/ekzGuille/c1a07e1f8078a82eb6f16132556bce1c | |
brew install bash # latest version of bash | |
# set brew bash as default shell: https://clubmate.fi/upgrade-to-bash-4-in-mac-os-x/#Configure_terminal_to_use_it | |
brew install git |