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
/// <reference path="../../libs/jquery/jquery.d.ts" /> | |
/// <reference path="../../libs/knockout/knockout.d.ts" /> | |
declare module "durandal/system" { | |
export var getModuleId: (obj: any) => string; | |
export var debug: (debug?: bool) => bool; | |
export var isArray: (obj: any) => bool; | |
export var log: (...msgs: any[]) => void; | |
export var defer: (action?: Function) => JQueryDeferred; | |
export var guid: () => string; |
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
define(function(require) { | |
var system = require('../system'); | |
var animationTypes = [ | |
'bounce', | |
'bounceIn', | |
'bounceInDown', | |
'bounceInLeft', | |
'bounceInRight', | |
'bounceInUp', |
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
using CQRS01.Domain.Entities; | |
using CQRS01.Web.Models; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq.Expressions; | |
namespace CQRS01.Web.Framework.Mapping | |
{ | |
public class Test | |
{ |
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 flatten(arr){ | |
if (!Array.isArray(arr)){ | |
return [arr]; | |
} | |
return arr.reduce((flat, toFlatten) => { | |
return flat.concat(flatten(toFlatten)); | |
}, []); | |
} | |
function test(objUnderTest){ |