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
function isset () | |
{ | |
var argumentos = arguments, | |
duracion = argumentos.length, | |
valorCero = 0, | |
undef; | |
if (duracion === 0) | |
{ |
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
function FactoriaVehiculos() { | |
this.createVehicle = function (type) { | |
var vehicle; | |
if (type === "coche") { | |
vehicle = new Coche(); | |
} else if (type === "moto") { | |
vehicle = new Moto(); | |
} else if (type === "autobus") { | |
vehicle = new Autobus(); |
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
.factory( 'DBService', [ '$FirebaseArray', function ($FirebaseArray) { | |
var oFB_DB = new Firebase('https://<<FIREBASE-URL>>.firebaseio.com'); | |
return { | |
getAlumnos: { function (){} | |
return $firebaseArray(oFB_DB); | |
} | |
}; | |
}]); |
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
// Si el jugador es piedra | |
}else if( eleccionJugador == "piedra") { | |
// Piedra gana a tijeras. | |
if (eleccionArduino == "tijeras"){ | |
Serial.print("Jugador Gana! ...piedra aplasta las tijeras"); | |
// Piedra gana a lagarto. | |
}else if( eleccionArduino == "lagarto"){ | |
Serial.print("Jugador Gana! ...piedra aplasta al lagarto"); |
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
// ==== Definiendo los Botones ==== | |
// botones | |
int boton1 = 12; | |
int boton2 = 11; | |
int boton3 = 10; | |
int boton4 = 9; | |
int boton5 = 8; | |
OlderNewer