- needed for faster Node.js builds
brew install ninjaIn case this doesn't work in your browser.
Outlines how binary flags work.
var alive = parseInt('0001', 2);Table of Contents generated with DocToc
Steps to checkout v8 source and initialize it properly. This includes tests, d8 and example projects.
## get source and initialize dependencies
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git && cd depot_tools
export PATH=`pwd`:$PATH
cd ../
mkdir v8_checkout && cd v8_checkoutvar cards = document.getElementsByClassName("smallTitleCard"), s = [], title;
for (var i = 0; i < cards.length; i++) {
title = cards.item(i).attributes.getNamedItem('aria-label').textContent;| #!/bin/bash | |
| replacements=( | |
| "NanAsyncWorker/Nan::AsyncWorker" | |
| "NanAsyncQueueWorker/Nan::AsyncQueueWorker" | |
| "NanCallback/Nan::Callback" | |
| "NanSetInternalFieldPointer/Nan::SetInternalFieldPointer" | |
| "NanGetInternalFieldPointer/Nan::GetInternalFieldPointer" | |
| "NanNewBufferHandle\\(([^;]+);/Nan::NewBuffer(\\1.ToLocalChecked();" | |
| "(NanNew(<(v8::)?String>)?\\(\"[^\"]*\"\\))/\\1.ToLocalChecked()" |
| #!/usr/bin/env node | |
| const fs = require('fs') | |
| const path = require('path') | |
| function bySizeThenByName(a, b) { | |
| if (a.size === b.size) { | |
| return a.path.localeCompare(b) | |
| } | |
| return a.size < b.size |
Tried to improve debugging when an express middleware is wrapped to auto-handle errors of an asnync function.
Turns out the below reads a bit better than a return Promise.catch() implementation, but still, once we reach the central express error handler, the line of the wrapped function that caused the error isn't included.
'use strict'