🏄♂️
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
<?xml version="1.0" encoding="UTF-8"?> | |
<ui version="4.0"> | |
<class>Form</class> | |
<widget class="QWidget" name="Form"> | |
<property name="geometry"> | |
<rect> | |
<x>0</x> | |
<y>0</y> | |
<width>961</width> | |
<height>651</height> |
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 uifileloader | |
# Load Qt bindings via Qt wrapper | |
# Source: https://github.com/mottosso/Qt | |
from Qt import __binding__ | |
UI_FILE = 'my_ui.ui' | |
# form and base from uifileloader | |
form, base = uifileloader.uifileloader().load_ui_type( |
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
" ---------------------------------- " | |
" General settings | |
" ---------------------------------- " | |
set nocompatible " not vi compatible | |
set backspace=2 " make backspace work like most other apps | |
set encoding=utf8 | |
syntax on | |
set number " show line numbers | |
set noerrorbells |
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 maya.cmds as cmds | |
def set_selected_geotype(n): | |
""" Source this function in Maya, then run one of the following: | |
set_selected_geotype(n=0) # Placeholder | |
set_selected_geotype(n=1) # Bounding box | |
set_selected_geotype(n=2) # Preview | |
set_selected_geotype(n=3) # Maya mesh | |
set_selected_geotype(n=4) # GPU Cache |
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 maya.cmds as cmds | |
import json | |
# Create the dictionary "data" with shadergroup as key | |
data = {} | |
shaders = cmds.ls(type='shadingEngine') | |
for shader in shaders: | |
data[shader] = [] | |
# Append all shapes to each shadergroup-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
[Unit] | |
Description=/etc/rc.local.shutdown Compatibility | |
After=rc-local.service | |
[Service] | |
Type=oneshot | |
ExecStart=/etc/rc.local.shutdown | |
StandardInput=tty | |
RemainAfterExit=yes |
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 xgenm as xg | |
#import xgenm.xgGlobal as xgg | |
collections = xg.palettes() | |
for c in collections: | |
descriptions = xg.descriptions(c) | |
for d in descriptions: | |
print 'Collection:', c | |
print 'Description:', d | |
for dp in xg.descriptionPatches(d): |
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
REM install choco | |
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin | |
REM install atom with packages | |
choco install atom -y | |
apm install linter-flake8 | |
apm install linter-docker | |
apm install linter-jsonlint | |
apm install pretty-json | |
apm install script |
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
C:\nupkgs\vcpython27\tests>install | |
C:\nupkgs\vcpython27\tests>choco install vcpython27 -fdv --source="'C:\nupkgs\vcpython27\tests;https://chocolatey.org/api/v2/'" -y --debug | |
Chocolatey is running on Windows v 10.0.10240.0 | |
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old". | |
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old". | |
Command line: "C:\ProgramData\chocolatey\choco.exe" install vcpython27 -fdv --source="'C:\nupkgs\vcpython27\tests;https://chocolatey.org/api/v2/'" -y --debug | |
Received arguments: install vcpython27 -fdv --source='C:\nupkgs\vcpython27\tests;https://chocolatey.org/api/v2/' -y --debug |
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 os | |
import maya.cmds | |
def generateChunks( start, end, chunk_size ): | |
''' | |
Given a start, end and chunk size, spit out lists of frames. | |
''' | |
i = int(start) | |
while i < end: |