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
#!/usr/bin/env python | |
""" | |
@author: | |
John P. Neumann | |
@applications: | |
Maya | |
@description: |
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
printf '\n\033[0;32;40mAvada Kedavra\n' | |
killall -9 $1 | |
printf '\033[0;35;40m' | |
printf '\nKilled the following processes:\n\n' | |
printf '\033[1;32;40m' | |
pgrep $1 | |
printf '\n\033[0mDone\n' |
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
#!/usr/bin/env python | |
def my_func(a_variable): | |
""" | |
Does stuff. | |
@rtype: bool | |
@returns: True or False. | |
""" |
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
""" | |
@author: | |
John P. Neumann (aka ArrantSquid) | |
@description: | |
Writes out a clip file (for use in Houdini) based on maya attributes | |
passed in. | |
@usage: | |
main('some_object', ['scaleX','visibility'], 'some_dir') |
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
""" | |
Create a new list based upon whether or not the object in the list is a string or not (by utilizing isinstance - if we wanted to only find integers we'd change str to int). | |
""" | |
# Lame | |
my_list = ['a', 'b', 'c', '1', 1, 2, 'd', 'e', '2'] | |
new_list = [] | |
for object in my_list: | |
if isinstance(object, str): | |
new_list.append(object) |
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
""" | |
Waiting for OSX to install so I did this. | |
Words from here: | |
http://dictionary-thesaurus.com/wordlists.html | |
""" | |
import sys | |
import random | |
import urllib2 |
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
"""Generic messaging functions. | |
.. module:: none | |
:platform: Unix, Linux | |
:synopsis: Generic messaging functions | |
.. moduleauthor:: jneumann | |
.. usage:: | |
import generic_msg |
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
ABBR_US_STATES = ( | |
('AL', 'AL'), | |
('AK', 'AK'), | |
('AZ', 'AZ'), | |
('AR', 'AR'), | |
('CA', 'CA'), | |
('CO', 'CO'), | |
('CT', 'CT'), | |
('DE', 'DE'), | |
('DC', 'DC'), |
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
/* | |
object_creator_tutorial | |
Original file creation date: 2010-07-18 | |
Concept and scripting by John P. Neumann (john@animateshmanimate.com) http://animateshmanimate.com | |
This work is licensed under the 3-clause BSD ("New BSD License") license. | |
Licensing information is included in the download. | |
What is it: |
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
""" | |
Control Curve Deconstructor | |
Original file creation date: 2010-09-07 | |
Concept and scripting by John P. Neumann (john@animateshmanimate.com) http://animateshmanimate.com | |
This work is licensed under the 3-clause BSD ("New BSD License") license. | |
This is one of the most permissive licenses available, next to the MIT license. | |
In other words: Use it, Share it, Make it better, Give credit where it's due. Done. | |
OlderNewer