Skip to content

Instantly share code, notes, and snippets.

View labajo's full-sized avatar
🙂
Focusing

Juan Antonio Hernando Labajo labajo

🙂
Focusing
  • Telefonica
  • Boecillo
View GitHub Profile
<head>
<title>ladderboard · claim your victory</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<link rel="stylesheet" tag="pageStyle" type="text/css" href="styles/minimal.css">
<script type="text/javascript">
$(document).ready(function () {
$('#switcherTheme').change(function() {
var cssFile = $('#switcherTheme option:selected').attr("tag");
$('[tag="pageStyle"]').attr( "href", cssFile );
});
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Emojis Test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<link href="./styles/emojify.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="./js/emojify.min.js"></script>
</head>
@labajo
labajo / Explaining.txt
Created June 7, 2013 12:39
Node bin executor. Config parameter:
npm install --save optimist
Ejecución por line de comandos:
./tdaf-api-authserver --configFile=./config
o
./tdaf-api-authserver --configFile=./config/config.dev
o
./tdaf-api-authserver
(Usa la configuración por defecto que se haya establecido en index.js.)
@labajo
labajo / apply_method.js
Created August 20, 2013 20:08
apply method example
var incAge = function incAge(incValue) {
return this.age + incValue;
}
var BirthDayBoy = function BirthDayBoy(){
this.age = 12;
};
var boy = new BirthDayBoy();
@labajo
labajo / OV5642-esp8266.ino
Created April 19, 2016 20:01
OV5642-esp8266
// ArduCAM Mini demo (C)2015 Lee
// web: http://www.ArduCAM.com
// This program is a demo for ESP8266 arduino board.
// Publish captured image to a webpage.
//
// This demo was made for ArduCAM Mini OV2640 2MP Camera.
// It needs to be used in combination with html webpage.
//
// This program requires the ArduCAM V3.4.3 (or later) and ESP8266-Websocket libraries
#include <Servo.h>
String inputString = ""; // a string to hold incoming data
boolean stringComplete = false; // whether the string is complete
Servo servoX;
int posX = 0;
void setup() {
// initialize serial:
@labajo
labajo / masterlamp.ino
Created December 20, 2017 09:00
MasterLamp
#include <IRLibDecodeBase.h>
#include <IRLib_P01_NEC.h>
#include <IRLib_P02_Sony.h>
#include <IRLib_HashRaw.h>
#include <IRLibCombo.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#include <Wire.h>
@labajo
labajo / arduinojoystick.ino
Created December 20, 2017 09:01
Arduino Joystick
#include <Adafruit_ADS1015.h>
#include "RestClient.h"
RestClient client = RestClient("192.168.2.1", 3000);
Adafruit_ADS1115 ads;
int buttonState = 0;
void setup(void)
{
Serial.begin(115200);
@labajo
labajo / missilelauncher.ino
Created December 20, 2017 09:02
Missile Launcher
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <Servo.h>
/* Set these to your desired credentials. */
const char *ssid = "MissileLauncher";
const char *password = "12345678";
ESP8266WebServer server(80);
@labajo
labajo / Mqttsensor.ino
Created December 20, 2017 18:13
MqttSensor with deepsleep
#include <WiFi.h>
#include <PubSubClient.h>
#include "DHTesp.h"
const char* ssid = "";
const char* password = "";
const char* mqtt_server = "";
const int dhtPin = 16;