- Related tutorial: http://raspberrypiguide.de/
- Command Line Cheatsheet: https://gist.github.com/hofmannsven/8392477
Find all available devices arp -a
Locate Raspberry (b8:27:eb) in Network: Pi Finder
| """ | |
| This is what you need to do in order to get a qt window to dock next to maya channel box, | |
| In all maya versions, including 2017 with PySide2 | |
| """ | |
| __author__ = "liorbenhorin@gmail.com" | |
| import sys | |
| import os | |
| import logging | |
| import xml.etree.ElementTree as xml |
| #hmasato | |
| #https://gist.github.com/hmasato/b72a95fbadf1c63b56ec | |
| #------------------------------ | |
| #grab frame buffer to QImage | |
| #------------------------------ | |
| import ctypes | |
| import maya.OpenMaya as om | |
| import maya.OpenMayaUI as omui |
| import maya.cmds as cmds | |
| import pymel.core as pm | |
| import maya.api.OpenMaya as om | |
| import maya.api.OpenMayaUI as omui | |
| class SamsClass(): | |
| def __init__(self): | |
| pass |
| import PySide.QtCore as QtCore | |
| import PySide.QtGui as QtGui | |
| from nukescripts import panels | |
| class PanelTest(QtGui.QWidget): | |
| def __init__(self, parent=None): | |
| QtGui.QWidget.__init__(self, parent) | |
| self.setLayout(QtGui.QVBoxLayout()) | |
| self.myTable = QtGui.QTableWidget() | |
| self.myTable.header = ['Date', 'Files', 'Size', 'Path' ] |
Find all available devices arp -a
Locate Raspberry (b8:27:eb) in Network: Pi Finder
| //-------------------------------- | |
| // zero padding | |
| //-------------------------------- | |
| function _padding(val,n) | |
| { | |
| n -= (''+val).length-1; | |
| return((n>0?(new Array(n)).join('0'):'')+val); | |
| } | |
| //-------------------------------- | |
| // examples: |
| import threading | |
| # Based on tornado.ioloop.IOLoop.instance() approach. | |
| # See https://github.com/facebook/tornado | |
| class SingletonMixin(object): | |
| __singleton_lock = threading.Lock() | |
| __singleton_instance = None | |
| @classmethod |