Skip to content

Instantly share code, notes, and snippets.

View LennonSantos's full-sized avatar
🏎️

Lennon Bueno LennonSantos

🏎️
View GitHub Profile
*{
margin: 0px;
padding: 0px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
a{display: inline-block;}
<body>
<header>Cabeçalho</header>
<nav>Menu de navegação</nav>
<section>
Seção
<article>
Artigo
</article>
</section>
<aside> Lateral </aside>
<body>
<header>
<h1>Titulo site</h1>
</header>
<nav>
<h2>Titulo menu</h2>
<a href="#">Link</a>
<a href="#">Link</a>
<a href="#">Link</a>
</nav>
// Seleção com javascript puro
var el = document.querySelector(".myclass");
// Seleção com jquery
var el = $(".myclass");
@LennonSantos
LennonSantos / input-custom-message-validation.html
Last active April 13, 2022 18:00
Mensagem costumizada na validação de input/formulário
<input
required
oninvalid="this.setCustomValidity('Este campo é obrigatório!')"
oninput="this.setCustomValidity('')"
>
p {
white-space: nowrap;
width: 50px;
overflow: hidden;
text-overflow: ellipsis;
border: 1px solid #000000;
}
// function delay example
function delay(time = 2500) {
return new Promise((resolve) => {
setTimeout(resolve, time)
})
}
// await delay()
@LennonSantos
LennonSantos / Dockerfile
Created June 16, 2023 12:06
Dockerfile to quasar framework
# develop stage
FROM node:20-alpine as develop-stage
WORKDIR /app
COPY ./app/package*.json ./
RUN yarn
COPY ./app .
# build stage
FROM develop-stage as build-stage
RUN yarn

Operadoes em javascript

  • Operador lógico AND:&&

  • Operador lógico OR:||

  • Operador lógico NOT:!

  • O operador de módulo:%

@LennonSantos
LennonSantos / html-languages.txt
Created June 2, 2024 01:46 — forked from JamieMason/html-languages.txt
HTML lang attribute / ISO language code reference / Culture names
CULTURE SPEC.CULTURE ENGLISH NAME
--------------------------------------------------------------
Invariant Language (Invariant Country)
af af-ZA Afrikaans
af-ZA af-ZA Afrikaans (South Africa)
ar ar-SA Arabic
ar-AE ar-AE Arabic (U.A.E.)
ar-BH ar-BH Arabic (Bahrain)
ar-DZ ar-DZ Arabic (Algeria)
ar-EG ar-EG Arabic (Egypt)