watch and watchEffect in Vue3
import {ref, watch, watchEffect} from 'vue' const a = ref(1); const n = ref(2); const b = ref(null); const c…
import {ref, watch, watchEffect} from 'vue' const a = ref(1); const n = ref(2); const b = ref(null); const c…
FROM node:alpine3.15 WORKDIR /app COPY ./ ./ RUN yarn install --immutable --immutable-cache --check-cache ENV http_proxy= ENV https_proxy= ENV no_proxy=localhost,127.0.0.1 EXPOSE…
exports.func = (req, res) => { const fpath = res.locals.fpath res.on('finish', () => { fs.unlink(fpath, (err) => { if(err) {…
What’s the difference between barbershops in the US and Japan? Barber shop in the US I went to sports clips…
function make_ranged_array(start, length){ return [...Array(length)].map((_, i) => { return start + i }) }
You can do ‘dot access’ instead of key access. It looks smart way compare with dictonary. You can inherit Person…
npm init -y npm install typescript ts-node @types/node --save-dev npx tsc --init touch main.ts npx ts-node main.ts
In your disk In your directory The main difference is that the first command displays the total size of each…
const axios = require('axios') const FormData = require('form-data') const crypto = require('crypto') // const fs = require('fs') const get_image(url) =>…