This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function throwStack (pcErrorMessage) { | |
var oError = new Error(pcErrorMessage); | |
return oError.stack; | |
}; | |
// try catch (memory usage problems) | |
function ejemplo () { | |
// ... | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.youtube.com/watch?v=MXEGLGmpCfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( post_password_required() ) | |
return; | |
?> | |
<div id="comments" class="comments-area"> | |
<?php if ( comments_open() && get_comments_number() ): ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<title>Geo_Watch</title> | |
<meta charset=utf-8> | |
<style> | |
#mapa { | |
width: 400px; | |
height: 300px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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", |
OlderNewer