Skip to content

Instantly share code, notes, and snippets.

View rcruz63's full-sized avatar

Raul rcruz63

  • Personal
  • Madrid, Spain
View GitHub Profile
@rcruz63
rcruz63 / socket_s.py
Last active December 15, 2015 03:39
socket_s
#!/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 )
@rcruz63
rcruz63 / socket_d.py
Created March 19, 2013 10:41
socket_d
import socket
s = socket.socket()
s.connect(("192.168.1.100", 9999))
while True:
mensaje = raw_input(">")
s.send(mensaje)
if mensaje == "quit":
break
@rcruz63
rcruz63 / Cards.py
Created March 19, 2013 10:37
Pythonista Scripts
# 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
@rcruz63
rcruz63 / programa.py
Created March 14, 2013 19:47
programa
import modulo
modulo.mi_funcion()