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
[ | |
{ | |
"msg_LicenseDataCaptured": { | |
"License Data Captured": { | |
"atTime": 1412622266969, | |
"userID": "", | |
"operatorURL": "", | |
"licenseURL": "", | |
"distributorID": "", | |
"resourceID": "", |
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
{ | |
"swagger": "2.0", | |
"info": { | |
"description": "CS 496 API <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters", | |
"version": "1.0.0", | |
"title": "CS 496 Homework for Robert", | |
"contact": { | |
"email": "robert@broofa.com" | |
}, | |
"license": { |
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
kieffer@Roberts-MacBook-Pro$ lsf | |
total 0 | |
drwxr-xr-x 3 kieffer staff 102 Apr 3 11:24 node_modules/ | |
kieffer@Roberts-MacBook-Pro$ \rm -fr node_modules/ | |
kieffer@Roberts-MacBook-Pro$ npm ls | |
/Users/kieffer/mime_issues | |
└── (empty) |
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
kieffer@Roberts-MacBook-Pro$ node -e "require('express')" # i.e. express not installed | |
module.js:340 | |
throw err; | |
^ | |
Error: Cannot find module 'express' | |
at Function.Module._resolveFilename (module.js:338:15) | |
at Function.Module._load (module.js:280:25) | |
at Module.require (module.js:364:17) | |
at require (module.js:380:17) |
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 1 column, instead of 3. in line 2.
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
Flight Summary: | |
Eggtimer TRS 1.05A Flight Settings | |
...Drogue <1=Normal,2=Backup,0=OFF>...-1 | |
...Main Altitude <50-2000 by 50, 0=OFF>...-1 | |
...Frequency (Ctrl-F to change)...915 | |
...ID Code...0 | |
...Kieffer's TRS | |
ASL Alt.: 4418 ft | |
Base Temp: 29.6 C |
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 1 column, instead of 3. in line 2.
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
Flight Summary: | |
Eggtimer TRS 1.05A Flight Settings | |
...Drogue <1=Normal,2=Backup,0=OFF>...-1 | |
...Main Altitude <50-2000 by 50, 0=OFF>...-1 | |
...Frequency (Ctrl-F to change)...915 | |
...ID Code...0 | |
...Kieffer's TRS | |
ASL Alt.: 4417 ft | |
Base Temp: 29.0 C |
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
From d84a19d450ba485e5508241f96c6e504a78a8cdd Mon Sep 17 00:00:00 2001 | |
From: Robert Kieffer <robert@broofa.com> | |
Date: Fri, 26 Mar 2010 04:04:06 -0700 | |
Subject: [PATCH] - Add support for OutgoingMessage#statusCode | |
- OutgoingMessage#close() emits 'close' event | |
- Add missing semicolons in various spots | |
--- | |
lib/http.js | 19 +++++++++++-------- | |
1 files changed, 11 insertions(+), 8 deletions(-) |
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
// Add a CLF logger | |
function logCLF(req, res) { | |
var log = [ | |
req.connection.remoteAddress, // client IP | |
'-', // RFC 1413 identity | |
'-', // user id | |
'[' + new Date().toUTCString() + ']', // date | |
'"' + req.method + ' ' + req.url + '"', // request line | |
res.statusCode, // response code | |
'-' // response size (bytes) |
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
function createNamedFunction() { | |
var _cnf = Array.prototype.slice.call(arguments, 0); | |
_cnf.name = _cnf.shift(); | |
_cnf.code = _cnf.pop(); | |
return new Function('return function NAME(ARGS) {CODE}'. | |
replace('NAME', _cnf.name). | |
replace('ARGS', _cnf.join(',')). | |
replace('CODE', _cnf.code))(); | |
} |
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
server.addListener('request', function(req, res) { | |
var chunks = [], bytes = 0; | |
req.addListener('data', function(chunk) { | |
// Gather up chunks & track total data length | |
chunks.push(chunk); | |
bytes += chunk.length; | |
}); | |
// "req.getBody(encoding)" returns the body string |
OlderNewer