Skip to content

Instantly share code, notes, and snippets.

View oteroweb's full-sized avatar
🏠
Working from home

Jose Otero (Oteroweb) oteroweb

🏠
Working from home
View GitHub Profile
@oteroweb
oteroweb / comunidades_tecnologicas_ve_telegram.md
Created November 20, 2015 13:08
Comunidades Tecnológicas de Venezuela en Telegram
@oteroweb
oteroweb / gist:15118c2c6de4fff1fbdb4b97b78464d7
Created October 4, 2016 23:31
Instalar composer Hosting Compartido (hosting Shared)
Paso 1: ingresamos en la pagina oficial de composer
<a href="https://getcomposer.org/download/">https://getcomposer.org/download/</a>
Copiamos el comando
&nbsp;
<pre class="installer">php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
<h1>INDICADORES</h1>
<a id="masindicador">añadir indicador</a>
<br>
<table>
<tr>
<td width="22%">
<label style="display:inline" for="Indicador_'+num+'_indicador" class="required">Indicador
<span class="required">*</span>
</label>
</td>
<div class="form">
<?php echo CHtml::beginForm(); ?>
<p class="note">Fields with <span class="required">*</span> are required.</p>
<div class="row">
<label for="nombreproyecto">nombre proyecto</label>
@oteroweb
oteroweb / README.md
Last active May 30, 2017 07:00 — forked from john-guerra/gist:43c7656821069d00dcbc
GeoJson map of Colombia

Geo Json map of Colombia

Based on the Map of Thailand by Master Krist Wongsuphasawat, a simple map of Colombia using GeoJSON and D3.js

As in Krist example:

  • Each province is color-coded by the length of its name in English.
  • Hover each province to see text effects.
  • New font is chosen randomly every time you change the province.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oteroweb
oteroweb / gist:9d825ca32b2484ce80d922b9fbcf015a
Created July 26, 2017 01:52 — forked from mikejolley/gist:1565309
WooCommerce - Filters to add custom currencies and symbols
add_filter( 'woocommerce_currencies', 'add_my_currency' );
function add_my_currency( $currencies ) {
$currencies['ABC'] = __( 'Currency name', 'woocommerce' );
return $currencies;
}
add_filter('woocommerce_currency_symbol', 'add_my_currency_symbol', 10, 2);
function add_my_currency_symbol( $currency_symbol, $currency ) {
A common use of mysqldump is for making a backup of an entire database:
shell> mysqldump db_name > backup-file.sql
You can load the dump file back into the server like this:
UNIX
shell> mysql db_name < backup-file.sql
The same in Windows command prompt:
{
"ignoreUploadFiles": [
"state.*",
"syncLocalSettings.json",
".DS_Store",
"sync.lock",
"projects.json",
"projects_cache_vscode.json",
"projects_cache_git.json",
"projects_cache_svn.json",
{"lastUpload":"2019-08-22T09:37:11.357Z","extensionVersion":"v3.4.2"}