var EventsManagerClass = function() {
/**
* Store events callback and context.
*
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class minHeap { | |
constructor() { | |
this.items = []; | |
} | |
peek() { | |
return this.items[0]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
class WebsiteFinder { | |
constructor(url){ | |
this.currentPage = 1 | |
this.resultPlace = null | |
this.hostname = this.getHostName(url) | |
this.timer = setInterval( () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Basic Pagination Object for Firebase array reference | |
* | |
* @param {Firebase} firebase_reference | |
* @param {integer} limit | |
*/ | |
function Pagination(firebase_reference,limit) { | |
var page = 0; // Current page | |
var caching = {}; // Caching db | |
var last_key = false; // Last object key pointer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Test = function(){ | |
this.pools; | |
this.init = function() { | |
this.pools = [ | |
{id: 1,percent: 0.40,use: 0,index: 0,db: []}, | |
{id: 2,percent: 0.30,use: 0,index: 1,db: []}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var PatternsRecognizer = function() { | |
this.p = {v: '',c: 0}; | |
this.findAll = function(data) { | |
this.p = {v: '',c: 0}; | |
var patterns = []; | |
var stop = false; | |
while(!stop){ |