a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
function levenshtein(s1, s2) { | |
// http://kevin.vanzonneveld.net | |
// + original by: Carlos R. L. Rodrigues (http://www.jsfromhell.com) | |
// + bugfixed by: Onno Marsman | |
// + revised by: Andrea Giammarchi (http://webreflection.blogspot.com) | |
// + reimplemented by: Brett Zamir (http://brett-zamir.me) | |
// + reimplemented by: Alexander M Beedie | |
// * example 1: levenshtein('Kevin van Zonneveld', 'Kevin van Sommeveld'); | |
// * returns 1: 3 |
/* | |
* | |
* coderwall.js | |
* | |
* Code to display coderwall.com badges | |
* | |
*/ | |
var coderwallJSONurl ="http://www.coderwall.com/hermanjunge.json?callback=?"; | |
var height = 75; |
bradley@macaroon:~$ cat Documents/issues/ping_domain_socket.js | |
var socket = './'+process.argv[2]; | |
var http = require('http'); | |
var req = http.request({ | |
socketPath:socket, | |
path:'/', | |
method:'POST' | |
}) | |
setInterval(function(){req.write(process.argv[3])},1000) |
// Basic usage | |
_.icon('home', 'home-id-selector') | |
// Advanced usage | |
_.icon('power', 'start-menu-icon', { | |
fill : { | |
fill : "#333", | |
stroke : "none" | |
}, | |
none : { |
var vows = require('vows'), | |
assert = require('assert'); | |
function wait(callback) { | |
setTimeout(function() { | |
callback('hello', 'world'); | |
}, 2000) | |
} |
// This example adapted from Matt Gallagher's "Minimalist Cocoa Programming" | |
// blog article: | |
// http://cocoawithlove.com/2010/09/minimalist-cocoa-programming.html | |
var $ = require('NodObjC') | |
$.import('Cocoa') | |
var pool = $.NSAutoreleasePool('alloc')('init') | |
, app = $.NSApplication('sharedApplication') |
Exec { | |
path => [ | |
'/usr/local/bin', | |
'/usr/local/sbin', | |
'/usr/bin/', | |
'/usr/sbin', | |
'/bin', | |
'/sbin'], | |
logoutput => true, | |
} |
---------- Forwarded message ---------- | |
From: Mark S. Miller <[email protected]> | |
Date: Tue, Nov 16, 2010 at 3:44 PM | |
Subject: "Future of Javascript" doc from our internal "JavaScript Summit" | |
last week | |
To: [email protected] | |
On November 10th and 11th, a number of Google teams representing a variety | |
of viewpoints on client-side languages met to agree on a common vision for | |
the future of Javascript. |
function hasOwnProperty(key) { | |
if(this[key]) { | |
var proto = this.prototype; | |
if(proto) { | |
return ((key in this.prototype) && (this[key] === this.prototype[key])); | |
} | |
return true; | |
} else { | |
return false; | |
} |