Skip to content

Instantly share code, notes, and snippets.

View EdwinBetanc0urt's full-sized avatar
💼
Working

Edwin Betancourt EdwinBetanc0urt

💼
Working
View GitHub Profile
@HOllarves
HOllarves / Bancos.json
Last active November 8, 2021 15:48
Bancos de venezuela
{
"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",
@ericlemerdy
ericlemerdy / DecimalFormat.js
Last active January 7, 2019 16:08 — forked from EtienneMiret/DecimalFormat.js
Javascript number formatter (Java DecimalFormat Implemented in Javascript)
/**
* @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] : ',';
/**
@EtienneMiret
EtienneMiret / DecimalFormat.js
Last active January 7, 2019 16:05 — forked from oskansavli/DecimalFormat.js
Javascript number formatter (Java DecimalFormat Implemented in Javascript)
/**
* @class DecimalFormat
* @constructor
* @param {String} formatStr
* @author Oskan Savli
*/
export default function DecimalFormat(formatStr)
{
/**
* @fieldOf DecimalFormat
@demonio
demonio / console.php
Last active April 7, 2023 17:51
Clase para imprimir variables PHP en la consola del navegador
<?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
{
/**
@alfchee
alfchee / NumeroALetras.js
Last active June 15, 2024 09:21
Código en JavaScript que convierte números a letras, bastante útil para formularios de documentos contables y similares
/*************************************************************/
// 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
@luckyshot
luckyshot / geoip.php
Last active November 13, 2020 17:58
PHP - Geolocalization by IP address
<?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
@luckyshot
luckyshot / sendemail.php
Last active September 16, 2017 21:53
HTML emails in PHP
<?php
$email = array(
'fromName' => 'Adam',
'fromEmail' => 'adam@example.com',
'toName' => 'Bob',
'toEmail' => 'bob@example.com',
//'cc' => 'charles@example.com',
'subject' => 'Website Change Request',
'body' => 'Hello,<br>Bye',
@luckyshot
luckyshot / secsToTime.js
Created July 24, 2014 08:20
Seconds to Time Given the number of seconds it returns the value in minutes and seconds (i.e. 62 seconds returns 1:02)
/**
* 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);
}
@xombra
xombra / bancos
Last active May 30, 2023 18:16
Codigo y Bancos correspondientes de Venezuela
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>
@chrisjhoughton
chrisjhoughton / proxy.apache.conf
Last active May 14, 2024 15:08
Sample Nginx reverse proxy to Apache set up for Wordpress.
<VirtualHost *:{PORT}>
ServerName www.yourdomain.com
ServerAdmin mail@domain.com
DocumentRoot /var/www/yourdir/
<Directory /var/www/yourdir>
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny