Skip to content

Instantly share code, notes, and snippets.

build

Clone and build Node for analysis:

$ git clone https://github.com/joyent/node.git
$ cd node
$ export GYP_DEFINES="v8_enable_disassembler=1 v8_object_print=1"
$ ./configure
$ make -j4
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Computed values of scoped CSS</title>
</head>
<body>
<div>
This text should be visible. It should not have a green background color.
</div>
<!doctype html>
<html>
<head>
<meta charset="utf8">
<title>JSON</title>
</head>
<body>
<h1>JSON Test Page</h1>
@ekashida
ekashida / gist:5273963
Last active December 15, 2015 14:19 — forked from derek/gist:5273783

Welcome to YUI Weekly, the weekly roundup of news and announcements from the YUI team and community. If you have any interesting demos or links you’d like to share, feel free to leave a comment below.

  • This week saw the release of [YUI 3.9.1][1], a patch release that includes bug fixes and enhancements for [Handlebars][2], [LazyModelList][3] fixes, and [Y.Tree][4]. Details of all changes can be found in the [YUI 3.9.1 History Rollup][5].

  • With the 3.9 release out the door, planning for the next release of YUI is underway! One big thing you can expect to see in the upcoming preview release is Satyen Desai's work on Base performance improvements. By including [these updates][6], we're seeing a 2-5x improvements in the [base-benchmark][7] perf tests in Chrome/OSX. Improvements in Base will affect anything extending it, which includes many parts of the library. Stay tuned!

  • For those anxious to get started with the new Y.Promise component, documentation is on the way! Here's the [pull request][8

@ekashida
ekashida / funkyclosure.js
Created May 20, 2011 19:37 — forked from andrewvc/funkyclosure.js
from node-streamlogger.js
for (var logLevel in this.levelList) {
this[logLevel] = (function(logLevel) {
return function (message,callback) {
this.logAtLevel(message, this.levelList[logLevel], callback);
}
})(logLevel);
}
});
From 40254b255250d5b889699eb655c8d30c00d322a3 Mon Sep 17 00:00:00 2001
From: Tim Caswell <tim@creationix.com>
Date: Thu, 19 Aug 2010 18:58:28 -0700
Subject: [PATCH] Make process.nextTick worlds faster for large queues.
---
src/node.js | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/node.js b/src/node.js