Skip to content

Instantly share code, notes, and snippets.

View frostbitten's full-sized avatar

Matthew Seremet frostbitten

View GitHub Profile
@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
@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 / .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 / add to composer.json
Last active June 13, 2016 18:28
simple uploader integration
"codeguy/upload":"~1",
$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 / Readme.md
Last active August 28, 2016 09:23
coolors.co convert to adobe color (kuler)

Convert Coolors.co palette to Adobe Color (Kuler) link

convert-coolors-kuler-banner.png

Example usage

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
@frostbitten
frostbitten / vimeo-muted.js
Created September 22, 2016 20:01
mute vimeo videos with angular
// 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
@frostbitten
frostbitten / bridge.php
Last active October 4, 2016 02:10
Bridge Design Pattern Test
<!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)
@frostbitten
frostbitten / public domain media.md
Created February 27, 2022 17:12
Links to websites that serve 100% royalty-free, worry-free, public domain media. Great for commercial use!