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 | |
class Home extends Controller | |
{ | |
protected $view; | |
protected $model; | |
public function __construct() | |
{ | |
$this->view = new View(); | |
$this->model = $this->load_model('user.User'); |
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 palavras restritas: Uma classe que funciona como um filtro, | |
* recebendo um 'texto' e um 'array' com palavras que serão filtradas. | |
* @author Valdiney França <[email protected]> | |
* @version 0.1 | |
*/ | |
class Restrict | |
{ |
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 | |
/** | |
* This class is used to work with data structure know as list | |
* @author Valdiney França <[email protected]> | |
* @var $list -> Array | |
*/ | |
namespace structureClass; | |
class MyList |
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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font-family:arial; | |
} | |
#table_teclado_virtual { | |
margin-top:5px; | |
} |
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 | |
// Exemplo da tabuada... | |
$tabuadaDe = 4; | |
for($cont = 0; $cont < 9; $cont++) { | |
$calculo = $cont + $tabuadaDe; | |
echo $cont . " + ". $tabuadaDe . " = " . $calculo . "<br>"; | |
} | |
?> |
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
///////////////////////////////////////////////////////// | |
/* | |
Função para testes unitários. | |
Com está função é possível testar cada função do programa separadamente | |
Os testes são: | |
-> Comparação de valores retornados | |
-> Comparação de tipo de dados retornado | |
*/ | |
//////////////////////////////////////////////////////// |
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> | |
<head> | |
<title>Pegar Latitude e Longitude por endereço</title> | |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> | |
</head> | |
<body> | |
<form> | |
<label>Rua/Av : |
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 | |
////////////////////////////////////////////////// | |
/* | |
Função PalavasRestritas() recebe dois argumentos, texto = O texto em que você deseja | |
encontrar palavras e inibi-las. | |
$palavrasProibidas = São as palavras que você deseja encontrar no outro vetor. | |
Em outras palavras... | |
A função encontra palavras que são proibidas e atribui a elas o caractere ###. | |
*/ |
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() { | |
"use strict" | |
var _conometro = $(".conometro"), | |
_perguntas = $(".perguntas"), | |
_play = $(".play"), | |
_inputResposta = $("#resposta"), | |
acertos = 0, | |
erros = 0, | |
relatorioErros = [], |
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
<pre class="prettyprint linenums"> | |
$vetor = array(10,20,30); | |
foreach($vetor as $listar) { | |
echo $listar; | |
} | |
</pre> |