Skip to content

Instantly share code, notes, and snippets.

require.async('./b', function () {});
require.async('./c', function () {});
<!--
Suite Run - div.test-suite-run (.not-started, li.running, li.successful, li.failed)
name - div.name
summary - div.summary
not-started/success/failure - div.status
number of... - dl.totals
tests ran - dt, dd.ran
successful tests - dt, dd.successful
failed tests - dt, dd.failed
{
"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" }
}
},
#!/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);
{
"namespaces" : {
"glow" : {
"namespaces" : {
"dom" : {
"classes" : {
"NodeList" : {
"constructor" : {
"methods" : {
"aStaticMethod" : {
Jan 17 12:21:28 pal varnishd[12518]: Pushing vcls failed: CLI communication error (hdr)
Jan 17 12:21:28 pal varnishd[12518]: Child (12521) died signal=11
Jan 17 12:21:28 pal varnishd[12518]: Child (-1) said
Jan 17 12:21:28 pal varnishd[12518]: Child (-1) said Child starts
start
socket(): Address family not supported by protocol
child (12084) Started
200 0
Child (12084) said
Child (12084) said Child starts
Child (12084) said managed to mmap 2147479552 bytes of 2147479552
Child (12084) died signal=11
Child cleanup complete
.vimrc
======
colorscheme evening
set number
set tabstop=4
set shiftwidth=4
set expandtab
" Switch syntax highlighting on, when the terminal has colors
@tomyan
tomyan / 0.4.x.js
Created October 25, 2011 20:54
demonstrates connections not accepted until child starts
var net = require('net'),
net_binding = process.binding('net'),
child_process = require('child_process'),
http = require('http'),
server;
if (process.argv[2]) { // child
server = http.createServer(function (req, res) {
@tomyan
tomyan / nobot.js
Created November 1, 2011 22:50
irc client library interface
var circus = require('../lib/circus');
var channel = process.argv[2];
if (! channel) {
console.log('channel reqired');
process.exit(1);
}
var client = new circus.Client;