Skip to content

Instantly share code, notes, and snippets.

@ismaGNU
ismaGNU / Git recover
Created April 16, 2013 14:31
Recover a file on delete
git checkout $(git rev-list -n 1 HEAD -- "$file")^ -- "$file"
@ismaGNU
ismaGNU / gist:1711343
Created January 31, 2012 16:09
TableView Data
var row = Ti.UI.createTableViewRow(Nv.combine($$.TableViewRow,{
height:'auto'
})),
photo = Ti.UI.createImageView({
image:(gigs[i].images.small) ? gigs[i].images.small : '/img/nophoto.jpg',
left:0,
top:0,
width:56,
height:56