You can download this gist as a single repository.
build
node-gyp configure --debug
node-gyp build --debug
You can download this gist as a single repository.
build
node-gyp configure --debug
node-gyp build --debug
cmake_minimum_required(VERSION 3.1) | |
PROJECT( test ) | |
add_executable( test_hide_cursor test_cursors.cc ) | |
add_executable( test_wait_cursor test_wait.cc ) |
Document number | Nnnnn=yy-nnnn |
Date: | yyyy-mm-dd |
Project | WG14 - Programming Language C Working Group(?) |
Reply-to | d3x0r < d3ck0r at gmail > |
function sleep() { | |
return new Promise((resolve) => { | |
setTimeout(resolve, 2000); | |
}); | |
} | |
async function foo() { | |
while(1) { | |
const bar = // really big array | |
await sleep(); |
Some of my projects.
// make #if conditions spanning files a warning... | |
// also unbalanced #endif statements.... | |
#ifndef __GCC__ | |
//#include <conio.h> | |
#endif | |
#if defined( _WIN32 ) | |
// getmodulefilename | |
#include <windows.h> | |
#include <direct.h> | |
#endif |
Document number | P2142R1 |
Date: | 2020-05-08 |
Audience | SG17 EWG Incubator |
Reply-to | James (Jim) Buckeyne < d3ck0r at gmail > (AKA d3x0r https://github.com/d3x0r) |
This is an alternative method to get a basis from a quaternion (log quaternion)... or from angle/angle/angle.
This is built by rotating the constant vectors (1,0,0), (0,1,0), (0,0,1) via standard quaternion
rotation, and reducing common factors. The 0
s and 1
s collapse out a lot of the terms of
apply. It ends up being less work to get the 3 vector basis than to rotate a single point;
although if you USE the basis to multiply with the point; that increases the work to excess of
just rotating a vector directly...
This is the base form... the steps will be broken out for phases of substitution. As implemented here https://github.com/d3x0r/STFRPhysics/blob/master/3d/src/dual-quat.js#L347
// this = { x: xAngle, y:yAngle, z:zAngle, nL: |x|+|y|+|z|, nR:sqrt( xx+yy+zz ) } | |
// nR = normRectangular | |
// nL = normLinear | |
function twistQuaternion(theta) { | |
// function getBasis() { // computes xyz basis vectors (matrix) | |
// this is angle-angle-angle log-quaternion |