Skip to content

Instantly share code, notes, and snippets.

View aarondfrancis's full-sized avatar

Aaron Francis aarondfrancis

View GitHub Profile
@aaronksaunders
aaronksaunders / app.js
Created November 1, 2012 13:37
Quick Example a basic IOS Module for Appcelerator Titanium to demonstrate geofencing
var ci_geofencing = require('ci.geofencing');
Ti.API.info("module is => " + ci_geofencing);
var regions = []
regions.push({
"title" : "Willis Tower",
"latitude" : 41.878844,
"longitude" : -87.635942,
"radius" : 100
@IvanMathy
IvanMathy / gist:2863986
Created June 3, 2012 15:59
A simple Drag, Drop and Resize for Titanium Mobile. (@Thedeejay92 - Mousta.ch )
/*
* I made this code for an upcoming hackaton, so, it's really, really ugly. Feel free
* to update it here so everyone will be able to use it correctly.
*
* It's pretty easy to understand, basicly the object you want to edit, an overlay,
* four handlers, and the background view.
*
* It's currently made for/tested on iPad 5.0 with Timob 2.0.2; works only in landscape.
*
* This code is under the Moustach licence. This means you can do whatever you want with
@rightson
rightson / app.js
Created December 15, 2011 12:15 — forked from skypanther/app.js
Draw gridlines in a Titanium window
// implement like this:
var window = Ti.UI.createWindow({
backgroundColor:'#fff'
});
// draw the gridlines first so your other elements stack on top of them
// without requiring you to set the z-index property of each
var grid = require('gridlines');
grid.drawgrid(10,window);