| Label | Symbol |
|---|---|
| Block | ▮ |
| Product | ∏ |
| Floor | ⌊ fn ⌋ |
| Ceil | ⌈ fn ⌉ |
| Nearest int | ⌊ fn ⌉ |
| Intersection | ∩ |
| Summation | ∑ |
| Integral | ∫ |
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 fileinput | |
| import os | |
| import venv | |
| from pathlib import Path | |
| # venvtarget = Path('.').resolve().name.replace(' ', '_') | |
| # header = Path(venvtarget / 'Scripts/python.exe').as_posix() | |
| # print(header) |
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
| def get_normalized(df): | |
| """Normalize frequencies (MHz, GHz) in a DataFrame to Hz.""" | |
| SI_PREFIXES = 'yzafpnum kMGTPEZY' | |
| SI_SCALE_FACTOR = dict([(key, 10**((-8+i)*3)) for i, key in enumerate(SI_PREFIXES)]) | |
| for column in df: | |
| xHz = [ r for r in re.split(r'[\(*\)]', column) if r not in ''][-1] | |
| # find eg 'MHz' from the column name 'Frequency (MHz)' |
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 logging | |
| import queue | |
| from datetime import datetime as dt | |
| from logging.handlers import QueueHandler | |
| import dearpygui.dearpygui as dpg | |
| class mvLogger: | |
| """https://github.com/hoffstadt/DearPyGui_Ext/blob/master/dearpygui_ext/logger.py .""" | |
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
| [Desktop Entry] | |
| Type=Application | |
| Name=Run Dashboard | |
| Comment=NA | |
| NoDisplay=false | |
| Exec=/usr/bin/chromium-browser --kiosk "http://HOST/playlists/play/1?kiosk=tv&autofitpanels" | |
| NotShowIn=GNOME;KDE;XFCE; |
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 struct | |
| import socket | |
| def wake_on_lan(mac, *, broadcast="192.168.1.255"): | |
| """Send WOL pachet. | |
| https://en.wikipedia.org/wiki/Wake-on-LAN | |
| """ | |
OlderNewer