Skip to content

Instantly share code, notes, and snippets.

View VictorSouzas's full-sized avatar

Victor Souza VictorSouzas

View GitHub Profile
# -*- coding: utf-8 -*-
import getopt
import socket
import subprocess
import sys
import threading
listen = False
command = False
package pilhas;
public class Pilhaa {
private int vetor[];
private int top;
public Pilhaa(int max){
this.vetor = new int[max];
this.top = -1;
private int partition(int min, int max) {
int pivot = this.vector[max];
int wall = min-1;
for (int i = min; i <= max-1; i++){
if(this.vector[i] <= pivot){
wall++;
swap(wall,i);
}
}
swap(wall + 1, max);
package ProcessSchedule;
import DataStructure.Queue;
import Process.Process;
public class RobinRound {
public static void main(String[] args) {
int quantum = 2;
int count = 0;
Process executionProcess = null;
using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using BinaryTree;
namespace Server
{
public class Server
{
#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];
<?php
/**
* @var \App\View\AppView $this
*/
$this->start('script');
echo '$().ready(function() {
$( "#cadForm" ).submit(function( event ) {
var request = $.ajax({
url: "",
method: "POST",
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);
#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)
import java.util.GregorianCalendar;
/**
*
* @author victor_souzas@yahoo.com.br
*/
public class Consulta {
private Animal animal;
private Proprietario proprietario;
private GregorianCalendar calendar;