Skip to content

Instantly share code, notes, and snippets.

@liamr
liamr / Test
Created January 25, 2010 20:31
Hello
@liamr
liamr / Anoth
Created January 25, 2010 20:32
er
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Deploy extends Front_Controller
{
protected $file_name = '';
protected $_path = '';
/**
* Constructor
@liamr
liamr / datatable_plugins.min.js
Created January 29, 2012 21:08 — forked from og-shawn-crigger/datatable_plugins.min.js
DataTable Plugin's file, add to /bonfire/application/core_modules/activities/assets/js
$.fn.dataTableExt.oPagination.listbox = {
/*
* Function: oPagination.listbox.fnInit
* Purpose: Initalise dom elements required for pagination with listbox input
* Returns: -
* Inputs: object:oSettings - dataTables settings object
* node:nPaging - the DIV which contains this pagination control
* function:fnCallbackDraw - draw function which must be called on update
*/
"fnInit": function (oSettings, nPaging, fnCallbackDraw) {
@liamr
liamr / ajaxify-html5.js
Created February 10, 2012 16:28 — forked from balupton/README.md
Ajaxify a Website with the HTML5 History API using History.js, jQuery and ScrollTo
// https://gist.github.com/854622
(function(window,undefined){
// Prepare our Variables
var
History = window.History,
$ = window.jQuery,
document = window.document;
// Check to see if History.js is enabled for our Browser
@liamr
liamr / ajaxify-html5.js
Created February 11, 2012 14:56 — forked from balupton/README.md
Ajaxify a Website with the HTML5 History API using History.js, jQuery and ScrollTo
// https://gist.github.com/854622
(function(window,undefined){
// Prepare our Variables
var
History = window.History,
$ = window.jQuery,
document = window.document;
// Check to see if History.js is enabled for our Browser
@liamr
liamr / gist:3497709
Created August 28, 2012 12:41
Red5 init.d script
#!/bin/sh
#
# /etc/init.d/red5 -- startup script for the red5 server
#
# Based on the tomcat6 init script.
# Written by Miquel van Smoorenburg <[email protected]>.
# Modified for Ubuntu red5 by Fred Dixon <[email protected]>
# Modified for Debian GNU/Linux by Ian Murdock <[email protected]>.
# Modified for Tomcat by Stefan Gybas <[email protected]>.
# Modified for Tomcat6 by Thierry Carrez <[email protected]>.
@liamr
liamr / laravel_4_setup
Last active December 12, 2015 04:49
Laravel 4 setup
#Setup
git clone -b develop https://github.com/laravel/laravel.git myproject
cd myproject
mkdir bin
curl -s https://getcomposer.org/installer | php -d detect_unicode=Off -- --install-dir=bin
rm -rf .git #we don't want this to be laravels rep
php bin/composer.phar install
#Config
chmod -R 0777 app/storage
@liamr
liamr / StarterBase
Created April 22, 2013 10:43
Starting point - Foundation 4 grid + Normalize
/*! normalize.css v2.1.0 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
@liamr
liamr / StarterMain
Created April 22, 2013 10:48
StarterBase - main styles
/*------------------------------------------------------------
Start Main
Created by: Liam R
Contact: hello-at-liamr.com
Copyright 2013
--------------------------------------------------------------*/