This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* QR Code + Logo Generator | |
* | |
* http://labs.nticompassinc.com | |
*/ | |
$data = isset($_GET['data']) ? $_GET['data'] : 'http://labs.nticompassinc.com'; | |
$size = isset($_GET['size']) ? $_GET['size'] : '200x200'; | |
$logo = isset($_GET['logo']) ? $_GET['logo'] : FALSE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* QR Code + Logo Generator | |
* | |
* http://labs.nticompassinc.com | |
*/ | |
$data = isset($_GET['data']) ? $_GET['data'] : 'http://labs.nticompassinc.com'; | |
$size = isset($_GET['size']) ? $_GET['size'] : '200x200'; | |
$logo = isset($_GET['logo']) ? $_GET['logo'] : FALSE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// important: note the priority of 99, the js needs to be placed after tinymce loads | |
// important: note that this assumes you're using http://wordpress.org/extend/plugins/verve-meta-boxes/ | |
// to create the textarea - otherwise change your selector | |
function admin_add_wysiwyg_custom_field_textarea() | |
{ ?> | |
<script type="text/javascript">/* <![CDATA[ */ | |
jQuery(function($){ | |
var i=1; | |
$('.verve_meta_box_content textarea').each(function(e) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pymel.core as pm; | |
class MirrorControl(object): | |
def __init__(self): | |
#store your controls in a variable | |
controls=pm.ls(sl= True); | |
#calling our class attribute to mirror the controls | |
self.mirrorControls(controls); | |
def mirrorControls(self,*args): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Created on 28 Sep 2014 | |
@author: [email protected] | |
''' | |
import pymel.core as pm; | |
from functools import partial; | |
class JointCurve(object): | |
def __init__(self): | |
#window name and set up, variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* themes class | |
* included on page templates by use of | |
* a template redirect hook | |
*/ | |
class ThemeClass | |
{ | |
protected $data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template Name: mytemplate-page | |
* Description: a template page using a class | |
* | |
*/ | |
?> | |
<?php | |
$args = array( | |
"type"=>"post_type_name", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import maya.OpenMaya as om; | |
class MyClass(object): | |
def __init__(self): | |
#instantiating selection list function set | |
selectionList=om.MSelectionList(); | |
#get currect selected object and put it into the selectionlist | |
om.MGlobal.getActiveSelectionList(selectionList); | |
self.getObject(selectionList); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pymel.core as pm; | |
class MirrorControl(object): | |
def __init__(self): | |
#store your controls in a variable | |
controls=pm.ls(sl= True); | |
#calling our class attribute to mirror the controls | |
self.mirrorControls(controls); | |
def mirrorControls(self,*args): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "keys": ["ctrl+shift+s"], "command": "auto_save" }, | |
{ "keys": ["ctrl+/"], "command": "toggle_comment", "args": { "block": false } }, | |
{ "keys": ["ctrl+shift+/"], "command": "toggle_comment", "args": { "block": true } }, | |
{"keys":["ctrl+r"] , | |
"caption": "SublimeREPL: Python - RUN current file", | |
"command": "run_existing_window_command", |
OlderNewer