Skip to content

Instantly share code, notes, and snippets.


Anthony Decena Mindelusions

View GitHub Profile
View Array.prototype.recursiveArrayIterator.js
* Prototype for recursively iterating over an array of
* arrays.
* @author Dave Mackintosh
* @param callback function
Array.prototype.recursiveArrayIterator = function (cb) {
this.forEach(function (obj, inx) {
// If it's an array we want to fire another iterator
// with our parent array as a separate argument
19h / TiYoutube.js
Last active Nov 11, 2015
Titanium Mobile SDK iPhone / Android: Extract Youtube Video URL / URI from video-id / identification / name and play mp4 file. (Workaround for the recent change of security in Youtube)
View TiYoutube.js
Titanium.App.addEventListener("playvideo", function (e) {
var win11 = Titanium.UI.createWindow({
title: "Video",
zIndex: 222222
var activeMovie = Titanium.Media.createVideoPlayer({
fullscreen: !0,
autoplay: !0,