diff -r dirA dirB
diff -rq dirA dirB
const slowDownInterval = (ms, limit=10) => { | |
_slowDownInterval(ms, limit, 0); | |
} | |
const _slowDownInterval = (ms, limit, counter) => { | |
const sleepTimme = ms + (counter * 100); | |
if (limit > counter) { | |
setTimeout(() => { | |
console.log(`Interval: count => ${counter} ...`); | |
_slowDownInterval(ms, limit, counter + 1); |
const sleep = (ms) => { | |
setTimeout(() => undefined, ms); | |
}; | |
const intervalCount = (ms) => { | |
let counter = 0; | |
setInterval(() => { | |
console.log("[Info] count: ", counter) | |
counter++; | |
}, ms); |
const interval = async (ms, callback, continueCond) => { | |
const _interval = async () => { | |
await new Promise(resolve => { | |
setTimeout(resolve, ms); | |
}); | |
if (continueCond()) { | |
callback(); | |
await _interval(); | |
} |
" syntax support | |
syntax on | |
set nocompatible | |
set backspace=indent,eol,start | |
set tabstop=2 | |
set shiftwidth=2 | |
set number | |
set expandtab | |
set autoindent | |
set title |
const interval = async (msFunc, callback, continueCond) => { | |
const _interval = async () => { | |
const sleepTime = msFunc(); | |
console.log("sleepTime: ", sleepTime); | |
await new Promise(resolve => { | |
setTimeout(resolve, sleepTime); | |
}); | |
if (continueCond()) { | |
callback(); |
echo $(git branch | grep "*" | sed -e "s/\* //") |
import pandas as pd | |
import os | |
import datetime | |
# ------------------------------------------------- | |
EXIST_DATA_DIR = "data" | |
FULL_PATH = os.getcwd() | |
DATA_PATH = os.path.join(FULL_PATH, EXIST_DATA_DIR) | |
ALLOWD_EXTENSION = [".csv", ".txt"] | |
# ------------------------------------------------- |
def calculate | |
100 - (GC.stat[:heap_live_slots] / (GC.stat[:heap_eden_pages] * GC::INTERNAL_CONSTANTS[:HEAP_PAGE_OBJ_LIMIT] )) | |
end |