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
// get the users information | |
Ti.Facebook.requestWithGraphPath('me', {}, 'GET', function(e) { | |
if (e.success) { | |
// store information from the user in local gloabl variables | |
var user = JSON.parse(e.result); | |
Ti.App.Properties.setString('fullname', user.name); | |
Ti.App.Properties.setString('email', user.email); | |
Ti.App.Properties.setString('locale', user.locale); |
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
var thumb = 'http://www.mlteam.com/projects/swipswap/phpThumb/phpThumb.php/'; | |
return thumb + 'zc=1;' + w + 'x' + h + ';' + url; |
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
dialog.addEventListener('click',function(e) | |
{ | |
switch(e.index){ | |
case 0: | |
var intent = Ti.Android.createIntent({ | |
action : "android.media.action.IMAGE_CAPTURE" | |
}); | |
var tmpfile = Ti.Filesystem.getFile(Ti.Filesystem.externalStorageDirectory, "temp.jpg") | |
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
<!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="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet"> | |
<link rel="stylesheet" type="text/css" href="list.css"/> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width" /> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Titanium List View Alternative</title> | |
</head> |
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 populateFeedView(e){ | |
var response = JSON.parse(e.responseText); | |
var ads = []; | |
ads = response.results; | |
var listData = { table_rows : [] }; |
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
// These two lines are required to initialize Express in Cloud Code. | |
var express = require('express'); | |
var parseExpressHttpsRedirect = require('parse-express-https-redirect'); | |
var parseExpressCookieSession = require('parse-express-cookie-session'); | |
var app = express(); | |
// STARTING GLOBAL APP CONFIG SECTION |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<!-- Add jQuery library --> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> | |
<!-- Add fancyBox --> | |
<link rel="stylesheet" href="/fancybox/source/jquery.fancybox.css?v=2.1.5" type="text/css" media="screen" /> | |
<script type="text/javascript" src="/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script> |
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
var ParseService = require('com.jepadilla.parse'); | |
var registerPush = function(){ | |
ParseService.ParsePushService("", ""); | |
setTimeout(successCallback, 3000); | |
}; | |
// success callBack | |
function successCallback(e) { |
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
var client = require('webdriverio'); | |
var Q = require('q'); | |
var i = 0; | |
var options = { | |
desiredCapabilities: { | |
browserName: 'chrome' | |
} | |
}; |
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
var client = require('webdriverio'); | |
var Q = require('q'); | |
var i = 0; | |
var options = { | |
desiredCapabilities: { | |
browserName: 'chrome' | |
} | |
}; |
OlderNewer