Skip to content

Instantly share code, notes, and snippets.

View Kinetic27's full-sized avatar
๐Ÿ 
Working from home

Hong SeokJin Kinetic27

๐Ÿ 
Working from home
View GitHub Profile
.editor-group-watermark > .letterpress {
background-image: url("https://raw.githubusercontent.com/Aikoyori/ProgrammingVTuberLogos/main/VSCode/VSCode.png") !important;
opacity: .80;
}
.mtk6 {
color: #f92aad;
text-shadow: 0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3;
}
@Kinetic27
Kinetic27 / lol_champ_download.py
Created August 12, 2022 15:56
lol champ downloader python.
import requests
from bs4 import BeautifulSoup as bs
import urllib.request
import re
url = 'https://www.leagueoflegends.com/en-us/champions/'
r = requests.get(url)
soup = bs(r.text, "html.parser")
@Kinetic27
Kinetic27 / Ring Buffer.c
Created March 16, 2022 08:21
๋ง ๋ฒ„ํผ ๊ตฌํ˜„ ๊ณผ์ œ 1
#include <stdio.h>
#define MAX_SIZE 5
// global variables
int queue[MAX_SIZE];
int front = 0;
int rear = 0;
// check if queue is full
int queue_full()
@Kinetic27
Kinetic27 / mean.py
Created March 13, 2022 15:39
์นœ๊ตฌ ๊ณผ์ œ ์ˆ˜๋™์œผ๋กœ ํ•˜๊ธธ๋ž˜ python ์ฝ”๋“œ๋กœ ํ•ด์คฌ์Œ
str = """9.794, 3.025, 0.500, 0.201, 1.931
9.524, 2.955, 0.458, 0.173, 1.797
8.850, 2.980, 0.500, 0.194, 1.820
9.324, 2.547, 0.542, 0.348, 2.634
9.596, 2.553, 0.583, 0.335, 2.599
9.890, 2.548, 0.583, 0.375, 2.797
10.082, 1.997, 0.625, 0.497, 3.199
9.166, 2.212, 0.667, 0.410, 2.749
9.454, 1.874, 0.667, 0.472, 2.931
10.972, 3.324, 0.417, 0.202, 2.135
@Kinetic27
Kinetic27 / TicTakToe.kt
Created September 11, 2021 16:42
ํ‹ฑํƒํ†  ์ฝ”ํ‹€๋ฆฐ
import java.util.Random
/**
* @author kinetic
*/
fun main() {
val board = Array(9) { " " }
var turn = 0 // 0 is human's turn, 1 is computer's turn
println("Tic Tak Toe")
๐ŸŒž Morning 2 commits โ–โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 0.8%
๐ŸŒ† Daytime 54 commits โ–ˆโ–ˆโ–ˆโ–ˆโ–‹โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 22.3%
๐ŸŒƒ Evening 123 commits โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‹โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 50.8%
๐ŸŒ™ Night 63 commits โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 26.0%
@Kinetic27
Kinetic27 / CoronaSchoolForm.py
Created July 1, 2020 11:47
Heroku์— ์˜ฌ๋ฆฌ๋ ค๊ณ  ์งœ๋‘” CoronaSchoolForm.py
import os
import time
from apscheduler.schedulers.blocking import BlockingScheduler
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
opts = Options()
opts.binary_location = os.environ.get("GOOGLE_CHROME_BIN")
@Kinetic27
Kinetic27 / brute_force.py
Created March 14, 2020 15:31
์‹ฌ์‹ฌํ•ด์„œ ์ง ๊ฑฐ ์ž‘๋™ ์—ฌ๋ถ€๋Š” ๋ชจ๋ฆ„
import string
from itertools import product
import requests
def product_loop(generator):
login_url = '์‚ฌ์ดํŠธ'
login_data = {'pw': 'test'}
falsedata = requests.get(login_url, params=login_data).text
# https://stu.goe.go.kr/sts_sci_md01_001.do?schulCode=J100005580&schulCrseScCode=4&schulKndScCode=04&schMmealScCode=2&schYmd=2019.12.3
@Kinetic27
Kinetic27 / ChromeDriverHelper.kt
Created August 24, 2019 10:31
ํฌ๋กฌ ๋“œ๋ผ์ด๋ฒ„ ๊ท€์ฐฎ์€ ์ฝ”๋“œ๋“ค ๋„์šฐ๋ฏธ Main.kt๋Š” ์˜ˆ์ œ.
/**
* @since 2018-08-24.
* @author Kinetic(@dev_kinetic)
*/
import org.openqa.selenium.By
import org.openqa.selenium.WebElement
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.support.ui.ExpectedConditions
import org.openqa.selenium.support.ui.WebDriverWait