(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/bin/sh -e | |
# Download and install the Airport Utility 5.6.1 app on Mac OS X Lion and up | |
if [ ! -d "/Applications/Utilities/AirPort Utility 5.6.1.app" ] | |
then | |
[ -d /Volumes/AirPortUtility ] && hdiutil detach /Volumes/AirPortUtility | |
rm -rf /tmp/AirPortUtility5.6.1.dmg /tmp/AirPortUtility5.6.1 | |
echo "Downloading Airport Utility 5.6.1" |
var win = Ti.UI.createWindow({ | |
exitOnClose: true, | |
backgroundColor: '#ccc', | |
fullscreen: false | |
}); | |
win.open(); | |
var activity = win.activity; |
function CustomTable(){ | |
var self = {}; | |
var win = Ti.UI.createWindow({ | |
backgroundColor:'#ccc' | |
}); | |
var table = Ti.UI.createTableView({ | |
top:20, | |
bottom:20, | |
left:20, | |
right:20, |
var TabGroup = require('tabgroup'); | |
TabGroup.open() |
/* Ever wondered how to get the nice column of letters in the right side | |
* of the table view? | |
* | |
* Here is an example: | |
* 1. We take a list of names from a json file | |
* 2. We need to sort them by either first name or last name | |
* 3. We need to create a row header once in a while, when the first letter changes | |
* 4. We need to create a table index | |
* | |
*/ |
Ti.include('overrideTabs.js'); | |
/* | |
This is a typical new project -- a tab group with three tabs. | |
*/ | |
var tabGroup = Ti.UI.createTabGroup(); | |
/* | |
Tab 1. |