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
""" | |
Author: Carlo Cherisier | |
Date: 04.16.15 | |
Script: MetadataUI | |
To run this script: | |
import editMetaData | |
editMetaData.main() | |
""" |
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
http://codeheadwords.com/ |
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 re | |
def sorted_nicely(l): | |
""" Sort the given iterable in the way that humans expect.""" | |
convert = lambda text: int(text) if text.isdigit() else text | |
alphanum_key = lambda key: [ convert(c) for c in re.split('([0-9]+)', key) ] | |
return sorted(l, key = alphanum_key) |
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
## Color Changer | |
from PyQt4 import QtCore, QtGui | |
# import re | |
# import os | |
import sys | |
class TestUI(QtGui.QDialog): | |
def __init__(self, *args, **kws): | |
parent = kws.get('parent', None) |
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
from PyQt4 import QtGui | |
from PyQt4 import QtCore | |
import sys | |
class DynamicUI(QtGui.QDialog): | |
def __init__(self, *args, **kws): | |
parent = kws.get('parent', None) | |
self.dict_letter = kws.get('dict_letter', None) | |
super(DynamicUI, self).__init__(parent=parent) |
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
<?php | |
$username = "Tom"; | |
echo $username | |
echo "<br>"; | |
$current_user = $username | |
echo $current_user; | |
$y = 0; | |
if( $y-- = 0) | |
echo $y; |
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
# PyQt | |
import sip For pyQt | |
from PyQt4 import QtGui | |
try: | |
import maya.OpenMayaUI as mui | |
ptr = mui.MQtUtil.mainWindow() | |
parent = sip.wrapinstance(long(ptr), QtCore.QObject) PyQt | |
except: |
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
from PySide import QtGui, QtCore | |
# from PyQt4 import QtGui, QtCore | |
import sys | |
class MyFirstUI(QtGui.QDialog): | |
def __init__(self, *args, **kws): | |
parent = kws.get('parent', None) | |
super(MyFirstUI, self).__init__(parent=parent) |
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
''' | |
Command port | |
http://forums.cgsociety.org/archive/index.php?t-966699.html | |
Creative Crash | |
''' | |
import socket | |
#HOST = '192.168.1.122' # The remote host | |
HOST = '127.0.0.1' # the local host | |
PORT = 54321 # The same port as used by the server | |
ADDR=(HOST,PORT) |
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
for x in globals(): print x | |
string | |
cmd | |
contextmanager | |
_LoadPublishedEntityInformationIndividualChar | |
stereoCameraInitStereo | |
MayaDependNode | |
mel | |
MC | |
MM |