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
for VERSION in $(ls $HOME/.phpenv/versions/); do php-build $VERSION $HOME/.phpenv/versions/$VERSION; done; |
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
ruby-1.9.2-p0 adella:benchmarks$ ruby -v | |
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.5.0] | |
ruby-1.9.2-p0 adella:benchmarks$ php -v | |
PHP 5.3.3 (cli) (built: Aug 22 2010 19:41:55) | |
Copyright (c) 1997-2010 The PHP Group | |
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies | |
ruby-1.9.2-p0 adella:benchmarks$ cat foo.rb | |
msg = "Hello world" |
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
server { | |
expires 1M; | |
listen 80; | |
root /var/www/vhosts/sociallynotable.com/socially-notable/web; | |
index index.php; | |
if ($host ~* ^www.(.*)) { | |
set $remove_www $1; | |
rewrite ^(.*)$ http://$remove_www$1 permanent; | |
} |
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
<h1>[?php echo <?php echo '$barfoo->getValue()' ?> ?]</h1> | |
// will produce | |
<h1><?php echo $barfoo->getValue() ?></h1> |
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 | |
mysql_connect('localhost', 'root', '') or | |
die('cannot connect : ' . mysql_error()); | |
?> | |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
<html> | |
<head> | |
<style type="text/css"> | |
body { font-family: arial, helvetica, sans-serif; font-size: 10pt; margin: 0; } | |
table { border-collapse: collapse; margin: auto; } |
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 | |
class ProjectConfiguration extends sfProjectConfiguration | |
{ | |
public function setup() | |
{ | |
$this->dispatcher->connect('command.filter_options', array($this, 'filterCommandOptions')); | |
} | |
/** |
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 | |
class ProjectConfiguration extends sfProjectConfiguration | |
{ | |
public function setup() | |
{ | |
$this->dispatcher->connect('command.filter_options', array($this, 'filterCommandOptions')); | |
} | |
/** |
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 | |
class xxxConfiguration extends sfXxxConfiguration | |
{ | |
public function setup() | |
{ | |
$this->dispatcher->connect('command.filter_options', array($this, 'filterCommandOptions')); | |
} | |
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 | |
class xxxConfiguration extends sfXxxConfiguration | |
{ | |
public function setup() | |
{ | |
$this->dispatcher->connect('command.filter_options', array($this, 'filterCommandOptions')); | |
} | |