Skip to content

Instantly share code, notes, and snippets.

Scott Robbin srobbin

Block or report user

Report or block srobbin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Setup Expression Engine (new install)
Performs the basic setup instructions for a new Expression Engine install
as outlined here:
One parameter: if you'd like to rename the system folder (recommended, but optional)
View gist:294957
var images = [ "/path/to/image1.jpg",
randNum = Math.floor( Math.random() * images.length );
$.backstretch( images[randNum] );
View gist:430515
<!-- Typical script include -->
<script src="/_scripts/file1.js"></script>
<script src="/_scripts/file2.js"></script>
<script src="/_scripts/file2.js"></script>
<!-- Using Minify, it becomes this -->
<!-- -->
<script src="/_min/b=_scripts&f=file1.js,file2.js,file.js"></script>
View .htaccess
# Add to your .htaccess file
FileETag none
ExpiresActive On
ExpiresDefault A0
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/ico A2592000
ExpiresByType text/css A2592000
View gist:430563
<!-- Google-hosted jQuery -->
<script src=""></script>
View Example of jQuery Backstretch Slideshow
var position = 0,
images = [
setInterval(function() {
if(position++ > images.length) position = 0;
View For switching a background image with Backstretch
$("#backstretch img").attr("src", "/path/to/new/image.jpg");
View gist:904748
<script type="text/javascript" src=""></script>
<script type="text/javascript" src="/path/to/jquery.backstretch.min.js"></script>
<script type="text/javascript">
srobbin / gist:1098045
Created Jul 21, 2011 — forked from ChicagoMap/Fusion Table
Practice Fusion Table
View gist:1098045
<!DOCTYPE html>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0px; padding: 0px }
#map_canvas { height: 100% }
<script type="text/javascript" src=""></script>
srobbin / gist:1711644
Created Jan 31, 2012
Responsive image test with NOSCRIPT
View gist:1711644
<!doctype html>
<html lang="en">
<meta charset="utf-8" />
<title>Responsive image test with NOSCRIPT</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
.container { width: 960px; margin: 0 auto; }
img { max-width: 100%; }
You can’t perform that action at this time.