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
<?php | |
abstract class Base { | |
protected static function test() { | |
echo get_called_class()."\n"; | |
} | |
} | |
class Foo extends Base { | |
protected static function test2(){ |
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
// Browsers behave differently when dbl clicking to select | |
// a range. | |
// | |
// Chrome and IE use the text node that contains the selected text | |
// as the startContainer with an offset to exclude any whitespace | |
// characters at the start of the node. | |
// | |
// Firefox will use a text node *before* the selected text | |
// as the startContainer, with a positive offset set to the end | |
// of the node. If there is no previous sibling of the selected text |
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
#!/bin/bash | |
# updates resolv.dnsmasq.conf with DHCP provided DNS servers for the | |
# currently active network interface on OS X | |
# the location of the dnsmasq resolv file | |
RESOLV=/etc/resolv.dnsmasq.conf | |
# get the list of active services from scutil | |
SERVICES=$(echo 'show Setup:/Network/Global/IPv4' | scutil | grep -e '[[:digit:]] :' | awk '{print $3}') |
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
YUI.add('sm-widget-parent-renderqueue', function(Y) { | |
/** | |
* Plugin for WidgetParent that uses an async-queue to render children | |
* | |
* @module widget-parent-render-queue | |
*/ | |
var NAME = 'renderqueue', | |
HOST = 'host', |
NewerOlder