Skip to content

Instantly share code, notes, and snippets.

@raininja
raininja / gist:6587733
Created September 16, 2013 22:55
pyqtgraph update issues
class MainWindow(QtGui.QMainWindow):
""" init Qt and draw stuff """
def __init__(self, parent=None):
super(MainWindow, self).__init__(parent)
self.resize(1000,600)
self.setWindowTitle('pyqtnia-alpha')
area = DockArea()
self.setCentralWidget(area)
dock1 = Dock("one", size=(150,550), hideTitle=True)
@raininja
raininja / example.profile
Created September 3, 2013 15:04
example user profile
(i__main__
ProfileSettings
p0
(dp1
S'deviceName'
p2
VOCZ Neural Impulse Actuator
p3
sS'qfThreshold'
p4
@raininja
raininja / gist:3652050
Created September 6, 2012 06:20 — forked from tranthamp/gist:2721326
D-Bus and Connman notes
# Connman Technology API examples: (Object Path: /net/connman/technology/<wifi/ethernet>, Interface: net.connman.Technology)
# GetProperties
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.GetProperties
# Scan
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.Scan
# Disable/Enable wifi
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.SetProperty string:Powered variant:boolean:true