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 | |
/** | |
* Classe que contem os métodos que iram | |
* filtrar as entradas enviadas via GET e POST | |
* | |
* @filesource | |
* @author Pedro Elsner <[email protected]> | |
* @license http://creativecommons.org/licenses/by/3.0/br/ Creative Commons 3.0 | |
* @abstract | |
* @version 1.0 |
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
Validação de "nome completo" | |
Começa com uma string, tem que ter um espaço e depois pode conter mais string | |
----------------------------------------------------------------------------- | |
^[a-zA-z]+[ \b]+.[a-zA-z \b]* | |
Da web | |
Toda palavra deve começar com letra maiuscula | |
Obs: Se for "da Silva" dá problema | |
-- | |
^[A-ZÉÚÍÓÁÈÙÌÒÀÕÃÑÊÛÎÔÂËYÜÏÖÄ]{1}[a-zéúíóáèùìòàõãñêûîôâëyüïöä]+( [A-ZÉÚÍÓÁÈÙÌÒÀÕÃÑÊÛÎÔÂËYÜÏÖÄ]{1}[a-zéúíóáèùìòàõãñêûîôâëyüïöä]+){1,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
// Somewhere in your controllers for this given example | |
// Example functions | |
$scope.itemOnLongPress = function(id) { | |
console.log('Long press'); | |
} | |
$scope.itemOnTouchEnd = function(id) { | |
console.log('Touch end'); | |
} |
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
<FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css)$"> | |
<IfModule mod_headers.c> | |
Header set Access-Control-Allow-Origin "http://mysite.com" | |
</IfModule> | |
</FilesMatch> |
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
arrow{ | |
width: 0px; | |
height: 0px; | |
border-style: solid; | |
border-width: 9px 9px 0 9px; | |
border-color: #EFEEEE rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0); | |
margin: auto auto; | |
} |
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
<select name="estado" id="estado"> | |
<option value="">Selecione o estado</option> | |
<option <?php if ($cadastro['estado'] == "AC"){ echo "selected";} ?> value="AC">Acre</option> | |
<option <?php if ($cadastro['estado'] == "AL"){ echo "selected";} ?> value="AL">Alagoas</option> | |
<option <?php if ($cadastro['estado'] == "AP"){ echo "selected";} ?> value="AP">Amapá</option> | |
<option <?php if ($cadastro['estado'] == "AM"){ echo "selected";} ?> value="AM">Amazonas</option> | |
<option <?php if ($cadastro['estado'] == "BA"){ echo "selected";} ?> value="BA">Bahia</option> | |
<option <?php if ($cadastro['estado'] == "CE"){ echo "selected";} ?> value="CE">Ceará</option> | |
<option <?php if ($cadastro['estado'] == "DF"){ echo "selected";} ?> value="DF">Distrito Federal</option> | |
<option <?php if ($cadastro['estado'] == "ES"){ echo "selected";} ?> value="ES">Espirito Santo</option> |
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
// Busca o último associado no banco | |
$associadoOrm = ORM::factory('associado')->limit(1)->order_by('id', 'DESC')->find(); |
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
$(document).ready(function () { | |
// Captura o scroll do mouse | |
$(window).scroll(function() { | |
// Se o valor da rolagem for maior que a div que você apontar: | |
if ($(window).scrollTop() >= $("#divQueVocêQuer").position().top) { | |
// Mostra a barra, ou modifica os atributos | |
}); | |
} |
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 | |
// Arquivo que abre conexão com bd | |
require("conecta.php"); | |
// Sql | |
$sql = mysql_query("SELECT p.idproduto, | |
21 p.nome_produto, | |
p.descricao_produto, | |
p.preco_produto, | |
p.imagem_produto |
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> | |
<head> | |
<title>Graduation Ceremony Summer 2022</title> | |
</head> | |
<body> | |
<header>The Lawson Academy: | |
<nav> | |
<ul> |