Skip to content

Instantly share code, notes, and snippets.

// Examples can be found here: http://boedesign.com/misc/outer_setters.html
// Discussed here: http://forum.jquery.com/topic/outerheight-int-sets-the-height-taking-into-account-padding-and-border
(function($){
function _outerSetter(direction, args){
var $el = $(this),
$sec_el = $(args[0]),
dir = (direction == 'Height') ? ['Top', 'Bottom'] : ['Left', 'Right'],
@jboesch
jboesch / gist:310785
Created February 22, 2010 04:32 — forked from rkatic/gist:310747
(function($){
$.each(["live", "die"], function( i, name ) {
var method = $.fn[ name ];
$.fn[ name ] = function( types, data, fn, origSelector ) {
if ( typeof types === "object" && !types.preventDefault ) {
for ( var key in types ) {
method.call( this, key, data, types[key], origSelector );
}
/**********************************************************************************
*
* @author Jordan Boesch
* @version 1.2
* @link http://boedesign.com/blog/2010/02/13/hijacking-javascriptjquery-methods/
* @date Feb 20, 2010
*
* Hijack is a little snippet of code that allows you to hijack arguments passed to
* functions/methods. Not only can you alter arguments, but you call the old method
* from within the hijacked function (2nd param) and 'return false' if you want to call the
@jboesch
jboesch / x.js
Created October 16, 2009 13:50
/* This is a template command. */
CmdUtils.CreateCommand({
names: ["rss"],
icon: "http://www.feedicons.com/favicon.ico",
description: "A nice and quick way to browse RSS feeds.",
help: "Type 'rss' then the url of the site. example: rss www.boedesign.com. If there are multiple feeds you know of try doing rss www.boedesign.com(2) to get another feed.",
author: {name: "Jordan Boesch", email: "[email protected]"},
license: "GPL",
homepage: "http://boedesign.com.com/",
arguments: [{role: 'object', nountype: noun_arb_text}],