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
////////////////////////////////////////////////// | |
// Estudando Herança em javascript através de funções construtoras... | |
// Estudante: Valdiney França... | |
///////////////////////////////////////////////// | |
////////////////////////////////////////////////////////////// | |
// Função construtora, uma simulação de uma Class Abstrata... | |
function Animal() {/*...*/} |
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
Assuntos do encontro: | |
Primeira rodada: - | |
O que é lógica de programação e o que é um algoritmo? - | |
O que são Erros de sintaxe e erros lógicos? - | |
Operadores e operandos. - Tipos de operadores. - |
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 | |
include "conexao.php"; | |
$chamaDados = mysql_query("SELECT * FROM usuario") | |
or die("Erro na pesquisa" . mysql_error()); | |
while ( $linha = mysql_fetch_array( $chamaDados ) ) { | |
$codigo = $linha['codigo']; |
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
<form if="form_cadastro" method="post" action="functons.php"> | |
<input type="text" id="nome" name="nome"/> | |
<button type="submit" id="gravar">Gravar Dados</button> | |
</form> |
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
//////////////////////////////////////////////////////////////////////// | |
// Projeto: Biblioteca ajax | |
// Autor: Valdiney França | |
// Email: [email protected] | |
////////////////////////////////////////////////////////////////////// | |
//////////////////////////////////////////////////////////////////////// |
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
#include<stdio.h> | |
#include<stdlib.h> | |
//////////////////////////////////////////////////////// | |
// Colónia de pesca... | |
/////////////////////////////////////////////////////// | |
int main() { | |
float peso = 0, quilosPermitidos = 50, multa = 4; | |
printf("Digite os quilos do peixe: "); |
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
var deletarDados = document.querySelector('#deletar'); | |
deletarDados.onclick = function() { | |
var confirmoDeletar = confirm('Deseja Realmente Deletar?'); | |
if( confirmoDeletar ) { | |
return true | |
} | |
else { |
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 | |
$link = mysql_connect("localhost", 'root',''); | |
$bancoDeDados = mysql_select_db("projeto"); | |
if($bancoDeDados) { /*...*/ } | |
else { | |
echo "Erro!"; | |
} |
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
////////////////////////////////////////////////////////////////////////////////////////////// | |
// Core central: (semba-samba-code) Reescrito em 7/09/2013... | |
// Autor: Valdinei França | |
// Email: [email protected] | |
//////////////////////////////////////////////////////////////////////////////////////////// | |
window.onload = function() { | |
///////////////////////////////////////////////////////////////// | |
// Função construtora usada para trabalhar com localStorage.... |
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
var http = require('http'), | |
arquivo = require('fs'); | |
var servidor = http.createServer( function( request, response ) { | |
arquivo.readFile('paginas/index.html', function( err, html ) { | |
response.writeHead(200, {"Content-Type": "text/html"}); | |
if( err ) response.write('Este arquivo nao foi encontrado!'); | |
response.write( html ); |