Skip to content

Instantly share code, notes, and snippets.

@yomybaby
yomybaby / example.js
Created June 15, 2012 05:57 — forked from salbito/gist:1165174
Backbone.sync for Titanium HttpClient and Titanium ACS API
// http://cloud.appcelerator.com/docs/api/v1/acls/create
var Backbone = require('/lib/backbone'),
_ = require('/lib/underscore');
var ReviewModel = Backbone.Model.extend({
modelNameForACS : 'Reviews' //just add Model Name of ACS
});
var ReviewCollection = Backbone.Collection.extend({
@pec1985
pec1985 / customnav.js
Created June 22, 2011 15:24
Custom Navigation Controller, compatible with Android and iPhone
// Flags, is this for Android or iPhone?
var iPhone = false;
var Android = false;
if(Ti.Platform.osname == 'iphone'){
iPhone = true
};
if(Ti.Platform.osname == 'android'){
Android = true
};