This file contains 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
asyncapi: 2.4.0 | |
info: | |
title: Account Service | |
version: 1.0.0 | |
description: This service is in charge of processing user signups | |
channels: | |
user-signedup: | |
description: A user has signed up for our service | |
publish: | |
message: |
This file contains 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 pika | |
from bottle import run, Bottle | |
EXCHANGE_NAME = "domain" | |
QUEUE_NAME = "domain" | |
ROUTING_EX_KEY = "domain-key" | |
def main(): | |
rabbitmq_uri_app = "amqp://user:password@127.0.0.1:5672/target-vhost" |
This file contains 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
#.github/workflows/deploy.yaml | |
name: CD Stage | |
on: | |
push: | |
branches: | |
- QA | |
- '!master' | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 |
This file contains 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 sys | |
from datetime import timedelta | |
total_time = sys.argv[1].split('.') # 2.35 is 2hr 35min | |
delta = timedelta(hours=int(total_time[0]), minutes=int(total_time[1])) | |
minutes = delta.total_seconds() / 60 | |
total_pomodoros = round(minutes / 25) | |
print(f'🕒{total_pomodoros} Pomodoros') |
This file contains 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
'use strict'; | |
const app = express(); | |
... | |
app.set('trust proxy', true); | |
if (process.env.ENVIRONMENT == 'development') { | |
app.use(logger('dev')); | |
} else { |
This file contains 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
#include <stdio.h> | |
#define max_long 3 | |
/*void pedir_vector(int coord_ector[]);*/ | |
void imprimir_vector(int vector[]); | |
void sumar_vector(int vector_suma_a[], int vector_suma_b[], int vector_sumado[]); | |
int main(){ | |
int vector_a[max_long] = {1,2,3} |