Skip to content

Instantly share code, notes, and snippets.

class Notification {
constructor() {
this.notifyIDs = [];
let template = `<header role="header"><i role="button">Close</i></header><main role="main"></main>`;
let style = `
<style>
:host {
max-width: 350px !important;
min-width: 260px !important;
@egnedko
egnedko / Queue.js
Created November 1, 2016 15:23
Realisation Queue on js
class Queue extends Array {
constructor (STACKSIZE = Number.MAX_SAFE_INTEGER, ...arg) {
super(...arg)
Object.defineProperty(this, 'STACKSIZE', {
value: STACKSIZE
})
this.enqueue = this.enqueue.bins(this);
this.dequeue = this.dequeue.bind(this);
@egnedko
egnedko / Stack.js
Last active March 21, 2017 21:39
Realisation Stack on js
class Stack extends Array {
constructor(STACKSIZE = Number.MAX_SAFE_INTEGER, ...arg) {
super(...arg);
Object.defineProperty(this, 'STACKSIZE', {
value: STACKSIZE
})
this.push = this.push.bind(this);
this.pop = this.pop.bind(this);