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 crypto from 'crypto' | |
| import jwt from 'jsonwebtoken' | |
| import { consolo } from './consolo' | |
| const { subtle } = crypto.webcrypto | |
| function btoa (str) { return Buffer.from(str).toString('base64') } | |
| function atob (b64) { return Buffer.from(b64, 'base64').toString() } | |
| function ab2str (buf) { return String.fromCharCode.apply(null, new Uint8Array(buf)) } |
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 chalk from 'chalk' | |
| import _ from 'lodash' | |
| import { consolo } from './consolo' | |
| import cripto from './cripto' | |
| class Llavero { | |
| constructor (nombre) { | |
| // console.log('Construcción llavero', nombre) | |
| this.nombre = nombre |
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
| <template lang="pug"> | |
| .osoCoder | |
| svg(xmlns='http://www.w3.org/2000/svg' viewBox="0 0 300 300") | |
| defs | |
| g(id="code-block").code-block | |
| rect(ry='0' y='862' x='60' height='7.5' width='74') | |
| rect(ry='0' y='874' x='96' height='7.5' width='28') | |
| rect(width='54' height='7.5' x='60' y='886' ry='0') | |
| rect(ry='0' y='897' x='60' height='7.5' width='74') | |
| rect(width='56' height='7.5' x='78' y='909' ry='0') |
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 _ from 'lodash' | |
| const chile = [ | |
| { | |
| nombreCompleto: 'Región de Arica y Parinacota', | |
| prefijo: 'Región de', | |
| nombre: 'Arica y Parinacota', | |
| romano: 'XV', | |
| numero: '15', | |
| iso_3166_2: 'CL-AP', |
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 { MongoClient } from 'mongodb' | |
| let cliente | |
| const configs = { | |
| local: { | |
| dbName: 'DatosDev', | |
| url: 'mongodb://user:[email protected]:27017' | |
| }, | |
| dev: { |
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
| { | |
| "id": "ejemplo", | |
| "nombre": "Gimnasio ejemplo", | |
| "descripcion": "", | |
| "redes": { | |
| "email": "correo@dominio", | |
| "telefono": "+56999999", | |
| "facebook": "https://sasdfsafd", | |
| "twitter": "https://sasdfsafd", | |
| "instagram": "https://sasdfsafd", |
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 Caracteres = { | |
| LATIN_MAP: { À: 'A', Á: 'A', Â: 'A', Ã: 'A', Ä: 'A', Å: 'A', Æ: 'AE', Ç: 'C', È: 'E', É: 'E', Ê: 'E', Ë: 'E', Ì: 'I', Í: 'I', Î: 'I', Ï: 'I', Ð: 'D', Ñ: 'N', Ò: 'O', Ó: 'O', Ô: 'O', Õ: 'O', Ö: 'O', Ő: 'O', Ø: 'O', Ù: 'U', Ú: 'U', Û: 'U', Ü: 'U', Ű: 'U', Ý: 'Y', Þ: 'TH', ß: 'ss', à: 'a', á: 'a', â: 'a', ã: 'a', ä: 'a', å: 'a', æ: 'ae', ç: 'c', è: 'e', é: 'e', ê: 'e', ë: 'e', ì: 'i', í: 'i', î: 'i', ï: 'i', ð: 'd', ñ: 'n', ò: 'o', ó: 'o', ô: 'o', õ: 'o', ö: 'o', ő: 'o', ø: 'o', ù: 'u', ú: 'u', û: 'u', ü: 'u', ű: 'u', ý: 'y', þ: 'th', ÿ: 'y' }, | |
| LATIN_SYMBOLS_MAP: { '©': '(c)' }, | |
| GREEK_MAP: { α: 'a', β: 'b', γ: 'g', δ: 'd', ε: 'e', ζ: 'z', η: 'h', θ: '8', ι: 'i', κ: 'k', λ: 'l', μ: 'm', ν: 'n', ξ: '3', ο: 'o', π: 'p', ρ: 'r', σ: 's', τ: 't', υ: 'y', φ: 'f', χ: 'x', ψ: 'ps', ω: 'w', ά: 'a', έ: 'e', ί: 'i', ό: 'o', ύ: 'y', ή: 'h', ώ: 'w', ς: 's', ϊ: 'i', ΰ: 'y', ϋ: 'y', ΐ: 'i', Α: 'A', Β: 'B', Γ: 'G', Δ: 'D', Ε: 'E', Ζ: 'Z', Η: 'H', Θ: '8', Ι: 'I', Κ: 'K', Λ: 'L', Μ: 'M', Ν: 'N', Ξ: '3', Ο: |
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
| export default [ | |
| { | |
| nombreCompleto: 'Región de Arica y Parinacota', | |
| prefijo: 'Región de', | |
| nombre: 'Arica y Parinacota', | |
| romano: 'XV', | |
| numero: '15', | |
| iso_3166_2: 'CL-AP', | |
| provincias: [ | |
| { |