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
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
import urllib | |
import sys | |
commit_msg = sys.argv[1] | |
with open(commit_msg, 'r+') as f: | |
try: | |
nb_commit = urllib.urlopen("http://whatthecommit.com/index.txt").read() |
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
/* | |
* Autor: Fábio Cerqueira | |
* Uso: ./ordena quantidade tipo | |
* Exemplo: ./ordena 1000 1 | |
* Os tipo são: {1 = Aleatório,2 = Decrescente, 3 = Crescente} | |
* Descrição: Programa ordena vetores simples em C gerados de acordo com a quantidade e | |
* tipo passado por linha de comando, caso tamanho seja menor que 100 gera um arquivo | |
* saida.txt com os vetores ordenados. Exibe o tempo levado em ms para cada algoritmos de | |
* ordenação para ser feita a comparação. | |
*/ |
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 <string.h> | |
#include <stdlib.h> | |
#include <time.h> | |
/* Definições */ | |
#define BR printf("\n"); | |
#define ALEATORIO 1 | |
#define DECRESCENTE 2 | |
#define CRESCENTE 3 |
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 urllib | |
from xml.etree import ElementTree | |
class MigreMe(object): | |
URL_BASE = 'http://migre.me/' | |
URN_SHORT = 'api.txt?url=%s' | |
URN_INFO = 'api_redirect2.xml?url=%s' | |
def __init__(self, url=''): |
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
#!/bin/bash | |
# dependence: apt-get install sshpass | |
#config | |
PROJECT_NAME='pugce' | |
HOST="localhost" | |
PORT=2222 | |
BRANCH="master" | |
LOCAL_PATH='/home/fabio/sandbox/pugce/' | |
REMOTE_PATH='/home/pollux/pugce' |
NewerOlder