Skip to content

Instantly share code, notes, and snippets.

/**
* Copyright 2013 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@villimagg
villimagg / artisan
Last active December 15, 2015 07:49
An artisan executable to store under the bin/ directory for easy artisan commands and easy installation of an instance of Laravel 4 for creating new projects.
#!/bin/bash
if [ -f "./artisan" ]; then
php artisan "$@"
else
if [ "$1" == "new" ]; then
if [ ! `which git` ]; then
echo "For this installer to work you'll need to install Git."
@paulirish
paulirish / rAF.js
Last active March 22, 2024 00:00
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];