// retorna la variable que lo contiene
console.log({foo,bar,baz})
// regresa una tabla
console.log([foo,bar,baz])
// %c relaciona estilos con la consola
console.log('%c DEBUGGING COLOR','color:lime;')
// tiempos de ejecucion
console.time('looper')
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| css-dotted-pattern-overlay { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABhJREFUeNpiYmBgaPj//z8DI4gAAYAAAwBABgZ+pgNS5QAAAABJRU5ErkJggg==); | |
| z-index: -1; | |
| background-size: 2px; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const webpack = require('webpack'); | |
| const path = require('path'); | |
| const config = require('sapper/config/webpack.js'); | |
| const pkg = require('./package.json'); | |
| const mode = process.env.NODE_ENV; | |
| const dev = mode === 'development'; | |
| const alias = { svelte: path.resolve('node_modules', 'svelte') }; | |
| const extensions = ['.mjs', '.js', '.json', '.svelte', '.html']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Enable "mod_rewrite" in Apache2 | |
| - In terminal: | |
| sudo a2enmod rewrite | |
| // Add rule to apache | |
| - Edit file | |
| cd /etc/apache2/sites-available | |
| sudo nano 000-default.conf | |
| - Add this line where "wordpress" is the site directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo usermod -g www-data <YOUR_USERNAME> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # GIT: Ignorar archivos que ya han sido agregados al caché | |
| ### Borra el archivo de la caché | |
| ``` | |
| git rm -r --cached ruta/de/archivo | |
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // X cards | |
| <meta name=”twitter:card” content=”summary” /> | |
| <meta name=”twitter:site” content=”@yoursite” /> | |
| <meta name=”twitter:title” content=”Your Title” /> | |
| <meta name=”twitter:description” content=”Your description.” /> | |
| <meta name=”twitter:image” content=”https://where-your-image-is-hosted/name.jpg” /> | |
| // Open Graph | |
| <meta property="og:title" content="Título de tu artículo o página"> | |
| <meta property="og:description" content="Descripción del contenido"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### How to change WP Prefix | |
| - Change prefix in wp-config.php file | |
| ''' | |
| $table_prefix = 'new_prefix'; | |
| ''' | |
| - In phpmyadmin | |
| - Select the database. | |
| - Check on the ‘check all’ checkbox to select all tables. |
OlderNewer