This file contains hidden or 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
| # From http://scriptingosx.com/2010/11/ichat-notification-with-growl/ | |
| property growlAppName : "Growl iChat" | |
| property notificationNames : {"Buddy Became Available", ¬ | |
| "Buddy Became Unavailable", ¬ | |
| "Message Received", ¬ | |
| "Completed File Transfer"} | |
| property defaultNotificationNames : {"Buddy Became Available", ¬ | |
| "Buddy Became Unavailable", ¬ | |
| "Message Received", ¬ |
This file contains hidden or 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
| jQuery.fn.hideOnClickOutside = function () { | |
| target = jQuery(this); | |
| jQuery(document).one('click', function() { | |
| target.hide(); | |
| }); | |
| target.click( function(event) { | |
| event.stopPropagation(); | |
| }); | |
| return target; | |
| } |
This file contains hidden or 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
| jQuery.fn.resizeWithWindow = function(options) { | |
| var settings = $.extend($.fn.resizeWithWindow.defaults, options), | |
| element = $(this); | |
| adjustSize(element); | |
| $(window).resize(function() { | |
| adjustSize(element); | |
| }); | |
| function adjustSize(targets) { |
This file contains hidden or 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
| class Pig { | |
| function oink() { | |
| print "Oink"; | |
| } | |
| } | |
| abstract class Decorator { | |
| protected $obj; | |
| function __construct($object) { | |
| $this->obj = $object; |
NewerOlder