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
A. Left: ← | |
A. Right: → |
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() { | |
var docElement = document.documentElement; | |
var classRE = new RegExp('(^|\\s)no-js(\\s|$)'); | |
var className = docElement.className; | |
docElement.className = className.replace(classRE, '$1js$2'); | |
})(); |
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 | |
/** | |
* Verificar servidor | |
* @return null Retorna se tiver erro, se preferir troque para class Exception. | |
* @return true | false Retorna true para localhost e false para servidor | |
* | |
* @version 1.0 | |
* @author Lenivene Bezerra | |
*/ | |
function isServerLocal(){ |
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 | |
/** | |
* Checks if multiple keys exist in an array | |
* | |
* @param array $array | |
* @param array|string $keys | |
* | |
* @author Lenivene Bezerra | |
* @return bool |
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
<!--[if lte IE 8]><script>(function(){var e="abbr,article,aside,audio,canvas,datalist,details,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video".split(','),i=e.length;while(i--){document.createElement(e[i]);}}());</script><![endif]--> |
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
<p style="line-height: 18px; font-size: 18px; font-family: times;"> | |
<script> | |
for (var line=1; line<60; line++) { | |
for(var i=1;i<29;i++) { | |
var s = (Math.floor((Math.random()*2)%2)) ? "╱" : "╲"; | |
document.write(s); | |
} | |
document.writeln("<br>"); | |
} | |
</script> |
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 | |
/** | |
* Verificar se o CPF ( Cadastro de pessoas físicas ) é um número valido. | |
* | |
* @author Lenvene Bezerra | |
* @return true | false | |
*/ | |
function is_cpf( $cpf ){ | |
if( ! isset( $cpf ) || isset( $cpf ) && empty( $cpf ) ) | |
return false; |
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 | |
/** | |
* Verificar se o CNPJ ( Cadastro nacional de pessoas Jurídicas ) é um número valido. | |
* | |
* @author Lenvene Bezerra | |
* @return true | false | |
*/ | |
function is_cnpj( $cnpj ){ | |
if( ! isset( $cnpj ) || isset( $cnpj ) && empty( $cnpj ) ) | |
return false; |
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 | |
function text_line_json_encode( $value, $options = 0, $depth = 512 ){ | |
$to_json = $value; | |
if( ! is_array( $value ) || ! is_object( $value ) ){ | |
$to_json = preg_split("/\r\n|\n|\r/", (string) $value ); | |
} | |
return json_encode( $to_json, $options, $depth ); |
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
const list_names = [ | |
"Hello", | |
"World", | |
"Lenivene", | |
"Bezerra", | |
"Lenivene", | |
"Enevinel", | |
"World" | |
]; |