Convert Hilton's stupid CSV thing to JSON.
Convert the given CSV file
to JSON, invoking fn(err, obj)
.
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Rock, Paper, Scissors</title> | |
<script> | |
var options = [ 'rock', 'paper', 'scissors' ], | |
userChoice = null, | |
computerChoice = null, |
'use strict'; | |
var fs = require('fs') | |
, file = './foo' | |
function write() { | |
fs.writeFile(file, Math.random() + '!') | |
} | |
for (var i = 0; i < 5000; i++) { |
'use strict'; | |
var cluster = require('cluster'), | |
cpus = require('os').cpus().length; | |
function single() { | |
require('./worker'); | |
} | |
for b in `git branch --merged | grep -v \*`; do git delete-branch $b; done |
// Element#hasOwnPropery doesn't exist in IE8 | |
var has = Object.prototype.hasOwnProperty; | |
var table = document.createElement('table'); | |
alert('this browser sucks: ' + has.call(table, ':')); |
var http = require('http'); | |
http | |
.createServer(function (req, res) { | |
// some trivial computation | |
var message = 'Hello world!'; | |
res.writeHead(200, { | |
'content-type': 'text/plain' | |
}); |
var fs = require('fs'); | |
var read = fs.readFileSync; | |
var write = fs.writeFileSync; | |
var jade = require('jade'); | |
var people = require('./people.json'); | |
var template = jade.compile(read('./person.jade', 'utf8')); | |
people.forEach(function (person) { |
$ gyp --depth=. --generator-output=output -f make -D "library=shared_library" | |
$ make -C output | |
CC(target) out/Release/obj.target/str-ends-with/deps/str-ends-with/str-ends-with.o | |
LIBTOOL-STATIC out/Release/libstr-ends-with.a | |
CC(target) out/Release/obj.target/sphia/src/clear.o | |
CC(target) out/Release/obj.target/sphia/src/count.o | |
CC(target) out/Release/obj.target/sphia/src/error.o | |
CC(target) out/Release/obj.target/sphia/src/free.o | |
CC(target) out/Release/obj.target/sphia/src/get.o | |
CC(target) out/Release/obj.target/sphia/src/new.o |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <pthread.h> | |
#include <string.h> | |
/** | |
* Work structure. | |
*/ |