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 | |
/* | |
* This file is part of the Symfony package. | |
* | |
* (c) Fabien Potencier <[email protected]> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
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_filter("mce_external_plugins", "tomjn_mce_external_plugins"); | |
function tomjn_mce_external_plugins($plugin_array){ | |
$plugin_array['typekit'] = get_template_directory_uri().'/typekit.tinymce.js'; | |
return $plugin_array; | |
} |
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
setup = (@c) -> | |
[@h,@w,@a,@b,@m] = [40, 80, 0, 1,[]] | |
spawn() | |
spawn = -> | |
@m[@a] = (Math.floor Math.random() * 2 for i in [0...@w+1] for j in [0...@h+1]) | |
@m[@b] = (0 for i in [0...@w+1] for j in [0...@h+1]) | |
draw = -> | |
lifedeathandshow() |
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 | |
/** | |
* Memcached storage engine for CakePHP | |
* | |
* PHP versions 4 and 5 | |
* | |
* @author Ezra Pool <[email protected]> | |
* @copyright BSD | |
* @version 0.2.1 |
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 | |
App::import('Lib', 'Twitteroauth.Twitteroauth'); | |
class TwitterCake extends TwitterOAuth{ | |
public $configs = array(); | |
public function __construct($oauth_token = NULL, $oauth_token_secret = NULL, $consumer_key = NULL, $consumer_secret = NULL) { | |
if($consumer_key === NULL){ | |
$consumer_key = $this->getConfig('consumerKey'); | |
} |
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 | |
/** | |
* Function vs constant test | |
* | |
* Constant should be faster with the interpreter, but maybe the compiler inlines the function? | |
* | |
*/ | |
class Test{ | |
var $runs = 10000000; |