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
#!/bin/bash | |
action=$1 | |
shift 1 | |
no_flag=0 | |
quote=0 | |
while getopts "nqf:" opt; do | |
case ${opt} in |
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
### Custom prompt ### | |
Import-Module posh-git | |
# disable default python virtualenv prompt | |
$env:VIRTUAL_ENV_DISABLE_PROMPT = "1" | |
# store the original prompt function | |
function _prompt { | |
"" | |
} |
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 atexit | |
import subprocess as subp | |
from pathlib import Path | |
from concurrent.futures import ThreadPoolExecutor | |
class NotepadMonitor: | |
""" | |
A class to monitor a file in Notepad++. | |
""" |
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 sys | |
from qtpy.QtWidgets import ( | |
QApplication, | |
QMainWindow, | |
QCheckBox, | |
QFrame, | |
QGridLayout, | |
) | |
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 sys | |
from qtpy.QtWidgets import ( | |
QApplication, | |
QMainWindow, | |
QSpinBox, | |
QDoubleSpinBox, | |
QFrame, | |
QGridLayout, | |
) |
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 sys | |
from qtpy.QtWidgets import ( | |
QApplication, | |
QMainWindow, | |
QLineEdit, | |
QFrame, | |
QGridLayout, | |
) | |
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 sys | |
from qtpy import QtCore | |
from qtpy.QtWidgets import ( | |
QApplication, | |
QMainWindow, | |
QComboBox, | |
QFrame, | |
QGridLayout, | |
) |
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 sys | |
from qtpy.QtWidgets import ( | |
QApplication, | |
QMainWindow, | |
QTabWidget, | |
QFrame, | |
QVBoxLayout, | |
) | |
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
@overload | |
def defaultEditorFactory(arg: Type[bool], parent: QWidget) -> QComboBox: ... | |
@overload | |
def defaultEditorFactory(arg: Type[float], parent: QWidget) -> QDoubleSpinBox: ... | |
@overload | |
def defaultEditorFactory(arg: Type[int], parent: QWidget) -> QSpinBox: ... | |
@overload | |
def defaultEditorFactory(arg: Type[QDate], parent: QWidget) -> QDateEdit: ... | |
@overload | |
def defaultEditorFactory(arg: Type[QDateTime], parent: QWidget) -> QDateTimeEdit: ... |
NewerOlder