Skip to content

Instantly share code, notes, and snippets.

@h5y1m141
h5y1m141 / tiPlusMustache.js
Created May 8, 2012 23:51
Titanium Mobile w/ mustache.js sample
var Mustache = require("lib/mustache");
var data ={
"list":[
{"value": "a1",top:0},
{"value": "a2",top:50},
{"value": "a3",top:100}
]
};
var win = Ti.UI.createWindow({
backgroundColor:'#FFF'
@h5y1m141
h5y1m141 / 20120324TiNagoyaChatroomQuickTiGame2dSample.js
Created March 20, 2012 07:46
20120324-Titanium Nagoya Chatroom vol.2
var win1 = Ti.UI.createWindow({backgroundColor:'black'});
var totalScore = 0;
var scoreLabel = Titanium.UI.createLabel({
top : 10,
left : 10,
height : 20,
width : 'auto',
color : 'white',
text : 'Score: ' + totalScore
});
@h5y1m141
h5y1m141 / gist:1369163
Created November 16, 2011 03:30
Titanium Mobile WebView reload issue
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
// create tab group
var tabGroup = Titanium.UI.createTabGroup();
//
// create base UI tab and root window
//
var win1 = Titanium.UI.createWindow({