View options.js
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
/** Command-line options parser (http://valeriu.palos.ro/1026/). | |
Copyright 2011 Valeriu Paloş (valeriu@palos.ro). All rights reserved. | |
Released as Public Domain. | |
Expects the "schema" array with options definitions and produces the | |
"options" object and the "arguments" array, which will contain all | |
non-option arguments encountered (including the script name and such). | |
Syntax: | |
[«short», «long», «attributes», «brief», «callback»] |
View class.js
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
/** | |
* Class.js: A class factory. | |
* (http://vpalos.com/1194/js-classes-for-the-masses/) | |
*/ | |
function Class(members) { | |
// setup proxy | |
var Proxy = function() {}; | |
Proxy.prototype = (members.base || Class).prototype; |
View get-field.js
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
/** | |
* Universal field getter method for JavaScript objects. | |
* @param {Object} _path The field path inside `this`. | |
* @param {...} _default The default value to be returns if field is not found. | |
* @return {...} Returns the found field value else `_default` else `undefined`. | |
*/ | |
Object.prototype._ = Object.prototype._ || function(_path, _default) { | |
var value = _path.split('.').reduce( | |
function(hash, field) { | |
return hash && hash[field] |
View specl-schema.yaml
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
--- | |
# | |
# Some pre-defined meta-values provided for this schema (required). | |
# | |
identity: | |
company: DevFactory | |
version: 2.0 | |
# | |
# All fields named `comment` simply provide a short explanatory paragraph for |
View specl-template.yaml
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
--- | |
identity: | |
company: DevFactory | |
version: 2.0 | |
# | |
# This document represents an L1 specification which describes in thorough | |
# technical detail a single Milestone; it can consist of a single file, or | |
# multiple files, imported via referencing. | |
# |
View specl-specification.yaml
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
--- | |
identity: | |
company: DevFactory | |
version: 2.0 | |
# | |
# This document represents an L1 specification which describes in thorough | |
# technical detail a single Milestone; it can consist of a single file, or | |
# multiple files, imported via referencing. | |
# |
View Spec-Deriving Algorithm.js
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
function Main() { | |
Iterate { | |
IdentifyNextThread() | |
For each Thread { | |
PullThread() | |
} | |
} | |
} |
View font-face-mixin.scss
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
@mixin font($family, $file, $weight, $style, $locals) { | |
$prefix: "http://localhost:3000/fonts"; | |
$src: null; | |
@each $local in $locals { | |
$src: append($src, local($local), comma); | |
} | |
$src: append($src, url("#{$prefix}/#{$file}.eot?#iefix") format("embedded-opentype"), comma); | |
$src: append($src, url("#{$prefix}/#{$file}.woff2") format("woff2"), comma); | |
$src: append($src, url("#{$prefix}/#{$file}.woff") format("woff"), comma); |
View lodash-replacements.js
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
export function _get(object, path, fallback) { | |
const value = path.split(".").reduce((hash, field) => hash && hash[field], object); | |
return typeof value === "undefined" ? fallback : value; | |
} |
View enum-keys.ts
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
enum DialogButton { | |
YES = "yes", | |
NO = "no", | |
CANCEL = "cancel" | |
} | |
interface IDialog { | |
buttons: { [B in DialogButton]?: boolean }, | |
callback: (button: DialogButton) => void | |
} |
OlderNewer