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
# Pode mudar as dimensoes e o algoritmo de compressao da imagem de saida aqui | |
set terminal jpeg size 1080, 600 | |
# Nome do arquivo de saida gerado | |
set out 'grafico.jpeg' | |
# Legenda do eixo y, pode colocar um do x tb | |
set ylabel 'Altura' | |
# Aqui troque os valores de `./energiaC.txt` para o arquivo de entrada que quer |
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
# Download Sublime Text x64 para linux | |
wget http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.2%20x64.tar.bz2 | |
# Extrai e move os arquivos do sublime para a pasta /opt | |
tar -xf Sublime\ Text\ 2.0.2\ x64.tar.bz2 -C /opt/ | |
mv /opt/Sublime\ Text\ 2/ /opt/Sublime_Text | |
rm Sublime\ Text\ 2.0.2\ x64.tar.bz2 | |
# Faz um link do programa em uma pasta que esta no PATH do sistema | |
# no nosso caso /usr/bin |
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
set terminal jpeg size 1080, 600 | |
set out 'grafico.jpeg' | |
set ylabel 'Y' | |
set xlabel 'X' | |
# Pode adicionar cada grafico em uma linha mas, nesse caso, | |
# tem que terminar a linha anterior com o caractere \ (como | |
# no exemplo abaixo). Se for colocar todos os graficos na | |
# mema linha basta separa cada um com uma virgula. |
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
PArv pesquisa(PArv arv, PArv* pai, int x){ | |
if(arv == NULL){ | |
return NULL; | |
} | |
else if(arv->chave == x){ | |
return arv; | |
} | |
else if(x < arv->chave){ | |
*pai = arv; | |
return pesquisa(arv->esq, pai, x); |
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
# Funciona com python3 apenas | |
# Assummo que o arquivo de dados esta organizado da seguinte forma: | |
# X1 Y1 Y2 ... Yn | |
# X2 ... | |
# ... ... | |
# Xn ... | |
import random |
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
# Neste exemplo, definimos a funcao alguma_coisa | |
def alguma_coisa(a): | |
return a*10 |
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 <stdlib.h> | |
#include <stdbool.h> | |
typedef struct Arv{ | |
int chave; | |
struct Arv* esq; | |
struct Arv* dir; | |
} TArv; | |
typedef TArv* PArv; |
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
/* Este arquivo deve ser salvo em: ~/.mozilla/firefox/<user-profile>/chrome/ | |
e tem como objetivo usar a fonte Arial em paginas que seriam renderizadas | |
com Helvetica. | |
*/ | |
@font-face{ | |
font-family: "Helvetica"; | |
src: local("Arial"); | |
} |
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> | |
#include <stdlib.h> | |
#include <omp.h> | |
#define tam 10000 | |
#define randRange 80 | |
#define num_threads 4 | |
float** mat; | |
float* vet; | |
float* res; //vetor resultado da multip |
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> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdbool.h> | |
/* Elementos da fila */ | |
typedef struct Fila{ | |
char nome[50]; | |
int tempo_chegada; | |
int quantidade_produtos; |
OlderNewer