Skip to content

Instantly share code, notes, and snippets.

Avatar

M. Grady mgrady3

View GitHub Profile
@mgrady3
mgrady3 / gist:7515b58098ab9ea7be6bc0aa84a3bbde
Last active Jan 4, 2021
Setting up TidalCycles in a VM
View gist:7515b58098ab9ea7be6bc0aa84a3bbde
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
@mgrady3
mgrady3 / testframeless.py
Created Sep 24, 2017
Test Qt/PyQt Frameless Window resizing with QSizeGrip
View testframeless.py
"""
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 / example.py
Created Jun 7, 2017
QuantumWise job app example
View example.py
"""QuantumWise GUI Software Developer Application.
Maxwell Grady
June 2017
Usage:
python example.py
"""
import sys
View minimal.py
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 / pyqt5-testmenubar.py
Created Sep 22, 2016
PyQt5 Menubar test for OS X bug
View pyqt5-testmenubar.py
import sys
from PyQt5 import QtWidgets
def main():
app = QtWidgets.QApplication(sys.argv)
window = QtWidgets.QWidget()
window.setWindowTitle("Test")
View NHLStreamCheck.py
#!/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