Skip to content

Instantly share code, notes, and snippets.

View mcvendrell's full-sized avatar
🎓
Always learning

Manuel Conde Vendrell mcvendrell

🎓
Always learning
View GitHub Profile
@SquirrelMobile
SquirrelMobile / alloy.js
Created January 30, 2018 12:05
Upload large video from Axway Titanium mobile application (iOS / Android) and save the video with PHP script
//Download and install widget loader : https://github.com/FokkeZB/nl.fokkezb.loading
Alloy.Globals.loading = Alloy.createWidget("nl.fokkezb.loading");
@Topener
Topener / index.js
Last active June 13, 2019 06:53
Simple example how to work with collections data-binding in Alloy, including filter, sorting, data transform and manual refresh
$.Departures.comparator = sortDepartures;
$.Departures.reset([]);
var sortByName = true;
function transformDeparture(model){
if (!model || !model.get('destination')){
console.warn(model.toJSON());
}
var time = require('Date').formatTime(model.get('time'));
@falkolab
falkolab / alloy.js
Last active February 7, 2016 02:58
Network state monitor for Titanium SDK
require('networkMonitor').init();
require('uiModules')