Skip to content

Instantly share code, notes, and snippets.

View php-max's full-sized avatar
💪
I may be slow to respond.

PHP-Max php-max

💪
I may be slow to respond.
  • Shanghai Eyan Consulting
View GitHub Profile
// knockout 2.2.1
ko.utils.arrayFilter = function (array, predicate) { /* .. */ }
ko.utils.arrayFirst = function (array, predicate, predicateOwner) { /* .. */ }
ko.utils.arrayForEach = function (array, action) { /* .. */ }
ko.utils.arrayGetDistinctValues = function (array) { /* .. */ }
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hello Page</title>
</head>
<body>
<h1>Hi Hello Page</h1>

Here's how to build an app with something like CanJS and AMD-like modules (using steal). For this example app, consider a tree-like nested grid where you can select locations and get more information. The app might look something like:

IL
Chicago
<html>
<head>
<meta charset="UTF-8">
<title>This is the Test page for CatManager </title>
<link rel="stylesheet" href="../../stylesheets/bootstrap.css">
<link rel="stylesheet" href="../../bower_components/qunit/qunit/qunit.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-test-area"></div>