Skip to content

Instantly share code, notes, and snippets.

View Wesitos's full-sized avatar

Pedro Palacios Avila Wesitos

View GitHub Profile

Keybase proof

I hereby claim:

  • I am wesitos on github.
  • I am wesitos (https://keybase.io/wesitos) on keybase.
  • I have a public key whose fingerprint is E50D 2B5B 949D FD7C 2C33 757D 75D9 D625 ABF4 0969

To claim this, I am signing this object:

@Wesitos
Wesitos / CON_AVANCE.xlsx
Last active October 16, 2016 21:05
Leer un archivo xlsx y agrupar sus filas con pandas
This file has been truncated, but you can view the full file.
@Wesitos
Wesitos / analisis.ipynb
Created September 3, 2016 17:13
Ocr imagenes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Wesitos
Wesitos / main.py
Created April 27, 2016 06:45
Echo websocket server
from tornado.web import Application
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from tornado.websocket import WebSocketHandler
class ChatHandler(WebSocketHandler):
client_set = set()
def open(self):

Data experimental del laser rojo.

En el notebook de jupyter se muestran las graficas de la data obtenida del espectrometro. Cada punto de dato corresponde a un valor proporcional a la intensidad de la luz (valor medido por un ADC de 8 bits) en uno de los fotodiodos del CCD lineal.

@Wesitos
Wesitos / tornado.py
Last active November 14, 2018 14:20
Graphql-core Tornado Middleware
from tornado.concurrent import Future
from tornado.ioloop import IOLoop
from asyncio import iscoroutine
from tornado import gen
from graphql.core.pyutils.defer import Deferred
def process_future_result(deferred):
def handle_future_result(future):
exception = future.exception()
from tornado.ioloop import IOLoop
import tornado.web
import tornado.httpserver
from motor.motor_tornado import MotorClient
from pprint import pprint
class AnimalHandler(tornado.web.RequestHandler):
async def get(self):
collect = db.animales
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Wesitos
Wesitos / analogRead.ino
Created November 18, 2015 20:15
Laboratorio 15 y 16
byte pin_list[] = {9,10,11,12};
byte input_pin = 5;
unsigned counter = 0;
long int last_time = 0;
void setup(){
for (int i=0; i < sizeof(pin_list); i++)
pinMode(pin_list[i], OUTPUT);
digitalWrite(input_pin, HIGH);