View gist:8759721
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
/////////////////////////////////////////////////////// | |
// | |
// Project: onclickHere | |
// author: Valdiney França | |
// | |
////////////////////////////////////////////////////// | |
function showAndCloseAreas() { /*...*/ } | |
showAndCloseAreas.prototype.showAndClose = function( area, button, captionButtonAfter, captionButtonBefore, classBefore, classAfter ) { |
View gist:8794145
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 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 ); |
View gist:9104904
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
////////////////////////////////////////////////////////////////////////////////////////////// | |
// Core central: (semba-samba-code) Reescrito em 7/09/2013... | |
// Autor: Valdinei França | |
// Email: valdiney.2@hotmail.com | |
//////////////////////////////////////////////////////////////////////////////////////////// | |
window.onload = function() { | |
///////////////////////////////////////////////////////////////// | |
// Função construtora usada para trabalhar com localStorage.... |
View gist:9234395
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',''); | |
$bancoDeDados = mysql_select_db("projeto"); | |
if($bancoDeDados) { /*...*/ } | |
else { | |
echo "Erro!"; | |
} |
View gist:9363249
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
#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: "); |
View gist:9500808
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
//////////////////////////////////////////////////////////////////////// | |
// Projeto: Biblioteca ajax | |
// Autor: Valdiney França | |
// Email: Valdiney.2@hotmail.com | |
////////////////////////////////////////////////////////////////////// | |
//////////////////////////////////////////////////////////////////////// |
View gist:9542104
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
<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> |
View gist:10897849
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 | |
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']; |
View gist:11316215
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
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. - |
View gist:11358746
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
////////////////////////////////////////////////// | |
// 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() {/*...*/} |
OlderNewer