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
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# http://www.vagrantbox.es/ | |
config.vm.box = "ubuntu-12.04-docker" | |
config.vm.box_url = "https://oss-binaries.phusionpassenger.com/vagrant/boxes/latest/ubuntu-12.04-amd64-vbox.box" | |
# Sets the ip we'll use to access the box | |
config.vm.network :private_network, ip: "10.0.0.10" | |
config.vm.hostname = "myapp" |
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
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
installr_settings: { | |
releaseNotes: grunt.file.read("./CHANGELOG.txt") | |
}, | |
titanium: { | |
build_ios: { // build for ios first |
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
//Public client interface | |
function Client(applicationId, masterKey) { | |
this.applicationId = applicationId; | |
this.masterKey = masterKey; | |
} | |
exports.Client = Client; | |
//Parse API endpoint | |
var ENDPOINT = 'https://api.parse.com/1/classes/'; |
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 is a hack solves the "Invalid method passed to UIModule" error | |
* It works by forcing Titanium to load SDK components into memory. | |
* | |
* Drop this file anywhere in your project and DON'T Ti.include() it. | |
* Be sure this file extension is .js. | |
* Clean and recompile your project. | |
* | |
* Enjoy! | |
* @tzmartin |
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 win = Ti.UI.createWindow({ | |
title : 'Profile' | |
}); | |
var mainViewHeight = Ti.Platform.displayCaps.platformHeight | |
- ClubTonight.ui.defaults.iphone.statusBarHeight | |
- ClubTonight.ui.defaults.iphone.navBarHeight | |
- ClubTonight.ui.defaults.iphone.tabBarHeight; | |
var scrollView = Titanium.UI.createScrollView({ | |
top : 0, | |
contentWidth : Ti.Platform.displayCaps.platformWidth, |
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 win = Ti.UI.createWindow({ | |
backgroundColor: 'white' | |
}); | |
var imgTableLoco = Ti.UI.createTableView({ | |
width: 270, | |
height: 290, | |
top: 0, | |
backgroundColor: 'black' | |
}); |
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
/** | |
* @method slideIn | |
* Makes the specified view appear using a "slide-in" animation, it will automatically | |
* detect where the view is offscreen and bring it into the user's vison. | |
* @param {Titanium.UI.View} view View to animate. | |
* @param {Number} duration Fade duration in milliseconds. | |
* @param {function()} [finishCallback] Callback function, invoked after the popIn completes. | |
*/ | |
exports.slideIn = function (view, duration, finishCallback) { | |
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
// INcluding memory management utils. | |
Ti.include('utils.js'); | |
// root window. | |
var win = Ti.UI.createWindow({ | |
backgroundColor:'white', | |
exitOnclose:true, | |
}); | |
OlderNewer