[ Launch: Great Lakes Region Satellite Projection ] 6cad1f8af82b667876f892bf5e556a78 by dkemper01
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
QUnit.module('collectIds test', function () { | |
QUnit.test('collectIds should flatten an object that contains arrays of other objects', function (assert) { | |
var dSource = { "Data": [{ "id": 15611, "name": "A" }, { "id": 15865, "name": "B" }, { "id": 15867, "name": "C" }, { "id": 15871, "name": "D" }], "Total": 4, "AggregateResults": null, "Errors": null }; | |
var ids = collectIds(dSource, []); | |
assert.equal(ids.length, dSource.Total, 'ids collected from flattened list, equal ids present source data'); | |
}); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>JavaScript Patterns Demo</title> | |
<meta name="description" content="Modules and Inheritance in JavaScript"> | |
<link rel="stylesheet" href="main.css"> | |
</head> |
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
/* | |
Demo: http://dankemper.net/t3/examples/sencha-touch-2.4.2/splitViewPortfolio/ | |
Note: this implementation assumes you are using the RippleService which can be found here: | |
https://github.com/fpt-software/Material-Controls-for-Sencha-Touch/blob/c849787aee8ac75ed168b31b26adea026f4e91d0/SenchaUI/packages/Material/src/helpers/RippleService.js | |
*/ | |
var allListeners = ((Ext.filterPlatform('chrome') || Ext.filterPlatform('android')) && (!Ext.filterPlatform('ios')))? [ | |
{ | |
event: 'show', |
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 ($) { | |
'use strict' | |
// EXTENDED POPOVER PUBLIC CLASS DEFINITION | |
// =============================== | |
var PopoverAsync = function (element, options) { | |
this.init('popoverasync', element, options) | |
} |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
var error = NSError?() | |
var str = "\"ArtistImageURL\" : \"http://summerfest.com/assets/images/artistImages/a628e497-2078-4797-9468-f9456351cda5.jpg\"" | |
var pattern = "(\"ArtistImageURL\"\\s:\\s\")(http:\\/\\/.*\\.jpg)\"" | |
do { |