a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
if (typeof require != "undefined") { | |
// should change export to module.exports = QUnit | |
QUnit = require("../qunit/qunit.js").QUnit; | |
print = console.log; | |
} else { | |
load("../qunit/qunit.js"); | |
} | |
var stop_watch = { |
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
function t(s,d,p){for(p in d)s=s.replace(new RegExp('{'+p+'}','g'),d[p]);return s;} | |
/* | |
String templating engine: | |
t("Hello {name}!, It is {date}!", { name: "Thomas", date: function(){ return new Date }}); | |
// = "Hello Thomas!, It is Sun May 08 2011 15:15:33 GMT-0400 (EDT)!" | |
*/ |
// Copyright 2006-2008 the V8 project authors. All rights reserved. | |
// Redistribution and use in source and binary forms, with or without | |
// modification, are permitted provided that the following conditions are | |
// met: | |
// | |
// * Redistributions of source code must retain the above copyright | |
// notice, this list of conditions and the following disclaimer. | |
// * Redistributions in binary form must reproduce the above | |
// copyright notice, this list of conditions and the following | |
// disclaimer in the documentation and/or other materials provided |
// Iterate over a bunch of elements. | |
$(":header, p, li").each(function() { | |
// The current element. | |
var elem = $(this); | |
// A copy of the current element that will take its place in the DOM during | |
// the animation. | |
var copy = elem.clone().replaceAll(elem); | |
// The element's text content. To be animated, character-by-character. | |
var text = copy.text(); | |
{ | |
"passfail": false, | |
"maxerr": 100, | |
"browser": true, | |
"node": true, | |
"rhino": false, | |
"couch": true, | |
"wsh": true, | |
"jquery": true, |
language: node_js | |
node_js: | |
- 0.4 | |
- 0.6 |
// ======================================================================== | |
// bootstrap-builder v0.1.0 | |
// http://twitter.github.com/bootstrap | |
// ======================================================================== | |
// Copyright 2011 Twitter, Inc. | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// |