View zip.ts
'use strict';
import { IIterable, IIterator } from '../iterable.interfaces';
import { Iterable } from '../iterable';
import { Iterator } from '../iterator';
import { MapIterable } from './map';
export class ZipIterator<T> extends Iterator<T> {
private _it: IIterator<T>[];
View zip.ts
'use strict';
import { IIterable, IIterator } from '../iterable.interfaces';
import { Iterable } from '../iterable';
import { Iterator } from '../iterator';
import { MapIterable } from './map';
export class ZipIterator<T> extends Iterator<T> {
private _it: IIterator<T>[];
View finally.ts
'use strict';
import { IIterable, IIterator } from '../iterable.interfaces';
import { Iterable } from '../iterable';
import { Iterator } from '../iterator';
export class FinallyIterator<T> extends Iterator<T> {
private _it: IIterator<T>;
private _fn: () => void;
private _called: boolean;
View fold.js
'use strict';
let arr = [1,2,3,4,5];
let fn = (acc, x) => {
console.log(`${acc}-${x}`);
return acc * x;
};
let seed = 1;
/*
View settimeout.ts
(function (global) {
'use strict';
if (global.setTimeout) { return; }
let nextId = 1;
let tasksById = {};
function setTimeout(fn: () => void, ms: number) {
tasksById[nextId] = fn;
View pointer.js
window.pointerdowns({capture: false })
.subscribe(evt => evt.target.setPointerCapture(evt.pointerId));
View update.txt
Unpacking libsystemd0:amd64 (229-4ubuntu12) over (229-4ubuntu8) ...
dpkg: error processing archive /var/cache/apt/archives/libsystemd0_229-4ubuntu12_amd64.deb (--unpack):
unable to open '/lib/x86_64-linux-gnu/libsystemd.so.0.14.0.dpkg-new': Permission denied
dmesg: read kernel buffer failed: Function not implemented
/bin/df: /proc/sys/fs/binfmt_misc: Operation not permitted
Processing triggers for libc-bin (2.23-0ubuntu4) ...
Errors were encountered while processing:
/var/cache/apt/archives/libsystemd0_229-4ubuntu12_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
View cssnodelayout.cxx
#include "csslayoutnode.h"
Nan::Persistent<v8::Function> CSSLayoutNode::constructor;
CSSLayoutNode::CSSLayoutNode(v8::Local<v8::Object> self) {
this->_node = CSSNodeNew();
CSSNodeInit(this->_node);
CSSNodeSetContext(this->_node, *self);
}
View error.txt
Download done.
Removing outdated cached downloads...
mv: cannot move 'jdk1.8.0_111' to 'java-8-oracle': Permission denied
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up gsfonts (1:8.11+urwcyr1.0.7~pre44-4.2ubuntu1) ...
dmesg: read kernel buffer failed: Function not implemented
/bin/df: /proc/sys/fs/binfmt_misc: Operation not permitted
Setting up x11-common (1:7.7+13ubuntu3) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
View cssnodelayout.cxx
#include "csslayoutnode.h"
Nan::Persistent<v8::Function> CSSLayoutNode::constructor;
CSSLayoutNode::CSSLayoutNode(v8::Local<v8::Object> self) {
this->_node = CSSNodeNew();
CSSNodeInit(this->_node);
CSSNodeSetContext(this->_node, *self);
}