Skip to content

Instantly share code, notes, and snippets.

View misaelzapata's full-sized avatar

Misael Zapata misaelzapata

View GitHub Profile
@misaelzapata
misaelzapata / gist:1d8257f404cfa8ac340cb8c2204d52b1
Created April 3, 2016 03:35 — forked from vortec/gist:5843378
Late night implementation of Tornado + Redis PubSub + Websockets. It's late, the code is messy, but it should demonstrate how the general construct works. Feel free to try it on your own after studying it.
import json
import os
import tornado.httpserver
import tornado.web
import tornado.websocket
import tornado.ioloop
import tornado.gen
import tornadoredis
@misaelzapata
misaelzapata / README-Template.md
Created May 6, 2016 20:07 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisities

@misaelzapata
misaelzapata / init.lua
Created June 26, 2016 22:30 — forked from jimoconnell/init.lua
Code by HoracioBouzas, formatted for use with ESPlorer
--http://www.instructables.com/id/ESP8266-based-web-configurable-wifi-general-purpos-1/
--Code by HoracioBouzas, formatted for use with ESPlorer by jimoconnell
print("WIFI control");
-- put module in AP mode
wifi.setmode(wifi.SOFTAP);
print("ESP8266 mode is: " .. wifi.getmode());
cfg={};
-- Set the SSID of the module in AP mode and access password
cfg.ssid="ESP8266";
cfg.pwd="passwordpassword";