This file contains 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
<?xml version="1.0" ?> | |
<!-- | |
HSQLDB database server | |
Install Ant | |
Place this build.xml in a directory by itself | |
(e.g. C:\hsqldb or $HOME/hsqldb) |
This file contains 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
message: This is a message defined in the configuration file config.yaml | |
messageRepetitions: 3 | |
database: | |
driverClass: org.hsqldb.jdbc.JDBCDriver | |
user: cpsc476 | |
password: Passw0rd | |
url: jdbc:hsqldb:hsql://localhost/cpsc476;ifexists=true |
This file contains 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
/* genlogs.c - Generate fake log entries to stdout */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <unistd.h> | |
#define DATE_MAX_CHARS 25 | |
#define SIZE(a) (sizeof(a) / sizeof(*(a))) |
This file contains 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
#!/usr/bin/env node | |
"use strict"; | |
var http = require("http"), | |
querystring = require("querystring"), | |
child_process = require("child_process"); | |
function writeCSS(res) { | |
res.writeHead(200, { |
This file contains 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
// Client-side code | |
/* jshint browser: true, jquery: true, curly: true, eqeqeq: true, forin: true, immed: true, indent: 4, latedef: true, newcap: true, nonew: true, quotmark: double, undef: true, unused: true, strict: true, trailing: true */ | |
// Server-side code | |
/* jshint node: true, curly: true, eqeqeq: true, forin: true, immed: true, indent: 4, latedef: true, newcap: true, nonew: true, quotmark: double, undef: true, unused: true, strict: true, trailing: true */ |
This file contains 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
{ | |
"actors": [ | |
{ "id": 1, "name": "Bryan Cranston", "starred": true }, | |
{ "id": 2, "name": "Aaron Paul", "starred": true }, | |
{ "id": 3, "name": "Bob Odenkirk", "starred": true }, | |
{ "id": 4, "name": "Dean Norris", "starred": false } | |
] | |
} |
This file contains 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
diff --git a/Chapter6/app/Amazeriffic/server.js b/Chapter6/app/Amazeriffic/server.js | |
index fc11916..dceaa69 100644 | |
--- a/Chapter6/app/Amazeriffic/server.js | |
+++ b/Chapter6/app/Amazeriffic/server.js | |
@@ -1,5 +1,6 @@ | |
var express = require("express"), | |
http = require("http"), | |
+ bodyParser = require("body-parser"), | |
app = express(), | |
toDos = [ |
This file contains 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
{ | |
"coffeeorders": [ | |
{ | |
"coffee": "test", | |
"emailAddress": "test@bignerdranch.com", | |
"size": "tall", | |
"flavor": "", | |
"strength": "30", | |
"id": "test@bignerdranch.com" | |
} |
This file contains 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 = { | |
"env": { | |
"node": true, | |
"es6": true | |
}, | |
"extends": "eslint:recommended", | |
"parserOptions": { | |
"sourceType": "module" | |
}, | |
"rules": { |
This file contains 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-first": false | |
} |