Skip to content

Instantly share code, notes, and snippets.

View centaurialpha's full-sized avatar
🕳️
Working from home

Gabriel Acosta centaurialpha

🕳️
Working from home
View GitHub Profile
@centaurialpha
centaurialpha / qt_icons.py
Last active November 2, 2025 22:07
Show all standard Qt icons
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):
import argparse
import time
import requests
from concurrent.futures import ThreadPoolExecutor
def main(args):
URLS = [
'http://google.com.ar',
'http://reddit.com',
import time
import random
import signal
from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor
TIMEOUT = 3
def timeout_signal_handler(signum, frame):
@centaurialpha
centaurialpha / client.py
Created February 10, 2017 03:18
El server
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)
@centaurialpha
centaurialpha / call_tip.py
Last active August 20, 2016 22:21
Test calltips in scintilla with Python
# CallTips Python Scintilla
import sys
from PyQt4.QtGui import *
from PyQt4.Qsci import QsciScintilla, QsciLexerPython
CALLTIPS = True