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
| //Función para validar una CURP | |
| function curpValida(curp) { | |
| var re = /^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HM](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$/, | |
| validado = curp.match(re); | |
| if (!validado) //Coincide con el formato general? | |
| return false; | |
| //Validar que coincida el dígito verificador | |
| function digitoVerificador(curp17) { |
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 functions = require('firebase-functions'); | |
| const gcs = require('@google-cloud/storage')(); | |
| const spawn = require('child-process-promise').spawn; | |
| const mkdirp = require('mkdirp-promise'); | |
| const path = require('path'); | |
| const os = require('os'); | |
| const fs = require('fs'); | |
| // // Create and Deploy Your First Cloud Functions | |
| exports.optimizeImages= functions.storage.object().onFinalize((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
| components/ | |
| my_bounded_context/ | |
| app/ | |
| presentation/ # This is called the "UI" layer in DDD literature, but it is also | |
| # where things like JSON interfaces live -- any kind of presentation | |
| # or handshake to anything outside. So "presentation" rather than "ui". | |
| assets/ | |
| helpers/ | |
| mailers/ | |
| views/ |