Skip to content

Instantly share code, notes, and snippets.

View almsx's full-sized avatar
🏠
Working from home

Alberto Luebbert M. almsx

🏠
Working from home
View GitHub Profile
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.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)
Google Apps for Android 4.1 (https://www.androidfilehost.com/?fid=22979706399755082 - gapps-jb-20121011-signed.zip)
/***
* Appcelerator Titanium example of custom confirm dialog for TableView's delete events.
* Asks to confirm/cancel a delete operation. On cancel restores the deleted row in
* its former position in the table data.
*
* @Copyleft 2013 Patrick De Marta
* @License GNU GPL
*/
var win = Titanium.UI.createWindow({
#!/usr/bin/env sh
# checks to see if running
launchctl list | grep mongo
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
launchctl remove homebrew.mxcl.mongodb
pkill -f mongod
@almsx
almsx / gist:3aac28bdd130dab2ed9b
Created October 6, 2015 23:18 — forked from daicham/gist:10253947
SSH config for connecting github and bitbucket over proxy
ProxyCommand "C:\Program Files\git\bin\connect.exe" -H proxy.example.com:8080 %h %p
Host github.com
HostName ssh.github.com
Port 443
IdentityFile C:\Users\hoge\.ssh\id_rsa
Host bitbucket.org
HostName altssh.bitbucket.org
Port 443
IdentityFile C:\Users\hoge\.ssh\id_rsa
var args = arguments[0] || {};
var latitude;
var longitude;
var mapview;
var annotationUbicacion;
var MapModule = require('ti.map');
var api_key = "AIzaSyDI77iaGnQgo0_M8NZoI5vQW685E0-KGvE";
//var MapModule = require("ti.googlemaps");
//MapModule.setAPIKey(api_key);
var actInd = Ti.UI.createActivityIndicator({
width : Ti.UI.SIZE,
height : Ti.UI.SIZE,
color : '#FFF',
message : 'Cargando, espere por favor',
font : Alloy.Globals.tipografia18Bold
});
$.transparenteCargando.add(actInd);
function LoginUsuarios(usuario, password) {
var url = 'http://www.sitio.com/Login.php';
var xhr = Titanium.Network.createHTTPClient({
onload : function(e) {
obj = this.responseText;
var nuevojson = JSON.parse(obj);
@almsx
almsx / PagingControl.js
Created March 10, 2017 02:24 — forked from raulriera/PagingControl.js
Custom paging control for scrollableViews for Titanium Appcelerator
// I was unhappy about there was close to no control over the "pageControl"
// in scrollableViews, so I hacked my own
// -----
// Configuration
var pageColor = "#c99ed5";
PagingControl = function(scrollableView){
var container = Titanium.UI.createView({
height: 60
[{
"divisionInfo": "intro",
"idDivisionInfo": "1",
"informacion": [{
"id": "1",
"titulo": "Introducción",
"texto": "En este documento observaremos los indicadores y objetivos que realizamos en ANS-Fronts Clientes así como las áreas de oportunidad que tenemos en base a los comentarios de las cartas del modelo 2.0 de ANS, así qué acciones vamos a realizar para atenderlas y el plan de seguimiento de las mismas.",
"imagen": [{
"path": "images/business/image1.png"
}],
[{
"divisionInfo": "intro",
"idDivisionInfo": "1",
"informacion": [{
"id": "1",
"titulo": "Introducción",
"texto": "En este documento observaremos los indicadores y objetivos que realizamos en ANS-Fronts Clientes así como las áreas de oportunidad que tenemos en base a los comentarios de las cartas del modelo 2.0 de ANS, así qué acciones vamos a realizar para atenderlas y el plan de seguimiento de las mismas.",
"imagen": [{
"path": "images/business/image1.png"
}, {