Skip to content

Instantly share code, notes, and snippets.

View sangwon090's full-sized avatar
🫡
ROKAF (24. 7. 1. - 26. 3. 31.)

Sangwon Ryu sangwon090

🫡
ROKAF (24. 7. 1. - 26. 3. 31.)
  • Soongsil Univ. CSE 23 / SWM 14th
  • Seoul, South Korea
  • 08:18 (UTC +09:00)
View GitHub Profile
@sangwon090
sangwon090 / main.py
Last active September 5, 2021 08:34
주변의 비콘을 스캔하고 그 비콘까지의 거리를 계산하는 코드
import time
import serial
scanner = serial.Serial('COM5', 9600)
def getBeacons(ser: serial.Serial):
beacons = []
ser.write(b'S')
res = b''
@sangwon090
sangwon090 / Kahoot_Scoreboard.py
Created March 16, 2020 08:07
[Python] Kahoot Scoreboard
import base64
url = input('Kahoot Link : ')
name = input(' Username : ')
print(' Scoreboard : ' + url + '?uid=' + str(base64.b64encode(name.encode()), 'utf-8') + '')
@sangwon090
sangwon090 / reverse_polish_notation.rs
Last active November 9, 2019 07:18
[Rust] Reverse Polish Notation
use std::io;
fn main() {
'main: loop {
let mut input = String::new();
io::stdin().read_line(&mut input).unwrap();
let input = remove_newline(&input);
if input.to_lowercase() == "exit" {
@sangwon090
sangwon090 / reverse_polish_notation.py
Last active November 9, 2019 07:08
[Python] Reverse Polish Notation
stack = []
for i in input().split(' '):
if i.isdigit():
stack.append(int(i))
else:
a = stack.pop()
b = stack.pop()
if i == '+':
@sangwon090
sangwon090 / DuplicateLineRemover.cs
Last active December 31, 2020 04:34
[C#] 중복 문장 제거
// NeverLanCTF 에서 사용하기 위해 작성함.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace CSharp_Playground
@sangwon090
sangwon090 / fo4_crawler.py
Last active December 31, 2020 04:35
[Python] FIFA Online 4 Crawler
from selenium import webdriver
from collections import namedtuple
url = "http://fifaonline4.nexon.com/datacenter/index"
driver = webdriver.Chrome("./chromedriver.exe")
player_data = namedtuple("player_data", "season name price")
players = []
driver.get(url + "?strPlayerName=" + "<PLAYER NAME HERE>")
driver.implicitly_wait(2500)