This file contains hidden or 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 remover_acentos($string) { | |
if ( !preg_match('/[\x80-\xff]/', $string) ) | |
return $string; | |
$chars = array( | |
chr(195).chr(128) => 'A', chr(195).chr(129) => 'A', | |
chr(195).chr(130) => 'A', chr(195).chr(131) => 'A', | |
chr(195).chr(132) => 'A', chr(195).chr(133) => 'A', | |
chr(195).chr(135) => 'C', chr(195).chr(136) => 'E', |
This file contains hidden or 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
<Files ~ "\.inc$"> | |
Order allow,deny | |
Deny from all | |
</Files> |
This file contains hidden or 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"> | |
<title>Document</title> | |
<link href="animate.css" rel="stylesheet" type="text/css"> | |
</head> | |
<body> | |
<button class="animated bounceInLeft">Botão Animado</button> |
This file contains hidden or 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
bind-address = 127.0.0.1 | |
para | |
bind-address = 0.0.0.0 | |
Salve o arquivo, feche e reinicie o serviço com o comando abaixo. | |
systemctl restart mysql.service |
This file contains hidden or 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
echo gmdate("Y-m-d\TH:i:s\Z"); |
This file contains hidden or 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
echo gmdate("Y-m-d\TH:i:s\Z", strtotime("2018-02-28 22:30:00")); |
This file contains hidden or 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 | |
// chamando os arquivos necessários do DOMPdf | |
require_once 'dompdf/lib/html5lib/Parser.php'; | |
require_once 'dompdf/lib/php-font-lib-master/src/FontLib/Autoloader.php'; | |
require_once 'dompdf/lib/php-svg-lib-master/src/autoload.php'; | |
require_once 'dompdf/src/Autoloader.php'; | |
// definindo os namespaces | |
Dompdf\Autoloader::register(); |
This file contains hidden or 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 | |
echo abs(6.7); // retorna 6.7 | |
echo abs(-6.7); // retorna 6.7 | |
echo abs(-3); // retorna 3 | |
echo abs(3); // retorna 3 | |
?> |
This file contains hidden or 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 slink(){ | |
return get_site_url(); // essa função do WordPress retorna a URL do seu site | |
} |
This file contains hidden or 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
add_shortcode('nomeDoSeuShortcode', 'slink'); // repare que como segundo parâmetro, passei o nome da função que criei acima |
OlderNewer