Skip to content

Instantly share code, notes, and snippets.

const combine = (...arrays)
=> [].concat(...arrays);
const compact = arr
=> arr.filter(el => el);
const contains = (() => Array.prototype.includes
? (arr, value) => arr.includes(value)
: (arr, value) => arr.some(el => el === value)
)();
@m1el
m1el / ru.md
Last active August 29, 2015 14:16 — forked from Izumi-kun/ru.md

Description

The first BSOD (0x00000139) occured this year January 2 and never happened before.

After core dump analysis I came to conclusion that this error happens because because of a network adapter.

January 4 after a BSOD during the night I tried to manually reproduce this error.

Experimentally, I found out the moment the error occurs - Computer maintenance Screnshot 3.

Error dates can be found on Screenshot 1.

// http://nolandc.com/sandbox/fractals/?x=25&y=1&l=8&d=6&sa=80&a=-45&s=F++F++F++F++&r=F,F+D---F++F,D,+F+D---F+D
// space-filling fractal, a modification of Sierpinski curve
function d2xy(d, s) {
var r = {x: 0, y: 0}, p = {x: 0, y: 0};
for (s = s-1; s >= 0; s--) {
p.x *= 2;
p.y *= 2;
var pow = 1 << (s*2);
rot(r, (d & pow*3) >> s*2);
if(s==1){