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
// Used to prompt a user for how to open an address, or open automatically, based on the platform. | |
function openAddress(destAddr, startAddr) { | |
var destParam = ''; | |
var startParam = ''; | |
if (typeof destAddr !== 'undefined') { | |
destParam = '&daddr=' + encodeURIComponent(destAddr); | |
} | |
if (typeof startAddr !== 'undefined') { | |
startParam = '&saddr=' + encodeURIComponent(startAddr); | |
} |
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
/* | |
* Used to interact with the Bit.LY API. | |
* Written by: Josh Lambert | |
* Twitter: @zettageek | |
* Email: hi@centrevilletech.com | |
* Version: 1.0 | |
*/ | |
var apiKey, | |
apiVersion = 'v3', |
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
// Used to fake hintText coloring to the font color. | |
// Requires hintText to be defined on the object being passed. | |
function hintTextShim(uiObject, isPswd) { | |
uiObject.objectFocus = function () { | |
if (uiObject.value === uiObject.hintText) { | |
if (typeof isPswd !== 'undefined' && isPswd === true) { | |
uiObject.passwordMask = true; | |
} | |
uiObject.value = ''; | |
} |
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
$query = mysqli_query($connection,"INSERT INTO `child_menu_details` (`id`, `parent_id`, `child_id`, `date`, `lunch`, `side1`, `side2`, `side3`, `side4`, `size`, `smoothie`, `orderDate`) | |
VALUES (NULL, '".$parentid."', '".$childid."', '".$date."' ,'".$lunch."', '".$side1."', '".$side2."', '".$side3."', '".$side4."', '".$size."', '".$smoothie."', '".$orderDate."')"); |
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 dump(arr,level) { | |
var dumped_text = ""; | |
if(!level) level = 0; | |
//The padding given at the beginning of the line. | |
var level_padding = ""; | |
for(var j=0;j<level+1;j++) level_padding += " "; | |
if(typeof(arr) == 'object') { //Array/Hashes/Objects | |
for(var item in arr) { |
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 mainWindow = Ti.UI.createWindow(); | |
var myView = Ti.UI.createView({ | |
width:500, | |
height:500, | |
left:-500, | |
backgroundColor:blue | |
}); | |
mainWindow.add(myView); |
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
/* | |
* Originally written by: billythekid. | |
* https://twitter.com/billythekid | |
* | |
* Modified by: Joshua Lambert. | |
* https://twitter.com/zettageek | |
* | |
* Changelog: | |
* - Added array output. | |
* - Added ability to pass in custom end timestamp. |
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
-------------------------------------------------- | |
Code | |
-------------------------------------------------- | |
AppContext.Storekit.requestProducts(['com.testproduct.lite.pm1'], function (evt) { | |
displayLog(JSON.stringify(evt)); | |
if (!evt.success) { | |
alert('ERROR: We failed to talk to Apple!'); | |
} | |
else if (evt.invalid) { |
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
[INFO] One moment, building ... | |
[INFO] Detected third-party module: ti.storekit/1.6.1 | |
[INFO] Detected third-party module: ti.storekit/1.6.1 | |
[INFO] Titanium SDK version: 2.1.3 (10/02/12 16:16 15997d0) | |
[INFO] iPhone Device family: iphone | |
[INFO] iPhone SDK version: 5.0 | |
[INFO] iPhone simulated device: iphone | |
[INFO] Performing full rebuild. This will take a little bit. Hold tight... | |
[INFO] Minimum iOS version: 4.0 Linked iOS Version 5.0 | |
[INFO] Performing clean build |
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
followMeSwtichCheckbox.eventOverride = false; | |
followMeSwtichCheckbox.addEventListener('change', function(e) { | |
if (followMeSwtichCheckbox.eventOverride == false) { | |
if (checkSOSactive() == false) { | |
alert('SOS inactive.'); | |
} else { | |
followMeSwtichCheckbox.eventOverride = true; | |
if (followMeSwtichCheckbox.value == true) { | |
followMeSwtichCheckbox.value = false; |
NewerOlder