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 | |
require_once 'SimpleIteratorNodeClasses.php'; | |
class TryingToBeCleverNode extends SimpleNode { | |
public function getDepthOfDeepestChild () { | |
$max_depth = 'N/A'; |
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
var setupEllipsis = function(container, itemIndex, itemCount, maxItemCount) { | |
// Make everything visible | |
var hidden = container.all('li.hidden'); | |
hidden.removeClass('hidden'); | |
var ellipsis = container.all('li.ellipsis'); | |
ellipsis.removeClass('ellipsis'); | |
// Get the bounding box data for the selected item | |
var activePage = container.one('li.pageNum-'+itemIndex); |
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
(add-to-list 'load-path "~/elisp") | |
(require 'php-mode) | |
(setq-default indent-tabs-mode nil); | |
(setq default-tab-width 4); | |
(setq c-basic-offset 4); |
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
alias gobb='cd ~/dev/bbsites/trunk/;' | |
alias goww='cd ~/dev/bbsites/trunk/wonderwall/;' | |
alias gowwl='cd ~/dev/bbsites/trunk/wwlatino/;' | |
alias goglo='cd ~/dev/bbsites/trunk/glo/;' | |
alias gocom='cd ~/dev/bbsites/trunk/common/;' | |
alias gonfl='cd ~/dev/nfl/trunk/;' | |
alias gosly='cd ~/dev/sly/trunk/;' | |
alias gost='cd ~/dev/slytrunk/trunk/;' |
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
$tag = "a tag to contain a list of cacheId"; | |
$cacheId = "some key to cache"; | |
if ( ! $keys = $this->_cache->load( $tag ) ) { | |
$keys = array( $cacheId ); | |
$this->_cache->save( $keys, $tag ); | |
} | |
else if ( ! in_array( $cacheId, $keys ) ) { | |
$keys[] = $cacheId; | |
$this->_cache->save( $keys, $tag ); |
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
html, | |
body, | |
#doc { | |
height: 100%; // Passes through the height of the parent iframe element | |
} | |
#doc { | |
// Magic to prevent iOS growing the iFrame to fit the content. | |
// This container will mimic the behavior of the iframe on a desktop browser | |
-webkit-overflow-scrolling:touch; | |
overflow-y: scroll; |
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
<style type="text/css"> | |
input:not([type="image"]), textarea { | |
box-sizing: content-box; | |
} | |
</style> |
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
li { | |
-webkit-backface-visibility: hidden; | |
-webkit-transform: translate3d(0,0,0); | |
} |
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
ul * { | |
-webkit-backface-visibility: hidden; | |
-webkit-transform: translate3d(0,0,0); | |
} |
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
#issues { | |
width: 100%; | |
max-width: 100%; | |
white-space: nowrap; | |
overflow: hidden; | |
overflow-x: scroll; | |
-webkit-overflow-scrolling:touch; | |
ul, li { |
OlderNewer