This file contains hidden or 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
| { | |
| "username": "TEST-FACEBOOK-USER", | |
| "fb": { | |
| "id": "100001720461935", | |
| "timezone": -5, | |
| "username": "ClearlyInnovative", | |
| "locale": "en_US", | |
| "link": "http://www.facebook.com/ClearlyInnovative", | |
| "email": "aaron@clearlyinnovative.com", | |
| "verified": true, |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8"?> | |
| <TabHost xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:id="@android:id/tabhost" | |
| android:layout_width="fill_parent" | |
| android:layout_height="fill_parent"> | |
| <LinearLayout | |
| android:orientation="vertical" | |
| android:layout_width="fill_parent" | |
| android:layout_height="fill_parent" |
This file contains hidden or 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
| /* | |
| Custom logger | |
| // usage | |
| var console = require('/logger'); | |
| console.log({sdf:"df"}, [1,3,5,6], "sdfsdf"); | |
| */ | |
| exports.log = function() { | |
| if(Ti.App.Properties.getBool('production')==false) { |
This file contains hidden or 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 RateMe(ios_url, goog_url, usecount) { | |
| if(!Ti.App.Properties.hasProperty('RemindToRate')) { | |
| Ti.App.Properties.setString('RemindToRate', 0); | |
| } | |
| var remindCountAsInt = parseInt(Ti.App.Properties.getString('RemindToRate'), 10); | |
| var newRemindCount = remindCountAsInt += 1; | |
| if(remindCountAsInt === -1) { | |
| // the user has either rated the app already, or has opted to never be | |
| // reminded again. |
This file contains hidden or 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 file located in /Library/Application Support/Titanium/mobilesdk/osx/{version_number} | |
| // add the following methods to GeolocationModule.mm | |
| - (void)locationManager:(CLLocationManager *)manager didEnterRegion:(CLRegion *)region | |
| { | |
| NSDictionary *event = [NSDictionary dictionaryWithObjectsAndKeys:NUMBOOL(YES),@"success",[NSDictionary dictionaryWithObjectsAndKeys:NUMDOUBLE(region.center.latitude),@"lat",NUMDOUBLE(region.center.longitude),@"lng",NUMDOUBLE(region.radius),@"radius",region.identifier,@"identifier",nil],@"region",nil]; | |
| if ([self _hasListeners:@"enteredRegion"]) | |
| { | |
| [self fireEvent:@"enteredRegion" withObject:event]; |
This file contains hidden or 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
| Titanium Android Modules | |
| -------------------------------------- | |
| - https://github.com/dbankier/TiKeyguard-Android | |
| Appcelerator/Titanium module to unlock and power on an Android device. | |
| - https://github.com/dbankier/TiSIPClient-Android | |
| SIP/VoIP for Appcelerator's Titanium (Android) | |
| - https://github.com/3ign0n/TiOpenStreetMap |
This file contains hidden or 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
| //Customise Backbone.sync to work with Titanium rather than jQuery | |
| var getUrl = function(object) { | |
| if (!(object && object.url)) return null; | |
| return _.isFunction(object.url) ? object.url() : object.url; | |
| }; | |
| Backbone.sync = (function() { | |
| var methodMap = { | |
| 'create': 'POST', | |
| 'read' : 'GET', |
This file contains hidden or 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
| /** | |
| * Courtesy of Jeff Bonnes | |
| * http://www.titaniumdevelopment.com.au/blog/2011/09/12/debugging-ipad-performance-and-memory-usage/ | |
| */ | |
| /** | |
| * Modified to a commonJS format by Stephen Feather | |
| * Usage: | |
| * var Tracer = require('/lib/tracer'); |
This file contains hidden or 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://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({ |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!--Google Weather API Conditions. Compiled by Dennis Delimarsky, http://dennisdel.com/content/conditions.xml--> | |
| <!--Tweaked by Brian Zerangue, February 1, 2011--> | |
| <conditions> | |
| <type handle="partly-sunny">Partly Sunny</type> | |
| <type handle="scattered-thunderstorms">Scattered Thunderstorms</type> | |
| <type handle="showers">Showers</type> | |
| <type handle="scattered-showers">Scattered Showers</type> | |
| <type handle="rain-and-snow">Rain and Snow</type> | |
| <type handle="overcast">Overcast</type> |