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
var polish = (function () { | |
var ops = ['*','/','+','-'] | |
.reduce( function(a, b){ | |
a[b] = Function ( 'x', 'return x[0]=x.shift()' + b + 'x[0], x' ); | |
return a; | |
}, {}); | |
Object.getOwnPropertyNames(Math) | |
.forEach( function(b){ | |
var l = Math[b].length, f = ''; | |
if (l === void 0) f = 'x.unshift(Math.' + b + '), x'; |
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
({ | |
"params": { | |
"delay": 30, | |
"recalcDepth": 1 | |
}, | |
"require": [{ | |
// You may need to insert you own data source since CORS limitations could apply | |
"this.List": "http://s3-eu-west-1.amazonaws.com/ermouth/rockstar-deaths.json" | |
}], | |
"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
({ | |
require:[ | |
{ | |
"this.App":{ | |
url:"http://your.domain/someExternalManifest.json", | |
dataType:"json", | |
cache:false | |
} | |
} | |
], |
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
([ | |
// Root | |
{from:"/:db/_inliner", to:"../../../:db/_design/inliner27/index.html"}, | |
// Resources | |
{from:"/:db/js/*", to:"../../../:db/_design/inliner27/js/*"}, | |
{from:"/:db/css/*", to:"../../../:db/_design/inliner27/css/*"}, | |
{from:"/:db/i/*", to:"../../../:db/_design/inliner27/i/*"}, | |
{from:"/:db/inliner-templates.json", to:"../../../:db/_design/inliner27/inliner-templates.json"}, | |
{from:"/:db/inliner-widgets.json", to:"../../../:db/_design/inliner27/inliner-widgets.json"}, |
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
{ | |
"id": "in.ToDo", | |
name:"Todo list", | |
"data": { | |
"cmd": "", | |
"filter": ["All"], | |
"editor": { | |
"_id": "", | |
"name": "", | |
"type": "todo", |
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
({ | |
// name must be present for widgets, | |
// and it must be unique | |
name:"Expense report demo", | |
id:"in.ExpenseReportDemo", | |
// Default data | |
data:{ | |
ERROR:false, // holds overall error state, true if form has errors | |
title:"", |
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
// Tests process switching penalties for calling | |
// CouchDB query server js functions. | |
// Requires jQuery | |
var passes = 50, host="https://cloudwall.cloudant.com/testr/"; | |
function go (msg, url) { | |
var pi = $.Deferred(), | |
ctr = passes, |
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
===> Cleaning out couch... | |
===> Cleaning out couch_changes... | |
===> Cleaning out couch_dbupdates... | |
===> Cleaning out couch_httpd... | |
===> Cleaning out couch_index... | |
===> Cleaning out couch_mrview... | |
===> Cleaning out couch_randomdoc... | |
===> Cleaning out couch_replicator... | |
===> Cleaning out geocouch... | |
===> Verifying dependencies... |
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 () { | |
// matches.js | |
// ---------- | |
// Powerful pattern matching for Javascript | |
// | |
// version : 0.5.1 | |
// author : Nathan Faubion <nathan@n-son.com> | |
// repo : https://github.com/natefaubion/matches.js | |
// license : MIT |
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(doc){ | |
// Validates ddoc map functions to prevent them | |
// from calling send(), getRow() and so on. | |
// Ddoc with this validate_doc_update must have | |
// property .Uglify with UglifyJS lib (tested for 2.4.15). | |
require("Uglify"); | |
OlderNewer