Skip to content

Instantly share code, notes, and snippets.

var _ = require('/lib/underscore');
/*
*This is the lightweight version I use based on Kevin Whinnery's one: https://gist.github.com/kwhinnery/1595307
* Wrapper for Titanium UI components. This wrapper provides a few pieces of critical
* functionality, currently missing from Titanium UI objects:
* - The ability to safely extend components with new members
* - Rudimentary resource management and object lifecycle handling
*
@ulizama
ulizama / upload.js
Created April 12, 2017 22:25
Upload file example on Titanium
var xhr = Ti.Network.createHTTPClient();
xhr.onload = function(e) {
};
xhr.onerror = function(e){
};
xhr.open('POST', 'https://url');
@ulizama
ulizama / genymotionwithplay.txt
Created September 25, 2015 20:32 — forked from wbroek/genymotionwithplay.txt
Genymotion with Google Play Services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161892865 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip)
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip)
Google Apps for Android 4.2 (https://www.androidfilehost.com/?fid=23060877490000128 - gapps-jb-20130812-signed.zip)
package Project::Plugin::Dancer::Rose::Database;
use strict;
use Dancer::Plugin;
use Referdia::DB;
# This module is based on the Dancer::Plugins::Database module
our $VERSION = '0.01';
@ulizama
ulizama / elasticsearch.yml
Created August 5, 2011 15:38
elasticsearch configuration and test
network:
host: 127.0.0.1
index:
analysis:
analyzer:
default:
type: custom
tokenizer: whitespace
filter: [snowball]
@ulizama
ulizama / gallery.js
Created August 6, 2015 14:07
Lazy loading images ScrollableView
Ld /Users/ulizama/Library/Developer/Xcode/DerivedData/Mentor_KIA-eazbmqjumowujwdpcudujhuovafw/Build/Intermediates/Mentor\ KIA.build/Release-iphonesimulator/Mentor\ KIA.build/Objects-normal/i386/Mentor\ KIA normal i386
cd /Users/ulizama/Documents/Apps/ProximityAware/build/iphone
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk -L/Users/ulizama/Library/Developer/Xcode/DerivedData/Mentor_KIA-eazbmqjumowujwdpcudujhuovafw/Build/Products/Release-iphonesimulator -L/Users/ulizama/Documents/Apps/ProximityAware/build/iphone/lib -L/Users/ulizama/Library/Application\ Support/Titanium/modules/iphone/co
tich.cfg input
{
"name": "test",
"settings": {
"name": "Test",
"id": "com.test.app",
"guid": "723236726732",
"properties" :{
"GCM_sender_id" : "1234562"