map, filter, and reduce. It
defines functions such as curry, rcurry,
and partial for partial function application; and
compose, guard, and until for
function-level
programming. It also defines string lambdas, which
allow strings such as 'x -> x+1', 'x+1',
or '+1' as synonyms for the more verbose
function(x) {return x+1}.
Source,
blog.
Demo & docs.
$.profile.start() to start profiling calls to $(selector), and then $.profile.done() to stop profiling. It will display statistics for selector calls, by selector. , Source, blog.canvas element if it's available, and a stack of div elements otherwise. Source, demo, docs.notes
and statistics rake tasks compass JavaScript files in the
public/javascript directory; the call_js RSpec matcher
asserts that a string or response contains a script tag, that contains
JavaScript that calls the named function or method; and the
page.onload page generator method generates code that
executes the content of the block upon the completion of page load.
Download, blog.string?,
(int, boolean), or [string, (int, boolean), {x:double,
y:double}?]. Download, blog.This was developed in the OpenLaszlo 3.0 timeframe. Some or all of it might be included in OpenLaszlo 4.0.
drawview that adds a drawString method for labeling graphs. Source, demo, demo source, blog.{a: 1} displays as {a: 1} instead of as [object Object]; and [1, null, '', [2, 3]] displays as [1, null, '', [2, 3]] instead of as 1,,,2,3. Source, docs, blog. (This library is pretty old. In particular, it predates the wonderful Firebug. I'm not sure if it's still relevant.)<div> tags. Why? So that you can use properties that CSS doesn't define. The gradient library, for example, uses this to define gradient-start-color, gradient-end-color, and border-radius properties. Source, docs.for line in open(fname) instead.
{Python}:sitecustomize.py that contains:import icopen(If
{Python}:sitecustomize.py already exists, just add the 'import' line to it.) The next time you launch PythonInterpreter or Python IDE, the patch will take effect.
kconv module for Japanese
character conversion. Drop it in your Python plugins directory, and
invoke it as documented in its README.