Skip to content

Instantly share code, notes, and snippets.

View aterribili's full-sized avatar

Abner Terribili aterribili

View GitHub Profile
@aterribili
aterribili / BNG_Pong_basicsphere
Last active December 24, 2019 19:56 — forked from nklsrh/BNG_Pong_basicsphere
Fix missing `)`
// ---------------------------------
// Based on Aerotwist's cool tutorial - http://www.aerotwist.com/tutorials/getting-started-with-three-js/
// ---------------------------------
// set up the sphere vars
// lower 'segment' and 'ring' values will increase performance
var radius = 5,
segments = 6,
rings = 6;
(function() {
if (Cordova.hasResource("youtubeUploader")) return;
Cordova.addResource("youtubeUploader");
function YouTubeUploader() {
}
YouTubeUploader.prototype.uploadVideo = function(file, success, fail) {