๋ถ๋ฅ ์ ์ฒด๋ณด๊ธฐ (224) ์ธ๋ค์ผํ ๋ฆฌ์คํธํ [Juyter] Tips https://hnanmal.tistory.com/entry/%EC%A3%BC%ED%94%BC%ED%84%B0%EB%85%B8%ED%8A%B8%EB%B6%81-%EC%88%98%EB%A7%8E%EC%9D%80-%EC%85%80-%EC%A4%91-%EB%94%B1-%ED%95%98%EB%82%98%EB%A7%8C-%ED%8C%8C%EC%9D%BC%EB%A1%9C-%EC%A0%80%EC%9E%A5%ED%95%98%EA%B8%B0 ์ฃผํผํฐ๋ ธํธ๋ถ ์๋ง์ ์ ์ค, ๋ฑ! ํ๋๋ง ํ์ผ๋ก ์ ์ฅํ๊ธฐ! ์ฃผํผํฐ ๋ ธํธ๋ถ์์ ํ์ด์ฌ์ผ๋ก ํ๋ก๊ทธ๋๋ฐ์ ํ๋ค ๋ณด๋ฉด ๋ฐ๋ณต๋๋ ์ฝ๋๋ฅผ ์ฌ์ฌ์ฉํ๊ธฐ ์ฝ๊ฒ ํจ์๋ก ๋ง๋ค๊ฒ ๋ฉ๋๋ค. ์ด๋ฐ ํจ์๋ค์ ๋ณดํต ํ ์ ์ ๋ชฐ์๋ฃ๊ณ , ๋ค๋ฅธ ์ ์์๋ ์ด ํจ์๋ค์ ํธ์ถํ๋ฉด์ hnanmal.tistory.com [Python] ํ์ผ ๊ด๋ จ ํด๋น ๊ฒฝ๋ก์ ๋๋ ํ ๋ฆฌ๋ฅผ list ํํ๋ก ๋ฐํ os.listdir(path) Data๋ฅผ ํฌํจํ๋ ํ์ผ๋ช ์ฐพ๊ธฐ file_name = [s for s in files if "Data" in s] with os.scandir(path) as files: for file in files: print(file.name) ํ์ผ ๋ณต์ฌ ํ๊ธฐ ํ์ผ์ ๋ณต์ฌํ๋ copyfile, copy, copy2 ํจ์๋ ๊ธฐ๋ณธ์ ์ธ ์ฌ์ฉ๋ฐฉ๋ฒ์ ๊ฐ์ต๋๋ค. import shutil shutil.copyfile("./test1/test1.txt", "./test2.txt") shutil.copy("./test1/test1.txt", "./test3.txt") shutil.copy2("./test1/test1.txt", "./test4.txt") .. VS Code ์ธ์ด๋ณ indentation ๋ค๋ฅด๊ฒ ์ค์ ํ๊ธฐ Ctrl + Shift + P -> Configure Language Specific Settings... ๊ฒ์ python ์ ํ @lang:python tab size ๋ก ๊ฒ์ https://til.simonwillison.net/vscode/language-specific-indentation-settings Language-specific indentation settings in VS Code When I'm working with Python I like four space indents, but for JavaScript or HTML I like two space indents. Today I figured out how to teach VS Code those defaults. 1. Hit.. discord.js bot ๋ง๋ค๊ธฐ (3) - Interactions INTERACTIONS Slash commands Registering slash commands https://discordjs.guide/interactions/slash-commands.html#registering-slash-commands discord.js Guide Imagine a guide... that explores the many possibilities for your discord.js bot. discordjs.guide Follow-ups ์ฌ๋ฌ๊ฐ ์๋ต์ ์ํ ๊ฒฝ์ฐ ์ฌ์ฉ! ์ด๊ธฐ ์๋ต ํ interaction ํ ํฐ์ 15๋ถ ๋์ ์ ํจํจ ephemeral: true -> command ์คํ์๋ง ์๋ต ๋ฐ๊ธฐ client.on('interactionCreate', async intera.. discord.js bot ๋ง๋ค๊ธฐ (2) - Events Event handling const { Client, Intents } = require('discord.js'); const { token } = require('./config.json'); const client = new Client({ intents: [Intents.FLAGS.GUILDS] }); client.once('ready', c => { console.log(`Ready! Logged in as ${c.user.tag}`); }); client.on('interactionCreate', interaction => { console.log(`${interaction.user.tag} in #${interaction.channel.name} triggered an interaction... discord.js bot ๋ง๋ค๊ธฐ (1) Node.js ์ค์นํ๊ณ npm init https://thebook.io/080229/ ๋๋ถ(TheBook): Node.js ๊ต๊ณผ์ ๊ฐ์ 2ํ thebook.io https://discordjs.guide/preparations/#installing-node-js discord.js Guide Imagine a guide... that explores the many possibilities for your discord.js bot. discordjs.guide discord.js ์ค์น npm install discord.js https://discordjs.guide/preparations/#opening-the-terminal discord.js Guide Imagine a guide... that.. bookmarks https://novice-engineers.tistory.com/15?category=939679 [python] 10๋ถ๋ง์ ์นด์นด์คํก ์ฑ๋ด ๋ง๋ค๊ธฐ1 - Flask ์ด๋ฒ์๋ ์นด์นด์คํก ์ฑ๋ด์ ๋ง๋ค์ด๋ณด๋๋ก ํ๊ฒ ์ต๋๋ค. 1. ๋ก๊ทธ์ธ accounts.kakao.com/login/kakaobusiness?continue=center-pf.kakao.com/create ์นด์นด์ค๊ณ์ ๋ก๊ทธ์ธ ์ฌ๊ธฐ๋ฅผ ๋๋ฌ ๋งํฌ๋ฅผ ํ์ธํ์ธ์. accounts.kakao.. novice-engineers.tistory.com [AWS] bookmarks https://inpa.tistory.com/entry/AWS-%F0%9F%93%9A-Lightsail-vs-EC2-%EB%B9%84%EA%B5%90-%EC%96%B4%EB%8A%90%EA%B2%8C-%EC%A2%8B%EC%9D%84%EA%B9%8C?category=947448 [AWS] ๐ Lightsail vs EC2 ๋น๊ต - ์ด๋๊ฒ ์ข์๊น? EC2 vs Lightsail ๋น๊ต AWS์์๋ ์น์๋น์ค ํธ์คํ ์ ์ํด EC2์ Lightsail ๊ฐ์ ์๋ฒ ์๋น์ค๋ฅผ ์ ๊ณตํ๋ค. ๋ ๋ค ์ธ์คํด์ค๋ฅผ ์์ฑํด์ ์๋น์ค๋ฅผ ์ฌ๋ ค๋ด๋ ์ด๋ค๊ฒ ๋ด ์ํฉ์ ๋ง๋ ์๋น์ค์ธ์ง ์ ํ์ ์ด ์ inpa.tistory.com ์ด์ 1 ยทยทยท 5 6 7 8 9 10 11 ยทยทยท 28 ๋ค์ ํฐ์คํ ๋ฆฌํด๋ฐ Developer๐ค๊ตฌ๋ ํ๊ธฐ