brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
/** | |
* 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*/; |
Ti.include('overrideTabs.js'); | |
/* | |
This is a typical new project -- a tab group with three tabs. | |
*/ | |
var tabGroup = Ti.UI.createTabGroup(); | |
/* | |
Tab 1. |
/** | |
* The following snippet will ask the user to rate your app the second time they launch it. | |
* It lets the user rate it now, "Remind Me Later" or never rate the app. | |
*/ | |
var win = Ti.UI.createWindow({ backgroundColor: '#fff' }); | |
win.addEventListener('open', checkReminderToRate); | |
win.add(Ti.UI.createLabel({ text: 'This is a simple app that will remind you to rate it.' })); | |
win.open(); | |
function checkReminderToRate() { |
Ti.UI.setBackgroundColor('#000'); | |
var win = Titanium.UI.createWindow({ | |
title : 'test' | |
}); | |
var arrayLength = 5 | |
var fields = new Array(arrayLength); | |
for( i = 0; i < arrayLength; i++) { |
// Prototype version: | |
// Ti.include('prototype.js'); | |
// Module version: | |
// Ti.include('module.js'); | |
// Factory version: | |
Ti.include('factory.js'); | |
var win = Ti.UI.createWindow({ |
/** | |
* 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"> |
/* | |
* (c) 2012 Mauro Parra-Miranda [email protected] | |
* This functions will get save your buffer to hex, going from hex to buffer | |
* and will allow you to save a buffer to A JSON and recovering a JSON from the buffer. | |
*/ | |
bufferToHex = function(buf) { | |
var res = new Array(buf.length); | |
for(var idx = 0; idx < buf.length; idx++) { | |
var b = Ti.Codec.decodeNumber({ |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
#!/bin/bash | |
# make a backup file with the module GUID | |
# just in case there is some funny script error | |
# it will be available here | |
if [ ! -e "./moduleGUID_Backup.txt" ] | |
then | |
grep -i guid manifest > ./moduleGUID_Backup.txt | |
fi |