Skip to content

Instantly share code, notes, and snippets.

@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 / 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
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 / stuff
Created August 23, 2015 22:41
Stuff
tdm-gcc
msysgit
cmder
vs2015
@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 / 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 / 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 / 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 / sublimeMaya.sublime-project
Created June 21, 2015 07:02
Sublime Maya Project Backup
{
"settings": {
"python_interpreter": "C:\\Program Files\\Autodesk\\Maya2016\\bin\\mayapy.exe",
"auto_complete_triggers": [{"selector":"source.python", "characters":"."}],
"auto_complete_function_params":"all",
"sublime_completions_visibility":"list",
"show_errors_on_save":true,
"lint_mode":"background",
"mark_style":"outline",
"keys": ["ctrl+alt+d"], "command": "sublime_jedi_docstring",
@boredstiff
boredstiff / meshSelListener.py
Created March 17, 2015 02:52
meshSelListener.py
#python
import lx
import lxu.object
import lxu.command
import lxifc
class AwSelListener(lxifc.SelectionListener):
running = False