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
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 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 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 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 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 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: { |