Skip to content

Instantly share code, notes, and snippets.

View vanquyettran's full-sized avatar

Trần Văn Quyết vanquyettran

View GitHub Profile
function getBestPhraseCombinationsWithMaxScoreAble(words, phraseNumWordsList, phrasesData, addressCutOrigin, maxScoreAble, exportResult,
maxConcurrentTasks = 8, getFreeWorker = undefined, setWorkerIsFree = undefined) {
var clauseNumWords = words.length;
var rankingTable = [];
for (var s = 0; s <= maxScoreAble; s++) {
rankingTable[s] = [];
}
public updateGrid() {
console.log('updating grid');
const columnCount = 5;
const spaceBetween = 30;
const ulTag = this.grid.nativeElement;
const liTags = ulTag.children;
const liTagLoadedList = [];
if (liTags.length > 0) {
this.updateLoadingState(true);
const setPositions = () => {
@vanquyettran
vanquyettran / datetime_picker.js
Last active May 10, 2017 08:00
JavaScript Datetime Picker
/**
* Created by User on 5/1/2017.
*/
"use strict";
var DatetimePicker = function (initTime, options) {
if (!(initTime instanceof Date)) {
initTime = new Date();
}