Skip to content

Instantly share code, notes, and snippets.

View en0ne's full-sized avatar

Bulygin Alexey en0ne

View GitHub Profile
import requests
from bs4 import BeautifulSoup
from urllib.parse import urljoin, urlparse
from collections import namedtuple
import logging
import queue
import threading
import signal
import argparse
@en0ne
en0ne / jquery.ba-tinypubsub.js
Created May 24, 2012 21:10 — forked from cowboy/HEY-YOU.md
jQuery Tiny Pub/Sub: A really, really, REALLY tiny pub/sub implementation for jQuery.
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011
* http://benalman.com/
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */
(function($) {
var o = $({});
$.subscribe = function() {
o.on.apply(o, arguments);