Skip to content

Instantly share code, notes, and snippets.

@birarda
birarda / gist:9468210
Last active August 29, 2015 13:57
FindQxmpp
# Try to find the qxmpp library
#
# You can provide a QXMPP_ROOT_DIR which contains lib and include directories
#
# Once done this will define
#
# QXMPP_FOUND - system found qxmpp
# QXMPP_INCLUDE_DIRS - the qxmpp include directory
# QXMPP_LIBRARIES - Link this to use qxmpp
#
@birarda
birarda / perlin.js
Created April 14, 2014 19:53
landscape generation script for High Fidelity
//
// perlin.js
//
// Copyright 2013 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
//
// Ported from Stefan Gustavson's java implementation
@birarda
birarda / auth_with_access_token.patch
Created May 2, 2014 17:14
Patch to allow doorkeeper authorization with an existing access token
From e29f4f1b84d77185bc0f2b98caaecf4d6f76d676 Mon Sep 17 00:00:00 2001
From: Stephen Birarda <commit@birarda.com>
Date: Fri, 2 May 2014 10:12:51 -0700
Subject: [PATCH] patch to allow doorkeeper authorization with access_token
---
app/views/doorkeeper/authorizations/new.html.erb | 2 ++
config/initializers/doorkeeper.rb | 8 +++++++-
2 files changed, 9 insertions(+), 1 deletion(-)

Keybase proof

I hereby claim:

  • I am birarda on github.
  • I am birarda (https://keybase.io/birarda) on keybase.
  • I have a public key whose fingerprint is 1DCA 918D C7D7 52B9 1473 53D9 4ECC EBDD 8CC4 EE2A

To claim this, I am signing this object:

--- qt-everywhere-opensource-src-5.2.1/qtbase/src/plugins/bearer/corewlan/qcorewlanengine.mm 2014-05-16 14:21:30.000000000 -0700
+++ qt-everywhere-opensource-src-5.2.1/qtbase/src/plugins/bearer/corewlan/qcorewlanengine.mm 2014-05-16 14:21:43.000000000 -0700
@@ -62,6 +62,7 @@
#include <net/if.h>
#include <ifaddrs.h>
+#ifndef QT_NO_BEARERMANAGEMENT
#if QT_MAC_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_7, __IPHONE_NA)
@interface QT_MANGLE_NAMESPACE(QNSListener) : NSObject
@birarda
birarda / gist:5c3e0f4979279eb6c959
Created July 24, 2014 20:17
corewlan-bearer.5.3.1.patch
--- qt-everywhere-opensource-src-5.2.1/qtbase/src/plugins/bearer/corewlan/qcorewlanengine.mm 2014-07-24 13:15:47.000000000 -0700
+++ qt-everywhere-opensource-src-5.2.1/qtbase/src/plugins/bearer/corewlan/qcorewlanengine.mm 2014-07-24 13:15:37.000000000 -0700
@@ -62,6 +62,7 @@
#include <net/if.h>
#include <ifaddrs.h>
+#ifndef QT_NO_BEARERMANAGEMENT
#if QT_MAC_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_7, __IPHONE_NA)
@interface QT_MANGLE_NAMESPACE(QNSListener) : NSObject
@birarda
birarda / default.rb
Last active August 29, 2015 14:09 — forked from a-chernykh/default.rb
default[:tbb][:version] = '4.2-20140122oss'
default[:tbb][:url] = 'https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb42_20140122oss_src.tgz'
default[:tbb][:sha] = 'f1bd8d983f93a10e340ba63f3a479632ddca1562a5242814dd82a378d3233b75'
--- /qtbase/src/plugins/bearer/corewlan/qcorewlanengine.mm
+++ /qtbase/src/plugins/bearer/corewlan/qcorewlanengine.mm
@@ -62,6 +62,8 @@ extern "C" { // Otherwise it won't find CWKeychain* symbols at link time
#include <net/if.h>
#include <ifaddrs.h>
+#ifndef QT_NO_BEARERMANAGEMENT
+
@interface QT_MANGLE_NAMESPACE(QNSListener) : NSObject
{
@birarda
birarda / gist:02eda8377a70fa916222
Created July 17, 2015 22:19
manyConnections.js
//
// manyConnections.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 / AudioScripting.md
Created August 7, 2015 23:33
High Fidelity Audio Scripting Overview (current as of August 7th, 2015)

Audio Scripting Overview

Sound Files

To setup a Sound, you ask the SoundCache for it first. This will return a Sound object.

var latinSound = SoundCache.getSound(HIFI_PUBLIC_BUCKET + "sounds/Lobby/latin.stereo.raw")

This either downloads the sound for you or grabs it from the cache. Note that because raw files do not include a header you have the option to name them as “.stereo.raw” to indicate that the file is stereo.