This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<title>Jasmine Spec Runner</title> | |
<link rel="shortcut icon" type="image/png" href="lib/jasmine-1.1.0/jasmine_favicon.png"> | |
<link rel="stylesheet" type="text/css" href="lib/jasmine-1.2.0/jasmine.css"> | |
<script type="text/javascript" src="lib/jasmine-1.2.0/jasmine.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
transparency - cached template, one todo x 92,279 ops/sec ±1.59% (90 runs sampled) specHelper.js:65 | |
handlebars - compiled and cached template, one todo x 49,922 ops/sec ±0.71% (92 runs sampled) specHelper.js:66 | |
transparency - cached template, 100 todos x 1,073 ops/sec ±3.16% (76 runs sampled) specHelper.js:65 | |
handlebars - compiled and cached template, 100 todos x 1,979 ops/sec ±1.07% (89 runs sampled) specHelper.js:66 | |
transparency - unused template, one todo x 22,917 ops/sec ±11.99% (36 runs sampled) specHelper.js:65 | |
handlebars - unused and compiled template, one todo x 2,369 ops/sec ±2.31% (87 runs sampled) specHelper.js:66 | |
transparency - unused template, 100 todos x 311 ops/sec ±4.77% (71 runs sampled) specHelper.js:65 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "jee", | |
"version": "0.0.0", | |
"dependencies": { | |
"bowling": "git://github.com/pyykkis/bowling.git" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Do something before the method | |
before = (decorator) -> (method) -> -> | |
decorator.apply this, arguments | |
method.apply this, arguments | |
# Do something after the method | |
after = (decorator) -> (method) -> -> | |
method.apply this, arguments | |
decorator.apply this, arguments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.hello = function(name) { | |
console.log("Hello, " + name); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
<div class="template"> | |
<div class="todo"></div> | |
<div> | |
*/ | |
data = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var assert = require('assert'), | |
StringStream = require('../index'), | |
data = "Hello World!", | |
src = new StringStream(data), | |
dest = new StringStream(); | |
src.pipe(dest); | |
dest.on('finish', function() { | |
assert.equal(src.data, ''); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
through = require('through'); | |
module.exports = function (file) { | |
var tr = through(null, function () { | |
this.queue('}).call(module.exports)'); this.queue(null) }); tr.pause(); | |
tr.queue('(function(){'); process.nextTick(tr.resume.bind(tr)); return tr; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var phantom = require('james-phantomjs'), | |
mocha = require('james-mocha'), | |
dotReporter = require('james-dot-reporter'); | |
mocha(james.list('test/*Helper.js', 'test/*Spec.js')) | |
.transform(phantom) | |
.transform(dotReporter); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
express = require 'express' | |
path = require 'path' | |
http = require 'http' | |
logger = require 'winston' | |
app = express() | |
logger.setLevels logger.config.syslog.levels | |
logger.remove logger.transports.Console | |
logger.add logger.transports.Console, |