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
// INITAL STATE: | |
worker = new Person | |
space = new VeryPrivateSpace | |
dispenser = new PaperHolder | |
space.setFixture(dispenser) | |
//ACTION | |
worker.transferTo(space) |
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 NullChildFixture extends CakeTestFixture { | |
public $fields = array( | |
'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'), | |
'null_parent_id' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'length' => 10), | |
'name' => array('type' => 'text', 'null' => false, 'default' => NULL, 'collate' => 'utf8_general_ci', 'charset' => 'utf8') | |
); |
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
@echo off | |
goto script | |
REM inspired by code in http://jelledepot.blogspot.com/2009/04/putty-pageant-autoload-your-private.html | |
REM @author DizyArt (https://github.com/dizyart) | |
REM @copyright 2013 Dizyart | |
REM licensed under WTFPL (Do What the Fuck You Want to Public License) http://en.wikipedia.org/wiki/WTFPL | |
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
<pre> | |
<?php | |
$connection = new MongoClient(); | |
$collection = $connection->database->test; | |
$collection->drop(); | |
$collection->batchInsert([ | |
['a' => 'b'], | |
['a' => 'b'] | |
] |
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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{REQUEST_URI} !^/(?:development|cgi-bin|v1\.5|phpMyAdmin)(?:$|/) | |
RewriteRule ^$ app/webroot/ [L] | |
RewriteCond %{REQUEST_URI} !^/(?:development|cgi-bin|v1\.5|phpMyAdmin)(?:$|/.*) | |
RewriteRule (.*) app/webroot/$1 [L] | |
</IfModule> |