Skip to content

Instantly share code, notes, and snippets.

View caffeineinc's full-sized avatar

Simon Gow caffeineinc

View GitHub Profile

MacOS configurations:

show all files (requires finder restart)

defaults write com.apple.finder AppleShowAllFiles YES

disable shitty back forward behavoiour.

defaults write com.google.Chrome.plist AppleEnableSwipeNavigateWithScrolls -bool FALSE

Install brew:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

PropertySearchPage:
search:
URLSegment: find-a-rental
Title: Find a rental
Region:
mordor:
Title: Mordor
rohan:
Title: Rohan
PropertySearchPage:
search:
URLSegment: find-a-rental
Title: Find a rental
Region:
mordor:
Title: Mordor
rohan:
Title: Rohan
<?php
use SilverStripe\Dev\SapphireTest;
use SilverStripe\Control\HTTPRequest;
/**
* Tests link tracking to files and images.
*/
class PropertySearchPageControllerTest extends SapphireTest
{
<?php
use SilverStripe\Control\HTTPRequest;
use SilverStripe\ORM\PaginatedList;
use SilverStripe\Forms\TextField;
use SilverStripe\Forms\DropdownField;
use SilverStripe\ORM\ArrayLib;
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\FormAction;
use SilverStripe\Forms\Form;
<?php
use SilverStripe\Dev\SapphireTest;
/**
* Test our property business logic.
*/
class PropertyTest extends SapphireTest
{
public function setUp()
<?php
use SilverStripe\Assets\Image;
use SilverStripe\ORM\FieldType\DBDate;
use SilverStripe\ORM\Filters\PartialMatchFilter;
use SilverStripe\Forms\TextField;
use SilverStripe\ORM\Filters\ExactMatchFilter;
use SilverStripe\Forms\DropdownField;
use SilverStripe\Forms\TabSet;
use SilverStripe\Forms\FieldList;
<?php
class HomePageController extends PageController
{
/**
* Our design presently has space for 6 articles, or in columns of 3.
*/
const NUM_FEATURED_PROPERTIES = 6;
/**
<?php
use SilverStripe\Core\Injector\Injector;
use SilverStripe\Dev\SapphireTest;
/**
* Tests link tracking to files and images.
*/
class HomePageTest extends SapphireTest
{