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
cachedImageView = function(basedir, uri, obj, attr, cacheage) { | |
/** | |
Appcelerator Titanium ImageView /w cache | |
This function attempts to cache a remote image and then returns it again | |
when it's requested. | |
The file is stored in a directory "basedir," this is to try and help | |
you keep files unique. It's not special or magical, but not dirty either. |
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
//include StackMob & credentials module | |
var credentials = require('credentials').C; | |
var stackmob = require('stackmob-module.min'); | |
//create StackMob Client | |
var client = new stackmob.Client(credentials.STACKMOB_APP_NAME, credentials.STACKMOB_PUBLIC_KEY, credentials.STACKMOB_PRIVATE_KEY, credentials.STACKMOB_USER_OBJECT_NAME); | |
//login the user | |
client.login({ | |
'username' : "aaron-B1FBD26C-89B1-49E3-B4C4-F319493324DB", |
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
// right navigation button | |
var btn = Ti.UI.createButton({ | |
title:'button' | |
}); | |
// window | |
var win = Ti.UI.createWindow({ | |
rightNavButton:btn, | |
backgroundColor:'blue' | |
}); |
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
var UI = {}; | |
var W = {}; | |
var V = {}; | |
var AUTODETECT_NONE = Ti.UI.iOS.AUTODETECT_NONE; | |
var AUTODETECT_ALL = Ti.UI.iOS.AUTODETECT_ALL; | |
var AUTODETECT_PHONE = Ti.UI.iOS.AUTODETECT_PHONE; | |
var AUTODETECT_LINK = Ti.UI.iOS.AUTODETECT_LINK; | |
var AUTODETECT_ADDRESS = Ti.UI.iOS.AUTODETECT_ADDRESS; | |
var AUTODETECT_CALENDAR = Ti.UI.iOS.AUTODETECT_CALENDAR; |
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
:Suffolk-Chamber iantearle$ make run | |
No platform selected... running as iphone. | |
Building with Titanium... | |
PROJECT_ROOT='/Users/iantearle/Titanium/Suffolk-Chamber' DEVICE_TYPE= bash '/Users/iantearle/Titanium/Suffolk-Chamber/bin/titanium.sh' | |
[DEBUG] Titanium not found... Testing another directory | |
[DEBUG] Titanium not found... Testing another directory | |
[DEBUG] Titanium exists... | |
[DEBUG] Titanium SDK 1.8.0.1 found... | |
/Users/iantearle/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py | |
No matching processes belonging to you were found |
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() { | |
HeritageApp.ui.createMapListWindow = function () { | |
var mapListWindow = Titanium.UI.createWindow({ | |
id: 'mapListWindow', | |
title: 'Heritage', | |
backgroundColor: '#efece9', | |
barImage: HeritageApp.ui.barImage, | |
navBarHidden: false, | |
fullscreen: false | |
}); |
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 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 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
(FILE LOCATION iphone/Classes/PlausibleDatabase/PLSqliteDatabase.h) | |
/* | |
* Copyright (c) 2008 Plausible Labs Cooperative, Inc. | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* 1. Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. |
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
var sex = (male == 1) ? 'male' : 'female'; | |
var data = { | |
email: email.value, | |
first_name: global.user_names[0], | |
last_name: global.user_names[1], | |
password: password.value, | |
password_confirmation: password.value, | |
custom_fields: '{ "dob": "'+ dob.value +'", "sex": "'+ sex +'" }' // REMOVE THIS LINE IT ALL WORKS... HAVE HAD MULTIPLE PEDRMEATATIONS, SO THIS WAY MAY NOT BE THE ONLY CAUSE OF THIS NOT WORKING, JUST THE LAST ONE I TRIED. | |
}; | |
sdk.sendRequest('users/create.json', 'POST', data, false, callback); |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<link href="bootstrap/css/bootstrap.css" rel="stylesheet"> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>New Appcelerator Cloud Services Project</title> | |
<script type="text/javascript"> | |
function onBodyLoad() { |
OlderNewer