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 validator = { | |
/** | |
* Validates Portuguese citizen card | |
* @param {string} value For example 15697354 5 ZZ1 | |
* @returns {boolean} | |
*/ | |
portugueseCitizenCard: function (value) { | |
const letterValue = { | |
A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, G: 16, H: 17, I: 18, J: 19, |
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>Animate CSS</title> | |
<!-- https://animate.style/ --> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" /> | |
</head> |
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
" Vim defaults | |
set nocp | |
" syntax highlighting | |
syntax on | |
" Show line numbers | |
set number | |
" Enable mouse |
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 http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Example of simple javascript testing in the browser</title> | |
</head> |
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> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Manually gzip CSS and JS files</title> | |
<link rel="stylesheet" href="bootstrap-custom.min.css" type="text/css"> | |
<script src="header-scripts.min.js"></script> | |
</head> |
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
<?php | |
/** | |
* Añade capacidades a editores y admins | |
*/ | |
function editor_unfiltered_upload( $caps, $cap, $user_id ) { | |
if ( "unfiltered_upload" === $cap && user_can( $user_id, "editor" ) ) { | |
$caps = array( "unfiltered_upload" ); | |
} |
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> | |
<head> | |
<title>Greenpeace España</title> | |
<!-- Page header free html --> | |
<meta name="msvalidate.01" content="0EFA63D991131147715CF37F8DB5CE8C" /> | |
<meta name='yandex-verification' content='6af16d6b271bec04' /> |
Source code of software produced specifically for Greenpeace. This list includes public and private repositories. Please check the repository's license before you use it.
NewerOlder