Skip to content

Instantly share code, notes, and snippets.

View dylans's full-sized avatar

Dylan Schiemann dylans

  • Living Spec
  • Phoenix, Arizona
  • X @dylans
View GitHub Profile
declare module 'logging/index' {
/**
* This library is part of the Aurelia platform and contains a minimal but effective logging mechanism
* with support for log levels and pluggable log appenders.
*
* @module logging
*/
/**
* Creates an instance of Error that aggregates and preserves an innerError.
*
@dylans
dylans / keybase.md
Created September 23, 2014 12:28
keybase.md

Keybase proof

I hereby claim:

  • I am dylans on github.
  • I am dylanks (https://keybase.io/dylanks) on keybase.
  • I have a public key whose fingerprint is E117 84EC 5CD7 6700 D807 D0CD D44D 8770 1372 A4CE

To claim this, I am signing this object:

@dylans
dylans / DojoAndRequireJS.js
Created April 8, 2014 12:48
Dojo with RequireJS
var require = {
baseUrl: ".",
packages: [
"dojo"
],
// etc.
}
// or
@dylans
dylans / _NestedChildren.js
Last active December 27, 2015 14:09
dijit recursive getAllChildren example
define([
"dojo/_base/array",
"dojo/_base/declare",
"dojo/_base/lang"
], function (arrayUtil, declare, lang) {
return declare(null, {
getAllChildren: function () {
// puts all children into a flat array
console.log(this.getNestedChildren);
return (this.hasChildren()) ? this.getNestedChildren(this) : [];
@dylans
dylans / dylan.profile.js
Created May 30, 2012 21:03
Build profile draft
/**
* This is a new Dojo 1.7 style build profile. Look at util/build/buildControlDefault.js if you want to explore the
* default Dojo build profile options.
*/
// This function is used to determine whether or not a resource should be tagged as copy-only. See the resourceTags
// property below for more information.
function copyOnly(mid) {
return mid in {