This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
<link rel="import" href="../paper-toast/paper-toast.html"> | |
<link rel="import" href="../paper-tabs/paper-tabs.html"> | |
<link rel="import" href="../paper-tabs/paper-tab.html"> | |
<polymer-element name="dhs-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
This file contains 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
<link rel="import" href="../paper-tabs/paper-tabs.html"> | |
<link rel="import" href="../paper-tabs/paper-tab.html"> | |
<link rel="import" href="../topeka-elements/category-icons.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { |
This file contains 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 pymel.core import * | |
cams = ls( type='camera') | |
defaultCams = ["frontShape","perspShape", "sideShape","topShape"] | |
for i in defaultCams: | |
cams.remove(i) | |
def hsRender(name): | |
start = int(startFrame.getText()) | |
end = int(endFrame.getText()) |
This file contains 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
'Be sure that maya's bin folder is located in your system's path. | |
Dim AllProcess, Process, strFoundProcess | |
Dim objShell : Set objShell = CreateObject("Wscript.Shell") | |
strFoundProcess = False | |
Set AllProcess = getobject("winmgmts:") 'create object | |
objShell.Run "maya.exe" | |
WScript.Sleep 4000 | |
Do | |
For Each Process In AllProcess.InstancesOf("Win32_process") 'Get all the processes running in your PC |
This file contains 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 i in `ls *.pyc`; do echo $i | awk '{print("uncompyler.py "$1" > "$1)}' | sed 's/pyc/py/2' | /bin/sh; done |
This file contains 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 pymel.core import * | |
def cubeCube(): | |
rows = int(raw_input("rows")) | |
columns = int(raw_input("columns")) |
This file contains 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 pymel.core import * | |
rows = 10 | |
columns = 10 | |
hight = 10 | |
r = 0 | |
c = 0 | |
h = 0 | |
This file contains 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 pymel.core import * | |
row = 10 | |
column = 10 | |
height = 10 | |
x,y,z = 0, 0, 0 | |
for i in range(0, row * column * height): |
This file contains 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 pymel.core import * | |
cvCount = 1000 | |
cvPoints = [] | |
for i in range(cvCount): | |
x = dt.sin(i) * i | |
y = dt.cos(i) * i | |
z = 0 | |
cvPoints.append([x, y, z]) | |
OlderNewer