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
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 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 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 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 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 <pedro.elsner@gmail.com> | |
* @license http://creativecommons.org/licenses/by/3.0/br/ Creative Commons 3.0 | |
* @abstract | |
* @version 1.0 |
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
// Access-Control headers are received during OPTIONS requests | |
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') { | |
if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD'])) | |
header("Access-Control-Allow-Methods: GET, POST, OPTIONS, DELETE, PUT"); | |
if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS'])) | |
header("Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}"); | |
exit(0); |
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 defined("SYSPATH") or die("No direct access allowed."); ?> | |
<?php require_once Kohana::find_file('views/includes', 'cabecalho-v2010'); ?> | |
<h1><?php echo $conteudo->get('titulo'); ?></h1> | |
<div id="curso"> | |
<div id="principal"><?php echo $conteudo->get('conteudo'); ?></div> | |
<div id="barraLateral"><?php echo $conteudo->get('barraLateral'); ?></div> | |
<div class="clear"></div> | |
<div><?php require_once Kohana::find_file('views/includes', 'formulario-contato-coordenador'); ?></div> | |
</div> | |
<?php require_once Kohana::find_file('views/template', 'rodape'); ?> |
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 livros = [{ | |
"tipo" : "Ebook", | |
"nome" : "Memórias de Um Sargento de Milícias", | |
"preco" : 7.90, | |
"imagem" : "milicias.jpg", | |
"autor" : "De Almeida, Manuel Antônio", | |
"editora" : "Saraiva de Bolso", | |
"ISBN" : "3658548"}, | |
{ |
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
// Evento disparado ao pressionar ESC | |
$(document).keyup(function(e) { | |
if (e.keyCode == 27) { alert(''Você pressionou ESC'); } // esc | |
}); |
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
/* Botão float */ | |
.floating-btn{ | |
position: fixed; | |
background: #9b59b6; | |
border: none; | |
font-size: 2.5em; | |
border-radius: 50%; | |
position: fixed; | |
display: inline-block; | |
padding: 9px; |
OlderNewer