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
function throwStack (pcErrorMessage) {
var oError = new Error(pcErrorMessage);
return oError.stack;
};
// try catch (memory usage problems)
function ejemplo () {
// ...
try {
http://www.youtube.com/watch?v=MXEGLGmpCfo
int ledPin = 13;
//led for visualization (use 13 for built-in led)
int speakerPin = 11;
//speaker connected to one of the PWM ports
#define c 261
#define d 294
#define e 329
#define f 349
<form action="" method="POST">
<p>
<label for="email"><?php _e( 'Email', 'ignacio' ); ?>
<input id="email" type="email" name="email" value="" />
</label>
</p>
<p>
<label for="message"><?php _e( 'Message', 'ignacio' ); ?></label>
<textarea id="message" name="message"></textarea>
</p>
<?php
if ( post_password_required() )
return;
?>
<div id="comments" class="comments-area">
<?php if ( comments_open() && get_comments_number() ): ?>
<?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 );
<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>
/**
* 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);
}
@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 / 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",