Skip to content

Instantly share code, notes, and snippets.

/*!
* Parse JavaScript SDK
* Version: 1.5.0
* Built: Fri Jul 10 2015 17:05:46
* http://parse.com
*
* Copyright 2015 Parse, LLC
*
* Includes: Underscore.js
* Copyright 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
@nitrag
nitrag / ti-download-simple
Created March 16, 2015 14:08
Titanium file download function (not working large files)
function download(localFile, remoteFile, name){
var progressBar = Titanium.UI.createProgressBar({
width: "80%", //describes the width
height:50, //describes the height
bottom: "25%",
min:0, //Minimum position
max:1, //Maximum value for the progress
value:0,
color: '#fff',
message: 'Downloading ' + name + '...',
/*!
* Parse JavaScript SDK
* Version: 1.3.2
* Built: Fri Nov 21 2014 16:31:10
* http://parse.com
*
* Copyright 2014 Parse, Inc.
* The Parse JavaScript SDK is freely distributable under the MIT license.
*
* Includes: Underscore.js