Skip to content

Instantly share code, notes, and snippets.

View kaiomagalhaes's full-sized avatar
🦑
Hunting giant octopuses

Kaio Magalhães kaiomagalhaes

🦑
Hunting giant octopuses
View GitHub Profile
Questions
- Considering this scenario, how would you store device data in the database? given that the API does not allow 1000 requests per second, and devices do not have direct access to the database;
- Which databases would be considered? Why? given the scenario where we only care about the last day (however, we need to keep the data history for analysis)
- How would you store the analytical data? which database? (no need to worry about calculations)
- How would you return analytics data to dashboards? (no need to worry about calculations)
Dockerfile
```
FROM node:17-alpine as development
WORKDIR /app
COPY package.json .
COPY package-lock.json .
RUN npm install
COPY . .
// button
import React from "react";
import { Button as MUIButton } from "@mui/material";
import styles from "./styles";
interface ButtonProps {
onClick: () => void;
children: React.ReactNode;
className?: string;
variant?: "contained" | "outlined";
@kaiomagalhaes
kaiomagalhaes / exercise.md
Created September 13, 2023 18:23
Rails exercise

Instructions

The goal of this exercise is to create both the backend and frontend of a calendar application using Ruby on Rails.

The Task

In this task we are building a single month view of a calendar for the current month. Here you have the design we are expecting for this task.

Features & Requirements:

  • Reminder

Instructions

The goal of this exercise is to create a backend using C# using the REST arquitecture.

The Task

In this task, we are building backend of an application that helps us managing our team.

Features and Requirements

const opcua = require("node-opcua");
const { MongoClient } = require("mongodb");
// MongoDB configuration with your provided URI
const mongoUrl = "YOUR_MONGO_URL;
const dbName = "YOUR_DB_NAME"; // Database name, adjusted to match your URI
const collectionName = "lux"; // Collection name for storing lux values
(async () => {
// Initialize OPC UA server