This file contains hidden or 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
<?php | |
/** | |
* Copyright 2012-2013 Ryan. All rights reserved. | |
* https://github.com/rsully | |
* https://gist.github.com/rsully/4162064 | |
* You may use this code provided this message and the above copyright are kept in place. | |
**/ | |
class DB extends PDO | |
{ | |
protected $prepared = null; |
This file contains hidden or 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
<?php | |
require_once './vendor/autoload.php'; | |
abstract class Element | |
{ | |
protected $loop; | |
public $active = false; | |
public function __construct(\React\EventLoop\LoopInterface $loop) |
This file contains hidden or 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
function number_format(amount, decimals) { | |
amount += ''; // por si pasan un numero en vez de un string | |
amount = parseFloat(amount.replace(/[^0-9\.]/g, '')); // elimino cualquier cosa que no sea numero o punto | |
decimals = decimals || 0; // por si la variable no fue fue pasada | |
// si no es un numero o es igual a cero retorno el mismo cero | |
if (isNaN(amount) || amount === 0) | |
return parseFloat(0).toFixed(decimals); |
This file contains hidden or 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
* [ http://rinconfox.com ] | |
* [email protected] | |
lcServer ="vps-1310086-x.dattaweb.com" | |
lcUserName="ztestfox" | |
lcPassword="Password2" | |
lcDataBase="ztestfox" | |
lcStringConnect = "DRIVER={MySQL ODBC 3.51 Driver};" ; | |
+"SERVER=" +lcServer +";" ; |
This file contains hidden or 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
*[ http://rinconfox.com ] | |
*[ https://chat.whatsapp.com/579n13MRO2j7eiuw4xcVOC ] | |
*[ [email protected] ] | |
lcServer ="vps-1310086-x.dattaweb.com" | |
lcUserName="ztestfox" | |
lcPassword="Password2" | |
lcDataBase="ztestfox" | |
lcStringConnect = "DRIVER={MySQL ODBC 3.51 Driver};" ; | |
+"SERVER=" +lcServer +";" ; |
This file contains hidden or 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
*[ http://rinconfox.com ] | |
*[ https://chat.whatsapp.com/579n13MRO2j7eiuw4xcVOC ] | |
*[ [email protected] ] | |
*- Input | |
lcPeriodo = '10.2018' | |
*- Black Box | |
ldStart = CTOD('01.'+lcPeriodo) | |
ldEnd = GOMONTH(ldStart,1)-1 | |
lnCntSatur = 0 |
This file contains hidden or 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
** Função PARA ENVIAR WHATSAPP | |
** | |
** Parametros: | |
** PC_FONE DDD+FONE | |
** PC_MENSAGEM Mensagem a enviar | |
** | |
** | |
** | |
FUNCTION WHATSAPP | |
PARAMETERS PC_FONE, PC_MENSAGEM,PC_IMAGEM |
This file contains hidden or 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
# Dockerizing Python and MongoDB | |
# Based on ubuntu:latest, installs MongoDB following the instructions from: | |
# http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ | |
# INSTRUCTIONS: | |
# - Create the contianer: | |
# > docker build -t ubuntu_pymongo . | |
# - Create a folder to share your project in your host with the container. Ex: ~/shared | |
# - Run the next command (need the route of the created shared folder), this command access to the bash of container: | |
# > docker run -v /c/Users/Jhonny/Documents/vm_share/mongoDB/shared:/data/code -t -i -p 27019:27017 ubuntu_pymongo | |
# - To open another bash console run the command: |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
DON QUIJOTE DE LA MANCHA | |
Miguel de Cervantes Saavedra | |
PRIMERA PARTE | |
CAPÍTULO 1: Que trata de la condición y ejercicio del famoso hidalgo D. Quijote de la Mancha | |
En un lugar de la Mancha, de cuyo nombre no quiero acordarme, no ha mucho tiempo que vivía un hidalgo de los de lanza en astillero, adarga antigua, rocín flaco y galgo corredor. Una olla de algo más vaca que carnero, salpicón las más noches, duelos y quebrantos los sábados, lentejas los viernes, algún palomino de añadidura los domingos, consumían las tres partes de su hacienda. El resto della concluían sayo de velarte, calzas de velludo para las fiestas con sus pantuflos de lo mismo, los días de entre semana se honraba con su vellori de lo más fino. Tenía en su casa una ama que pasaba de los cuarenta, y una sobrina que no llegaba a los veinte, y un mozo de campo y plaza, que así ensillaba el rocín como tomaba la podadera. Frisaba la edad de nuestro hidalgo con los cincuenta años, era de complexión recia, seco de carnes, enjuto de r |
This file contains hidden or 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
a | |
al | |
algo | |
algunas | |
algunos | |
ante | |
antes | |
como | |
con | |
contra |