Skip to content

Instantly share code, notes, and snippets.

@staylorx
staylorx / gist:cbd1cdbf759781d91652
Created January 3, 2016 21:56
Install Git on RHEL4
cd ~
wget http://packages.sw.be/git/git-1.7.3-1.el4.rf.i386.rpm
wget http://packages.sw.be/git/perl-Git-1.7.3-1.el4.rf.i386.rpm
rpm -ivh --nodeps git-1.7.3-1.el4.rf.i386.rpm perl-Git-1.7.3-1.el4.rf.i386.rpm
git --version
@roccolucatallarita
roccolucatallarita / readme.txt
Created April 7, 2014 21:14
Create route in titanium map module
Create a file in your lib folder, like **rootproject**/lib/routes.map.js
load the module in your file and initialize with the data:
var jsonCoordinates = {
'destination': dest.latitude + ',' + dest.longitude,
'origin': origin.latitude + ',' + origin.longitude,
};
var routes = require("routes.map")(jsonCoordinates, mapview);
@benbahrenburg
benbahrenburg / app.js
Last active March 15, 2017 14:48
Titanium TableView Expand Zoom TableView HeaderView
'use strict';
var win = Ti.UI.createWindow({
backgroundColor: 'white',
});
//Generate some sample rows
var rows = [];
for (var iLoop=0;iLoop<100;iLoop++){
rows.push({ title: 'demo row #'+iLoop});
@artanisdesign
artanisdesign / gist:5029161
Created February 25, 2013 11:08
TiModalWindow Anim
//Application Window Component Constructor
function ApplicationWindow() {
//load component dependencies
var FirstView = require('ui/common/FirstView');
//create component instance
var self = Ti.UI.createWindow({
backgroundColor : '#ffffff',
borderRadius : 6
});