Skip to content

Instantly share code, notes, and snippets.

(function() {
return {
preload: function(entityID) {
print("Preload 2: ", entityID);
this.entityID = entityID;
Script.update.connect(this, this.update);
},
unload: function() {
print("Unload 2: ", this.entityID);
Script.update.disconnect(this, this.update);
(function() {
return {
preload: function(entityID) {
print("Preload 1: ", entityID);
this.entityID = entityID;
},
unload: function() {
print("Unload 1: ", this.entityID);
}
}
//
// cylinderBlock.js
//
// Created by David Rowe on 25 Oct 2016.
// Copyright 2015 High Fidelity, Inc.
//
// This script displays a progress download indicator when downloads are in progress.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
// MenuItem.qml
//
// Created by Clement on 7/18/16
// Copyright 2016 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
Agent.isAvatar = true;
//
// reset.js
//
// Created by James B. Pollack @imgntn on 3/14/2016
// Copyright 2016 High Fidelity, Inc.
//
// This cleanups up and creates content for the home.
// To begin, it finds any entity with the home reset key in its user data and deletes it.
// Next, it creates 'scripted entities', or objects that have scripts attached to them.
// Then it creates 'kinetic entities', or objects that need to be reset but have no scripts attached.
// ==UserScript==
// @name Robin Grow
// @namespace http://tampermonkey.net/
// @version 1.31
// @description Try to take over the world!
// @author /u/mvartan
// @include https://www.reddit.com/robin*
// @updateURL https://github.com/vartan/robin-grow/raw/master/robin.user.js
// @grant GM_getValue
// @grant GM_setValue
@birarda
birarda / baseball.js
Last active October 21, 2015 23:12
baseball.js
//
// baseball.js
// examples/toys
//
// Created by Stephen Birarda on 10/20/15.
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
//
// loadTestServers.js
// examples/utilities/diagnostics
//
// Created by Stephen Birarda on 05/08/15.
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
@birarda
birarda / QtGlCoreFix.patch
Last active August 29, 2015 14:27
Qt OS X GL Core Patch
diff --git a/qtwebkit/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp b/qtwebkit/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
index d4ace36..e949304 100644
--- a/qtwebkit/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
+++ b/qtwebkit/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
@@ -442,7 +442,16 @@ void GraphicsContext3D::compileShader(Platform3DObject shader)
ASSERT(shader);
makeContextCurrent();
- String translatedShaderSource = m_extensions->getTranslatedShaderSourceANGLE(shader);
+ String translatedShaderSource;