Use this shortcut to make your computer faster: ⌥+⇧+⌘+Q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this sets the background color of the master UIView (when there are no windows/tab groups on it) | |
var Kinvey = require('/services/kinvey-titanium-0.9.10'); | |
// | |
// create base UI tab and root window | |
// | |
var win = Titanium.UI.createWindow({ | |
title : 'Tab 1', | |
backgroundColor : '#fff' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// http://devcenter.kinvey.com/titanium/ | |
// | |
var Kinvey = require('kinvey-titanium-0.9.14'); | |
// new appcelerator facebook module | |
var FB = require('facebook'); | |
// my good friend momentjs | |
var moment = require('moment'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* this code was inspired by the work done by David Riccitelli | |
* | |
* Copyright 2011 Aaron K. Saunders, Clearly Innovative Inc | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function parseTheDashboardData(resp){ | |
var httpStatus = resp.meta.status, | |
httpMessage = resp.meta.msg, | |
dashboardPostsArray = resp.response.posts; | |
for (var i = 0; i < dashboardPostsArray.length; i++){ | |
var current=dashboardPostsArray[i]; | |
var blogName = current.blog_name, | |
blogID = current.id, |