Skip to content

Instantly share code, notes, and snippets.

View carter2422's full-sized avatar

Jonathan Williamson carter2422

View GitHub Profile
function cgc_mixpanel_js() {
global $user_login;
get_currentuserinfo();
?>
<!-- Mixpanel -->
<script type="text/javascript">
(function(e,b){if(!b.__SV){var a,f,i,g;window.mixpanel=b;a=e.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"===e.location.protocol?"https:":"http:")+'//cdn.mxpnl.com/libs/mixpanel-2.2.min.js';f=e.getElementsByTagName("script")[0];f.parentNode.insertBefore(a,f);b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!==
@carter2422
carter2422 / operator_modal.py
Created January 29, 2014 21:38
Quick Modifiers Modal
import bpy
from bpy.props import IntProperty, FloatProperty
class ModalOperator(bpy.types.Operator):
"""Move an object with the mouse, example"""
bl_idname = "object.modal_operator"
bl_label = "Simple Mirror"
first_mouse_x = IntProperty()
@carter2422
carter2422 / __init__.py
Created June 29, 2013 04:19
Quick Tools __init__.py with keymap addon preferences.
bl_info = {
"name": "Quick Tools",
"description": "A series of tools and menus to enhance and speed up workflow",
"author": "Jonathan Williamson",
"version": (0, 8),
"blender": (2, 6, 7),
"location": "View3D - 'Q' key gives a menu in Object, Edit, and Sculpt modes.",
"warning": '', # used for warning icon and text in addons panel
"wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/3D_interaction/quicktools",
"tracker_url": "https://github.com/CGCookie/script-bakery/issues",
@carter2422
carter2422 / __init__.py
Last active December 19, 2015 01:49
Quick Tools add-on
bl_info = {
"name": "Quick Tools",
"description": "A series of tools and menus to enhance and speed up workflow",
"author": "Jonathan Williamson",
"version": (0, 8),
"blender": (2, 6, 7),
"location": "View3D - 'Q' key gives a menu in Object, Edit, and Sculpt modes.",
"warning": '', # used for warning icon and text in addons panel
"wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/3D_interaction/quicktools",
"tracker_url": "https://github.com/CGCookie/script-bakery/issues",