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
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct _node NODE; | |
typedef struct _list LIST; | |
typedef struct _node{ | |
int data; | |
NODE* prev; | |
NODE* next; |
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
name: tf | |
channels: | |
- defaults | |
dependencies: | |
- _libgcc_mutex=0.1=main | |
- _openmp_mutex=5.1=1_gnu | |
- ca-certificates=2024.11.26=h06a4308_0 | |
- ld_impl_linux-64=2.40=h12ee557_0 | |
- libffi=3.4.4=h6a678d5_1 | |
- libgcc-ng=11.2.0=h1234567_1 |
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
// ์ ์ญ ๋ฐ์ดํฐ ์ ์ฅ์ | |
let chartData = []; | |
let svg, x, y, width, height, margin; | |
function initializeChart() { | |
margin = { top: 20, right: 20, bottom: 30, left: 50 }; | |
width = 800 - margin.left - margin.right; | |
height = 400 - margin.top - margin.bottom; | |
// SVG ์ค์ |
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
#๋จผ์ ์ธ๋ฐ์ด๋ ๊ท์น์ ๋ง๋์ธ์. | |
# PowerShell ์คํฌ๋ฆฝํธ | |
# 1. ๊ธฐ์กด portproxy ์ค์ ์ญ์ | |
netsh interface portproxy delete v4tov4 listenport=4000 listenaddress=0.0.0.0 | |
# 2. WSL2์ eth0 IP ์ฃผ์ ๊ฐ์ ธ์ค๊ธฐ | |
$wslIP = wsl hostname -I | ForEach-Object { $_.Trim() } | |
# 3. ์๋ก์ด portproxy ์ค์ ์ถ๊ฐ |
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 numpy as np | |
import pandas as pd | |
from scipy.optimize import minimize | |
import numpy as np | |
''' | |
์ฃผ์ A๋ฅผ ํค์งํ๊ธฐ ์ํด์ ์ฃผ์ B1, B2๊ฐ ์ฌ์ฉ๋จ. | |
์กฐ๊ฑด: (A)์ (B1, B2)๋ ๋ค๋ฅธ ์นํฐ์์ ์๊ด๊ณ์๊ฐ -1์ ๊ฐ๊น์์ผํจ | |
์กฐ๊ฑด2: ์ฌ์ค ๋ญ๋ ์๊ด์์ |
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 mojito | |
import websockets | |
import json | |
import requests | |
import os | |
import asyncio | |
import time | |
from Crypto.Cipher import AES | |
from Crypto.Util.Padding import unpad |
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 mojito | |
import pprint | |
key = "๋ฐ๊ธ๋ฐ์ API KEY" | |
secret = "๋ฐ๊ธ๋ฐ์ API SECRET" | |
acc_no = "12345678-01" | |
broker = mojito.KoreaInvestment( | |
api_key=key, | |
api_secret=secret, |
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
from tensorflow.keras.models import Sequential | |
from tensorflow.keras.layers import Dense, Dropout | |
from tensorflow.keras.optimizers import RMSprop | |
import numpy as np | |
import random | |
class QLearningAgent: | |
def __init__(self, env, learning_rate=0.1, discount_factor=0.99, epsilon=0.1): | |
self.env = env | |
self.step_size = learning_rate |
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 pandas as pd | |
import numpy as np | |
files = ["nvda.csv", "vix.csv", "eur.csv"] | |
def open_df(fn): | |
df = pd.read_csv(fn) | |
df.drop(["Vol.","Change %","Open","Low","High"], axis=1, inplace=True) | |
df["Price"] = df["Price"].astype(float) | |
df['Date'] = pd.to_datetime(df['Date'], format='%m/%d/%Y') |
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 random | |
computer = random.randint(1,3) | |
player = int(input("๊ฐ์, ๋ฐ์, ๋ณด ์ค ํ๋๋ฅผ ์ ํํ์์ค. (๊ฐ์=1, ๋ฐ์=2, ๋ณด=3): ")) | |
if computer == player: | |
print("๋น๊ฒผ์ต๋๋ค.") | |
elif player == 1: | |
if computer == 2: | |
print("์ก์ต๋๋ค (๊ฐ์<๋ฐ์)") |
NewerOlder