Setting up Xdebug
cd vosbox
vagrant ssh
nano /etc/php.d/xdebug_sandbox.ini
#!/bin/sh | |
su - USERNAME -c "cd /Users/USERNAME/vosbox; rbfu vagrant suspend" | |
exit 0 |
cd vosbox
vagrant ssh
nano /etc/php.d/xdebug_sandbox.ini
#CSS Style Guide
Here is what we'll cover:
<script id="news-loader"> | |
if ('querySelector' in document && 'localStorage' in window && 'addEventListener' in window) { | |
var curl = { | |
baseUrl: 'http://static.bbci.co.uk/news/1.5.4r3-30/js', | |
apiContext: window, | |
apiName: 'require', | |
overwriteApi: true, | |
paths: { | |
"jquery-1": "http:\/\/static.bbci.co.uk\/frameworks\/jquery\/0.2.1\/sharedmodules\/jquery-1.7.2", | |
"demi-1": "http:\/\/static.bbci.co.uk\/frameworks\/demi\/0.9.8\/sharedmodules\/demi-1", |
ProxyCommand ~/.ssh/proxy %h %p | |
Host sandbox | |
Hostname 192.168.192.10 | |
User root | |
#Host github.com | |
#ProxyCommand nc -x socks-gw.reith.bbc.co.uk:1085 %h %p |
#!/bin/bash | |
NETWORK_LOCATION="$(/usr/sbin/scselect 2>&1 | egrep '^ \* ' | sed 's:.*(\(.*\)):\1:')" | |
if [ "$NETWORK_LOCATION" = "BBC On Network" ]; then | |
if [[ "$1" == "localhost" || "$1" == "127.0.0.1" || "$1" =~ "sandbox.dev.bbc.co.uk" ]]; then | |
/usr/local/bin/connect $1 $2 | |
else | |
/usr/local/bin/connect -S socks-gw.reith.bbc.co.uk:1085 $1 $2 | |
fi |
public function testRetrieveCorrespondentStories() | |
{ | |
$service = new BBC_News_Service_Candy_Source($this->client, $this->multiClient, new BBC_News_Service_Candy_Transformer(), $this->host); | |
$collection = $service->retrieveCorrespondentStories('nickrobinson'); | |
$this->assertEquals(3, $collection->count()); | |
} |
<body xmlns=\"http://www.bbc.co.uk/asset\"> | |
<paragraph>1</paragraph> | |
<image id=\"63255201\"/> | |
<paragraph>2</paragraph> | |
<paragraph>3</paragraph> | |
<paragraph>4</paragraph> | |
<name>Mark Devenport</name> | |
<paragraph>5</paragraph> | |
<paragraph>6</paragraph> | |
<name>Nick Robinson</name> |
Allegra Stratton | |
Andrew Harding | |
Andrew Neil | |
Andrew North | |
Arif Ansari | |
Betsan Powys | |
Brian Taylor | |
Chris Jackson | |
Damian Grammaticas | |
David Cornock |
###Run rake sass:compile:news
when you save a .scss file
#####1.) Install https://github.com/alexnj/SublimeOnSaveBuild using Package Control
#####2.) Configure SublimeOnSaveBuild for your desired filetypes
Preferences > Package Settings > SublimeOnSaveBuild > Settings - User
{