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> | |
long long fib(int n, long long fib1, long long fib2) | |
{ | |
if (n == 1) return fib1; | |
else return fib(n - 1, fib2, fib1 + fib2); | |
} | |
int main() | |
{ |
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
price = { | |
'A006340': { | |
'daygap_list' : [0.025, 0.041, 0.037], | |
'geo_mean': 0.01 | |
}, | |
'A001324': { | |
'daygap_list': [0.01, 0.023, 0.012], | |
'geo_mean': 0.008 | |
} |
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> | |
int mapSizeX, mapSizeY, startX, startY, direction, map[51][51] = { 0, }; | |
int dx[4] = { 0,0, -1,1 }; | |
int dy[4] = { -1,1, 0,0 }; | |
void move(int curX, int curY, int curDir) | |
{ | |
if (curY < 1 || curY > mapSizeY || curX < 1 || curX > mapSizeX) | |
{ |
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 pickle | |
import matplotlib.pyplot as plt | |
import matplotlib.dates as mdates | |
from datetime import datetime, timedelta | |
class Backtest: | |
def __init__(self): | |
f = open('universe.csv', 'r') | |
self.codes = f.read().split('\n') | |
f.close() |
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
var play = 1; | |
var death; | |
var isDead = false; | |
var start, respawn, foodCollide, info, back; | |
var score = 0; | |
var player = { | |
x: 300, | |
y: 200, | |
speed: 200, |
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 axios from "axios"; | |
import { useEffect, useState } from "react"; | |
import { Link, Redirect } from "react-router-dom"; | |
import PageHeader from "../component/page_header"; | |
import { useRecoilState } from "recoil"; | |
import { signupState } from "../state"; | |
import { api } from "../util"; | |
const Signup = ({ history }) => { | |
const [id, setId] = useState(""); |
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
def verify(k: int, n: int, box): | |
for i in range(k): | |
s1 = set() | |
for n1 in range(n): | |
for n2 in range(n1 + 1, n): | |
s1.add(abs(box[i][n1] - box[i][n2])) | |
for j in range(i+1, k): | |
s2 = set() | |
for n1 in range(n): | |
for n2 in range(n1 + 1, n): |
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
<!-- | |
프로젝트 작업 추천 순서 | |
0. 강의자료 한 번 따라해보기 | |
1. html / javascript 만 완성해보기 | |
-> "서버 연동 처리 전에 작업하는 코드" 참고해서, 서버 연동 결과를 있다고 치고, 변수에 미리 넣고 작업해보기 | |
2. python 서버 완성해보기 | |
-> python 코드를 참고하되, DB 연동 결과는 있다고 치고, 변수에 미리 넣고 서버 만들어보기 | |
3. 1에서 완성한 html과, 2에서 완성한 서버를 연동해보기 (난이도: 상) | |
4. DB 만들어서, python 서버와 연동해보기 | |
--> |
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
export const location1 = [ | |
"서울", | |
"경기", | |
"인천", | |
"강원", | |
"경남", | |
"경북", | |
"광주", | |
"대구", | |
"대전", |
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
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/core" | |
brew "zsh-autosuggestions" | |
brew "zsh-syntax-highlighting" | |
brew "python3" | |
brew "node" | |
brew "eza" | |
brew "git" | |
brew "openjdk" |