a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
#!/usr/bin/env python | |
""" | |
A script to query the Amazon Web Services usage reports programmatically. | |
Ideally this wouldn't exist, and Amazon would provide an API we can use | |
instead, but hey - that's life. | |
Basically takes your AWS account username and password, logs into the | |
website as you, and grabs the data out. Always gets the 'All Usage Types' |
#!/bin/sh | |
# | |
# a simple way to parse shell script arguments | |
# | |
# please edit and use to your hearts content | |
# | |
ENVIRONMENT="dev" |
request: function(options) { | |
var future=new Future(); | |
var req=http.request(options, function(res) { | |
var text=''; | |
res.setEncoding('utf8'); | |
res.on('data', function(chunk) { | |
text+=chunk; | |
}); | |
res.on('end', Block.guard(function() { |
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
twttr.secrets.html5Routing = true; | |
twttr.router._changeUrlAndCallAction = function(p) { | |
return twttr.Router.prototype._changeUrlAndCallAction.call(this, p.replace("#!/", "")); | |
} | |
twttr.router._changeUrlAndCallAction(window.location.hash); |
var polyglot = require('polyglot'); | |
polyglot.register('coffee', require('coffee-script').CoffeeScript.compile); | |
polyglot.require('math').square(2); |
Just want to chime in that I'm glad people are still interested in CommonJS Modules/2.0. We have a working implementation that hopefully will be of interest, and have factored out the generally applicable parts of our test suite. Also see the announcement thread on the CommonJS list.
That said, personally I've been a bit disappointed with the CommonJS community's lack of enthusiasm on Modules/2.0. We picked it up early in our project lifecycle, and ran with it full speed. At the time it seemed like a more standardized alternative to AMD.
However, over time it's become clear that AMD has not only won mindshare but also has a much more active group of maintainers and a better, more egalitarian standards process. Whereas, Modules/2.0 has only the perennially busy Wes Garland, leaving a self-hosted PDF s
In both cases below, ID
is the exports object of the "id"
module.
require.ensure(["id"], function (require) {
var ID = require("id");
})