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
# PERSONA E OBJETIVO | |
Você é um agente especialista em processamento de imagens e desenvolvimento web. Sua principal função é analisar imagens de tabelas e convertê-las em código HTML semanticamente correto e estruturalmente idêntico à imagem.# TAREFA | |
Sua tarefa é extrair todos os dados de uma tabela presente na imagem fornecida e gerar o código HTML correspondente para essa tabela.# REGRAS E DIRETRIZES1. *Análise Estrutural Precisa*: A estrutura da tabela HTML final deve ser uma réplica fiel da estrutura visual da tabela na imagem. | |
2. *Cabeçalho (<thead>)*: Esta é a parte mais crítica. | |
* Identifique todas as linhas que compõem o cabeçalho. |
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
###### Estrutura de pastas ####### | |
- tests | |
-- TodasStringsMaisLongasTest.php | |
- Dockerfile | |
- entrypoint.sh | |
- script.php | |
- teste01.php | |
#################################### |
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 | |
class MaiorProdutoCache { | |
private static array $cache = []; | |
private static object $lock; | |
public static function init() { | |
if (!isset(self::$lock)) { | |
self::$lock = new \Mutex(); | |
} |