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 / cloudSettings
Created August 22, 2019 09:11
VSC SYNC
{"lastUpload":"2019-08-22T09:41:59.136Z","extensionVersion":"v3.4.2"}
@oteroweb
oteroweb / cloudSettings
Last active August 22, 2019 09:11
VSCODE SETTING
{"lastUpload":"2019-08-22T09:41:32.663Z","extensionVersion":"v3.4.2"}
{"lastUpload":"2019-08-22T09:37:11.357Z","extensionVersion":"v3.4.2"}
{
"ignoreUploadFiles": [
"state.*",
"syncLocalSettings.json",
".DS_Store",
"sync.lock",
"projects.json",
"projects_cache_vscode.json",
"projects_cache_git.json",
"projects_cache_svn.json",
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:
@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 ) {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oteroweb
oteroweb / README.md
Last active May 30, 2017 07:00 — forked from john-guerra/README.md
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.
<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>
<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>