Skip to content

Instantly share code, notes, and snippets.

View zmsaunders's full-sized avatar

Zach Saunders zmsaunders

View GitHub Profile
@zmsaunders
zmsaunders / filters.php
Last active August 7, 2022 10:54
HTML Output Minification in laravel 4
<?php
### --- Snip --- ###
App::after(function($request, $response)
{
// HTML Minification
if(App::Environment() != 'local')
{
if($response instanceof Illuminate\Http\Response)
@zmsaunders
zmsaunders / gist:66528988f02fd50f9081
Created September 18, 2015 19:24
Bash profile Prank
# Since co workers keep leaving their computer unlocked, lets add this
# to their bash profile on their mac. Nothing like a random borat quote each
# time you open a terminal.
curl -s http://smacie.com/randomizer/borat.html | sed -nE "s# *<td valign=\"top\"><big><big><big><font face=\"Comic Sans MS\">(.*)</font></big></big></big></td>#\1#p" | say; clear;
# Pass the last argument to git checkout
function damnit() {
git checkout $_
}
@zmsaunders
zmsaunders / neat-flex-grid.scss
Created September 6, 2016 19:37 — forked from alexgleason/neat-flex-grid.scss
Bourbon/Neat Flexbox Grid
/*
Based on code by Kevin Lamping
source: http://codepen.io/klamping/pen/waMOeX
*/
@mixin flex-grid {
display: flex;
flex-wrap: wrap;
margin-left: -$gutter;
margin-top: -$gutter;
@zmsaunders
zmsaunders / animationQueue.js
Last active August 4, 2017 15:02
RequestAnimationFrame Queue Lib
var AnimationQueue = function() {
this.animations = [];
this.lastRun = 0;
this.runAnimations();
};
AnimationQueue.prototype = {
addAnimation(func, fps) {
this.animations.push({
call : func,