View animationQueue.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pass the last argument to git checkout | |
function damnit() { | |
git checkout $_ | |
} |
View gist:66528988f02fd50f9081
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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; |
View filters.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
### --- Snip --- ### | |
App::after(function($request, $response) | |
{ | |
// HTML Minification | |
if(App::Environment() != 'local') | |
{ | |
if($response instanceof Illuminate\Http\Response) |