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 slugify = (text) => { | |
| return text | |
| .toString() // Cast to string (optional) | |
| .normalize('NFKD') // The normalize() using NFKD method returns the Unicode Normalization Form of a given string. | |
| .toLowerCase() // Convert the string to lowercase letters | |
| .trim() // Remove whitespace from both sides of a string (optional) | |
| .replace(/\s+/g, '-') // Replace spaces with - | |
| .replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
| .replace(/\_/g,'-') // Replace _ with - | |
| .replace(/\-\-+/g, '-') // Replace multiple - with single - |
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
| <!-- | |
| source: https://developer.mozilla.org/en-US/docs/Learn/HTML/Tables/Advanced#adding_a_caption_to_your_table_with_caption | |
| --> | |
| <table> | |
| <!-- a11y: the caption is meant to contain a description of the table contents --> | |
| <caption> | |
| Item Cart | |
| </caption> | |
| <!-- You can use thead, tbody, tfoot for better styling. No a11y impact --> |
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
| # Stop all containers | |
| docker stop `docker ps -qa` | |
| # Remove all containers | |
| docker rm `docker ps -qa` | |
| # Remove all images | |
| docker rmi -f `docker images -qa ` | |
| # Remove all volumes |
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
| { | |
| "workbench.colorTheme": "SynthWave '84", | |
| "workbench.iconTheme": "material-icon-theme", | |
| "atomKeymap.promptV3Features": true, | |
| "editor.multiCursorModifier": "ctrlCmd", | |
| "editor.formatOnPaste": true, | |
| "editor.formatOnSave": true, | |
| "editor.fontFamily": "Fira Code, Consolas, 'Courier New', monospace", | |
| "editor.fontSize": 14, | |
| "editor.fontWeight": "300", |
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
| { | |
| "workbench.colorTheme": "SynthWave '84", | |
| "workbench.iconTheme": "material-icon-theme", | |
| "atomKeymap.promptV3Features": true, | |
| "editor.multiCursorModifier": "ctrlCmd", | |
| "editor.formatOnPaste": true, | |
| "editor.formatOnSave": true, | |
| "editor.fontFamily": "Fira Code, Consolas, 'Courier New', monospace", | |
| "editor.fontSize": 14, | |
| "editor.fontWeight": "300", |
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
| { | |
| "name": "PlatziVideo", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1", | |
| "build": "webpack --mode production", | |
| "start": "webpack-dev-server --open --mode development" | |
| }, |
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 path = require("path"); | |
| const HtmlWebpackPlugin = require("html-webpack-plugin"); | |
| const MiniCssExtractPlugin = require("mini-css-extract-plugin"); | |
| module.exports = { | |
| entry: "./src/index.js", | |
| output: { | |
| path: path.resolve(__dirname, "dist"), | |
| filename: "bundle.js" | |
| }, |
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
| { | |
| "env": { | |
| "browser": true, | |
| "es6": true, | |
| "node": true | |
| }, | |
| "extends": ["airbnb"], | |
| "globals": { | |
| "document": false, | |
| "escape": false, |
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
| # Node template | |
| # Logs | |
| logs | |
| *.log | |
| npm-debug.log* | |
| yarn-debug.log* | |
| yarn-error.log* | |
| # Runtime data |
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
| /**************************\ | |
| Basic Modal Styles | |
| \**************************/ | |
| .modal { | |
| font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif; | |
| } | |
| .modal__overlay { | |
| position: fixed; |
NewerOlder