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 tabGroup = Ti.UI.createTabGroup({ | |
backgroundColor: '#fff' | |
}); | |
tabGroup.addTab(Ti.UI.createTab({ | |
title: 'Tab 1', | |
window: require('ui-win1').createWindow(), | |
icon: 'images/tab-1.png' | |
})); |
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
tell application "System Events" | |
tell application "Google Chrome" to activate | |
keystroke "r" using {command down} | |
end tell |
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
tell application "System Events" | |
tell application "Terminal" to activate | |
keystroke "c" using {control down} | |
key code 126 | |
key code 52 | |
end tell |
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 U = require('utils'); | |
var VBN = require('viewBasedNavigator'); | |
exports.applyTo = function(args) { | |
args = args || {}; | |
U.def(args, { | |
id: null, | |
view: null, | |
anchor: 'left', | |
expanded: 320, |
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: '#333' | |
}); | |
var menuWidth = 200; | |
var container = Ti.UI.createScrollView({ | |
disableBounce: false, | |
horizontalBounce: true, | |
contentWidth: Ti.Platform.displayCaps.platformWidth + menuWidth |
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
/** | |
* XMLToJS Module 0.1 | |
* | |
* To use: | |
* var XMLToJS = require('xmlToJS'); | |
* var jsObject = XMLToJS.convert(xml); | |
* | |
* This will take XMl like the following: | |
* | |
<atom:feed xmlns:atom="http://www.w3.org/2005/Atom"> |
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
/* | |
You may download the images for this sample here: | |
http://dl.dropbox.com/u/16441391/SegmentedButtonImages.zip | |
*/ | |
var toolbar = Ti.UI.createView({ | |
bottom: 0, height: 45, width: 310, | |
backgroundImage: 'images/grey.png' | |
}); | |
toolbar.add(Ti.UI.createLabel({ |
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
exports.foo = function() { | |
return 'AHHH!! it works?! wtf...'; | |
}; |
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
/* | |
Learn the basics of Storekit with this example. | |
Before we can do anything in our app, we need to set up iTunesConnect! This process can be a little painful, but I will | |
guide you through it so you don't have to figure it out on your own. | |
Follow these steps: | |
1) Log in to your Apple Developer account at https://itunesconnect.apple.com/ | |
2) Click "Manage Your Applications". |
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
<style type="text/css"> | |
#HI-Container | |
{ | |
font: 14px Arial, Helvetica, sans-serif; | |
position: absolute; | |
top: 200px; | |
right: 0; | |
vertical-align: top; | |
} | |
#HI-Link |