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
//
// encriptarInformacion.swift
// WalMart
//
// Created by Alberto Luebbert M. on 26/09/17.
// Copyright © 2017 All rights reserved.
//
import Foundation
import CryptoSwift
@almsx
almsx / gistTimeouts.json
Created September 9, 2017 20:07
Estructura Inserción Timeouts
[{
"canal": "bnet",
"equipos": [{
"cantidad": "4",
"hostname": "netm1",
"transacciones": [{
"canal": "bnet",
"frecuencia": "1",
"hora": "12:06:18.85",
"rango": "12:00:00",
Sub Inserts()
'
' Inserts Macro
' Generar script de inserción
'
'
Dim i As Long
Dim nombre As String
nombre = "Main"
[{
"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"
}],
@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
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);
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);
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);
@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