Skip to content

Instantly share code, notes, and snippets.

View bboyle's full-sized avatar

Ben Boyle bboyle

View GitHub Profile
@bboyle
bboyle / UserSettings.json
Last active March 16, 2018 14:50
VS Code preferences
{
"files.trimTrailingWhitespace": true,
"workbench.colorTheme": "Monokai",
"editor.minimap.enabled": true,
"editor.renderWhitespace": "all",
"html.suggest.ionic": false,
"editor.insertSpaces": false,
"window.zoomLevel": 0,
"editor.formatOnPaste": true,
"javascript.implicitProjectConfig.checkJs": true,

Keybase proof

I hereby claim:

  • I am bboyle on github.
  • I am bboyle (https://keybase.io/bboyle) on keybase.
  • I have a public key ASBOMAENQCMV3Ey_xrG6yNcldK3Qd1gGabsQ-6OkSk32Bgo

To claim this, I am signing this object:

@bboyle
bboyle / backup.cmd
Last active October 16, 2017 18:22
Super simple backup script for windows
CHCP 65001
robocopy /mir "D:\Users\foo" "E:\Users\foo"
robocopy /mir "C:\foo\bar" "E:\foo\bar"
pause
@bboyle
bboyle / monokai.md
Last active November 6, 2016 10:27
Windows powershell colour schemes
Red Grn Blu Colour
39 40 34 Black
102 217 239 Cyan
166 226 46 Lime
102 217 239 Cyan
249 38 114 Red
249 38 114 Red
230 219 116 Yellow
207 207 194 Grey
@bboyle
bboyle / follow_cams.mel
Created May 13, 2015 15:33
Creates 4 follow cams attached to selected object. (Thanks to Nicole Herr at AnimationMentor for this!)
$object = `ls -sl`;
float $wsPivot[] = `xform -q -ws -rp $object`;
select -cl;
camera -n "Follow_Cam_Top" -hc "viewSet -p %camera";
camera -n "Follow_Cam_Persp" -hc "viewSet -t %camera";
Group; xform -t $wsPivot[0] $wsPivot[1] $wsPivot[2];
$GroupSel = `ls -sl`;
rename $GroupSel Follow_Cam_Constraint;
select "Follow_Cam_Top1";
@bboyle
bboyle / gist:42993458e70a30631c78
Created May 8, 2015 11:38
AM rig issue: controllers animate but geometry is frozen
# caused by setting keys on hidden controls in the rig.
# To fix the problem, do this
select -r "char_*:*_local_ctrl"
# ...then select the whole timeline, and delete all the keys there. The pigtails should work again.
# The new "select all" script should be
select -r `ls -o "char_*:*_ctrl.arAllCtrlList"`;
@bboyle
bboyle / stella-spine-select.mel
Created April 9, 2015 05:34
Stella spine selection
select -cl ;
select -r char_tribes_stella_shot_ready:stl_spine_fk_lower_ctrl ;
select -tgl char_tribes_stella_shot_ready:stl_spine_fk_upper_ctrl ;
select -tgl char_tribes_stella_shot_ready:stl_spine_fk_shoulder_ctrl ;
@bboyle
bboyle / GraphEditorToggle
Created March 21, 2015 02:36
Open/close Maya graph editor (MEL script)
if (`window -q -ex graphEditor1Window`)
deleteUI graphEditor1Window;
else
tearOffPanel "Graph Editor" "graphEditor" true;
@bboyle
bboyle / gist:6bbe27f400911872bad7
Created July 23, 2014 04:31
Radial layout CSS
.key li {
position: absolute;
-webkit-transform-origin: 50% 90px 0 true 50%;
}
.key ul {
position: absolute;
-webkit-transform: translateX(-32px) translateY(-64px)
}
.key li:nth-child(1) {
@bboyle
bboyle / AB-test.js
Created July 8, 2014 05:02
Quick and dirty AB testing
(function( $ ) {
'use strict';
// split traffic between this page and a B-variant
function ABredirect( path, weight, variationFunction ) {
path = path || '/index.html';
weight = weight || 0.5;
// is this the B-variant?
if ( window.location.pathname.indexOf( path ) === -1 ) {