Skip to content

Instantly share code, notes, and snippets.

Avatar

Dylan Schiemann dylans

  • Living Spec
  • Phoenix, Arizona
  • Twitter @dylans
View GitHub Profile
View logging.d.ts
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.
*
View 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:

View DojoAndRequireJS.js
var require = {
baseUrl: ".",
packages: [
"dojo"
],
// etc.
}
// or
@dylans
dylans / _NestedChildren.js
Last active Dec 27, 2015
dijit recursive getAllChildren example
View _NestedChildren.js
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
Build profile draft
View dylan.profile.js
/**
* 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 {