Skip to content

Instantly share code, notes, and snippets.

View mgrady3's full-sized avatar

M. Grady mgrady3

View GitHub Profile
@mgrady3
mgrady3 / NHLStreamCheck.py
Last active January 9, 2016 18:22
NHLStreamCheck
#!/usr/bin/env python
# Check reddit.com/r/nhlstreams for a game thread for a given team
#
# based on:
# https://gist.github.com/cheesinglee/49add283073a9a517771
import argparse
import praw
import time
@mgrady3
mgrady3 / pyqt5-testmenubar.py
Created September 22, 2016 17:02
PyQt5 Menubar test for OS X bug
import sys
from PyQt5 import QtWidgets
def main():
app = QtWidgets.QApplication(sys.argv)
window = QtWidgets.QWidget()
window.setWindowTitle("Test")
import numpy as np
import pyqtgraph as pqg
import sys
from PyQt5 import QtWidgets
class TestWindow(QtWidgets.QWidget):
def __init__(self, parent=None):
super(TestWindow, self).__init__(parent)
self.layout = QtWidgets.QVBoxLayout()
@mgrady3
mgrady3 / example.py
Created June 7, 2017 20:30
QuantumWise job app example
"""QuantumWise GUI Software Developer Application.
Maxwell Grady
June 2017
Usage:
python example.py
"""
import sys
@mgrady3
mgrady3 / testframeless.py
Created September 24, 2017 18:17
Test Qt/PyQt Frameless Window resizing with QSizeGrip
"""
Test Qt Frameless Window resizing with QSizeGrip
Maxwell Grady, September 2017.
"""
import sys
from PyQt5 import QtCore, QtWidgets
from qtmodern.styles import dark
from qtmodern.windows import ModernWindow
@mgrady3
mgrady3 / gist:7515b58098ab9ea7be6bc0aa84a3bbde
Last active January 4, 2021 21:18
Setting up TidalCycles in a VM
This is a brief outline of the steps followed to setup TidalCycles inside a VM - I am using a Linux Host and GnomeBoxes, however the basic procedure should translate mostly independendt of the host specs
1. Install clean Ubuntu 20.04 Gnome Box - I create a user called tidal during the install, but can use whatever you want
2. Boot the VM and perform all system updates that appear after first boot
3. Install main dependencies:
a. sudo apt-get install build-essential cabal-install git jackd2 emacs-nox haskell-mode
i. select "Yes" when asked about condifguring jackd for realtime process priority