Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<!-- <html> | |
<head> | |
<script></script> | |
</head> | |
<body> | |
<div> | |
<h1>MRU</h1> | |
<div> | |
<button onClick="display(1)">Calcular Velocidade Média</button> |
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
/* ************************************************************************** */ | |
/* 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] */ | |
/* */ |
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
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, |
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
#!/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() |
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
def extremeValues(mask): | |
element_x = [] | |
element_y = [] | |
for coord in mask: | |
element_x.append(coord[0]) | |
element_y.append(coord[1]) | |
# (minX, maxX, minY, maxY) | |
return (min(element_x), max(element_x), min(element_y), max(element_y)) |
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> | |
int main(){ | |
int value1, value2; | |
scanf("%d %d", &value1, &value2); | |
printf("Sum: %d\n", value1 + value2); | |
} |
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
try { | |
Response response = c.execute(); | |
if (response.isSuccessful()) { | |
Login.ID_LOGIN = (String) response.body()); | |
} else { | |
throw new LoginException(response.errorBody().string()); | |
} | |
}catch (IOException io){ | |
throw new LoginException(io.getMessage()); | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
tools:context="com.example.luis.usingsocket.MainActivity"> | |
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
package com.example.luis.usingsocket; | |
import android.graphics.Color; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.EditText; | |
import android.widget.TextView; | |
import org.w3c.dom.Text; |
NewerOlder