Skip to content

Instantly share code, notes, and snippets.

View addieljuarez's full-sized avatar

Addiel addieljuarez

View GitHub Profile
/
// app.js
// ModuloMapa
//
// Created by addiel on 2012-03-03.
// Copyright 2012 addiel. All rights reserved.
//
//
@addieljuarez
addieljuarez / moduleGeoFull.js
Created March 15, 2012 01:10
full geolocation acelerometer, location geo revers, etc.
Ti.include('/moduleGeoFull.js');
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
var win = Titanium.UI.createWindow({
backgroundColor : '#fff',
title:'prueba',
});
Titanium.include('db/db.js')
var mapas = Ti.UI.currentWindow;
mapas.backgroundColor = '#000';
//imagen y logo de flisol
var logoPantalla = Titanium.UI.createImageView({
Titanium.include('../db/db.js')
var mapas = Ti.UI.currentWindow;
mapas.backgroundColor = '#000';
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Ti.Geolocation.preferredProvider = "gps";
[{"clave":"15DE0045O","Nombre":"TEOTIHUACAN","Ubicacion":null,"zona_id_zona":"1","logo":null,"telefono":"5783-0053","director":"Zeferino Salgado","numero":"45"},{"clave":"15DES0032K","Nombre":"NABOR CARRILLO FLORES","Ubicacion":null,"zona_id_zona":"1","logo":null,"telefono":"57-11-84-57","director":"Genaro Vargas Basilio","numero":"32"},{"clave":"15DES0054W","Nombre":"CELEDONIO FLOREE HERNANDEZ","Ubicacion":null,"zona_id_zona":"1","logo":null,"telefono":"51-20-66-56","director":"David Suarez Avalos","numero":"54"}]
@addieljuarez
addieljuarez / barcode reader and QR code android
Created October 20, 2012 04:11
barcode reader and QR code android
function ApplicationWindow() {
//load component dependencies
var FirstView = require('ui/common/FirstView');
//create component instance
var self = Ti.UI.createWindow({
backgroundColor:'#ffffff',
navBarHidden:true,
exitOnClose:true
});
@addieljuarez
addieljuarez / barcode reader and QR code iphone
Created October 20, 2012 04:59
barcode reader and QR code iphone
//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'
});
@addieljuarez
addieljuarez / geolocation android ios
Created October 20, 2012 09:06
geolocation android ios
function ApplicationWindow() {
//load component dependencies
var FirstView = require('ui/common/FirstView');
//create component instance
var self = Ti.UI.createWindow({
backgroundColor:'#ffffff'
});
{
"resultados":
[
{
"resultado":{
"id":"25",
"id_padre":"5",
"id_tipo_contenido":"0",
"titulo":"Sex & Trends",
"imagen":"",
@addieljuarez
addieljuarez / transition background
Created June 9, 2013 22:30
backgroundImage transition
function transition(){
var self = Titanium.UI.createWindow({
backgroundColor:'#c9c9c9',
});
var backs = Titanium.UI.createView({
backgroundImage:'/images/back1.png',
top:-30,
left:-30,
bottom:0,
right:0,