Skip to content

Instantly share code, notes, and snippets.

View WEBMAMOFFICE's full-sized avatar

Volodymyr Kirichinets WEBMAMOFFICE

View GitHub Profile
# python 3.x version
# pip install more_itertools - if not installed
import more_itertools
youlist = [[1, 2, [3]], 4]
res = list(more_itertools.collapse(youlist))
print(res)
from PyQt5 import QtWidgets, QtGui, QtCore
font_but = QtGui.QFont()
font_but.setFamily("Segoe UI Symbol")
font_but.setPointSize(10)
font_but.setWeight(95)
class PushBut1(QtWidgets.QPushButton):
def __init__(self, parent=None):
from PyQt5 import QtWidgets, QtGui, QtCore
from PyQt5.QtCore import pyqtSignal
from http.client import HTTPSConnection
from bs4 import BeautifulSoup
import time
font_but = QtGui.QFont()
font_but.setFamily("Segoe UI Symbol")
font_but.setPointSize(10)