Skip to content

Instantly share code, notes, and snippets.

View SunjunKim's full-sized avatar

Sunjun Kim SunjunKim

View GitHub Profile
@SunjunKim
SunjunKim / youtube_audio_download.py
Last active September 30, 2023 06:43
Download music (=audio) from any YouTube link
# This script will download the audio of the YouTube video and save it in the same directory as your Python script.
# The audio file will be in .mp4 format, which is the default audio format for YouTube videos.
# Please remember to replace 'your_url' with the actual URL of the YouTube video you want to download.
# Also, please be aware of and respect the terms of service of YouTube and any applicable copyright laws when downloading videos or audio.
from pytube import YouTube
import re
import os
def download_youtube_audio(link):
@SunjunKim
SunjunKim / key_reaction.pde
Created July 12, 2022 06:28
Processing sketch for keystroke reaction time measurement
void setup()
{
frameRate(1000);
size(1024,768);
textSize(50);
}
void draw()
{
int now=millis();
pad = lambda s: s + (16 - len(s) % 16) * chr(16 - len(s) % 16)
@SunjunKim
SunjunKim / 차별금지법.반대.professors.md
Last active June 17, 2021 08:13
차별금지법을 반대하는 교수 모임
@SunjunKim
SunjunKim / Shape-Cylinder_0.2mm_PLA_MK3S_1h13m.gcode
Created November 10, 2020 05:09
Dextiles Prusa MK3S - PLA - Cylinder
This file has been truncated, but you can view the full file.
; generated by PrusaSlicer 2.2.0+win64 on 2020-10-13 at 05:38:43 UTC
;
; external perimeters extrusion width = 0.45mm
; perimeters extrusion width = 0.45mm
; infill extrusion width = 0.45mm
; solid infill extrusion width = 0.45mm
; top infill extrusion width = 0.40mm
@SunjunKim
SunjunKim / epubFontRemover.py
Created August 19, 2018 10:15
Epub font remover
import glob
import ruamel.std.zipfile as zipfile
import re
import os.path
import os
import shutil
originalDir = 'Original'
reducedDir = 'Reduced'