Skip to content

Instantly share code, notes, and snippets.

@codedependant
codedependant / authorized_keys_command
Created December 19, 2012 17:35
Run Command on SSH Login - authorized_keys
command="/root/scripttorun argument1",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty <public key>s
@codedependant
codedependant / Maya_Python_Select_Verticies_by_Material.py
Created November 12, 2012 09:21
Maya Python Select Verticies by Material
import pymel.core as pm
import maya.cmds as cmds
cmds.hyperShade(o="lambert1")
cmds.ConvertSelectionToVertices()
#shrink selected region to avoid border verticies
cmds.ShrinkPolygonSelectionRegion()
@codedependant
codedependant / Maya Python Per Pixel Expression.mel
Created November 12, 2012 09:17
Maya Python Per Particle Expression
After Dynamics Expression
global proc setPoint(float $_index,vector $_p){
setAttr("bezierShape"+1+".controlPoints["+($_index)+"].xValue",$_p.x);
setAttr("bezierShape"+1+".controlPoints["+($_index)+"].yValue",$_p.y);
setAttr("bezierShape"+1+".controlPoints["+($_index)+"].zValue",$_p.z);
}
int $id = nParticleShape1.particleId;
vector $p = nParticleShape1.position;
@codedependant
codedependant / css_center_horizontal_list.css
Created November 12, 2012 09:13
css Center Horizontal List
ul.carousel-dots
{
font-family:Verdana, Arial, Helvetica, sans-serif;
text-align: center;
padding-bottom: 0px;
padding-top: 0px;
padding-left: 0;
margin-top: 0;
margin-left: 0;
width: 100%;
@codedependant
codedependant / dabblet.css
Created October 9, 2012 13:27
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;