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
function int[] swap (int arr1[]; int arr2[]) { | |
int temp[] = arr1; | |
arr1 = arr2; | |
arr2 = temp; | |
return {1}; | |
} | |
function int swap (int x; int y) { | |
int tmp = x; |
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
Write-Host "Watch this!" | |
$src_folders = @( | |
"folder_one-yo", | |
"folder_two-yo", | |
"folder_three-yo", | |
"HRMND_wavedata", | |
"HRMND_windtunnel", | |
"HRMND_zonalambience" | |
) |
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=0; $i<50; ++$i ) { | |
connectAttr -f nodeBlackBody.outCoord[$i] remapBlackBody.red[$i].rp; | |
connectAttr -f nodeBlackBody.outColor[$i].outColorR remapBlackBody.red[$i].rfv; | |
setAttr "remapBlackBody.ri" 2; | |
} | |
for( $i=0; $i<50; ++$i ) { | |
connectAttr -f nodeBlackBody.outCoord[$i] remapBlackBody.green[$i].gp; | |
connectAttr -f nodeBlackBody.outColor[$i].outColorG remapBlackBody.green[$i].gfv; | |
setAttr "remapBlackBody.gi" 2; |
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
// Copyright (C) 2000-2001 Michael Bazhutkin - Copyright (C) 2000 studio Klassika | |
// www.geocites.com/bazhutkin | |
// bazhutkin@mail.ru | |
// | |
// Rivet (button) 1.0 | |
// Script File | |
// MODIFY THIS AT YOUR OWN RISK | |
// | |
// Creation Date: April 13, 2001 | |
// |
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 bash | |
function get_maint() { | |
echo `sudo -u www-data php /var/www/nextcloud/occ maintenance:mode` | |
} | |
function set_maint() { | |
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on | |
} |
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
{"lastUpload":"2020-06-20T22:19:51.851Z","extensionVersion":"v3.4.3"} |
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
function easeExpo(beginValue, endValue, duration, offset) { | |
t = time - offset; | |
if (t < 0) return beginValue; | |
if (t > duration) return endValue; | |
if (beginValue.constructor == Array) { | |
x = 0; | |
y = 0; | |
z = 0; | |
if (beginValue.length == 2) { | |
x = easeExpo(beginValue[0], endValue[0], duration, offset); |
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
/* eslint-disable */ | |
// REQUIRE STATEMENTS | |
const fs = require('fs'), | |
path = require('path'), | |
gulp = require('gulp'), | |
pixrem = require( 'gulp-pixrem' ), | |
log = require('fancy-log'), | |
newer = require('gulp-newer'), | |
runSequence = require('run-sequence'), | |
sass = require('gulp-sass'), |
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 math | |
import os | |
import re | |
import json | |
from pprint import pprint | |
from collections import OrderedDict | |
from operator import add | |
import maya.cmds as cmds | |
import maya.mel as mel |
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 fixes a RRM bug (v1.4.7) where saved RRM setups do not preserve a | |
module's 'pinned' status. | |
''' | |
import maya.cmds as cmds | |
import maya.mel | |
def RRM_fixPinBug(objs): | |
for obj in objs: | |
trans = cmds.xform(obj,q=True, r=True, translation=True) | |
maya.mel.eval("RRM_PinProxies(1, 0);") |
NewerOlder