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
{ | |
"100%BANCO": "0156", | |
"ABN-AMRO-BANK": "0196", | |
"BANCAMIGA-BANCO-MICROFINANCIERO": "0172", | |
"BANCO-ACTIVO-BANCO-COMERCIAL": "0171", | |
"BANCO-AGRICOLA": "0166", | |
"BANCO-BICENTENARIO": "0175", | |
"BANCO-CARONI-BANCO-UNIVERSAL": "0128", | |
"BANCO-DE-DESARROLLO-DEL-MICROEMPRESARIO": "0164", | |
"BANCO-DE-VENEZUELA": "0102", |
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
/** | |
* @class DecimalFormat | |
* @constructor | |
* @param {String} formatStr | |
* @author Oskan Savli | |
*/ | |
export default function DecimalFormat(formatStr) { | |
this.decimalSeparator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '.'; | |
this.groupSeparator = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ','; | |
/** |
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
/** | |
* @class DecimalFormat | |
* @constructor | |
* @param {String} formatStr | |
* @author Oskan Savli | |
*/ | |
export default function DecimalFormat(formatStr) | |
{ | |
/** | |
* @fieldOf DecimalFormat |
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
<?php | |
/** | |
* Clase para imprimir variables PHP en la consola del navegador. | |
* | |
* Esta clase ha sido creada a partir de esta otra: | |
* http://www.codeforest.net/debugging-php-in-browsers-javascript-console | |
*/ | |
class Console | |
{ | |
/** |
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
/*************************************************************/ | |
// NumeroALetras | |
// The MIT License (MIT) | |
// | |
// Copyright (c) 2015 Luis Alfredo Chee | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights |
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
<?php | |
define('GEOIP_CACHE_TIME', 5184000); // 5184000 = 60 days | |
/** | |
* Returns the country of an IP address | |
* If IP is cached and less than 2 months old, otherwhise requests it to geoplugin.com API | |
* | |
* @string $ip The IP address | |
* @bool $justcountry If you want the full array or just the country |
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
def calcular_rif(data): | |
''' | |
Toma un nro de cedula o rif y calcula el digito validador | |
data: string con nro de CI o RIF sin espacion ni guiones ej. | |
V12345678 | |
E12345678 | |
J123456789 | |
devuelve el rif con el digito calculado | |
no se validan los datos de entrada | |
para validar: if data == calcular_rif(data): |
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
<?php | |
$email = array( | |
'fromName' => 'Adam', | |
'fromEmail' => '[email protected]', | |
'toName' => 'Bob', | |
'toEmail' => '[email protected]', | |
//'cc' => '[email protected]', | |
'subject' => 'Website Change Request', | |
'body' => 'Hello,<br>Bye', |
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
/** | |
* secsToTime | |
* Given the number of seconds it returns the value in minutes and seconds | |
* (i.e. 62 seconds returns 1:02) | |
*/ | |
function secsToTime(secs) { | |
return (secs / 60).toFixed() +':'+ ('0'+secs % 60).slice(-2); | |
} |
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
Banco: | |
<select name="banco"> | |
<option value=""></option> | |
<option value="0156">100%BANCO</option> | |
<option value="0196">ABN AMRO BANK</option> | |
<option value="0172">BANCAMIGA BANCO MICROFINANCIERO, C.A.</option> | |
<option value="0171">BANCO ACTIVO BANCO COMERCIAL, C.A.</option> | |
<option value="0166">BANCO AGRICOLA</option> | |
<option value="0175">BANCO BICENTENARIO</option> | |
<option value="0128">BANCO CARONI, C.A. BANCO UNIVERSAL</option> |
NewerOlder