Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Stevenson mstevenson

View GitHub Profile
View GameWindowMover.cs
using UnityEngine;
using UnityEditor;
//Version 0.21 | twitter:@izm update for DK2
//Version 0.2 | s.b.Newsom Edition
//Source from http://answers.unity3d.com/questions/179775/game-window-size-from-editor-window-in-editor-mode.html
//Modified by seieibob for use at the Virtual Environment and Multimodal Interaction Lab at the University of Maine.
//Use however you'd like!
@mstevenson
mstevenson / maya_sublime.mel
Last active Aug 29, 2015 — forked from fredrikaverpil/maya_sublime.py
Send selected code snippets to Maya via commandPort
View maya_sublime.mel
// Close ports if they were already open under another configuration
if (catch(`commandPort -name ":7001" -close True`)) {
warning "Could not close port 7001 (maybe it is not opened yet...)";
}
if (catch(`commandPort -name ":7002" -close True`)) {
warning "Could not close port 7002 (maybe it is not opened yet...)";
}
// Open new ports
commandPort -name ":7001" -sourceType "mel";
View ies2cycles.py
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@mstevenson
mstevenson / git_deploy.sh
Created Aug 13, 2011 — forked from victorcoder/git_deploy.sh
Git auto update hook for web deployment
View git_deploy.sh
echo "Enter an existing repository name:"
read REPONAME
cd /home/git/repositories/$REPONAME.git
echo "Configuring bare git repo..."
git --bare update-server-info
git config core.bare false
git config receive.denycurrentbranch ignore
git config core.worktree /var/www/$REPONAME
mkdir /var/www/$REPONAME