Skip to content

Instantly share code, notes, and snippets.

Victor Souza VictorSouzas

Block or report user

Report or block VictorSouzas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:44dd6e82ecedbeebc8bdd1d7fab4812a
# -*- coding: utf-8 -*-
import getopt
import socket
import subprocess
import sys
import threading
listen = False
command = False
View gist:99d67efb66dac2cad4f1c42925e3e2a2
package pilhas;
public class Pilhaa {
private int vetor[];
private int top;
public Pilhaa(int max){
this.vetor = new int[max]; = -1;
View gist:2c64f22aa255b8d5f1f32087956feb8b
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){
swap(wall + 1, max);
View gist:5712870f213237cf47341e33b6434bd6
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;
View gist:cb921f1bb26189919919087ae4c9ec4d
using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using BinaryTree;
namespace Server
public class Server
View gist:d787877d250cf940e463ff4e53e928af
#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];
View gist:767f80f419d99d92efe2b9ad0ea39133
* @var \App\View\AppView $this
echo '$().ready(function() {
$( "#cadForm" ).submit(function( event ) {
var request = $.ajax({
url: "",
method: "POST",
View gist:e21aec287e4fb5ab21c6cbfeab4cb758
import java.util.Scanner;
*create by
public class InfixaPosfixa implements InfixaPosfixaInterface {
public static void main(String[] args) {
InfixaPosfixa inf = new InfixaPosfixa();
Scanner scan = new Scanner(;
View mede_time.h
#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)
View gist:4bc4bf7323cad71a666f51b025131fb3
import java.util.GregorianCalendar;
* @author
public class Consulta {
private Animal animal;
private Proprietario proprietario;
private GregorianCalendar calendar;
You can’t perform that action at this time.