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
| describe("MainTest", function () { | |
| it("sanity", function () { | |
| expect("sane").toBe(true); | |
| }); | |
| }); |
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> | |
| <head> | |
| <script src="index.js"> | |
| </script> | |
| </head> | |
| <body> | |
| <h1>Hello, World</h1> | |
| </body> |
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 connect = require("connect") | |
| var http = require("http") | |
| var path = require("path") | |
| var app = connect() | |
| app.use(connect.favicon()) | |
| app.use(connect.logger("dev")) | |
| app.use(connect.bodyParser()) | |
| app.use(connect.methodOverride()) |
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
| module.exports = function (grunt) { | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON("package.json"), | |
| browserify: { | |
| basic: { | |
| src: ["client/Main.js"], | |
| dest: "static/index.js" | |
| }, | |
| test: { |
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": "todolist", | |
| "version": "0.1.0", | |
| "dependencies": { | |
| "connect": "~2.11.2" | |
| }, | |
| "devDependencies": { | |
| "grunt": "~0.4.2", | |
| "grunt-contrib-jshint": "~0.6.3", | |
| "grunt-contrib-watch": "~0.5.3", |
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
| describe("greeting", function () { | |
| it("should be hello", function () { | |
| expect(greeting()).toBe("hello"); | |
| }); | |
| }); |
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
| module.exports = function () { | |
| this.Given(/^(\d+) completed tasks$/, function(arg1, callback) { | |
| // express the regexp above with the code you wish you had | |
| callback.pending(); | |
| }); | |
| this.Given(/^(\d+) incomplete tasks$/, function(arg1, callback) { | |
| // express the regexp above with the code you wish you had | |
| callback.pending(); |
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> | |
| <h1>Todo List</h1> | |
| <select id="tasks-filter"> | |
| <option value=0>All</option> | |
| <option value=1>Incomplete</option> | |
| <option value=2>Complete</option> | |
| </select> |
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> | |
| Name: <input id="name"><button id="btn">Click Me</button> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
| <script> | |
| $("#btn").click(function () { | |
| console.log("button was clicked"); |
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> | |
| <h1 id="foo">Hello, Workd</h1> | |
| <script> | |
| //http://rate-exchange.appspot.com/currency?from=EURO&to=USD&q=1 | |
| console.log(myFun1(myFun2)); |