Skip to content

Instantly share code, notes, and snippets.

View soaresfabricio's full-sized avatar

Fabrício Soares soaresfabricio

  • Brazil
View GitHub Profile
@soaresfabricio
soaresfabricio / drawLine
Last active August 29, 2015 14:20
Drawing lines with linear interpolation
void drawLine( pixel * inicio, pixel * final) {
int largura = final->abscissa - inicio->abscissa ;
int altura = final->ordenada - inicio->ordenada ;
int dx1 = 0, dy1 = 0, dx2 = 0, dy2 = 0 ;
dx1 = largura < 0 ? -1 : 1;
dy1 = altura < 0 ? -1 : 1;
/**
* huffman.c
* Um simples compressor de arquivos usando árvores de Huffman.
* @ver 0.1
* @autores: Fabrício Soares
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
/**
* spellchecker.c
*
* @ver 0.1
* @autor: Fabrício Soares
*/
/**
* Um simples spellchecker utilizando tabelas hash.
*/