Skip to content

Instantly share code, notes, and snippets.

<?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 / S3-Static-Sites.md
Created May 16, 2018 18:38 — forked from bradwestfall/S3-Static-Sites.md
Use S3 and CloudFront to host Static Single Page Apps (SPAs) with HTTPs and www-redirects. Also covers deployments.

S3 Static Sites

What this will cover

  • Host a static website at S3
  • Redirect www.website.com to website.com
  • Website can be an SPA (requiring all requests to return index.html)
  • Free AWS SSL certs
  • Deployment with CDN invalidation

Resources

@liamr
liamr / index.html
Created September 1, 2020 13:53 — forked from Ehesp/index.html
Firebase Web SDK Scratch Pad
<!doctype html>
<html lang="en">
<body>
<script src="https://www.gstatic.com/firebasejs/6.0.4/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.0.4/firebase-database.js"></script>
<script>
// TODO: Replace the following with your app's Firebase project configuration
var firebaseConfig = {