Skip to content

Instantly share code, notes, and snippets.

@ulizama
ulizama / upload.js
Created Apr 12, 2017
Upload file example on Titanium
View upload.js
var xhr = Ti.Network.createHTTPClient();
xhr.onload = function(e) {
};
xhr.onerror = function(e){
};
xhr.open('POST', 'https://url');
@ulizama
ulizama / genymotionwithplay.txt
Created Sep 25, 2015 — forked from wbroek/genymotionwithplay.txt
Genymotion with Google Play Services
View genymotionwithplay.txt
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)
@ulizama
ulizama / gallery.js
Created Aug 6, 2015
Lazy loading images ScrollableView
View gallery.js
View xcodeerror
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
View gist:223423c4a603be07e2ca
tich.cfg input
{
"name": "test",
"settings": {
"name": "Test",
"id": "com.test.app",
"guid": "723236726732",
"properties" :{
"GCM_sender_id" : "1234562"
View gist:d72991fc44a19920d6ae
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
*
View gist:3085991
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 Aug 5, 2011
elasticsearch configuration and test
View elasticsearch.yml
network:
host: 127.0.0.1
index:
analysis:
analyzer:
default:
type: custom
tokenizer: whitespace
filter: [snowball]