Skip to content

Instantly share code, notes, and snippets.

View cuongndc9's full-sized avatar

🤖 $TheNewAIOwner cuongndc9

  • Tam Kỳ - Quảng Nam
View GitHub Profile
<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
p {
text-align: center;
font-size: 60px;
margin-top: 0px;
}
files.forEach((file) => {
formData.append(file.fieldname, file.buffer, file.filename);
});
       .                .                    
       :"-.          .-";                    
       |:`.`.__..__.'.';|                    
       || :-"      "-; ||                    
       :;              :;                    
       /  .==.    .==.  \                    
      :      _.--._      ;                   
      ; .--.' `--' `.--. :                   
     :   __;`      ':__   ;                  
https://stackoverflow.com/questions/5129624/convert-js-date-time-to-mysql-datetime/5133807
@cuongndc9
cuongndc9 / docker-compose.yml
Created February 4, 2021 06:58 — forked from themonster2015/docker-compose.yml
BDE2020 Docker-compose.yml
version: "2"
services:
namenode:
build: ./namenode
image: bde2020/hadoop-namenode:1.1.0-hadoop2.7.1-java8
container_name: namenode
volumes:
- hadoop_namenode:/hadoop/dfs/name
environment:
nmcli radio wifi on
docker volume rm $(docker volume ls -qf dangling=true)
'use strict'
const Fs = require('fs')
const Path = require('path')
const Axios = require('axios')
async function downloadImage () {
const url = 'https://unsplash.com/photos/AaEQmoufHLk/download?force=true'
const path = Path.resolve(__dirname, 'images', 'code.jpg')
const writer = Fs.createWriteStream(path)
await Promise.all(list.map(async (item) => {
await writeFile(`assets/${diana()}.png`, item.split(';base64,').pop(), { encoding: 'base64' });
}));