Skip to content

Instantly share code, notes, and snippets.

@rspieker
rspieker / color-definitions-rgb.css
Created August 5, 2015 09:22
RGB color definitions for use with CSS4 / Myth CSS preprocessor
root: {
/* red tones */
--rgb-white: rgb(255, 255, 255);
--rgb-snow: rgb(255, 250, 250);
--rgb-seashell: rgb(255, 245, 238);
--rgb-white-smoke: rgb(245, 245, 245);
--rgb-rose-white: rgb(251, 238, 232);
--rgb-hint-of-red: rgb(245, 239, 235);
--rgb-chablis: rgb(253, 233, 224);
@rspieker
rspieker / color-definitions-hex.css
Created August 5, 2015 09:21
HEX color definitions for use with CSS4 / Myth CSS preprocessor
root: {
/* red tones */
--hex-white: #ffffff;
--hex-snow: #fffafa;
--hex-seashell: #fff5ee;
--hex-white-smoke: #f5f5f5;
--hex-rose-white: #fbeee8;
--hex-hint-of-red: #f5efeb;
--hex-chablis: #fde9e0;
@rspieker
rspieker / example.php
Created November 19, 2014 22:50
Factory example, including loading from prefixed 'libraries'
<?php
include('konstruct.php');
$konstruct = Konstruct::fabricate([
'cc' => 'path/to/library/cc',
'bb' => 'path/to/library/bb',
'aa' => 'path/to/library/aa'
]);
@rspieker
rspieker / request.php
Last active December 21, 2015 15:29
Request data in Konsolidate's Breed tier
<?php
// (we assume a working Konsolidate instance to be in $K)
// there are a couple of ways to work with Breed's Request object
// Given the GET request: http://example.com/request.php?foo=bar
// The implicit approach, just asking Request itself, which will determine
// the appropriate request type (GET in this case) and look up the variable