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
using System; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.ComponentModel; | |
using System.IO; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
using System.Threading.Tasks; | |
namespace DirectoryTree |
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
using System; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.ComponentModel; | |
using System.IO; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
using System.Threading.Tasks; | |
namespace DirectoryTree |
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 PySide import QtGui, QtCore | |
class Example(QtGui.QWidget): | |
def __init__(self,): | |
super(Example, self).__init__() | |
self.initUI() |
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 | |
class Animal: | |
def __init__(self): | |
print "Animal created" | |
def whoAmI(self): | |
print "Animal" | |
def eat(self): |
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
#!/bin/env python | |
# ------------------------------------------------------------------------------ | |
# Imports | |
# ------------------------------------------------------------------------------ | |
import sys | |
from PySide import QtCore, QtGui | |
# ------------------------------------------------------------------------------ | |
# Open UI |
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 | |
from PySide import QtGui, QtCore | |
from PySide.QtGui import QDialog, QVBoxLayout, QDialogButtonBox, QDateTimeEdit, QApplication | |
from PySide.QtCore import Qt, QDateTime | |
class RenameDialog(QDialog): | |
def __init__(self, parent = None): | |
super(RenameDialog, self).__init__(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
import sys | |
data = { | |
'MIKE' : ['Great'], | |
'SUE' : ['happy'], | |
'JAN' : ['sad'] | |
} | |
for k, v in data.items(): | |
print k, v |
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
#!/bin/env python | |
# ------------------------------------------------------------------------------ | |
# Imports | |
# ------------------------------------------------------------------------------ | |
import sys | |
from PySide import QtCore, QtGui | |
# ------------------------------------------------------------------------------ | |
# Open UI |
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 PySide import QtGui | |
class Example(QtGui.QWidget): | |
def __init__(self): | |
super(Example, self).__init__() | |
self.initUI() | |
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
--Create a point | |
p=point pos:[-20,0,0] size:20 axistripod:true box:true | |
--Rotate it 90 in z | |
rotate p (eulerAngles 0 0 45) | |
--Get the transform matrix to work with. | |
tm=p.transform | |
--Mirror the tm across the world matrix in x |