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
[51/72] libv8.a: deps/v8/SConstruct -> build/default/libv8.a | |
/usr/bin/python "/Users/nrajlich/node/tools/scons/scons.py" -j 1 -C "/Users/nrajlich/node/build/default/" -Y "/Users/nrajlich/node/deps/v8" visibility=default mode=release arch=arm library=static snapshot=on | |
scons: Reading SConscript files ... | |
scons: done reading SConscript files. | |
scons: Building targets ... | |
g++ -o obj/release/accessors.o -c -Wall -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -mmacosx-version-min=10.4 -fno-rtti -fno-exceptions -Wall -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -mmacosx-version-min=10.4 -DV8_TARGET_ARCH_ARM -DENABLE_VMSTATE_TRACKING -DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT -I/Users/nrajlich/node/deps/v8/src /Users/nrajlich/node/deps/v8/src/accessors.cc | |
In file included from /Users/nrajlich/node/deps/v8/src/v8globals.h:31, | |
from /Users/ |
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 vhost = require('vhost'); | |
var stack = require('stack'); | |
var foo = function(req, res) { | |
// Do something... | |
} | |
var bar = function(req, res) { | |
// Do something else... | |
} |
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 http = require('http'); | |
var Stack = require('stack'); | |
var stack1 = Stack( | |
// Layers... | |
); | |
stack1.errorHandler = function(req, res, err) { | |
res.writeHead(404); | |
res.end('Not Found Custom'); | |
} |
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
// Target API: | |
// | |
// var s = require('net').createStream(25, 'smtp.example.com'); | |
// s.on('connect', function() { | |
// require('starttls')(s, options, function() { | |
// if (!s.authorized) { | |
// s.destroy(); | |
// return; | |
// } | |
// |
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
nrajlich@nathan-HP-Mini-311:~$ cat repl-fail.js | |
global.Object.prototype.test = true; | |
nrajlich@nathan-HP-Mini-311:~$ cat repl-test.js | |
require('./repl-fail'); | |
console.log(typeof {}.test); | |
nrajlich@nathan-HP-Mini-311:~$ node repl-test.js | |
boolean |
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
hw.ncpu: 1 | |
hw.byteorder: 1234 | |
hw.memsize: 527433728 | |
hw.activecpu: 1 | |
hw.physicalcpu: 1 | |
hw.physicalcpu_max: 1 | |
hw.logicalcpu: 1 | |
hw.logicalcpu_max: 1 | |
hw.cputype: 12 | |
hw.cpusubtype: 9 |
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
// To compile: | |
// gcc -framework AudioToolbox iOS-Vibrate.c -o iOS-Vibrate | |
#include <AudioToolbox/AudioServices.h> | |
int main() { | |
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate); | |
return 0; | |
} |
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
def set_options(opt): | |
opt.tool_options("compiler_cxx") | |
def configure(conf): | |
conf.check_tool("compiler_cxx") | |
conf.check_tool("node_addon") | |
def build(bld): | |
obj = bld.new_task_gen("cxx") |
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 data; | |
process.stdin.on('data', function(chunk) { | |
data = chunk | |
}); | |
process.stdin.on('end', function() { | |
console.log(data); | |
var givenCrc = data.slice(data.length-2); | |
givenCrc = (data[1] << 7 | data[0]); | |
console.log(givenCrc); |
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
From 89b1d1dbada903a97602a2c64ca9bfde1e0534af Mon Sep 17 00:00:00 2001 | |
From: Nathan Rajlich <[email protected]> | |
Date: Tue, 3 May 2011 08:51:53 -0700 | |
Subject: [PATCH] Make sure 'ARCH' get's defined with the CMake build system. | |
--- | |
cmake/configure.cmake | 1 + | |
1 files changed, 1 insertions(+), 0 deletions(-) | |
diff --git a/cmake/configure.cmake b/cmake/configure.cmake |