Olá! Seja bem-vindo ao nosso desafio de live coding. Este exercício foi desenhado para nos ajudar a entender sua forma de pensar e suas habilidades de programação na prática. Sinta-se à vontade para perguntar se tiver qualquer dúvida durante o processo.
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
| [ | |
| { | |
| "posicao_id": 57, | |
| "titulo": "Intimação", | |
| "descricao": "Intimação", | |
| "data": "03\/04\/2024", | |
| "tipo": "DOCUMENTO_RESTRITO", | |
| "unique_name": "trt5-PJE-c281f81", | |
| "suffix": "pdf", | |
| "size": 57115, |
A aplicação é uma simulação de um robô de brinquedo movendo-se em um tampo de mesa quadrado, com dimensões de 5 unidades x 5 unidades. Não há outras obstruções na superfície da mesa. O robô pode se mover livremente pela superfície da mesa. Qualquer movimento que resultaria na queda do robô da mesa é prevenido, no entanto, comandos de movimento válidos adicionais ainda são permitidos. A aplicação lê um arquivo usando um nome passado na linha de comando, os seguintes comandos são válidos:
PLACE X,Y,F
MOVE
LEFT
RIGHT
REPORT
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
| # This demonstrates that, when using async/await, a crash in the task will crash the caller | |
| defmodule Tasker do | |
| def good(message) do | |
| IO.puts message | |
| end | |
| def bad(message) do | |
| IO.puts message | |
| raise "I'm BAD!" | |
| end |
docker run -it —volume "${PWD}:/app" -p 4000:4000 elixir bash
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
| <?php | |
| function countExtraNightBetweenDates(DateTime $begin, DateTime $end, array $extraNightHours): int | |
| { | |
| $interval = DateInterval::createFromDateString('1 hour'); | |
| $period = new DatePeriod($begin, $interval, $end); | |
| $extraNightTotal = 0; | |
| foreach($period as $dt) { |
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
| articles: [ | |
| {id: 1, created_at: "..."}, | |
| {id: 2, created_at: "..."} | |
| ], | |
| articles_events: [ | |
| {id: 1, article_id: 1, type: "created", data: {title: "hello", category_id: 3}, created_at: "..."}, | |
| {id: 2, article_id: 1, type: "title_updated", data: {title: "hello, world"}, created_at: "..."}, | |
| {id: 3, article_id: 1, type: "published", data: {}, created_at: "..."}, | |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>XHR</title> | |
| </head> | |
| <body> | |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>XHR</title> | |
| </head> | |
| <body> | |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>WeberSchool - DOM</title> | |
| </head> | |
| <body> | |
NewerOlder