Skip to content

Instantly share code, notes, and snippets.

View leonbarrett's full-sized avatar

Leon Barrett leonbarrett

View GitHub Profile
StorySounds Privacy Policy
This Privacy Policy describes how your personal information is collected, used, and shared when you visit https://storysounds.app (the “Site”).
Information that is gathered from visitors
In common with other websites, log files are stored on the web server saving details such as the visitor's IP address, browser type, referring page and time of visit.
Cookies may be used to remember visitor preferences when interacting with the website.
Where registration is required, the visitor's email and a username will be stored on the server.
@leonbarrett
leonbarrett / Browse iFrame
Last active August 29, 2015 13:56
Browse iFrame
<script type="text/javascript" src="http://browsefb.hammersonapps.com/assets/js/iframe.js"></script>
<iframe id="browsefbiframe" name="browsefbiframe" src="http://browsefb.hammersonapps.com/bullring.html" frameborder="0"></iframe>
@leonbarrett
leonbarrett / default ticket states
Created February 4, 2014 09:07
Lighthouse default ticket states
Open
new/f17
open/aaa
retest/0d64ff
needsDeploying/fed815
featureRequest/ff7937
Closed
@leonbarrett
leonbarrett / gist:8038521
Created December 19, 2013 12:39
iFrame embed codes. The javascript section needs to be 1st and is the same for all centres (currently on Bullring live)
<iframe id="salesstreamiframe" name="salesstreamiframe" src="http://salesstream.hammersonapps.com/bullring.html" frameborder="0"></iframe>
<iframe id="salesstreamiframe" name="salesstreamiframe" src="http://salesstream.hammersonapps.com/brentcross.html" frameborder="0"></iframe>
<iframe id="salesstreamiframe" name="salesstreamiframe" src="http://salesstream.hammersonapps.com/centrale.html" frameborder="0"></iframe>
<iframe id="salesstreamiframe" name="salesstreamiframe" src="http://salesstream.hammersonapps.com/highcross.html" frameborder="0"></iframe>
<iframe id="salesstreamiframe" name="salesstreamiframe" src="http://salesstream.hammersonapps.com/oracle.html" frameborder="0"></iframe>
@leonbarrett
leonbarrett / SalesStream embed
Last active December 31, 2015 14:49
SalesStream embed for Vicinitee iFrames
<script type="text/javascript" src="http://salesstream.hammersonapps.com/assets/js/iframe.js"></script>
<iframe id="salesstreamiframe" name="salesstreamiframe" src="http://salesstream.hammersonapps.com/bullring.html" frameborder="0"></iframe>
@leonbarrett
leonbarrett / Installing Memcached for MAMP PRO 1.9 running php 5.3.2 on OSX
Created April 6, 2013 09:00
Installing Memcached for MAMP PRO 1.9 running php 5.3.2 on OSX
Step 1 – Install XCode (it’s available from the Mac App Store now).
Step 2 – Make the Mamp php files executable
sudo chmod +xrw /Applications/MAMP/bin/php5.3/bin/p*
Step 3 – Grab the memcached source
cd ~
wget http://pecl.php.net/get/memcache-2.2.5.tgz
@leonbarrett
leonbarrett / terminal keychain access
Created December 31, 2012 11:00
Method to get a password via the keychain on osx. In this instance test is the name of the keychain account
security 2>&1 >/dev/null find-generic-password -ga test
@leonbarrett
leonbarrett / Beanstalk PHP commit notifications with Notify.io
Created November 10, 2010 10:18
Get Notify.io notifications each time you commit in Beanstalk
function index(){
$this->load->library('notifyio_api');
$commit = $this->input->post('commit');
$decoded = json_decode($commit,true);
date_default_timezone_set('Europe/London');
@leonbarrett
leonbarrett / Beanstalk PHP deployment hooks
Created November 10, 2010 10:01
Two CodeIgniter methods that you can use to get your Beanstalk deploy notifications into Notify.io
function pre(){
$this->load->library('notifyio_api');
$handle = fopen('php://input','r');
$jsonInput = fgets($handle);
$decoded = json_decode($jsonInput,true);
fclose($handle);
$data = array(
'email'=>$decoded['author_email'],
@leonbarrett
leonbarrett / jQuery ajax hook
Created November 9, 2010 14:12
Simple function to show when ajax calls are started/stopped
$(document).ajaxStart(function() {
//you can do anything here such as showing a loading graphic
console.log('ajax started');
});
$(document).ajaxStop(function() {
console.log('ajax stopped');
});