Skip to content

Instantly share code, notes, and snippets.

View efleming969's full-sized avatar

Erick Fleming efleming969

  • Fleming Services, LLC
  • Frankfort, KY
View GitHub Profile
describe("MainTest", function () {
it("sanity", function () {
expect("sane").toBe(true);
});
});
<!doctype html>
<head>
<script src="index.js">
</script>
</head>
<body>
<h1>Hello, World</h1>
</body>
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())
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
browserify: {
basic: {
src: ["client/Main.js"],
dest: "static/index.js"
},
test: {
{
"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",
describe("greeting", function () {
it("should be hello", function () {
expect(greeting()).toBe("hello");
});
});
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();
<!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>
<!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");
<!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));