OIIO build instructions currently just say this for Windows:
Method 1 - from source I really need someone to write correct, modern docs about how to build from source on Windows.
So I decided to figure that out.
"""Python utilies.""" | |
import os | |
import sys | |
def unload(pkg): | |
"""Unload all imports from the given package. | |
Args: |
import nuke | |
DELETE_AFTER = False | |
COLOR_CODE = True | |
COLOR_CODE_COL = 4282078975 | |
NUKE_VERSION = nuke.NUKE_VERSION_MAJOR + nuke.NUKE_VERSION_MINOR/10 | |
DEFAULT_MAPPINGS = "4 rgba.red 0 0 rgba.red 0 0 rgba.green 0 1 rgba.green 0 1 rgba.blue 0 2 rgba.blue 0 2 rgba.alpha 0 3 rgba.alpha 0 3" |
OIIO build instructions currently just say this for Windows:
Method 1 - from source I really need someone to write correct, modern docs about how to build from source on Windows.
So I decided to figure that out.
''' pqt_tableview3.py | |
explore PyQT's QTableView Model | |
using QAbstractTableModel to present tabular data | |
allow table sorting by clicking on the header title | |
used the Anaconda package (comes with PyQt4) on OS X | |
(dns) | |
''' | |
#coding=utf-8 |
Use case: You have repository A with remote location rA, and repository B (which may or may not have remote location rB). You want to do one of two things:
NB: Check out git subtree
/git submodule
and this Stack Overflow question before going through the steps below. This gist is just a record of how I solved this problem on my own one day.
Before starting, make sure your local and remote repositories are up-to-date with all changes you need. The following steps use the general idea of changing the remote origin and renaming the local master branch of one of the repos in order to combine the two master branches.
'''Example of a custom ReST directive in Python docutils''' | |
import docutils.core | |
from docutils.nodes import TextElement, Inline | |
from docutils.parsers.rst import Directive, directives | |
from docutils.writers.html4css1 import Writer, HTMLTranslator | |
class foo(Inline, TextElement): | |
'''This node class is a no-op -- just a fun way to define some parameters. | |
There are lots of base classes to choose from in `docutils.nodes`. |