Skip to content

Instantly share code, notes, and snippets.

View luiseduardogfranca's full-sized avatar
🎯
Focusing

Luís Eduardo luiseduardogfranca

🎯
Focusing
  • Alagoas, Brasil
View GitHub Profile
#!/usr/bin/python
# -*- coding: latin-1 -*-
# Importa o modulo de conexao com o mysql
import MySQLdb
# Gera a string de conexao ex.: seu host, seu usuario, sua senha e seu db
db = MySQLdb.connect(host="localhost", user="root", passwd="#######", db="teste")
# Posiciona o cursor
cursor = db.cursor()
drop database if exists codificando;
create database if not exists codificando;
use codificando;
create table if not exists adm(
id integer auto_increment not null primary key,
first_name varchar(50) not null,
last_name varchar(50) not null,
email varchar(50) not null unique,
born date not null,
`password` varchar(15) not null,
/* ************************************************************************** */
/* Comunidade Firebird de Língua Portuguesa */
/* http://www.comunidade-firebird.org */
/* */
/* Este Script foi gentilmente cedido à CFLP para uso público */
/* pelo colaborador: */ */
/* */
/* */
/* Romario Baldotto Ribeiro [email protected] */
/* */
<!-- <html>
<head>
<script></script>
</head>
<body>
<div>
<h1>MRU</h1>
<div>
<button onClick="display(1)">Calcular Velocidade Média</button>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.