This file contains 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 | |
include('konstruct.php'); | |
$konstruct = Konstruct::fabricate([ | |
'cc' => 'path/to/library/cc', | |
'bb' => 'path/to/library/bb', | |
'aa' => 'path/to/library/aa' | |
]); |
This file contains 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
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; |
This file contains 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
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); |
This file contains 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
root: { | |
/* red tones */ | |
--hsl-white: hsl(0, 0, 100); | |
--hsl-snow: hsl(0, 100, 99); | |
--hsl-seashell: hsl(25, 100, 97); | |
--hsl-white-smoke: hsl(0, 0, 96); | |
--hsl-rose-white: hsl(19, 70, 95); | |
--hsl-hint-of-red: hsl(24, 33, 94); | |
--hsl-chablis: hsl(19, 88, 94); |
This file contains 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
root: { | |
/* red tones */ | |
--hsv-white: hsv(0, 0, 100); | |
--hsv-snow: hsv(0, 2, 100); | |
--hsv-seashell: hsv(25, 7, 100); | |
--hsv-white-smoke: hsv(0, 0, 96); | |
--hsv-rose-white: hsv(19, 8, 98); | |
--hsv-hint-of-red: hsv(24, 4, 96); | |
--hsv-chablis: hsv(19, 11, 99); |
This file contains 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
'use strict'; | |
var Hapi = require('hapi'), | |
server = new Hapi.Server(); | |
server.connection({ port: 80 }); | |
// Example #1, simply override the content-type header and trust the input | |
server.route({ | |
path: '/csp/report/1', |
This file contains 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 | |
// (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 |
This file contains 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
// compensate for old Glue configuration syntax | |
function convertGluePluginManifest(manifest) { | |
if ('plugins' in manifest) { | |
if (!manifest.connections || manifest.connections.length !== 1) { | |
throw new Error('it is probably a Bad Idea™ to bluntly convert the old Glue "plugins" to reside on all connections'); | |
} | |
if (!('registrations' in manifest)) { | |
manifest.registrations = []; | |
} |
This file contains 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
/** | |
* @param {Element} el | |
* @param {string} selector | |
* @return {Element[]} | |
*/ | |
h.children = function(el, selector) { | |
var selectors = null, | |
children = null, | |
childSelectors = [], |
This file contains 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
/** | |
* Obtain screen/window/document(.documentElement)/element dimensions | |
* @param object target | |
* @param mixed prefix [optional, default false-ish - no prefix, use best for target] | |
* @note best: | |
* - window >> outer | |
* - document >> client|offset|scroll | |
* - element >> client|offset|scroll | |
*/ | |
function dimension(target, prefix) { |
OlderNewer