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
| /* | |
| Transponer una matriz | |
| Entrada: | |
| 1 2 3 4 | |
| 5 6 7 8 | |
| Salida | |
| 1 5 | |
| 2 6 |
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
| /* | |
| Return the sets intersection. | |
| Params | |
| arrA : array | |
| arrB : array | |
| Return | |
| array | |
| */ | |
| const intersection = (arrA,arrB) => arrA.filter(x => arrB.includes(x)); |
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 AWS = require('aws-sdk'); | |
| AWS.config.update({ | |
| region: 'us-east-1' | |
| }); | |
| const sqs = new AWS.SQS({ | |
| apiVersion: '2012-11-05' | |
| }); |
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 AWS = require('aws-sdk'); | |
| AWS.config.update({ | |
| region: 'us-east-1' | |
| }); | |
| const SQS = new AWS.SQS(); | |
| const { | |
| Consumer |
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 AWS = require('aws-sdk'); | |
| //Define aws region | |
| AWS.config.update({ | |
| region:'us-east-1' | |
| }); | |
| const TABLE = 'dc_test'; |
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 Joi = require('joi'); | |
| //Schemas. | |
| const googleSchema = Joi.object({ | |
| avatar:Joi.string().uri(), | |
| email:Joi.string().email(), | |
| name:Joi.string() | |
| }); | |
| const blockedSchema = Joi.object({ |
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 AWS = require('aws-sdk'); | |
| //Define aws region | |
| AWS.config.update({ | |
| region:'us-east-1' | |
| }); | |
| const TABLE = 'landing_page_emails'; |
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 assert = require('assert'); | |
| const createError = require('http-errors'); | |
| /* | |
| Receive a dni and gender 'M' or 'F' and return his cuil. | |
| Params | |
| document : number -> dni | |
| gender : string | |
| Returns | |
| string -> cuil | |
| */ |
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
| version: "2" | |
| services: | |
| home: | |
| container_name: home-service | |
| restart: always | |
| build: ./home-service | |
| ports: | |
| - "172.24.0.1:5000:8080" | |
| clients: | |
| container_name: clients-service |
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
| stages: | |
| - test | |
| - build | |
| - deploy | |
| - notify | |
| run_test: | |
| stage: test | |
| image: cirrusci/flutter:stable | |
| script: |