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 | |
$link = mysql_connect('localhost', 'root', '12345678'); | |
if (!$link) { | |
die('não deu certo ' . mysql_error()); | |
}else{ | |
echo "ok<br>"; | |
} | |
function LimparTexto($texto,$link) |
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 mdFODAO($string) { | |
$salt = md5($string."chave de segurança"); | |
$string = md5("$salt$string$salt"); | |
return $string; | |
} | |
echo mdFODAO("sua senha =)"); | |
?> |
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
/* | |
scripts | |
*/ |
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" dir="ltr"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/hmtl; charset=uft8" /> | |
<title>Exemplo 1 sessionStorage html5</title> | |
<style> | |
label{ | |
display:block; | |
} | |
</style> |
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" dir="ltr"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/hmtl; charset=uft8" /> | |
<title>Exemplo 2 - localStorage html5</title> | |
<style> | |
label{ | |
display:block; | |
} | |
</style> |
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" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
//inicio o jquery | |
$(document).ready(function(){ | |
$.ajax({ | |
url: "http://gdata.youtube.com/feeds/base/users/videosimprovaveis/uploads?orderby=updated&v=2&alt=json", | |
dataType: "jsonp", | |
success: function(data){ | |
console.log('SUCESSO'); | |
console.log(data); |
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" dir="ltr"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/hmtl; charset=uft8" /> | |
<title>javaScript</title> | |
<script type="text/javascript" src="http://localhost/peppy.js"></script> | |
<script type="text/javascript"> | |
window.onload = function(){ | |
$ = peppy.query; | |
var elem = $('label'); |
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
window.onload = function(){ | |
var arr = 'Posso parecer forte, mas só parecer.', | |
total = arr.length, | |
i = 0, | |
html, elem; | |
setInterval(function(){ | |
elem = document.getElementById('text'); | |
html = elem.firstChild.nodeValue; | |
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
/* | |
A intenção disso é só escrever números inteiros, em sua forma 'textual?', então 300 ele transforma em ‘trezentos’ e 15 deveria transformar em 'quinze' | |
Esse script foi uma ideia inicial, só para entenderem a finalidade do código, no final disso tudo, deveremos fazer as seguintes ações com esse script. | |
Capacidade de traduzir números inteiros para sua forma textual, e capacidade de transformar números de sua forma textual para forma inteira, não sei se estou usando as palavras certas mas creio que da pra entende. | |
Ou seja: | |
Duzentos e Trinta e Cinco => 235 | |
254 => Duzentos e Cinquenta e Quatro | |
Qual a finalidade disso? Não sei ainda, quem sabe uma calculadora que soma números falados usando a ferramenta speech-to-text do webkit? |
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"> | |
<title>Mouse Parallax Effect</title> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body> | |
<div id="parallax"> | |
<img class="parallax-item" src="http://bymarina.com.br/wp-content/uploads/2011/01/sol2.jpg" width="150"> |
OlderNewer