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
# -*- coding: utf-8 -*- | |
import random | |
import unittest | |
def gen_age(): | |
# gera numeros inteiros entre 15 e 99 | |
return random.randint(15, 99) | |
class AgeTest(unittest.TestCase): | |
def setUp(self): | |
self.a = gen_age() |
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
/* | |
Nome: Victo de mattos souza | |
Ra: 20866585 | |
Nome: Wellington José Souza Cordeiro | |
Ra: 20881986 | |
*/ | |
package atividade01; | |
public class ContaBancariaSimplificada { |
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
/* | |
Nome: Victo de mattos souza | |
Ra: 20866585 | |
Nome: Wellington José Souza Cordeiro | |
Ra: 20881986 | |
*/ | |
package atividade01; | |
import java.util.Scanner; |
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
import java.util.ArrayList; | |
public class GerenciaContato { | |
private ArrayList<Contato> list = new ArrayList<>(); | |
public void adiciona(Contato c) { | |
list.add(c); | |
} |
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
import java.util.GregorianCalendar; | |
/** | |
* | |
* @author victor_souzas@yahoo.com.br | |
*/ | |
public class Consulta { | |
private Animal animal; | |
private Proprietario proprietario; | |
private GregorianCalendar calendar; |
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 <sys/times.h> | |
struct timeval tv1, tv2; | |
#define TIMER_CLEAR (tv1.tv_sec = tv1.tv_usec = tv2.tv_sec = tv2.tv_usec=0) | |
#define TIMER_START gettimeofday(&tv1, (struct timezone*)0) | |
#define TIMER_STOP gettimeofday(&tv2, (struct timezone*)0) | |
#define TIMER_ELAPSED (tv2.tv_sec-tv1.tv_sec+(tv2.tv_usec-tv1.tv_usec)*1.E-6) |
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
import java.util.Scanner; | |
/** | |
*create by victor_souzas@yahoo.com.br | |
*/ | |
public class InfixaPosfixa implements InfixaPosfixaInterface { | |
public static void main(String[] args) { | |
InfixaPosfixa inf = new InfixaPosfixa(); | |
Scanner scan = new Scanner(System.in); |
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 | |
/** | |
* @var \App\View\AppView $this | |
*/ | |
$this->start('script'); | |
echo '$().ready(function() { | |
$( "#cadForm" ).submit(function( event ) { | |
var request = $.ajax({ | |
url: "", | |
method: "POST", |
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> | |
#define size 1000 | |
int main(){ | |
int i,j,k; | |
double aux = 0; | |
static double A[size][size]; | |
static double B[size][size]; | |
static double C[size][size]; | |
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
using System; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Threading; | |
using BinaryTree; | |
namespace Server | |
{ | |
public class Server | |
{ |
OlderNewer