Skip to content

Instantly share code, notes, and snippets.

View richlove1's full-sized avatar

Rich Lovelock richlove1

  • Milton Keynes, UK
View GitHub Profile
@richlove1
richlove1 / gist:5661877
Created May 28, 2013 10:32
YouTube Embed problem
<!DOCTYPE html>
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Foundation 4</title>
@richlove1
richlove1 / gist:5661558
Created May 28, 2013 09:18
Foundation YouTube / Tabs embed problem
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title> No-Chrome Test Page
</title>
@richlove1
richlove1 / gist:5651245
Created May 25, 2013 23:58
Skeleton blade file
@extends('templates.main')
<!-- Angular ng-app directive for html tag -->
@section('ng-app')ng-app=""@stop
<!-- Angular ng-controller directive for body tag -->
@section('ng-controller')ng-controller=""@stop
<!-- Page title -->
@section('page-title')
@richlove1
richlove1 / gist:5651243
Last active December 17, 2015 18:09
Main layout with some ng-xxx stuff?
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" @yield('ng-app') lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" @yield('ng-app')> <!--<![endif]-->
<head>
<title>
@section('page-title')
The Golf Counter
@show
@richlove1
richlove1 / gist:5634936
Last active December 17, 2015 15:58
Foundation Problem
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title> Welcome to iSpot
</title>
<div class="contain-to-grid fixed">
<nav class="top-bar">
<ul>
<!-- Title Area -->
<li class="name">
<h1>
<a href="/">
TGC
</a>
</h1>
@richlove1
richlove1 / gist:3016892
Created June 29, 2012 09:25
Change to Sites/all/modules/custom/parser_eventrss/includes/eventrsssimplepieparser.inc
<?php
public function parse(FeedsImportBatch $batch, FeedsSource $source) {
$result = parent::parse(&$batch, $source);
/*-----------------------------------------------------------------------------
became....
<?php
/**
* @version SocialLearn 2.0
* @author Richard Greenwood <r.m.greenwood@open.ac.uk>
* @copyright Copyright (c) 2011-2012, The Open University
* @licence http://opensource.org/licenses/gpl-license.php GNU Public License
*/
namespace App\Service;
<?php
/**
* @version SocialLearn 2.0
* @author Richard Greenwood <r.m.greenwood@open.ac.uk>
* @copyright Copyright (c) 2011-2012, The Open University
* @licence http://opensource.org/licenses/gpl-license.php GNU Public License
*/
namespace App\Service;
@richlove1
richlove1 / FirePHP.php
Created November 23, 2011 15:19
Load FirePHP
<?php
/**
* Most controllers in CloudEngine should be extended from this one.
*
* @copyright 2009, 2010 The Open University. See CREDITS.txt
* @license GNU General Public License version 2. See LICENCE.txt
* @package
*/
class MY_Controller extends Controller {