Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
This is a small collection of scripts showing how to use require.js. It's only one of several ways of setting up a require.js project, but it's enough to get started.
At its core, require.js is about three things:
The following files show how these are achieved.
|// I had this idea of implementing Scala-ish automatic partial function generation|
|// based on placeholders, and Clojure-ish positional and rest argument replacement|
|// in anonymous functions created with the shorthand syntax `#()`.|
|// In Scala, if you have an expression such as `doSomething(_ + 1)`, Scala will|
|// turn that into a function of one argument that evaluates to `arg + 1`. In|
|// Clojure, if you use `#()` to create an anonymous function, you can reference|
|// arguments with `%num` (e.g. `%1`, `%2`, etc). `%` evaluates to the first|
|// argument and `%&` evaluates to all arguments.|