Skip to content

Instantly share code, notes, and snippets.

View stephencozart's full-sized avatar

Stephen Cozart stephencozart

View GitHub Profile
/**
* Usage - Review the defaults for additional options that can be set
*
* Easily add alert ui messages to the dom without messing with the dom!
*
* $.flash({content: 'record saved...',auto_remove: false});
*/
$.extend({
flash: function(options) {
@stephencozart
stephencozart / jquery-pretty-select.js
Created May 17, 2012 22:45
jQuery Select Replacement
(function($){
var methods = {
init : function(opts) {
var defaults = {
width: null,
height: null,
bgcolor: '#d4d4d4',
zindex: 100,
option_height: 20
@stephencozart
stephencozart / L4Init.sh
Created January 24, 2013 19:13
L4 Installer
curl -vsS "https://nodeload.github.com/laravel/laravel/zip/develop" -H "Accept-Encoding: application/zip" > $PWD/develop.zip
tar -xvf develop.zip --strip-components 1 && composer install && rm develop.zip
echo "Have Fun :D"
/*! jQuery Migrate v1.2.1 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */
jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){function r(n){var r=t.console;i[n]||(i[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn("JQMIGRATE: "+n),e.migrateTrace&&r.trace&&r.trace()))}function a(t,a,i,o){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){return r(o),i},set:function(e){r(o),i=e}}),n}catch(s){}e._definePropertyBroken=!0,t[a]=i}var i={};e.migrateWarnings=[],!e.migrateMute&&t.console&&t.console.log&&t.console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){i={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var o=e("<input/>",{size:1}).attr("size")&&e.attrFn,s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.va
@stephencozart
stephencozart / AssetManager.php
Last active October 18, 2018 20:40
Yii2 App Engine Standard AssetManager. Must rename web/ -> public/ or specify an entrypoint as entrypoint: web/index.php in your app.yaml file
<?php
namespace app\components;
use yii\base\InvalidConfigException;
use yii\helpers\FileHelper;
class AssetManager extends \yii\web\AssetManager
{