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
{ | |
"test": true, | |
"input": "http://s3.amazonaws.com/zencodertesting/test.mov", | |
"outputs": [ | |
{ | |
"label": "mp4_output" | |
}, | |
{ | |
"source": "mp4_output", | |
"copy_audio": true, |
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
f = ('a', 'b', 'c') | |
g = ('d', 'e', 'f') | |
for i, (x, y) in enumerate(zip(f,g)): | |
print i, x, y |
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 functools import wraps | |
from maya import cmds | |
def undo(func): | |
""" Puts the wrapped `func` into a single Maya Undo action, then | |
undoes it when the function enters the finally: block """ | |
@wraps(func) | |
def _undofunc(*args, **kwargs): | |
try: | |
# start an undo chunk |
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
import logging | |
from logging.handlers import SysLogHandler | |
import sys | |
def custom_logger(name): | |
logger = logging.getLogger(name) | |
if sys.platform == 'darwin': | |
addr = '/var/run/syslog' | |
else: |
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
TITLE: FOR_TEST | |
FCM: DROP FRAME | |
001 AX AA C 00:00:00:13 00:00:44:22 01:00:00:10 01:00:44:19 | |
* FROM CLIP NAME: 1 AUDIO TRACK.AIFF | |
* COMMENT: | |
* PROBLEM WITH EDIT: CLIP HAD NO TIMECODE TRACK. | |
002 AX V K B 00:01:06:06 00:01:08:03 01:00:04:10 01:00:06:07 | |
002 AX V K 000 00:00:03:08 00:00:03:08 01:00:04:10 01:00:04:10 |
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
export HFS=/Library/Frameworks/Houdini.framework/Resources | |
# | |
# The following are some handy shortcuts: | |
# | |
export H=${HFS} | |
export HB=${H}/bin | |
export HDSO=${H}/dsolib | |
export HD=${H}/demo | |
export HH=${H}/houdini | |
export HHC=${HH}/config |
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
# this is non-pep8 python | |
def badFunc(foo = True): | |
foo = False; return foo | |
# this is pep8 python | |
def bad_func(foo=True): | |
foo = False | |
return foo |