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
| public enum Cacheability | |
| { | |
| NoCache, | |
| Private, | |
| Public, | |
| } |
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
| import { LOGIN_USER, LOGIN_SUCCESS, LOGIN_ERROR, LOGOUT } from "../constants/action-types" | |
| const initState = { | |
| loged: false, | |
| error: '', | |
| credentials: { | |
| token: '', | |
| username: '', | |
| userlastname: '' | |
| } |
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
| let cadenapar = "" | |
| let cadenaimpar = "" | |
| const texto = "programacion" | |
| for(let i=0; i<texto.length; i++){ | |
| i%2 === 0 ? cadenapar = cadenapar.concat(texto.charAt(i)) | |
| : cadenaimpar = cadenaimpar.concat(texto.charAt(i)) | |
| } | |
| console.log(cadenapar.concat(" ", cadenaimpar)) |
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
| //modulos CORE | |
| var os = require('os'); | |
| var fs = require('fs'); | |
| //modulos propios | |
| var [suma, resta, multiplicacion, division] = require('./operaciones'); | |
| var cpu = os.cpus(); | |
| var cpu_string = JSON.stringify(cpu); | |
| var sistema = os.platform(); |