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
let debounce = (func, delay) => { | |
let timeoutId = ref(None); | |
data => { | |
switch (timeoutId^) { | |
| Some(existingTimeout) => Js.Global.clearTimeout(existingTimeout) | |
| None => () | |
}; |
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
require('dotenv').config() | |
const express = require('express'); | |
const app = express(); | |
const path = require('path'); | |
const fetch = require("node-fetch"); | |
const fs = require('fs') | |
app.use(express.static(path.join(__dirname, '../dist'), { index : false })) | |
//default meta tag |
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
<?php | |
function arr_unique($arr, $index){ | |
$tmpArray = []; | |
$newArray =[]; | |
foreach ($arr as $val) { | |
if(!in_array($val[$index],$tmpArray)) { | |
$newArray[]=$val; | |
$tmpArray[]=$val[$index]; | |
} |