Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrés Monge Moreno AMongeMoreno

View GitHub Profile
@AMongeMoreno
AMongeMoreno / follow.js
Created Jan 15, 2015
jQuery plugin to set scroll followable items i.e. they follow the scroll but from one point to another they take fixed position.
View follow.js
$.fn.follow = function (from, to, offset, fixedOptions) {
var $this = this,
$window = $(window);
offset = offset || 0;
fixedOptions = fixedOptions || {};
from_y = from || 0;
to_y = to || Number.MAX_VALUE;
View tornado_events_ws
#############################################################################################################
######################################## Andres Monge 2014 ##############################################
#############################################################################################################
# #
# Extended tornado WebSocketHandler to act as events dispatcher (no channels, no users) #
# #
# class CustomWebSocketHandler(EventBasedWebSocketHandler): #
# #
# #Redefine basic methods 'open' 'close' and 'message' #
# def open(self):