This file contains 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 os, sys | |
pvs_header = """/* | |
* This is an open source non-commercial project. Dear PVS-Studio, please check it. | |
* PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com | |
*/ | |
""" | |
This file contains 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
wifi.eventmon.register(wifi.eventmon.STA_CONNECTED, function(T) | |
print("STA - CONNECTED") | |
print("SSID: " .. T.SSID) | |
print("BSSID: " .. T.BSSID) | |
print("Channel: " .. T.channel) | |
enduser_setup.stop() | |
wifi.setmode(wifi.STATION) | |
wifi.sta.autoconnect(1) | |
gpio.write(4, gpio.LOW) |
This file contains 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/env python3 | |
from PyQt5.QtWidgets import QApplication, QWidget, QDesktopWidget, QMessageBox | |
from rle import rlem_encode, rlem_decode | |
app = QApplication(['']) | |
int_data = [0x00 for i in range(10)] + [0x05] + [100 for i in range(5)] |
This file contains 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/env python3 | |
# ------------------------------------------------------------------------------ | |
# rlem_encode | |
# ------------------------------------------------------------------------------ | |
def rlem_encode(data): | |
count = 1 # count words | |
index = 0 | |
start_index = 0 | |
out_list = [] # out RLEm compressed list |
This file contains 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
# python 3 | |
from PyQt5.QtCore import ( QSize, pyqtSlot, QPointF, Qt, pyqtProperty, | |
QByteArray, QDataStream, QIODevice, QMimeData, | |
QPoint ) | |
from PyQt5.QtWidgets import ( QFrame, QWidget, QPushButton, QLineEdit, QLayout, | |
QHBoxLayout, QVBoxLayout, QGridLayout, QSizePolicy, | |
QStyleFactory, QLabel, QListView, QListWidget, QListWidgetItem ) | |
from PyQt5.QtGui import ( QFont, QIcon, QLinearGradient, QColor, QPainter, | |
QPen, QFontMetrics, QPixmap, QDrag ) |
This file contains 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
# python3 | |
import os | |
from datetime import datetime | |
import ftplib | |
options = [ | |
{ 'bits': '__LCD_16_BIT__', 'sbits': '65k', 'bus': '__LCD_DIRECT__' }, | |
{ 'bits': '__LCD_18_BIT__', 'sbits': '262k', 'bus': '__LCD_DIRECT__' }, | |
{ 'bits': '__LCD_18_BIT__', 'sbits': 'hc573_16b_262k', 'bus': '__LCD_HC573__' } |
This file contains 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/env python | |
from ngl_utils.nplugins.python.ngl_base_qplugin import NGL_BasePlugin | |
from ngl_greed import NGL_Greed | |
class NGL_GreedPlugin(NGL_BasePlugin): | |
"""NGL_GreedPlugin(NGL_BasePlugin) | |
Provides a Python custom plugin for Qt Designer by implementing the |
This file contains 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/env python | |
from ngl_utils.nplugins.widgets.ngl_base import NGL_Base | |
from ngl_utils.nplugins.widgets.ngl_colors import NGL_Colors | |
from ngl_utils.nplugins.widgets.qstyle_parser import QStyleParser | |
from PyQt5.QtCore import pyqtSlot, pyqtProperty, QRect, Qt | |
from PyQt5.QtGui import QPainter, QPen, QColor | |
This file contains 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/env python | |
from ngl_utils.nplugins.python.ngl_base_qplugin import NGL_BasePlugin | |
from ngl_rect import NGL_Greed | |
class NGL_GreedPlugin(NGL_BasePlugin): | |
"""NGL_GreedPlugin(NGL_BasePlugin) | |
Provides a Python custom plugin for Qt Designer by implementing the |
This file contains 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/env python | |
from ngl_utils.nplugins.widgets.ngl_base import NGL_Base | |
from ngl_utils.nplugins.widgets.qstyle_parser import QStyleParser | |
from PyQt5.QtCore import pyqtSlot, pyqtProperty, QRect, Qt | |
from PyQt5.QtGui import QPainter, QPen, QColor | |
class NGL_Greed(NGL_Base): | |
"""NGL_Greed(NGL_Base) |
NewerOlder