Skip to content

Instantly share code, notes, and snippets.

@ekashida
ekashida / npm segfault
Created January 23, 2011 22:35
make link seems to work
22:33:20 jib:npm $ git pull
Already up-to-date.
22:33:28 jib:npm $ ls
LICENSE Makefile README.md bin cli.js doc html lib man1 npm-completion.sh npm.js package.json scripts test
22:33:30 jib:npm $ make
node cli.js install npm
npm info it worked if it ends with ok
npm info using npm@0.2.15
npm info using node@v0.3.6-pre
npm info fetch http://registry.npmjs.org/npm/-/npm-0.2.15.tgz
require.paths.push('/usr/local/lib/node/');
var sys = require('sys'),
http = require('http'),
express = require('express'),
jsdom = require('jsdom');
var app = express.createServer();
var responseLogic = function(req, res, callback) {
var window = jsdom.jsdom().createWindow();
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Eugene Kashida</title>
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.0r4/build/reset-fonts-grids/reset-fonts-grids.css">
<style type="text/css">
function resizeTextarea () {
while (this.get("scrollHeight") > this.get("offsetHeight")) {
this.set("rows", this.get("rows") + 1);
}
while (this.get("rows") > 3 && this.get("scrollHeight") < this.get("offsetHeight")) {
this.set("rows", this.get("rows") - 1);
}
}