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
| from PyQt5.QtWidgets import QApplication | |
| from PyQt5.QtWidgets import QWidget | |
| from PyQt5.QtWidgets import QPushButton | |
| from PyQt5.QtWidgets import QGridLayout | |
| from PyQt5.QtWidgets import QStyle | |
| COL_SIZE = 4 | |
| class Widget(QWidget): |
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 argparse | |
| import time | |
| import requests | |
| from concurrent.futures import ThreadPoolExecutor | |
| def main(args): | |
| URLS = [ | |
| 'http://google.com.ar', | |
| 'http://reddit.com', |
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 time | |
| import random | |
| import signal | |
| from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor | |
| TIMEOUT = 3 | |
| def timeout_signal_handler(signum, frame): |
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 | |
| sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| server_addres = ('localhost', 10000) | |
| print("Conectando al puerto {}".format(server_addres[1])) | |
| sock.connect(server_addres) | |
| try: | |
| msg = input("Mensaje: ").encode() | |
| sock.sendall(msg) |
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
| # CallTips Python Scintilla | |
| import sys | |
| from PyQt4.QtGui import * | |
| from PyQt4.Qsci import QsciScintilla, QsciLexerPython | |
| CALLTIPS = True |