Skip to content

Instantly share code, notes, and snippets.

@mrmurphy
mrmurphy / gist:2371974
Created April 12, 2012 23:53
Make error
[ 5%] Building CXX object lib/Alembic/AbcCoreAbstract/CMakeFiles/AlembicAbcCoreAbstract.dir/TimeSamplingType.cpp.o
cd /Users/Murphy/source/abcbuild/lib/Alembic/AbcCoreAbstract && /usr/bin/c++ -DDEBUG=1 -DPLATFORM_DARWIN -DPLATFORM=DARWIN -g -I/usr/local/Cellar/boost/1.49.0/include -I/usr/local/Cellar/ilmbase/1.0.2/include/OpenEXR -I/usr/local/include -I/Users/Murphy/source/abcsource/lib -UNDEBUG -Wall -Werror -Wextra -Wno-unused-parameter -fPIC -fPIC -o CMakeFiles/AlembicAbcCoreAbstract.dir/TimeSamplingType.cpp.o -c /Users/Murphy/source/abcsource/lib/Alembic/AbcCoreAbstract/TimeSamplingType.cpp
In file included from /Users/Murphy/source/abcsource/lib/Alembic/AbcGeom/ArchiveBounds.cpp:37:
In file included from /Users/Murphy/source/abcsource/lib/Alembic/AbcGeom/ArchiveBounds.h:40:
In file included from /Users/Murphy/source/abcsource/lib/Alembic/AbcGeom/Foundation.h:40:
In file included from /Users/Murphy/source/abcsource/lib/Alembic/Abc/All.h:44:
/Users/Murphy/source/abcsource/lib/Alembic/Abc/ArchiveInfo.
@import url(http://fonts.googleapis.com/css?family=Exo:900);
.bk-button-wrapper .pill {
position: relative;
color: rgba(255,255,255,1);
text-decoration: none;
background: rgba(219,87,5,1);
border: none;
font-family: \"Exo\", sans-serif;
font-weight: 800;
<methodResponse>
<params>
<param>
<value>
<array>
<data>
<value>
<struct>
<member>
<name>url</name>
@mrmurphy
mrmurphy / shallow.js
Created June 6, 2012 20:03
Shallow water implementation (Requires three.js)
/* Author: Murphy Randle
Just a very simple shallow water simulation.
Heavily helped by code from: Paul Lewis: http://aerotwist.com/
*/
var cam, scene, renderer, geo, mesh, mat, projector, grid;
// Params to change simulation:
var gridWidth = 65;
var gridRes = 58;
@mrmurphy
mrmurphy / gist:2918589
Created June 12, 2012 16:37
Homebrew bug report
==> Downloading http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-mac-gpl-4.9.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/pyqt-4.9.1.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/pyqt-4.9.1.tar.gz
==> python ./configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt/4.9.1/bin --destdir=/usr/local/Cellar/pyqt/4.9.1/lib/python2.7/site-packages --sipdir=/usr/local/Cellar/pyqt/4.9.1/share/sip
python ./configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt/4.9.1/bin --destdir=/usr/local/Cellar/pyqt/4.9.1/lib/python2.7/site-packages --sipdir=/usr/local/Cellar/pyqt/4.9.1/share/sip
Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.9.1 (licensed under the GNU General Public
License) for Python 2.7.1 on darwin.
Found the license file pyqt-gpl.sip.
Checking to see if the QtGui module should be built...
@mrmurphy
mrmurphy / gist:2918616
Created June 12, 2012 16:41
Output of brew doctor
➜ ~ brew doctor
Your system is raring to brew.
@mrmurphy
mrmurphy / gist:2918624
Created June 12, 2012 16:42
Brew config
➜ ~ brew --config
HOMEBREW_VERSION: 0.9
HEAD: 9ef5051ceca65d98e391c81a492ce7edfa76b53d
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.7.4
Kernel Architecture: x86_64
Xcode: 4.3.3
GCC-4.0: N/A
@mrmurphy
mrmurphy / ReadFontFromQRC.py
Created June 13, 2012 03:06
How to read a font from the .qrc file pyqt.
# Set up font:
self.fontDB = QtGui.QFontDatabase()
self.fontDB.addApplicationFont(":/resources/Bariol_Regular.otf")
self.setFont(QtGui.QFont("Bariol", 18))
@mrmurphy
mrmurphy / gist:2974955
Created June 22, 2012 20:20
Import all references from Maya
import pymel.core as pm
def importAllReferences():
print("Importing all references...")
done = False
while (done == False and (len(pm.listReferences()) != 0)):
refs = pm.listReferences()
print("Importing " + str(len(refs)) + " references.")
for ref in refs:
if ref.isLoaded():
done = False
@mrmurphy
mrmurphy / jsonToObject.py
Created September 18, 2012 15:37
Read a JSON file from disk into a python object
import json
class Jsobject(dict):
marker = object()
def __init__(self, value=None, file=False):
if not value:
pass
if file:
f = open(value)
value = json.loads(f.read())