Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Open-Source Engine for Heroes of Might and Magic 3.
"use strict"; "use restrict";
//Number of bits in an integer var INT_BITS = 32;
//Constants exports.INT_BITS = INT_BITS; exports.INT_MAX = 0x7fffffff; exports.INT_MIN = -1<<(INT_BITS-1);
//Returns -1, 0, +1 depending on sign of x exports.sign = function(v) { return (v > 0) - (v < 0); }
There are no comments on this comment yet.
"use strict"; "use restrict";
//Number of bits in an integer var INT_BITS = 32;
//Constants exports.INT_BITS = INT_BITS; exports.INT_MAX = 0x7fffffff; exports.INT_MIN = -1<<(INT_BITS-1);
//Returns -1, 0, +1 depending on sign of x exports.sign = function(v) { return (v > 0) - (v < 0); }