This file contains hidden or 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
class MdlTestData(SqlSyncTableModel): | |
TABLE_NAME = "TestData" | |
def __init__(self, parent=None): | |
super(MdlTestData, self).__init__(parent) | |
self.setSort(self.ixPointNo, Qt.AscendingOrder) | |
self.setHeaderData(self.ixTemperature, Qt.Horizontal, "Temperature") | |
self.setHeaderData(self.ixTime , Qt.Horizontal, "Time") | |
self.setHeaderData(self.ixVoltsAB , Qt.Horizontal, "Volts AB") |
This file contains hidden or 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 PyQt5.QtWidgets import ( | |
QApplication, | |
QFormLayout, | |
QGridLayout, | |
QLabel, | |
QScrollArea, | |
QScroller, | |
QWidget, |
This file contains hidden or 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
#!/usr/bin/ruby | |
# Create display override file to force Mac OS X to use RGB mode for Display | |
# see http://embdev.net/topic/284710 | |
require 'base64' | |
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
This file contains hidden or 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
INSTRUMENTS = filter(lambda x: x, map(str.strip, """ | |
Flow %d (bpd) | |
Target Flow (bpd) | |
Intake (psi) | |
Discharge (psi) | |
Pressure (psi, ft) | |
Torque %d (ft lbf) | |
Power (hp) | |
Speed (rpm) | |
Temperature (F) |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Jul 11 23:06:53 2013 | |
@author: chipolux | |
""" | |
import json | |
import urllib2 | |
import threading | |
import Queue |
NewerOlder