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
#!/bin/bash | |
set -e | |
set -u | |
# install rust | |
if ! which cargo >/dev/null 2>&1 ; then | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | |
fi |
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
Set-StrictMode -Version 1.0 | |
$THIS_FILE = [System.IO.FileInfo]$MyInvocation.MyCommand.Path | |
$THIS_DIR = $THIS_FILE.Directory | |
Write-Host $THIS_DIR | |
$TEST_ROOT = "${THIS_DIR}\test_root" |
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
#!/bin/bash | |
set -e | |
mkdir ancestry_path_test | |
cd ancestry_path_test | |
git init | |
git checkout -b root | |
echo "R1" > root_file |
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
cmake_minimum_required(VERSION 3.12.0) | |
enable_testing() | |
if (${CMAKE_SYSTEM_NAME} MATCHES "Windows") | |
set(IS_WINDOWS TRUE) | |
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux") | |
set(IS_LINUX TRUE) | |
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | |
set(IS_MACOSX 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
set(mylist | |
"first item" | |
"second-item" | |
) | |
message("mylist: ${mylist}") | |
# mylist: first item;second-item | |
separate_arguments(mylist_sep WINDOWS_COMMAND "${mylist}") | |
message("mylist_sep: ${mylist_sep}") | |
# mylist_sep: first;item\;second-item |
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 cmake -P | |
cmake_minimum_required(VERSION 2.8) | |
# This results in this output: | |
# -- ======================== | |
# -- empty_var: "" | |
# -- ------- | |
# -- Unquoted parsing: print_args() | |
# -- ARGC: 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
# change to git root dir | |
cd "$(git rev-parse --show-toplevel)" | |
# Some commit reference points: | |
# 19a1e755c258c9ac0d7495fa0add62508ff377a1 - plugins/AL_USDMaya (initial import of pixar from submodule) | |
# 825ca13dd77af84872a063f146dee1799e8be25c - plugins/AL_USDMaya (some removals) | |
# 141bab7eba1d380868e822a51f8c8f85e1c0b66f - plugins/AL_USDMaya (identical contents as above) | |
# e5e10a28d0ba0535e83675399a5d15314fb79ec9 - plugin/al (renamed 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
#execfile('/Volumes/home/paulm/Desktop/testPolyComponentIdChanged.py') | |
import maya.cmds as cmds | |
import maya.api.OpenMaya as om | |
cmds.file(f=1, new=1) | |
cubeTrans = cmds.polyCube()[0] | |
cubeShape = cmds.listRelatives(cubeTrans)[0] | |
sel = om.MSelectionList() | |
sel.add(cubeShape) |
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 thread / original UnityScript version, see | |
// https://answers.unity.com/questions/306959/uv-mapping.html | |
using UnityEngine; | |
public class UVCubeMap : MonoBehaviour | |
{ | |
// using an image that is an 8x8 grid | |
// each image is 0.125 in width and 0.125 in height of the full image |
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 AnimCurve.setTime undo/redo - api only | |
import maya.OpenMaya as om | |
import maya.OpenMayaAnim as oma | |
import maya.cmds as cmds | |
cmds.file(new=1, f=1) | |
curve = cmds.createNode('animCurveTL') |
NewerOlder