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
<script> | |
jQuery.noConflict(); //Linha para evitar conflito | |
jQuery(document).ready(function(){ | |
jQuery('id').hide(); //chamadas sem "$" | |
}); | |
</script> |
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
<script type="text/javascript">// <![CDATA[ | |
jQuery(document).ready(function($) { | |
(function($) { | |
$.colorbox({ | |
html: '<a href= "http://www.aulasadistancia.com.br/cursos/dietpro5-5i-2ch-sem-cd.html" _mce_href="http://www.aulasadistancia.com.br/cursos/dietpro5-5i-2ch-sem-cd.html" > <img src="http://www.aulasadistancia.com.br/cursos/pop-up/Promocao-Mes-do-Nutricionista.jpg" _mce_src = "http://www.aulasadistancia.com.br/cursos/pop-up/Promocao-Mes-do-Nutricionista.jpg" class="gallery" title = "Promoção Mês do Nutricionista" /></a>', | |
close: 'sair', | |
photo: true | |
}); | |
})(jQuery); | |
});// ]]> |
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
<!DOCTYPE HTML> | |
<html lang="pt-br"> | |
<head> | |
<meta charset="UTF-8"> | |
<link rel="stylesheet" type="text/css" href="estilo.css"> | |
<title></title> | |
</head> | |
<body> | |
</body> |
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
<!-- normally this stuff would be on the html element --> | |
<!--[if lt IE 7]> <div class="ie ie6 lte9 lte8 lte7"> <![endif]--> | |
<!--[if IE 7]> <div class="ie ie7 lte9 lte8 lte7"> <![endif]--> | |
<!--[if IE 8]> <div class="ie ie8 lte9 lte8"> <![endif]--> | |
<!--[if IE 9]> <div class="ie ie9 lte9"> <![endif]--> | |
<!--[if gt IE 9]> <div> <![endif]--> | |
<!--[if !IE]><!--> <!--<![endif]--> | |
<!DOCTYPE html> | |
<html> |
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
/*jslint browser: true*/ | |
/*global $, jQuery, alert*/ | |
(function ($) { | |
"use strict"; | |
if (document.cookie.indexOf('visited=true') === -1) { | |
var umaHora = 1000 * 60 * 60, | |
expires = new Date((new Date()).valueOf() + umaHora); | |
document.cookie = "visited=true;expires=" + expires.toUTCString(); |
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
Finalmente, agora eu tenho tudo quase perfeito com o Sublime, só me falta mesmo é um Outline para fechar de vez. | |
Template para projetos Symfony: | |
{ | |
"folders": | |
[ | |
{ | |
"path": ".", | |
"folder_exclude_patterns": ["bundles", "assets", "cache"] |
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 | |
require_once '../config.php'; | |
global $DB; | |
$DB->set_debug(true); | |
function desable_enrol($userid,$courseid,$dataInicio,$dataFinal) | |
{ | |
global $DB, $CFG; | |
$dataAtual = strtotime('NOW'); |
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
function isCnpj(cnpj) { | |
var numeros, digitos, soma, i, resultado, pos, tamanho, digitos_iguais; | |
if (cnpj.length === 0) { | |
return false; | |
} | |
cnpj = cnpj.replace(/\D+/g, ''); | |
digitos_iguais = 1; | |
for (i = 0; i < cnpj.length - 1; i++) | |
if (cnpj.charAt(i) !== cnpj.charAt(i + 1)) { | |
digitos_iguais = 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
# Copyright (c) 1993-2009 Microsoft Corp. | |
# | |
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows. | |
# | |
# This file contains the mappings of IP addresses to host names. Each | |
# entry should be kept on an individual line. The IP address should | |
# be placed in the first column followed by the corresponding host name. | |
# The IP address and the host name should be separated by at least one | |
# space. | |
# |
OlderNewer