Hi, please Register

Class 6 Notes and Examples

Class 6 notes and examples.  The examples should work just fine if you place them in your public_html folder on itp.nyu.edu.  If they don’t, please let me know.  Try modifying at least one of these example.  For next class you should have a presentation worked out for your final project(s) (5-8 minutes).

class6pub.zip

Great tool for collaborative JS Debugging

http://jsbin.com/

firef.ly

http://firef.ly/

I randomly found that in my bookmarks while looking for something else.. I have no idea how long it’s been there, but it is very very similar to the idea I had a few weeks ago about website-localized communities/chat.  I probably saw it and forgot about it and reworked the idea from that half-memory.

Class 5 Notes and Examples

class5pub

Class 4 Assignments

Add your assignment work as a comment on this post.  For you project idea please create a blog entry.

Thanks!

Finally

Apologies, I fixed up the tutorial3.html for real this time and verified that it runs without a hitch on the itp.nyu.edu server … I think.

fixed

JS Physics Engine

Looks pretty interesting.

Class Notes + Code

Assignment on the Syllabus page as usual.  I fixed the tutorial3 example from last week so that it works on the ITP server again.  Drop the files somewhere into your public_html folder and it should work fine.  I had to include a PHP JSON encoder/decoder because it seems that itp.nyu.edu is now running PHP < 5.2, which actually a step backwards from a year ago, oh well.

Let me know if you have any trouble with these files.  Please install GreaseMonkey so that you can run the two userscripts.

Files

Another good intro MooTools Tutorial

Here

How to implement bind yourself

For those of you who are curious:

Function.prototype.bind = function(obj)
{
    var fn = this;
    return function() {
        return fn.apply(obj, arguments);
    }
}
 
function test()
{
   return this;
}
 
var obj = {};
console.log(test());
console.log(test.bind(obj)());

Feel free to post questions about this code in the comments.