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, |
The application is a simulation of a toy robot moving on a square tabletop, of dimensions 5 units x 5 units. There are no other obstructions on the table surface. The robot is free to roam around the surface of the table. Any movement that would result in the robot falling from the table is prevented, however further valid movement commands are still allowed. The application reads a file using a name passed in the command line, the Ifollowing commands are valid:
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