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
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0] |
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
http://www.neglectedpotential.com/2015/06/working-with-apples-application-transport-security/ | |
http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/ | |
http://stackoverflow.com/questions/30739473/nsurlsession-nsurlconnection-http-load-failed-on-ios-9 | |
https://github.com/AFNetworking/AFNetworking/issues/2779 |
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 | |
require_once 'SimpleIteratorNodeClasses.php'; | |
class TryingToBeCleverNode extends SimpleNode { | |
public function getDepthOfDeepestChild () { | |
$max_depth = 'N/A'; |
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 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 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 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 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 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 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 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
stopTransitionsFlickering: function () { | |
var transDuration = 0.3; | |
var translateDistance = '100%'; | |
Y.Transition.fx['app:fadeIn'] = { | |
opacity : 1, | |
duration: transDuration, | |
on: { | |
start: function (data) { | |
var styles = {opacity: 0}, | |
config = data.config; |
OlderNewer