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 the app.js you can use for testing | |
var win = Titanium.UI.createWindow({ | |
backgroundColor:'#fff',layout:'vertical' | |
}); | |
var btnAuthorization = Titanium.UI.createButton({ | |
title:'Authorization Check', left:25,right:25, top:80 | |
}); | |
win.add(btnAuthorization); |
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
/** | |
* We're going to create an infinite scrollable list. In this case, we're going to show a date. When you swipe left, | |
* you'll see yesterday. Then the day before yesterday, and so on. Swiping right shows you tomorrow, and so on. | |
*/ | |
var win = Ti.UI.createWindow({ backgroundColor: '#fff' }); | |
var isAndroid = Ti.Platform.osname === 'android'; | |
/** | |
* Track where we are in the infinite scrollable views, and define how large of a step goes between each view. | |
*/ | |
var currentDate = new Date(), msIntervalBetweenViews = 1000/*ms*/ * 60/*s*/ * 60/*m*/ * 24/*h*/; |
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
#! /bin/bash | |
#(c)2011 Alberto Luebbert alberto (At) ideashappy.com | |
#constant check network connectivity, on lost | |
#re-start Cards if lost are "more large" | |
#reboot the system. | |
#the script check connectivity by ping google | |
CONNECTION=1 | |
IFDOWN="/sbin/ifdown" | |
IFUP="/sbin/ifup" | |
REBOOT="/sbin/reboot" |
NewerOlder