start new:
tmux
start new with session name:
tmux new -s myname
| { | |
| "driver.socketPort":40405 | |
| } |
| #!/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 |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| /* | |
| * (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({ |
| /** | |
| * 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"> |
| // Prototype version: | |
| // Ti.include('prototype.js'); | |
| // Module version: | |
| // Ti.include('module.js'); | |
| // Factory version: | |
| Ti.include('factory.js'); | |
| var win = Ti.UI.createWindow({ |
| 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++) { |
| /** | |
| * 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.include('overrideTabs.js'); | |
| /* | |
| This is a typical new project -- a tab group with three tabs. | |
| */ | |
| var tabGroup = Ti.UI.createTabGroup(); | |
| /* | |
| Tab 1. |