This file contains hidden or 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 store = function(substores,options){ | |
return { | |
query: function(query, options){ | |
return when(promise.all(substores.map(function (store) { | |
return when(store.query(query, options)); | |
}), function (results) { | |
return results.reduce(function (out, arr) { | |
return out.concat(arr); | |
}, []); |
This file contains hidden or 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
/** | |
* @license Copyright (c) 2011 Cello Software, LLC. | |
* All rights reserved. | |
* Available via the new BSD License. | |
*/ | |
/*jshint | |
bitwise: false, curly: true, eqeqeq: true, forin: true, immed: true, indent: 4, maxlen: 100, | |
newcap: true, noarg: true, noempty: true, onevar: true, passfail: false, undef: true, | |
white: true | |
*/ |
This file contains hidden or 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> | |
<script> | |
var testIterations = 1e5; | |
var benchmark = function(hint, m,i) { | |
var d1 = new Date, d2, r; | |
while(i--) | |
r = m(); |
This file contains hidden or 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
diff --git a/lib/DAV/plugins/codesearch.js b/lib/DAV/plugins/codesearch.js | |
index 9d3f77b..d961af0 100644 | |
--- a/lib/DAV/plugins/codesearch.js | |
+++ b/lib/DAV/plugins/codesearch.js | |
@@ -152,12 +152,12 @@ jsDAV_Codesearch_Plugin.MAXSIZE = 2097152; //2MB | |
if (!Util.isTrue(options.casesensitive)) | |
cmd += " -i "; | |
var t, | |
- include = "*.{" + jsDAV_Codesearch_Plugin.PATTERN_EXT + "}"; | |
+ include = "\\*.{" + jsDAV_Codesearch_Plugin.PATTERN_EXT + "}"; |
This file contains hidden or 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([ | |
'dojo', | |
'dijit/_Widget', | |
'./_base', | |
'dojo/query!css3' | |
], function (d, _Widget, mustache, query) { | |
//'use strict'; | |
var dfe = d.forEach, | |
empty = {}; |
This file contains hidden or 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
// foo/bar/one.js | |
define(['./two'], function (two) { | |
return { | |
two: two | |
}; | |
}); |
This file contains hidden or 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
// Credit: this is derived from a combination of | |
// - https://gist.github.com/650000 | |
// - https://github.com/joyent/node/pull/350 | |
// - https://github.com/ajaxorg/cloud9/blob/master/support/requireJS-node.js | |
var path = require('path'), | |
fs = require('fs'), | |
defaultCompile = module.constructor.prototype._compile, | |
defaultResolveFilename = module.constructor._resolveFilename, | |
// this gives the main module a chance to use define iff it does so before any other module |
This file contains hidden or 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
Environment: | |
Request Method: POST | |
Request URL: http://dev04.cello.com:8000/admin/cms/page/4/?language=en& | |
Django Version: 1.2.5 | |
Python Version: 2.7.1 | |
Installed Applications: | |
['django.contrib.auth', | |
'django.contrib.contenttypes', | |
'django.contrib.sessions', |
This file contains hidden or 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
diff --git a/require.js b/require.js | |
old mode 100644 | |
new mode 100755 | |
index 9147d58..4341bad | |
--- a/require.js | |
+++ b/require.js | |
@@ -254,7 +254,7 @@ var require, define; | |
if (prefix) { | |
prefix = normalize(prefix, parentName); | |
//Allow simpler mappings for some plugins |
This file contains hidden or 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([ | |
'dojo', | |
'./mustache' | |
], function (d, mustache) { | |
var dfe = d.forEach, | |
empty = {}; | |
return d.declare(null, { | |
declaredClass: 'mustache_Templated', |