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 validateNIF(value: string) { | |
// has 9 digits? | |
if (/^[0-9]{9}$/.test(value) === false) return false | |
// starts with 5 (Pessoa coletiva) | |
if(!['1', '2', '3', '5', '6', '8'].includes(value.substring(0,1)) && | |
!['45', '70', '71', '72', '77', '79', '90', '91', '98', '99'].includes(value.substring(0,2))) | |
return false |
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
{ | |
"$schema": "https://schemas.wp.org/trunk/block.json", | |
"apiVersion": 3, | |
"name": "THEME_NAME/BLOCK_NAME", | |
"title": "BLOCK EXAMPLE", | |
"category": "THEME_NAME", | |
"icon": "star-full", | |
"description": "EXAMPLE DESCRIPTION", | |
"keywords": ["EXAMPLE"], | |
"version": "0.1", |
Teste de flexbox
A Pen by Emanuel Saramago on CodePen.
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
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
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-PT"> | |
<head> | |
<title>Title</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="robots" content="robots.txt"> | |
<meta name="author" content="humans.txt"> | |
<meta name="keywords" content=""> |