Skip to content

Instantly share code, notes, and snippets.

View lucasa's full-sized avatar

Lucas Alberto lucasa

View GitHub Profile
@lucasa
lucasa / mozilla_hubs_snap_shared_screen.js
Created February 22, 2021 01:55 — forked from AndreasH96/mozilla_hubs_snap_shared_screen.js
This code is based on a gist made by Utophia, https://gist.github.com/Utopiah/f2b11a8026030b726ecc8c8c9430a9b4 . It's made for being able to snap videos onto objects that are within object-groups. The code is made to be added into the file "floaty-objects.js" within the hubs client code base (2020-06-25).
snap(toSnap, snapOn) {
// Align rotation
toSnap.el.object3D.setRotationFromQuaternion(snapOn.object3D.getWorldQuaternion());
// Align position
toSnap.el.object3D.position.copy(snapOn.object3D.getWorldPosition());
// Set to same scale
toSnap.el.object3D.scale.copy(snapOn.object3D.getWorldScale());
// Move slightly to avoid texture tearing
'''
by Dealga McArdle, july 2011.
BEGIN GPL LICENSE BLOCK
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

Installing Panda on your local machine or server

This guide is an alternative to using the prebuilt AMI which includes all the software required to run Panda.

Please note that this guide been mainly tested on OSX and Ubuntu. Please post modifications to the mailing list if you try another platform.

Before starting, your system must have a working Ruby (1.8.x) installation along with Rubygems (>= 1.3.1) and MySQL running happily.

Install dependencies

@lucasa
lucasa / gist:2703114
Created May 15, 2012 16:35 — forked from kepstin/gist:2660431
Add 'POST' support to HTTP push stream.
From 560d117af2c88bc701cdc01a555de52e8a74527a Mon Sep 17 00:00:00 2001
From: Calvin Walton <calvin.walton@kepstin.ca>
Date: Fri, 11 May 2012 11:15:12 -0400
Subject: [PATCH] Add 'POST' support to HTTP push stream.
This allows ffmpeg's integral http support to be used to push streams
into the streaming server, with a command like:
ffmpeg -f alsa -i default -f v4l2 -s 640x360 -i /dev/video0 \
-c:v libvpx -b:v 500000 -c:a libvorbis -b:a 100000 -f webm \