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 getopt | |
import socket | |
import subprocess | |
import sys | |
import threading | |
listen = False | |
command = False |
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 pilhas; | |
public class Pilhaa { | |
private int vetor[]; | |
private int top; | |
public Pilhaa(int max){ | |
this.vetor = new int[max]; | |
this.top = -1; |
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
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); |
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 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; |
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 | |
{ |
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
<?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
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
#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.GregorianCalendar; | |
/** | |
* | |
* @author victor_souzas@yahoo.com.br | |
*/ | |
public class Consulta { | |
private Animal animal; | |
private Proprietario proprietario; | |
private GregorianCalendar calendar; |
NewerOlder