Skip to content

Instantly share code, notes, and snippets.

View frostbitten's full-sized avatar

Matthew Seremet frostbitten

View GitHub Profile
$app->get('/css/fonts/fontawesome-(:type)?', function ($type) use ($app) {
$v = $app->request->get()['v'];
$app->redirect('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/'.$v.'/fonts/fontawesome-'.$type, 301);
});
@frostbitten
frostbitten / add to composer.json
Last active June 13, 2016 18:28
simple uploader integration
"codeguy/upload":"~1",
@frostbitten
frostbitten / .htaccess
Created April 18, 2016 16:52
custom uri and file externalizer for 0.3.2 dev
# i should be placed within "public/user"
php_flag engine off
@frostbitten
frostbitten / composer.json
Created March 26, 2016 16:28
UserFrosting - Stolz Assets Plugin
{
"name": "userfrosting-plugin-stolz-asssets",
"type": "project",
"description": "Integrates Stolz's Assets Manager",
"license" : "MIT",
"require-dev": {
},
"require": {
"stolz/assets" : "*",
}
@frostbitten
frostbitten / config-plugin.php
Created January 14, 2016 19:28
simple upload integration with dropzone and sirius\upload
<?php
namespace UserFrosting\Uploader;
// add require "codeguy/upload":"*" to composer
use Sirius\Upload\Handler as UploadHandler;
// Register CSS and JS includes for the pages
$app->hook('includes.css.register', function () use ($app){
// Register common CSS files