This file contains hidden or 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 | |
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 |
This file contains hidden or 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
{ | |
"name": "userfrosting-plugin-stolz-asssets", | |
"type": "project", | |
"description": "Integrates Stolz's Assets Manager", | |
"license" : "MIT", | |
"require-dev": { | |
}, | |
"require": { | |
"stolz/assets" : "*", | |
} |
This file contains hidden or 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
# i should be placed within "public/user" | |
php_flag engine off |
This file contains hidden or 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
"codeguy/upload":"~1", |
This file contains hidden or 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
$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); | |
}); |
Utilize the coolors2kuler()
function to convert a coolors palette link to a kuler link :
coolors2kuler("https://coolors.co/2f1847-624763-c62e65-f9b3d1-d63af9")
=> "https://color.adobe.com/create/color-wheel/?rule=Custom&mode=rgb&rgbvalues=0.1843137254901961,0.09411764705882353,0.2784313725490196,0.3843137254901961,0.2784313725490196,0.38823529411764707,0.7764705882352941
This file contains hidden or 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
// derived from http://stackoverflow.com/a/38815215/1713528 | |
yourAppVar.directive('vimeoMuted', function () { | |
return { | |
restrict: 'A', | |
scope: { | |
}, | |
link: function (scope, elem, attr) { | |
//Select the #embeddedVideo element |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/css/materialize.min.css"> | |
<title>Device Bridge</title> | |
<body class="container"> | |
<h1>Bridge Design Pattern</h1> | |
<p><i>"decouple an abstraction from its implementation so that the two can vary independently"</i> (GoF 151) |
Entire website, everything is CC0 or practically so (same rights):
- https://www.pexels.com/
- https://pixabay.com/
- https://unsplash.com/license
- https://www.sharetextures.com/about-2/
- https://openclipart.org/share
- https://www.needpix.com/about
Specific sections of website contain CC0 work:
- The Metropolitan Museum of Art's "Open Access" artwork: https://www.metmuseum.org/art/collection/search?showOnly=withImage%7CopenAccess&pageSize=0&sortBy=Relevance&sortOrder=asc&searchField=All
OlderNewer