Skip to content

Instantly share code, notes, and snippets.

Avatar

Zach Saunders zmsaunders

View GitHub Profile
@zmsaunders
zmsaunders / animationQueue.js
Last active Aug 4, 2017
RequestAnimationFrame Queue Lib
View animationQueue.js
var AnimationQueue = function() {
this.animations = [];
this.lastRun = 0;
this.runAnimations();
};
AnimationQueue.prototype = {
addAnimation(func, fps) {
this.animations.push({
call : func,
View neat-flex-grid.scss
/*
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;
View .aliases
# Pass the last argument to git checkout
function damnit() {
git checkout $_
}
View gist:66528988f02fd50f9081
# 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;
@zmsaunders
zmsaunders / filters.php
Last active Dec 7, 2018
HTML Output Minification in laravel 4
View filters.php
<?php
### --- Snip --- ###
App::after(function($request, $response)
{
// HTML Minification
if(App::Environment() != 'local')
{
if($response instanceof Illuminate\Http\Response)
You can’t perform that action at this time.