Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am eduardodx on github.
  • I am eduardodx (https://keybase.io/eduardodx) on keybase.
  • I have a public key ASBhPLyClSlKGap9T-3V8vFiAAQum91VJxJP_P1gRZwxsgo

To claim this, I am signing this object:

@eduardodx
eduardodx / Software that gets used
Created December 28, 2012 16:32
What makes a simple software.
http://www.johndcook.com/blog/2009/07/31/software-that-gets-used/
1. was developed to address existing needs, not speculation of future needs;
2. solved a general problem; and
3. was simple, often controversially simple.
@eduardodx
eduardodx / calibre.css
Created December 13, 2012 20:23
This is my css for reading ebooks in Calibre.
/**
* Font: EB Garamond <http://www.georgduffner.at/ebgaramond/>
* and use of 2 columns
*/
html {
line-height: 1.5em;
text-align: justify;
font-family: "EB Garamond" !important;
@eduardodx
eduardodx / ffmpeg-referencia-pt-br.md
Created November 25, 2012 20:29
FFmpeg Referência pt-br

Instalação

Ubuntu:

O passo a passo da instalação no Ubuntu (executados no terminal):

  1. Adicione a ppa do ffmpeg
@eduardodx
eduardodx / pacman.c
Created June 16, 2012 19:09
Pacman
#include <unistd.h> // lib para o delay => usleep()
#include <stdlib.h>
#include <time.h>
#include <ncurses.h>
#define H 25 // altura do mapa
#define W 42 // largura do mapa
#define UP 0
#define RIGHT 1
#define DOWN 2
#define LEFT 3
@eduardodx
eduardodx / SPOJ_PESCA11.c
Created June 8, 2012 01:27
SPOJ - Pesca
#include <stdio.h>
int main () {
int c[100][4], i, j, n, area_total, ax, ay;
area_total = 0;
// Limpando o vetor
for (i = 0; i < 100; i++) {
c[i][0] = 0;
#include <stdio.h>
int main() {
char opcao;
scanf("%c", &opcao);
switch(opcao) {
@eduardodx
eduardodx / Mozilla.txt
Created May 16, 2012 03:54
Mozilla Contribute
Hi,
I'm Josh, one of the C++ developers on the Platform team. Glad to hear from you!
To get started with the codebase, have a look at
http://developer.mozilla.org/En/Introduction. If you'd like to use
Java, you can get involved with the Mobile Firefox project, which uses
it to create the UI on Android devices. See
https://wiki.mozilla.org/Mobile/Get_Involved for more information.
If you need any help, you can obtain it on IRC. I recommend visiting
@eduardodx
eduardodx / selection_sort.c
Created April 20, 2012 12:33
Selection Sort
/**
* http://pt.wikipedia.org/wiki/Selection_sort
*/
#include <stdio.h>
#define VL 5 // Tamanho do vetor
int main () {
int v[6], indice, min, i, j;