Skip to content

Instantly share code, notes, and snippets.

@boredstiff
boredstiff / AlexKeyCommands.py
Last active August 29, 2015 14:23
Key-based Commands for Sublime Text
"""
Keybindings: Preferences > Key Bindings - User
(brackets included)
============
[
{"keys": ["ctrl+t"], "command": "toggle_side_bar"},
{"keys": ["ctrl+v"], "command": "paste_and_indent"},
{"keys": ["ctrl+shift+v"], "command": "paste"},
{ "keys": ["ctrl+shift+m"], "command": "open_msdn" },
{ "keys": ["ctrl+shift+m"], "command": "open_msdn" },
@boredstiff
boredstiff / testWritingEmptyNodes.js
Created July 17, 2015 22:41
Test - Writing Empty Node Attributes into DOM in Javascript
/*jslint vars: true, plusplus: true, devel: true, nomen: true, regexp: true, indent: 4, maxerr: 50 */
/*global $, CSInterface, SystemPath, themeManager, require */
var fs = require('fs');
var XMLSerializer = require('xmldom').XMLSerializer;
var path = require('path');
var constructDOM() {
'use strict';
try {
var data = document.createElement('div');
@boredstiff
boredstiff / webScraper.py
Created July 20, 2015 17:39
Quickly put together web scraper to find IDs of products on pages.
#!/usr/bin/python
"""
Web scraper for product IDs on web pages.
Dependencies:
lxml - pip install lxml
requests - pip install requests
"""
import os
@boredstiff
boredstiff / fkikBlendNodes.py
Last active August 29, 2015 14:25
fkikblendnodes
__author__ = 'Alex'
"""
FK: If attribute FKIKBlend attr is < 1, turn on vis.
IK: If attribute FKIKBlend attr is > 0, turn on vis.
"""
import pymel.core as pmc
LIKControlOff = pmc.PyNode('Nice_L_arm_IK_CTRL_WORLD_offset')
@boredstiff
boredstiff / stuff
Created August 23, 2015 22:41
Stuff
tdm-gcc
msysgit
cmder
vs2015
Notes of this:
https://training.docker.com/introduction-to-docker
https://training.docker.com/docker-fundamentals
https://training.docker.com/docker-operations
Docker:
Engine - program that enables containers to be built, shipped and run.
Engine uses Linux Kernel namespaces and control groups.
@boredstiff
boredstiff / gist:48b37c5775fed00d89da
Created September 17, 2015 22:02
rethinkdb / ubuntu 15.04
ubuntu 15.04
install Guest Additions image
restart
===========mount
$ sudo mount -t vboxsf shared_dev /home/win_dev
==========Sublime Text 3
http://c758482.r82.cf2.rackcdn.com/sublime-text_build-3083_amd64.deb
@boredstiff
boredstiff / buttonDefaultTest.py
Created November 23, 2015 18:15
PySideButtonTest
#!/usr/bin/env python
# encoding: utf-8
import traceback
import os
import sys
from PySide import QtGui, QtCore
class PySideButtonTest(QtGui.QDialog):
def __init__(self, parent=None):
@boredstiff
boredstiff / Maya2016VisualStudio2015.txt
Created January 21, 2016 03:40
Maya 2016 + Visual Studio 2015
MayaPluginWizard never works. Here's setting up a project from scratch.
File > New Project > Visual C++ > Win32 > Win 32 Project > Name it.
Win32 Application Wizard > Next > DLL
Additional Options > Empty Project checked > Finish
Main Window
Right-click Source Files > Create an empty .cpp file
@boredstiff
boredstiff / deleteMayaSignIn.py
Created October 9, 2016 01:31
Delete Maya 2017 Sign In Button
import pymel.core as pm
import shiboken2
import maya.OpenMayaUI as OMUI
from PySide2 import QtWidgets
def deleteSignInButton():
statusLine = pm.mel.eval('$tmp = $gStatusLineForm')
pointer = OMUI.MQtUtil_findControl(statusLine)
statusLine = shiboken2.wrapInstance(long(pointer), QtWidgets.QWidget)
mayaStatusShelf = statusLine.children()[1].children()[1]