Skip to content

Instantly share code, notes, and snippets.

View AMongeMoreno's full-sized avatar

Andrés Monge Moreno AMongeMoreno

View GitHub Profile
@AMongeMoreno
AMongeMoreno / follow.js
Created January 15, 2015 11:13
jQuery plugin to set scroll followable items i.e. they follow the scroll but from one point to another they take fixed position.
$.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;
#############################################################################################################
######################################## 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):