This file contains 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
import { Plugin, ButtonView, View, InputTextView } from 'ckeditor5'; | |
export default class Exemplo extends Plugin { | |
init() { | |
const editor = this.editor; | |
// Adiciona o botão "Exemplo" à barra de ferramentas | |
editor.ui.componentFactory.add('exemplo', locale => { |
This file contains 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
setx CMAKE_ARGS "-DGGML_CUDA=on" | |
pip install -U --no-cache --force-reinstall -vvv llama-cpp-python |
This file contains 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"> | |
<title>Menu Dinâmico</title> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"> | |
</head> | |
<body class="bg-dark text-light p-3"> |
This file contains 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"> | |
<title>Levi Chat</title> | |
<style> | |
body { | |
font-family: Arial, sans-serif; |
This file contains 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"> | |
<title>PDF.js Drag & Extract</title> | |
<script type="module" src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/4.9.155/pdf.min.mjs"></script> | |
<style> | |
body { | |
display: flex; |
This file contains 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="pt-BR"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>CKEditor 5 - Decoupled Editor com Visualização PDF</title> | |
<style> | |
body, html { | |
height: 100%; | |
margin: 0; | |
font-family: Arial, sans-serif; |
This file contains 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
[ | |
{ | |
"numero": 1, | |
"texto": "Toda pessoa é capaz de direitos e deveres na ordem civil." | |
}, | |
{ | |
"numero": 2, | |
"texto": "A personalidade civil da pessoa começa do nascimento com\r\nvida; mas a lei põe a salvo, desde a concepção, os direitos do nascituro." | |
}, | |
{ |
This file contains 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
// Importe VerticalAlign e ExternalHyperlink | |
const { | |
Document, | |
Packer, | |
Paragraph, | |
TextRun, | |
HeadingLevel, | |
Table, | |
TableRow, | |
TableCell, |
This file contains 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 <jo/jo.h> | |
// Estrutura para armazenar posição e velocidade da caixa | |
typedef struct { | |
jo_pos3Df position; | |
float velocity_y; | |
bool is_jumping; | |
} Cube; | |
// Instância da caixa |
This file contains 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
function convertTextToHTML(text) { | |
// Primeira etapa: detectar e converter tabelas | |
let lines = text.split('\n'); | |
let htmlParts = []; | |
let i = 0; | |
while (i < lines.length) { | |
// Verifica se a linha atual parece ser um cabeçalho de tabela | |
if (isTableHeader(lines[i]) && i + 1 < lines.length && isTableDivider(lines[i + 1])) { | |
// Encontramos um possível bloco de tabela |