This file contains hidden or 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/python | |
import threading, time | |
from socket import * | |
portrange = range(10000,10005) | |
class Sock(threading.Thread): | |
def __init__(self, port): | |
self.port = port | |
threading.Thread.__init__ ( self ) |
This file contains hidden or 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
import socket | |
s = socket.socket() | |
s.connect(("192.168.1.100", 9999)) | |
while True: | |
mensaje = raw_input(">") | |
s.send(mensaje) | |
if mensaje == "quit": | |
break |
This file contains hidden or 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
# Card Game | |
# | |
# In this game, you have to find matching pairs of cards. | |
# This scene consists entirely of layers and demonstrates some | |
# interesting animation techniques. | |
from scene import * | |
from random import shuffle | |
from functools import partial | |
import sound |
This file contains hidden or 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
import modulo | |
modulo.mi_funcion() |