background preloader

Javascript

Facebook Twitter

Draw

Visualization. Application. Yaml. Objective J. GLGE is a javascript library intended to ease the use of WebGL. PrototypeXtensions.js - JavaScript Library based on Prototype & Script ... JavaScript in Cocoa. To access JavaScript from Objective-C is now straight-forward. Using evaluateWebScript: we use the scriptObject to run any JavaScript. An alternative method is to call JavaScript functions directly using callWebScriptMethod:withArguments:, this is more useful if you want many actions to call different methods in the same code. id result = [scriptObject evaluateWebScript:@"14*Math.sin(0.3)"]; id greeting = [scriptObject callWebScriptMethod:@"sayHelloTo" withArguments:[NSArray arrayWithObject:@"Will"]; It is also possible to set values in the script object from Objective-C so that we can pass values into the script.

The JavaScript bridge transparently converts scalars, numbers, strings, arrays, and null to and from their Cocoa counterparts, int, float, etc..., NSNumber, NSString, NSArray, and NSNull. [scriptObject setValue:turtleView forKey:@"turtle"]; Bocoup Code. Node.js. JavaScript dependency management and concatenation: Sprockets. JSMIN, The JavaScript Minifier. The JavaScript Minifier Douglas Crockfordwww.crockford.com JSMin is a filter which removes comments and unnecessary whitespace from JavaScript files. It typically reduces filesize by half, resulting in faster downloads. It also encourages a more expressive programming style because it eliminates the download cost of clean, literate self-documentation. What JSMin Does JSMin is a filter that omits or modifies some characters. JSMin first replaces carriage returns ('\r') with linefeeds ('\n'). It omits spaces except when a space is preceded and followed by a non-ASCII character or by an ASCII letter or digit, or by one of these characters: It is more conservative in omitting linefeeds, because linefeeds are sometimes treated as semicolons.

And if it follows a non-ASCII character or an ASCII letter or digit or one of these characters: No other characters are omitted or modified. JSMin knows to not modify quoted strings and regular expression literals. JSMin does not obfuscate, but it does uglify. Hardcore Javascript.