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
Em primeiro lugar, qualquer coisa que seja explicitamente oculta do DOM também | |
não será incluída na árvore de acessibilidade. Então, qualquer coisa que tenha um estilo CSS | |
com atributo visibility: hidden ou display: none ou use HTML5 hidden também | |
será oculta para usuários de tecnologia assistiva. | |
No entanto, um elemento que não seja renderizado visualmente, | |
mas não é explicitamente oculto ainda é incluído na árvore de acessibilidade. | |
Uma técnica comum é incluir "texto somente para leitor de tela" em um elemento | |
que é absoluto posicionado fora da tela. |
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
const express = require('express'); | |
const server = express(); | |
const users = ["Adam", "Alex", "Aaron", "Ben", "Carl", "Dan", "David", "Edward", "Fred", "Frank", "George", "Hal", "Hank", "Ike", "John", "Jack", "Joe", "Larry", "Monte", "Matthew", "Mark", "Nathan", "Otto", "Paul", "Peter", "Roger", "Roger", "Steve", "Thomas", "Tim", "Ty", "Victor", "Walter"]; | |
server.use(express.json()); | |
//midleware | |
server.use( (req, res, next)=>{ | |
console.time('Request'); | |
console.log(`Metodo ${req.method}: URL: ${req.url}`); |
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
const {resolve} = require('path'); | |
module.exports = { | |
config: resolve(__dirname, 'src', 'database.js'), | |
'models-path': resolve(__dirname, 'src', 'models'), | |
'migrations-path': resolve(__dirname, 'src', 'database', 'migrations'), | |
'seeders-path': resolve(__dirname, 'src', 'database', 'seeds') | |
} |
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
{ | |
"window.zoomLevel": 0, | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.minimap.enabled": false, | |
"terminal.integrated.shell.windows": "C:\\Users\\felipe.genuino\\AppData\\Local\\Programs\\Git\\bin\\bash.exe", | |
"editor.accessibilitySupport": "off", | |
"editor.fontFamily": "Fira Code", | |
"editor.rulers": [ | |
80, | |
120 |
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
1. https://github.com/tonsky/FiraCode | |
2. no vscode: | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": true, |
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
//https://codesandbox.io/s/propsstyled-components-rph5f | |
import React, { useState, Fragment } from "react"; | |
import styled from "styled-components"; | |
const MyComponent = props => { | |
const [expanded, setExpanded] = useState(false); | |
function handleExpandClick(event) { | |
setExpanded(!expanded); | |
} |
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
RewriteEngine on | |
# Check for POST Submission | |
RewriteCond %{REQUEST_METHOD} !^POST$ | |
# Forcing HTTPS | |
RewriteCond %{HTTPS} !=on [OR] | |
RewriteCond %{SERVER_PORT} 80 | |
# Pages to Apply | |
RewriteCond %{REQUEST_URI} ^something_secure [OR] |
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
display: -webkit-box; | |
-webkit-line-clamp: 2; /* numero de linhas*/ | |
-webkit-box-orient: vertical; | |
overflow: hidden; | |
text-overflow: ellipsis; |
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
partePassivaNome = "Meu texto aqui" | |
render() { | |
const partePassivaNome = model.partePassiva.split(' '); | |
return( | |
{partePassivaNome[0]} //Meu | |
) | |
} |
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
.screen-reader-only { | |
position: absolute; | |
height: 1px; | |
width: 1px; | |
clip: rect(1px 1px 1px 1px); // IE 6 and 7 | |
clip: rect(1px,1px,1px,1px); | |
clip-path: polygon(0px 0px, 0px 0px, 0px 0px); | |
-webkit-clip-path: polygon(0px 0px, 0px 0px, 0px 0px); | |
overflow: hidden !important; | |
} |