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 pb = new PhoneBook('asdf.txt'); | |
pb.on('error', function(error) { | |
console.log(error); | |
}); | |
pb.on('data', function(data) { | |
console.log(data); | |
}); |
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
{ | |
"namespaces" : { | |
"glow" : { | |
"namespaces" : { | |
"dom" : { | |
"classes" : { | |
"NodeList" : { | |
"constructor" : { | |
"methods" : { | |
"aStaticMethod" : { |
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
#!/usr/bin/node | |
var fs = require('fs'); | |
var sys = require('sys'); | |
var schema = fs.readFileSync(process.argv[2], 'utf8'); | |
var json = fs.readFileSync(process.argv[3], 'utf8'); | |
schema = JSON.parse(schema); |
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
{ | |
"description" : "A schema describing API docs. Top-level object is the top level anonymous namespace", | |
"extends" : [ { "$ref" : "#.defs.namespace" } ], | |
"properties" : { | |
"typedefs" : { | |
"type" : "object", | |
"optional" : true, | |
"additionalProperties" : { "$ref" : "#.defs.typedef" } | |
} | |
}, |
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
# Prototype spider which uses 'bbc_standards' to test a whole website | |
require 'rubygems' | |
require 'anemone' | |
require 'bbc_standards' | |
require 'term/ansicolor' | |
class String | |
include Term::ANSIColor | |
end |
NewerOlder