Skip to content

Instantly share code, notes, and snippets.

View UlisesGascon's full-sized avatar
馃槑
Focus on FOSS Projects!

Ulises Gasc贸n UlisesGascon

馃槑
Focus on FOSS Projects!
View GitHub Profile
@UlisesGascon
UlisesGascon / package.json
Created November 23, 2015 17:12 — forked from addyosmani/package.json
npm run-scripts boilerplate
{
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js'",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
<!DOCTYPE html>
<html lang="es">
<head>
<title>File HTML5</title>
<meta charset=utf-8>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous">
<style type="text/css">
#contenedor {
width: 360px;
}
<!DOCTYPE html>
<html lang="es">
<head>
<title>Agenda de Contactos en LocalStorage</title>
<meta charset=utf-8>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous">
<style>
#contenedor {
width: 360px;
}
<!DOCTYPE html>
<html lang="es">
<head>
<title>Demo: Geolocalizaci贸n</title>
<meta charset="utf-8" />
<style>
#mapa {
width: 100%;
height: 300px;
margin: 0;
@UlisesGascon
UlisesGascon / watchPosition_demo.html
Last active November 21, 2015 20:29 — forked from strongwave/watchPosition_demo.html
A Demo Drawing Google Map using watchPosition API for HTML5
<!DOCTYPE html>
<html lang="es">
<head>
<title>Geo_Watch</title>
<meta charset=utf-8>
<style>
#mapa {
width: 400px;
height: 300px;
@UlisesGascon
UlisesGascon / debug_mode.js
Created October 21, 2015 14:20
BPT Arduino
// Modo Debug
if (debugMode) {
console.log("**************");
console.log("Ask($): " + newChange.ask);
console.log("Bid($): " + newChange.bid);
console.log("Last($): " + newChange.last);
console.log("--------------");
console.log("Conversion Rate: "+euroRate);
console.log("Currency selected: "+currency);
console.log("--------------");
@UlisesGascon
UlisesGascon / control_intervalo.js
Last active October 15, 2015 00:47
BCD-BC - Dependencias y hardware
/*
Arranque y control de la repetici贸n
*/
// Intervalo que arranca la funcion RunIt, y la repite cada x milisegundos en funcion del valor de "intervalMS".
setInterval(runIt, intervalMS);
// Funci贸n que controla la ejecucci贸n de todo lo dem谩s
function runIt () {
/**
* Split a string into chunks of the given size
* @param {String} string is the String to split
* @param {Number} size is the size you of the cuts
* @return {Array} an Array with the strings
*/
function splitString (string, size) {
var re = new RegExp('.{1,' + size + '}', 'g');
return string.match(re);
}
<form action="" method="POST">
<table class="form-table">
<tr>
<th scope="row"><?php _e( 'New customer', 'fictizia' ); ?></th>
<td>
<input type="text" name="cliente" value=""/>
</td>
</tr>
</table>
<?php
add_shortcode( 'posts-list', 'ignacio_posts_list_shortcode' );
function ignacio_posts_list_shortcode( $atts ) {
$defaults = array(
'items' => 3
);
$atts = wp_parse_args( $atts, $defaults );