quarta-feira, 1 de agosto de 2012

Script em python para Mega Sena

Um script em python que imprime todos os 10 jogos possíveis da mega-sena usando os 60 números sem repetir.


import random
l=[]
for a in range(1 , 61) :
        l.append(a)
random.shuffle(l)
i=0
while (i <60 )
        j=0
        jogo=[]
        while (j<6 )
                jogo.append(l[i])
                j+=1
                i+=1
        jogo.sort()
        print jogo



segunda-feira, 7 de maio de 2012

Welcome to the Tizen conference 2012

Today we begin the Tizen conference. I'm very excited to see how the Tizen will support the community on the development of applications and how far they can go as a new ecosystem for mobile. The things look pretty organized here. I'm having a great time in San Francisco, the wheatear is good with sunny all day. Thanks to the Linux foundation for the extra day in the hotel. :) I hope I can contribute on spreading the Tizen love!