Skip to content

Instantly share code, notes, and snippets.

View Perturbatio's full-sized avatar

Kris Kelly Perturbatio

View GitHub Profile
<?php
$env = $app->detectEnvironment(function() {
return getenv('[APPNAME]_ENV') ?: 'development';
});
@gre
gre / easing.js
Last active June 13, 2024 12:18
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
@triptych
triptych / draggable-background.js
Created April 28, 2011 09:06 — forked from eculver/draggable-background.js
draggable-background.js YUI widget
/**
* Draggable Background Widget
*
* A widget that will use a specified image and dimensions to
* produce a draggable, window-like view of an image.
*
* Example usage:
*
* YUI.use('widget-draggable-background', function(Y) {
* var widget = new Y.WD.Widget.DraggableBackground({