Skip to content

Instantly share code, notes, and snippets.

@cowboy
Last active September 25, 2025 09:25
Show Gist options
  • Select an option

  • Save cowboy/661855 to your computer and use it in GitHub Desktop.

Select an option

Save cowboy/661855 to your computer and use it in GitHub Desktop.
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);
};
$.unsubscribe = function() {
o.off.apply(o, arguments);
};
$.publish = function() {
o.trigger.apply(o, arguments);
};
}(jQuery));
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011
* http://benalman.com/
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */
(function(a){var b=a({});a.subscribe=function(){b.on.apply(b,arguments)},a.unsubscribe=function(){b.off.apply(b,arguments)},a.publish=function(){b.trigger.apply(b,arguments)}})(jQuery)
@cowboy
Copy link
Author

cowboy commented Feb 10, 2025

Man why do I even bother with open source

@checkermenu
Copy link

Looking for Qdoba’s full menu or wondering what to order? You’re not alone. Many people want to know what kind of food Qdoba serves, how fresh it is, or which items are worth trying. Maybe you’re craving a burrito or just want to find a healthy Mexican bowl near you. If you’ve been searching “Qdoba menu” because you’re tired of plain food and want something bold, tasty, and filling, you’re in the right place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment