Skip to content

Instantly share code, notes, and snippets.

View mfferreira's full-sized avatar
🏠
Working from home

Marco Ferreira mfferreira

🏠
Working from home
View GitHub Profile
/**
* @preserve
* Titanium Cloud Module
*
* This module is used across three distinct platforms (iOS, Android, and Mobile Web), each with their own architectural
* demands upon it.
*
* Appcelerator Titanium is Copyright (c) 2009-2010 by Appcelerator, Inc.
* and licensed under the Apache Public License (version 2)
*/
@mfferreira
mfferreira / gist:2467458
Created April 22, 2012 23:16 — forked from pulkitsinghal/gist:1481376
Move Git repository from Unfuddle to BitBucket
mkdir temp
cd temp
git clone git@yourDomain.unfuddle.com:yourDomain/yourRepoName.git
cd yourRepoName/
git remote rm origin
git remote add origin https://yourUsername@bitbucket.org/yourUsername/yourNewRepoName.git
git remote show origin
git push origin master
cd ../..
rm -rf temp
@mfferreira
mfferreira / gist:3279924
Created August 7, 2012 00:26 — forked from aaronpk/gist:2947274
Example of using sign up / log in methods of the Titanium SDK
geoloqi.init({
clientId: "xxxxxxx",
clientSecret: "xxxxxxx",
trackingProfile: "OFF", // Don't automatically start tracking
allowAnonymousUsers:false, // Don't automatically create a user when starting up the first time
pushAccount: "example@gmail.com", // Sets the push account to use for Android notifications
pushIcon: "push_icon" // Also required for Android push notifications
}, {
onSuccess:function(e) {
if (geoloqi.session==null) {
@mfferreira
mfferreira / gist:3896904
Created October 16, 2012 02:11 — forked from meeech/gist:3894108
sidemenu distilled
//Barebones example of how we do sidemenu in NirvanaHQ iOS app.
//You use this window as the container for your navGroup.
var rootWin = Titanium.UI.createWindow({
zIndex: 2,
width: '100%',
backgroundColor: '#f00',
listPanelVisible: false //Custom prop
});