This file contains hidden or 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
const colorList = [ | |
{id: 100, color: 'violet', icon: '๐'}, | |
{id: 101, color: 'orange', icon: '๐งก'}, | |
{id: 102, color: 'yellow', icon: '๐'}, | |
{id: 103, color: 'green', icon: '๐'}, | |
{id: 104, color: 'blue', icon: '๐'}, | |
] | |
console.log(colorList); | |
console.table(colorList); |
This file contains hidden or 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
const readline = require('readline'); | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout, | |
}); | |
const input = []; | |
const solution = () => { | |
let answer = ''; |
This file contains hidden or 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
# ๋ธ๋์น ์ด๋ฆ์ด ๋ค๋ฅผ ๋, push ํ๋ ๋ฐฉ๋ฒ | |
git push [remote] [origin branch]:[remote branch] |
This file contains hidden or 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
import Hospital from "../../models/hospital" | |
// ๋ณ์์์ ์์ฝ๋ ์๊ฐ ์ญ์ | |
export const removeTime = async (ctx) => { | |
const { _id, reservationTime } = ctx.params | |
let hospital | |
try { | |
hospital = await Hospital.findOneAndUpdate( | |
{ _id: _id }, // id๋ก ๊ฒ์ํด์ | |
{ |
This file contains hidden or 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
import Hospital from "../../models/hospital" | |
// ๋ณ์์์ ์์ฝ๋ ์๊ฐ ์ถ๊ฐ | |
export const updateTime = async (ctx) => { | |
const { _id, reservationTime } = ctx.params | |
let hospital | |
try { | |
hospital = await Hospital.findOneAndUpdate( | |
{ _id: _id }, // id๋ก ์ฐพ์์ | |
{ |
This file contains hidden or 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
import React,{useState} from 'react' | |
... | |
function imageUpload(){ | |
const formData=new FormData() | |
// FormData์ data์ถ๊ฐ๋ append(key, value)๋ก ๋ฃ์ด์ค | |
const [image,setImage]=useState('') | |
const [form,setForm]=useState(new FormData) | |
const config = { // server๋ก ๋ณด๋ด์ค config ๋ฏธ๋ฆฌ ์์ฑ | |
headers: { |