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
<?xml version='1.0' encoding='UTF-8'?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd" > | |
<plist version='1.0'> | |
<dict> | |
<key>Label</key><string>org.macports.php-fastcgi</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/opt/local/bin/daemondo</string> | |
<string>--label=php-cgi</string> |
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 | |
class BootstrapFormHelper extends AppHelper { | |
public $helpers = array('Html', 'Form'); | |
public function input($name, $options = array()) { | |
$default = array( | |
'type' => null, | |
'label' => null, | |
'before' => null, // to convert .input-prepend |
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 | |
if (!isset($modules)) { | |
$modulus = 11; | |
} | |
if (!isset($model)) { | |
$models = ClassRegistry::keys(); | |
$model = Inflector::camelize(current($models)); | |
} | |
?> | |
<div class="pagination"> |
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
server { | |
listen 80; | |
server_name example.com; | |
root /var/www/cakephp/app/webroot; | |
index index.php index.html index.htm; | |
access_log /var/www/cakephp/app/tmp/logs/access.log; | |
error_log /var/www/cakephp/app/tmp/logs/error.log; | |
rewrite_log on; |
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 | |
aptitude update | |
aptitude install -f php5-cgi php5-cli php5-dev php-pear php5-gd php5-mysql php5-curl php5-memcache libpcre3-dev nginx git-core | |
pecl update-channels | |
pecl install apc | |
cat << 'EOF' > /etc/php5/conf.d/apc.ini | |
extension=apc.so | |
EOF |
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 'Emoji4Unicode.php'; | |
$emoji = new Emoji4Unicode; | |
$html = <<<HTML | |
<ul> | |
<li>太陽:󾀀</li> | |
<li>時計:󾀞</li> | |
<li>ハートに矢:󾬒</li> | |
<li>ロックオン:󾮢 - Google独自</li> |
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 | |
class Emoji4Unicode { | |
protected $_config = array(); | |
private $__carrierMap = array( | |
'docomo' => 'docomo', | |
'kddi' => 'kddi', | |
'softbank' => 'softbank', | |
'google' => 'google', |
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 | |
class AppController extends Controller { | |
var $components = array( | |
'DebugKit.Toolbar' => array('panels' => array('DebugKitPlus.HelloWorld')), | |
); | |
} | |
?> |
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 | |
class HelloWorldPanel extends DebugPanel { | |
var $plugin = 'DebugKitPlus'; | |
var $title = 'Hello World'; | |
function startup(&$controller) { } | |
function beforeRender(&$controller) { | |
$controller->set('helloWorld', 'こんにちは世界'); | |
return 'Hello World!'; |
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 | |
class AppController extends Controller { | |
var $components = array( | |
'DebugKit.Toolbar' => array('panels' => array('HelloWorld')), | |
); | |
} | |
?> |