Skip to content

Instantly share code, notes, and snippets.

View srahim's full-sized avatar

Sabil Rahim srahim

  • Appcelerator
  • Mountain View, CA
View GitHub Profile
@srahim
srahim / gist:5407896
Last active December 16, 2015 08:39
TIMOB-13436 - TEST CASE
var win = Ti.UI.createWindow({backgroundColor:'white'});
var hover = Ti.UI.iOS.createCoverFlowView({
width:320,
height:200
})
var images = [];
var imagefiles = [];
var dir = Titanium.Filesystem.getFile(Ti.Filesystem.resourcesDirectory);
@srahim
srahim / gist:5021825
Last active December 14, 2015 03:29
ti.app.properties
var props = Titanium.App.Properties.listProperties();
Ti.API.info("Number of properties set: "+props.length);
for (var c=0;c<props.length;c++)
{
var value = Titanium.App.Properties.getString(props[c]);
Titanium.API.info(props[c]+" = "+value);
}
v20130114105803
itanium Command-Line Interface, CLI version 3.0.22, Titanium SDK version 3.1.0.ae81248
Copyright (c) 2012, Appcelerator, Inc. All Rights Reserved.
Please report bugs to http://jira.appcelerator.org/
[DEBUG] :  No project level plugins to load
[DEBUG] :  Loaded plugin hooks:
[DEBUG] :  /Users/qetest/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.ae81248/cli/hooks/plugins.js
[DEBUG] :  /Users/qetest/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.ae81248/iphone/cli/hooks/install.js
[DEBUG] :  /Users/qetest/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.ae81248/iphone/cli/hooks/package.js
[DEBUG] :  /Users/qetest/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.ae81248/iphone/cli/hooks/run.js
[INFO] :  Build type: test
@srahim
srahim / app.js
Created December 5, 2012 02:04
timob-11864
var win1 = Titanium.UI.createWindow({
title:'Test',
backgroundColor:'#fff'
});
var label = Ti.UI.createLabel({
top: 30,
width:100,
height:30,
@srahim
srahim / app.js
Created December 5, 2012 02:03
timob-11864
var win1 = Titanium.UI.createWindow({
title:'Test',
backgroundColor:'#fff'
});
var label = Ti.UI.createLabel({
top: 30,
width:100,
height:30,
#!/bin/bash
process="driver.js --mode=remote --platform=ios"
driver_timeout=$((20 * 60))
# move back to the actual driver directory - this is important since the driver depends on relative pathing
cd ..
while [ true ]
do
driver_pid=`ps aux | grep -v grep | grep "$process" | awk '{ print $2 }'`
@srahim
srahim / app.js
Created September 11, 2012 18:05
gallery
// exports.viewItemDetails = function(data){
//Parent Window
var win = Titanium.UI.createWindow({
title:'Client',
backgroundColor:'#fff',
layout: 'vertical'
});
var images = [];
@srahim
srahim / app.js
Created August 14, 2012 17:23
trackSignificantLocationChanges.
var win = Titanium.UI.createWindow({
backgroundColor:'grey'
});
Ti.Geolocation.preferredProvider = "gps";
Ti.Geolocation.purpose = "GPS demo";
Ti.Geolocation.trackSignificantLocationChange = true;
@srahim
srahim / app.js
Created August 7, 2012 23:03
TextField Test case
var win = Ti.UI.createWindow();
var l = Titanium.UI.createLabel({
text:'Text area tests.',
font:{fontSize:14},
left:10,
top:10,
width:300,
height:'auto'