Skip to content

Instantly share code, notes, and snippets.

View inazense's full-sized avatar

Inazio Claver inazense

View GitHub Profile
@inazense
inazense / ScanItems.mxml
Created February 15, 2018 15:19
Movilizer Scan screen used in Windows CE devices
<MovilizerRequest
systemId="${#Project#SystemID}"
systemPassword="${#Project#Password}"
numResponses="0"
synchronousResponse="true"
useAutoAcknowledge="false"
xmlns="http://movilitas.com/movilizer/v14">
<moveletDelete moveletKey="scanItems" ignoreExtensionKey="true" />
@inazense
inazense / CheckAndUncheckElements.mxml
Created February 15, 2018 15:17
Movilizer 2.5 screen used to check / uncheck different values in the same row of a table
<!--
How to check and uncheck buttons in a row.
Only from Movilizer client 2.4.7
-->
<MovilizerRequest
systemId="${#Project#SystemID}"
systemPassword="${#Project#Password}"
numResponses="0"
synchronousResponse="true"
useAutoAcknowledge="false"
@inazense
inazense / TimeUtils.mxml
Created February 15, 2018 15:15
Movilizer MEL functions to work with times
<MovilizerRequest requestTrackingKey="" systemId="${#Project#SystemID}" systemPassword="${#Project#Password}"
numResponses="1000" synchronousResponse="true"
useAutoAcknowledge="true" xmlns="http://movilitas.com/movilizer/v15">
<moveletDelete moveletKey="timeUtils" ignoreExtensionKey="true" />
<moveletSet>
<movelet moveletKey="timeUtils" initialQuestionKey="q1" >
<question key="q1" type="41" title="Epsilon screen" backNavigationAllowed="false">
<answer key="q1.a1" nextQuestionKey="END" />
</question>
@inazense
inazense / GoogleMapsRequests.mxml
Created February 15, 2018 15:12
Movilizer MEL methods to use Google Maps API
<!--
Google Maps API functions
-->
<MovilizerRequest
systemId="${#Project#SystemID}"
systemPassword="${#Project#Password}"
numResponses="0"
synchronousResponse="true"
useAutoAcknowledge="false"
xmlns="http://movilitas.com/movilizer/v15">
@inazense
inazense / ConnectToBluetoothPrinter.mxml
Created February 15, 2018 15:08
Method used to connect to a Bluetooth printer from Movilizer
<!--
How to connect with a bluetooth printer from a Movelet
-->
<MovilizerRequest
systemId="${#Project#SystemID}"
systemPassword="${#Project#Password}"
numResponses="0"
synchronousResponse="true"
useAutoAcknowledge="false"
xmlns="http://movilitas.com/movilizer/v15">
@inazense
inazense / ConexionSingleton
Created February 14, 2018 02:39
Clase usada para generar un objeto Connection a base de datos MySQL siguiendo el patrón Singleton
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class ConexionSingleton {
// Propiedades
private static Connection CONEXION = null;
// Constructor
@inazense
inazense / barraProgresoTerminal.py
Created December 21, 2017 09:14
Genera una barra de progreso en la terminal
# -*- coding: utf-8 -*-
from tqdm import tqdm # Requiere instalar la librería -> pip install tqdm
from time import sleep
tareasQueRealizar = 100;
for i in tqdm(range(tareasQueRealizar)):
sleep(0.2)
@inazense
inazense / ManejadorMovilizer.java
Last active January 5, 2018 12:01
Manejador usado para generar objetos Movilizer en su versión 2.5
package Movicoders;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
@inazense
inazense / Cheatseet Git.md
Last active March 15, 2018 16:22
Cheatsheet de comandos para trabajar con Git

Cheatsheet para trabajar con Git

Comando Descripción
git init Crear un nuevo repositorio
git clone ruta/repositorio Clonar un repositorio local
git clone usuario@password@host:repositorio Clonar un repositorio remoto
git add fichero Agrega cambios al INDEX
git add * Agrega todos los cambios realizados al INDEX
git rm fichero Borra los cambios realizados
@inazense
inazense / LectorXLSX.py
Created November 23, 2017 16:34
Lector ficheros XLSX con Python3
# -*- coding: utf-8 -*-
from openpyxl import load_workbook # Requiere instalar openpyxl
import os.path
rutaXLSX = "fichero.xlsx"
if os.path.isfile(rutaXLSX):
libro = load_workbook(rutaXLSX) # Abro el excel para extraer los campos