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
| #include <iostream> | |
| #include <thread> | |
| #include <amqp.h> | |
| #include <amqp_tcp_socket.h> | |
| #include <functional> // Include this header for std::ref | |
| const std::string QUEUE_NAME = "hello_queue"; | |
| const std::string EXCHANGE_NAME = "hello_exchange"; | |
| const std::string ROUTING_KEY = "hello_routing_key"; |
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
| // client_server.js | |
| const express = require('express'); | |
| const axios = require('axios'); | |
| const app = express(); | |
| const port = 4000; | |
| app.get('/getdata', async (req, res) => { | |
| try { | |
| // Make a request to the API server using its container name |
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
| // api_server.js | |
| const express = require('express'); | |
| const app = express(); | |
| const port = 3000; | |
| app.get('/api/data', (req, res) => { | |
| res.json({ message: 'Hello from API server!' }); | |
| }); |
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
| #include <iostream> | |
| #include <stdlib.h> | |
| #include <cstdlib> | |
| #include <vector> | |
| #include <math.h> | |
| #include <cuda.h> | |
| #include <cuda_runtime.h> | |
| using namespace std; | |
| class CSR |
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
| FROM adoptopenjdk/openjdk8 | |
| WORKDIR /app | |
| COPY . /app | |
| RUN ./compile.sh | |
| RUN ls |
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
| // Initializing stitch | |
| const { | |
| Stitch, | |
| RemoteMongoClient, | |
| ServerApiKeyCredential | |
| } = require('mongodb-stitch-server-sdk'); | |
| // call env path |
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
| // Initializing stitch | |
| const { | |
| Stitch, | |
| RemoteMongoClient, | |
| ServerApiKeyCredential | |
| } = require('mongodb-stitch-server-sdk'); | |
| // call env path | |
| require('dotenv').config({ path: '../../.env' }); |