Skip to content

Instantly share code, notes, and snippets.

@spontaneOS
spontaneOS / exploreFile.py
Created December 20, 2018 21:30
Launch explorer at location of and with given file selected.
# Launch explorer at location of and with given file selected.
import subprocess
subprocess.Popen("explorer /select," + "FILE_PATH")
@damc-dev
damc-dev / runBashScript.bat
Last active January 31, 2024 15:44
Execute Bash Script (Using Git Bash) from Windows Task Scheduler
cmd /c ""C:\Program Files (x86)\Git\bin\bash.exe" --login -i -- H:\Daily_Reports\yesterdayTogglReport.sh"
@tcrowson
tcrowson / pysideDialogExamples.py
Last active October 11, 2017 16:49
Examples of simple PySide dialogs
from PySide.QtGui import *
# create a modal message box with a single 'Ok' button
box = QMessageBox()
box.setWindowTitle('Title')
box.setText('Text')
box.exec_()
# create a modal message box that offers some choices (Yes|No|Cancel)