This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
__author__ = 'efrenfuentes' | |
MONEDA_SINGULAR = 'guarani' | |
MONEDA_PLURAL = 'guaranies' | |
CENTIMOS_SINGULAR = 'centimo' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template v-show="datos" v-for="item, index in datos"> | |
<tr :key="index"> | |
<td class="date">[[item.fecha|todate]]</td> | |
<td>[[item.numero]]</td> | |
<td class="codigo">[[item.cuenta_codigo]]</td> | |
<td class="text-ellipsis" :title="item.descripcion">[[item.descripcion]]</td> | |
<td class="number">[[item.cotizacion|tonumber]]</td> | |
<td class="number">[[item.debe1|number]]</td> | |
<td class="number">[[item.haber1|number]]</td> | |
<td class="number">[[item.debe2|tonumber]]</td> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
from flask import * | |
class Camera: | |
def __init__(self, index): | |
self.index = index | |
self.cap = cv2.VideoCapture(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Libreria de conexion a base de datos | |
# Autor: Dario R. Garcia G. DR2GSistemas | |
# Villeta - Paraguay | |
# | |
# Version: 1.02 | |
# - Agregado runtime exception | |
# Version: 1.01 | |
# - Bug fix: control de host y port | |
# Version: 1.00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static OkHttpClient getUnsafeOkHttpClient() { | |
try { | |
// Create a trust manager that does not validate certificate chains | |
final TrustManager[] trustAllCerts = new TrustManager[]{ | |
new X509TrustManager() { | |
@Override | |
public void checkClientTrusted( java.security.cert.X509Certificate[] chain, String authType ) { | |
} | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from datetime import datetime | |
from threading import Thread | |
from zipfile import ZipFile | |
import requests | |
class ThreadRUCDownloader(Thread): | |
"""Clase para descargar los archivos zip de la pagina""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import wraps | |
from time import time | |
def timing(f): | |
@wraps(f) | |
def wrapper(*args, **kwargs): | |
start = time() | |
result = f(*args, **kwargs) | |
end = time() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import threading | |
import zipfile | |
import requests | |
class DownloadRUC(threading.Thread): | |
__index = 0 | |
__version = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2019. | |
* Este software ha sido desarrollado por DR2GSistemas, Orex es una plataforma base para construccion de aplicaciones web tipo gestion, basado en python y flask como framework principal. ademas en conjunto con otros plugins a fin de brindar la mejor base para desarrollo de software estable, confiable y rapida. | |
* | |
* Programador: Dario R. Garcia G. <[email protected]> | |
* Villeta - Paraguay | |
*/ | |
/** | |
* GulpFile DR2GSistemas v1.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void restart(Context context) { | |
PackageManager packageManager = context.getPackageManager(); | |
Intent intent = packageManager.getLaunchIntentForPackage(context.getPackageName()); | |
ComponentName componentName = intent.getComponent(); | |
Intent mainIntent = Intent.makeRestartActivityTask(componentName); | |
context.startActivity(mainIntent); | |
System.exit(0); | |
} |