- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
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 | |
function validar_cnpj($cnpj) | |
{ | |
$cnpj = preg_replace('/[^0-9]/', '', (string) $cnpj); | |
// Valida tamanho | |
if (strlen($cnpj) != 14) | |
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
<?php | |
/** | |
* Verifica se o CPF informado é valido | |
* @param string | |
* @return bool | |
*/ | |
function valid_cpf($cpf) | |
{ | |
// Verifiva se o número digitado contém todos os digitos | |
$cpf = str_pad(preg_replace('/[^0-9]/', '', $cpf), 11, '0', STR_PAD_LEFT); |
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
/** | |
* Summernote PasteClean | |
* | |
* This is a plugin for Summernote (www.summernote.org) WYSIWYG editor. | |
* It will clean up the content your editors may paste in for unknown sources | |
* into your CMS. It strips Word special characters, style attributes, script | |
* tags, and other annoyances so that the content can be clean HTML with | |
* no unknown hitchhiking scripts or styles. | |
* | |
* @author Jason Byrne, FloSports <[email protected]> |
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
<!-- | |
Subistitua o Número(88988459521) pelo seu número do WhatsApp | |
Siga este padrão: DDD + Numero, ex: 88 9 8845 9521 (Meu Número Whats) | |
--> | |
<a href="intent://send/88988459521#Intent;scheme=smsto;package=com.whatsapp;action=android.intent.action.SENDTO;end">Vamos Conversar?</a> | |
<!-- Mais Detalhes Aqui: https://lucianobragaweb.github.io/post/whatsapp-no-site/ --> |
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
ESTADOS_BRASILEIROS = [ | |
["Acre", "AC"], | |
["Alagoas", "AL"], | |
["Amapá", "AP"], | |
["Amazonas", "AM"], | |
["Bahia", "BA"], | |
["Ceará", "CE"], | |
["Distrito Federal", "DF"], | |
["Espírito Santo", "ES"], | |
["Goiás", "GO"], |
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
#file bin/rails | |
--------------- | |
#!/usr/bin/env ruby | |
begin | |
load File.expand_path('../spring', __FILE__) | |
rescue LoadError => e | |
raise unless e.message.include?('spring') | |
end | |
APP_PATH = File.expand_path('../../config/application', __FILE__) |
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
var HTMLTagA= document.getElementsByTagName("a"); | |
var cnt= 0; | |
var i= 0; | |
var randon = 150; // Internavo Inicial | |
var TimerFunCall = setInterval(Timer, randon); | |
function Timer() { | |
if (i < HTMLTagA.length){ | |
if(HTMLTagA[i].outerHTML.contains('UFILikeLink')) { |
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 | |
$hostname = 'SEU_HOST'; | |
$username = 'SEU_USUARIO'; | |
$password = 'SUA_SENHA'; | |
$dbname = 'SEU_DB'; | |
$con = mysqli_connect( $hostname, $username, $password ) or die ( 'Erro ao tentar conectar ao banco de dados.' ); | |
mysqli_select_db($con, $dbname); |