note: A lot of this assumes a repo has already been forked.
First make sure all your commits have your name/email:
git config --global user.name "YOUR NAME"
git config --global user.email "YOUR EMAIL"
| /* Calculate the exponential moving average using the Poisson window function | |
| * combined with a time constant adjustment so even though the calculation is | |
| * only done once every loop, the smoothing curve acts as if it was time-series | |
| * data. | |
| * | |
| * The expanded equation for this is: | |
| * | |
| * /-ΔT \ | |
| * |----| | |
| * \ τ / |
| diff --git a/test/test-list.h b/test/test-list.h | |
| index 13c96d1d..81f2aa25 100644 | |
| --- a/test/test-list.h | |
| +++ b/test/test-list.h | |
| @@ -556,6 +556,7 @@ TEST_DECLARE (utf8_decode1_overrun) | |
| TEST_DECLARE (uname) | |
| TEST_DECLARE (metrics_info_check) | |
| +TEST_DECLARE (metrics_fs_events) | |
| TEST_DECLARE (metrics_idle_time) |
| 8 TickObject | |
| at AsyncStackTrace.initFn (index.js:89:18) | |
| 6 TCPWRAP | |
| at AsyncStackTrace.initFn (index.js:89:18) | |
| 3 TCPSERVERWRAP | |
| at AsyncStackTrace.initFn (index.js:89:18) | |
| at Object.<anonymous> (test/http-noop.js:11:4) |
| // Call this function with the number of levels in the queue. | |
| // It will return the weighted random position. | |
| function getPosition(n) { | |
| return n - tRoot(randomT(n)); | |
| } | |
| function triangular(n) { | |
| return n * (n + 1) / 2; | |
| } |
| Example Event Loop Execution Timeline | |
| L₁ L₂ L₃ L₄ | |
| (1) ━━━┪ ┏━━━━━━━━━━━━━━╈┳━━━━━━━━━┯━━━━━━━━━━━╈┳━━━━┓ ┢━━━━━ | |
| ┃ ┃ e₁ ┃┃ e₂ │ e₃ ┃┃ e₄ ┃ ┃ e₅ | |
| ───┨ ┠──────────────┨┠─────────┼───────────╂╂────┨ ┠───── | |
| (2) ┄┄┄┺━━━╃┄┄┄┄┄┄┄┄┄┄┄┄┄┄┺╃┄┄┄┄┄┄┄┄┄┴┄┄┄┄┄┄┄┄┄┄┄┺╃┄┄┄┄┺━━━━╃┄┄┄┄┄ | |
| │ [e₂] [e₃] │ [e₄] │ │ | |
| [e₁] [e₂] [e₄] [e₅] | |
| [e₃] |
| // Demonstrates how to pass a template function to a non-template function | |
| // pointer by specifying the template parameter when it's assigned. | |
| // This allows the void* to be safely cast when the function is called. | |
| #include <cstdio> | |
| struct A { int val = 42; }; | |
| struct B { int foo = 0; int val = 45; }; | |
| void (*cbp)(void*); |
| libuv: | |
| $ ./gyp_uv.py -f make -Dlibrary=shared_library | |
| $ BUILDTYPE=Release make -j6 -C out | |
| node: | |
| $ ./configure --shared-libuv --shared-libuv-includes=$LIBUV_PATH/include --shared-libuv-libpath=$LIBUV_PATH/out/Release | |
| $ make -j6 | |
| binary build: | |
| $ CONFIG_FLAGS="--shared-libuv --shared-libuv-includes=$LIBUV_PATH/libuv/include --shared-libuv-libpath=$LIBUV_PATH/out/Release" DISTTYPE=custom CUSTOMTAG="$(date +'%s')" make -j6 binary |
| diff --git a/test/addons/async-hello-world/binding.cc b/test/addons/async-hello-world/binding.cc | |
| index da2bd41..5ddd61f 100644 | |
| --- a/test/addons/async-hello-world/binding.cc | |
| +++ b/test/addons/async-hello-world/binding.cc | |
| @@ -44,13 +44,11 @@ void AfterAsync(uv_work_t* r) { | |
| v8::Local<v8::Function>::New(isolate, req->callback); | |
| callback->Call(isolate->GetCurrentContext()->Global(), 2, argv); | |
| + printf("did rethrow: %s\n", !try_catch.ReThrow().IsEmpty() ? "true" : "false"); | |
| + |
| 'use strict'; | |
| Error.stackTraceLimit = Infinity; | |
| const dgram = require('dgram'); | |
| const print = process._rawDebug; | |
| // Problem doesn't exist with localhost, so plug in a Google server's IP. | |
| const HOST = '172.217.5.110'; | |
| const client = dgram.createSocket('udp4'); | |
| const message = Buffer.alloc((1 << 16) - 29); |