- http://
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
| // time and time end | |
| console.time("This"); | |
| let total = 0; | |
| for (let j = 0; j < 10000; j++) { | |
| total += j | |
| } | |
| console.log("Result", total); | |
| console.timeEnd("This"); | |
| // Memory |
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
| function orderTotal(order) { | |
| return order.items.reduce((prev, cur) => cur.price * (cur.quantity || 1) + prev, 0) | |
| } | |
| module.exports = orderTotal |
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
| # Set the default behavior, in case people don't have core.autocrlf set. | |
| * text eol=lf | |
| # Definitively text files | |
| *.txt text | |
| *.js text | |
| *.jsx text | |
| *.json text | |
| *.svg text |
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
Show hidden characters
| { | |
| "env": { | |
| "browser": true, | |
| "es6": true | |
| }, | |
| "extends": "eslint:recommended", | |
| "parser": "babel-eslint", | |
| "parserOptions": { | |
| "ecmaFeatures": { | |
| "experimentalObjectRestSpread": true, |
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
| { | |
| // Coloque su configuración en este archivo para sobrescribir la configuración predeterminada. | |
| "workbench.iconTheme": "vs-seti", | |
| "workbench.colorTheme": "Atom One Light", | |
| "atomKeymap.promptV3Features": true, | |
| // ARCHIVO | |
| // Carácter predeterminado de final de línea. Utilice \n para LF y \r\n para CRLF. | |
| "files.eol": "\n", | |
| // Si se habilita, se recortará el espacio final cuando se guarde un 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
| { | |
| // Utilizar IntelliSense para aprender acerca de los posibles atributos. | |
| // Mantenga el puntero para ver las descripciones de los existentes atributos | |
| // Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "chrome", | |
| "request": "launch", | |
| "name": "Launch Chrome against localhost", |
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
| { | |
| "color_scheme": "Packages/ayu/ayu-light.tmTheme", | |
| "default_line_ending": "unix", | |
| "detect_indentation": false, | |
| "draw_white_space": "all", | |
| "ensure_newline_at_eof_on_save": false, | |
| "font_size": 12, | |
| "ignored_packages": | |
| [ | |
| "Vintage" |
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
| { | |
| "folders": | |
| [ | |
| { | |
| "name": "LOREM IPSUM", | |
| "path": "lorem_relative_path" | |
| } | |
| ], | |
| "settings": | |
| { |
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
| // Future versions of Hyper may add additional config options, | |
| // which will not automatically be merged into this file. | |
| // See https://hyper.is#cfg for all currently supported options. | |
| module.exports = { | |
| config: { | |
| // default font size in pixels for all tabs | |
| fontSize: 12, | |
| // font family with optional fallbacks |