This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* My_Db_Table | |
* | |
* Adds "findBy" magic method to Zend_Db_Table objects | |
* | |
* @author Eric Clemmons | |
**/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from sys import argv | |
from os import execlp | |
import re | |
left = ""; | |
right = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Register this class autoloading | |
dojo.provide('demo.ui.Error'); | |
// Include dependencies | |
dojo.require("dijit._Widget"); | |
dojo.require("dijit._Templated"); | |
// Create class declaration extending templating system | |
dojo.declare('demo.ui.Error', [dijit._Widget, dijit._Templated], { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.demoUiError { | |
font-size: 0.9em; | |
position: relative; | |
margin: 10px 10px 15px 10px; | |
width: 293px; | |
color: white; | |
font-family: "Helvetica Neue", Helvetica,Arial,sans-sarif; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="demoUiError" | |
dojoAttachEvent="onmouseover:_hoverOver,onmouseout:_hoverOut,onclick:close"> | |
<p> | |
${message} | |
</p> | |
<div class="footer"></div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Dojo Config --> | |
<script type="text/javascript"> | |
// Since we're using CDN resources, we have to define any local | |
// module paths first | |
var djConfig = { | |
// parseOnLoad: true, // Look for dojo events/hooks | |
// isDebug: true, // Enable debugging | |
baseUrl: "/static/js/", // Base path for all modules | |
modulePaths: { | |
demo: "demo" // Path to "demo" namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
$.extend($.expr[':'],{ | |
inView: function(a) { | |
var st = (document.documentElement.scrollTop || document.body.scrollTop), | |
ot = $(a).offset().top, | |
wh = (window.innerHeight && window.innerHeight < $(window).height()) ? window.innerHeight : $(window).height(); | |
return ot > st && ($(a).height() + ot) < (st + wh); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Script: DOM.js | |
Class: DOM | |
Allows for the building of a DOM node-tree via an array. You can | |
assign any attribute, events, styles, and even content with this class. | |
Author: | |
Eric Clemmons |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: Eric Clemmons | |
Library: jQuery 1.3.2 | |
When visiting "http://www.netflix.com/TastePreferences?lnkctr=wnph_sc_tst", I found myself | |
Clicking each "Click for example" link to better select my preference. | |
So, this script simply replaces that link with the first THREE suggested movie images. | |
Just Copy-Paste into Firebug & Run! | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var SortSelect = function(select) { | |
var options = jQuery.makeArray(select.find('option')); | |
var sorted = options.sort(function(a, b) { | |
return (jQuery(a).text() > jQuery(b).text()) ? 1 : -1; | |
}); | |
select.append(jQuery(sorted)) | |
.attr('selectedIndex', 0); | |
}; |
OlderNewer