Skip to content

Instantly share code, notes, and snippets.

Working from home (duh)

Eriks Vitolins evitolins

Working from home (duh)
View GitHub Profile
import maya.cmds as cmds
import maya.mel as mel
What is this:
This is a simple script that will copy UV's from one mech to another. The meshes should be simular for best results.
It will copy the UV's to a rigged mesh or a non rigged mesh.
In order to run this script correctly, just select the mesh with the good UV's, then select the mesh with bad UV's.
kevinelliott /
Last active Oct 22, 2020
Mac OS X 10.11 El Capitan Setup

Mac OS X 10.11 El Capitan

Custom recipe to get OS X 10.11 El Capitan running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.10 Yosemite setup recipe (as found on this gist Note that I expect this to change significantly as I install El Capitan several times.

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

View bling.js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
NodeList.prototype.__proto__ = Array.prototype;
danharper / gulpfile.js
Last active Feb 22, 2021
New ES6 project with Babel, Browserify & Gulp
View gulpfile.js
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var browserify = require('browserify');
var watchify = require('watchify');
var babel = require('babelify');
function compile(watch) {
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel));
View gist:60d7327d945e65cc624d
def jointLock():
allJoints ='joint')
for joint in allJoints:
def jointUnlock():
allJoints ='joint')
for joint in allJoints:
# Create Dynamic Joint Chains
dynChain = lpDynamiChain(startJoint, endJoint)
def __init__(self, startJoint="", endJoint="", node=""):
""" Constructor. Creates the custom node.
jhoolmans /
Created Feb 24, 2014
Maya create soft cluster
import maya.cmds as mc
import maya.OpenMaya as om
def softSelection():
selection = om.MSelectionList()
softSelection = om.MRichSelection()
dagPath = om.MDagPath()
View lagrange.js
* At least two points are needed to interpolate something.
* @class Lagrange polynomial interpolation.
* The computed interpolation polynomial will be reffered to as L(x).
* @example
* var l = new Lagrange(0, 0, 1, 1);
* var index = l.addPoint(0.5, 0.8);
* console.log(l.valueOf(0.1));
* l.changePoint(index, 0.5, 0.1);
Mark-Booth / git-branch-status
Last active Aug 19, 2019 — forked from lth2h/git-branch-status
Version of git-branch-status which only shows the current branch and only generates output if a branch is ahead or behind.Added options to:* Show all branches (revert to the old behaviour)* Show output even if the branch isn't ahead or behind (revert to the old behaviour)* Show branch(es) with respect to origin/master (inspired by git-branches-v…
View git-branch-status
# hosted at
# forked from @ ae184f1 by mark.booth
# forked from @ e357c1e by lth2h
# ideas from
# this prints out some branch status
# (similar to the '... ahead' info you get from git status)
# example:
JamieMason /
Last active Mar 2, 2021
Check if a program exists from a bash script.Thanks to and for the help with detecting npm packages.
# Functions ==============================================
# return 1 if global command line program installed, else 0
# example
# echo "node: $(program_is_installed node)"
function program_is_installed {
# set to 1 initially
local return_=1