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
__author__ = 'Kaue Maia' | |
import turtle | |
def coracao(): | |
t1= turtle.Pen() | |
t1.color('red') | |
turtle.bgcolor('black') | |
t1.speed(0) | |
for ang in range(360): | |
t1.left(90-ang) |
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
__author__ = 'kaue' | |
import turtle,time | |
colors = ['red', 'purple', 'blue', 'green', 'yellow', 'orange', 'pink'] | |
t1=turtle.Pen() | |
turtle.bgcolor('black') | |
t1.speed(0) | |
for x in range(1000): | |
t1.pencolor(colors[x%7]) | |
if x%2==0: | |
t1.forward(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
Sete Atitudes para Hackear a Indústria de Software | |
By Klaus Wuestefeld | |
1) Torne-se excelente. | |
Seja realmente bom em alguma coisa. Não fique só choramingando ou | |
querendo progredir às custas dos outros. Não pense q pq vc sentou 4 | |
anos numa faculdade ouvindo um professor falar sobre software q vc | |
sabe alguma coisa. Jogador de futebol não aprende a jogar bola tendo |
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
Sete Atitudes para Hackear a Indústria de Software | |
By Klaus Wuestefeld | |
1) Torne-se excelente. | |
Seja realmente bom em alguma coisa. Não fique só choramingando ou | |
querendo progredir às custas dos outros. Não pense q pq vc sentou 4 | |
anos numa faculdade ouvindo um professor falar sobre software q vc | |
sabe alguma coisa. Jogador de futebol não aprende a jogar bola tendo |
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
class Bicho(): | |
def __init__(self, nome, som): | |
self.nome = nome | |
self.som = som | |
self.sexo = 'a' if nome[-1] == 'a' else 'o' | |
pintinho = Bicho('Pintinho', 'Piu') | |
bichos = [Bicho('Galinha', 'có!'), Bicho('Galo', 'cocó!'), | |
Bicho('Peru', 'glu glu!'), Bicho('Gato', 'miau!'), |
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 | |
""" This is a Python script that helps you create reverse DNS zone files for the Bind Name Server. | |
I published it in my blog post http://goo.gl/CJwly .""" | |
## This script needs IPy.py: | |
## wget https://raw.github.com/haypo/python-ipy/master/IPy.py --no-check-certificate | |
from IPy import IP | |
class cIP (IP): | |
def __or__(self, other): |
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
/** | |
* Implementação do algorítimo SoundEx em Javascript. | |
* @author João Batista Neto | |
* | |
* SoundEX é um algorítimo fonético para indexação de nomes pelo som segundo | |
* sua pronúncia. O algorítimo foi desenvolvido por Robert C. Russell e | |
* Margaret K. Odell e patenteado em 1918 e 1922. | |
* {@link http://en.wikipedia.org/wiki/Soundex} | |
* | |
* @return {String} |