Skip to content

Instantly share code, notes, and snippets.

View iddar's full-sized avatar
🤹‍♂️
code juggling

Iddar Olivares iddar

🤹‍♂️
code juggling
View GitHub Profile
@iddar
iddar / index.js
Created July 16, 2015 01:21
requirebin sketch
var React = require( 'react')
var Reflux =require('reflux')
var TimeActions = Reflux.createActions(['tick'])
var TimeStore = Reflux.createStore({
listenables: [TimeActions],
onTick: function(tick) {
this.trigger(tick);
require "try-catch"
try {
function()
error('oops')
end,
catch {
function(error)
print('caught error: ' .. error)
@iddar
iddar / markdown.css
Last active August 29, 2015 14:21 — forked from imjasonh/markdown.css
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@iddar
iddar / GoogleForm.js
Last active August 29, 2015 14:19
Send data to Google Form
(function ($) {
// Name: sendGoogleForm
// params:
// url: url to GoogleForm.php file
// ej: 'path/otherFolder/GoogleForm.php'
// callback: object content tow functions
// ej: {error: function(){...}, success: function(){...}}
$.fn.sendGoogleForm = function(url, callback) {
this.submit(function(event){
event.preventDefault();
@iddar
iddar / rfc regex
Last active August 29, 2015 14:17 — forked from gerardorochin/rfc regex
/^([A-Z,Ñ,&]{3,4}([0-9]{2})(0[1-9]|1[0-2])(0[1-9]|1[0-9]|2[0-9]|3[0-1])[A-Z|\d]{3})$/
@iddar
iddar / app.js
Created January 19, 2015 20:27
Modulo nativos en node.js
var addon = require('./build/Release/hello');
console.log("hola " + addon.hello()); // Salida: 'Hola noders'
@iddar
iddar / ESP8266 Firmware Update.md
Created January 9, 2015 19:31
Guia Rapida para actualizar el

#ESP8266 Firmware Update ##SDK V0.9.4 19.12.2014 + AT v0.20

Iddar Olivares para The Inventor’s House

Gracias a nuestros amigos de rusos del sitio esp8266.ru nos enteramos que junto con la ultima version del SDK de Espressif para el ESP8266 nos encontramos un nuevo firmware AT el cual incluye como característica mas notable la posibilidad de cambiar la velocidad de transmisión de modulo serial gracias al comando AT+IPR.

Entes de poder disfrutar de esta novedad debemos flashear la nueva versión del firmware AT, en esta ocasión utilizaremos la herramienta esptool.py de Fredrik Ahlberg (@themadinventor) para poder cargar las imágenes a nuestro modulo.

###Dependencias

@iddar
iddar / ESP8266-links.md
Last active August 29, 2015 14:12
Enlaces relacionados con el modulo ESP8266 (Related links with ESP8266)
@iddar
iddar / index.html
Created October 21, 2014 01:06
Dia 1 Curso HTML5
<!DOCTYPE html>
<html>
<head>
<title>Conociendo el DOM</title>
<style>
body{
color: red;
}
@iddar
iddar / app.js
Last active January 6, 2023 14:08
Prueba de socket.io + serialport para la lectura de sensores en tiempo real.
var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var serialport = require("serialport");
var SerialPort = serialport.SerialPort;
// Constantes
// el valor SERIALPORT varia puedes usar como referencia el puerto