background preloader

ShareJS

ShareJS

grunt: a task-based command line build tool for JavaScript projects minimatch A minimal matching utility. This is the matching library used internally by npm. Eventually, it will replace the C binding in node-glob. It works by converting glob expressions into JavaScript RegExp objects. Usage Features Supports these glob features: Brace ExpansionExtended glob matching"Globstar" ** matching See: man shman bashman 3 fnmatchman 5 gitignore Minimatch Class Create a minimatch object by instanting the minimatch.Minimatch class. var Minimatch = require("minimatch").Minimatch var mm = new Minimatch(pattern, options) Properties pattern The original pattern the minimatch object represents.options The options supplied to the constructor.set A 2-dimensional array of regexp or string expressions. Methods makeRe Generate the regexp member if necessary, and return it. All other methods are internal, and will be called as necessary. Functions The top-level exported function has a cache property, which is an LRU cache set to store 100 items. minimatch(path, pattern, options) Main export. Options

openshift/magento-example Crossfilter Fast Multidimensional Filtering for Coordinated Views Crossfilter is a JavaScript library for exploring large multivariate datasets in the browser. Crossfilter supports extremely fast (<30ms) interaction with coordinated views, even with datasets containing a million or more records; we built it to power analytics for Square Register, allowing merchants to slice and dice their payment history fluidly. Since most interactions only involve a single dimension, and then only small adjustments are made to the filter values, incremental filtering and reducing is significantly faster than starting from scratch. Crossfilter uses sorted indexes (and a few bit-twiddling hacks) to make this possible, dramatically increasing the perfor­mance of live histograms and top-K lists. For more details on how Crossfilter works, see the API reference. Example: Airline on-time performance February 28, 2001 236 mi. +139 min. 304 mi. +83 min. 569 mi. +172 min. 646 mi. +97 min. 370 mi. +73 min. 325 mi. +92 min. +16 min. 361 mi.

fschaefer/Probability.js declare Declare is a library designed to allow writing object oriented code the same way in both the browser and node.js. Installation npm install declare.js Or download the source (minified) Requirejs To use with requirejs place the declare source in the root scripts directory Usage declare.js provides Class methods as(module | object, name) : exports the object to module or the object with the namemixin(mixin) : mixes in an object but does not inherit directly from the object. Instance methods _super(arguments): calls the super of the current method, you can pass in either the argments object or an array with arguments you want passed to super_getSuper(): returns a this methods direct super. Declaring a new Class Creating a new class with declare is easy! You can use Mammal just like you would any other class. Extending a class If you want to just extend a single class use the .extend method. You can also extend a class by using the declare method and just pass in the super class. Now lets use the mixin

Infinity.js A ListView is a container that moves content in and out of the DOM on the scroll event. ListViews help keep repaint times of expensive pages down (and scrolling smooth) by making sure that there are never too many elements onscreen at a single time. ListViews excel at speeding up long lists of complex HTML elements, where new content is frequently appended to the end and existing content is rarely removed. ListViews are simple, and have several caveats: they can't be nested inside each other, and they can't have heights set via CSS. Additionally, ListViews can't easily change sizes except by appending or removing elements, and so list items that need to slide open or change their sizing will be difficult to implement. Appending elements to a ListView is relatively fast, but removing elements is slower — so designs that need to remove elements multiple times a second at high framerates will struggle.

Related: